{"version":3,"file":"portal-4a5770a5495e54d507199e337182073d.js","names":["define","_exports","_rest","_environment","_emberInflector","_service","_string","_class","_descriptor","_descriptor2","_initializerDefineProperty","e","i","r","l","Object","defineProperty","enumerable","configurable","writable","value","initializer","call","_defineProperty","t","Symbol","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","_applyDecoratedDescriptor","n","a","keys","forEach","slice","reverse","reduce","default","pathForType","type","pluralize","dasherize","constructor","args","super","this","host","urls","api","apiV2Path","access_token","session","data","authenticated","headers","Authorization","createRecord","store","snapshot","serialize","includeId","key","undefined","record","url","buildURL","modelName","ajax","updateRecord","id","saveBulk","records","serializedRecords","map","JSON","stringify","contentType","then","response","res","index","modelClass","modelFor","pendingRecord","mergedData","assign","serializerFor","normalize","_id","isNew","set","push","_internalModel","_recordData","_attributes","send","deleteBulk","peekRecord","deleteRecord","pendingRecordId","isDeleted","unloadRecord","prototype","inject","_jsonApi","_errors","_string2","irregular","concurrencyHandler","maxConcurrency","runningCount","queue","enqueue","asyncTask","Promise","resolve","reject","async","result","error","dequeue","length","shift","nextTask","isAuthenticated","_withRequiredMeta","query","required","requiredMetaFields","fields","split","trim","filter","Boolean","Set","join","buildQuery","options","shouldReloadAll","shouldBackgroundReloadRecord","handleResponse","status","ConnectionError","invalidate","catch","arguments","chunkArray","array","size","Array","from","Math","ceil","_","findMany","ids","snapshots","chunkSize","chunkCallbackSize","requests","chunk","and","field","op","all","acc","concat","included","simple","operatorMapping","$eq","$ne","$in","$nin","$lt","$gt","$lte","$gte","$like","$ilike","_filter","entries","isArray","operator","operand","mappedOperator","Error","findRecord","adapterOptions","URL","meta","searchParams","toString","_apiV2Adapter","EntityProductAdapter","name","ProjectProductAdapter","TaskProductAdapter","_application","_emberPowerCalendarMoment","_emberResolver","_emberLoadInitializers","_emberPowerCalendar","registerDateLibrary","App","modulePrefix","podModulePrefix","dependencies","services","hostRouter","_base","_jquery","restore","authenticate","accessToken","userId","transition","user","method","dataType","attemptedTransition","authenticator","expires_in","token_type","attributes","_rsvp","_oauth","extend","_utils","_runloop","_object","_array","_oauth2PasswordGrant","router","serverTokenEndpoint","apiV1Path","serverTokenRevocationEndpoint","refreshAccessTokens","identification","password","scope","grant_type","get","scopesString","makeArray","isEmpty","makeRequest","run","xhr","transitionTo","success","cancel","_refreshTokenTimeout","apply","A","tokenType","token","token_type_hint","succeed","_oidcConfig","waitForRedirect","startRedirect","_resolve","timer","setTimeout","clearTimeout","_bindOidcEvents","userManager","events","addUserLoaded","existingBpUser","trigger","bypassRedirect","addUserUnloaded","_isInvalidating","addAccessTokenExpiring","navigator","locks","request","ifAvailable","lock","currentUser","getUser","signinSilent","_buildSessionData","oidcUser","bpUser","buildaPrice","getMeFromIdentityId","profile","sub","window","location","search","includes","signinRedirectCallback","signinRedirect","expired","_data","logoutComplete","signoutRedirect","_forgetUser","removeUser","BREAKPOINTS","mobileMax","tablet","desktop","jumbo","ultrawide","minWidth","px","maxWidth","mobile","_component","_activeTable","_templateFactory","__COLOCATED_TEMPLATE__","createTemplateFactory","block","moduleName","isStrictMode","setComponentTemplate","layout","tagName","classNames","classNameBindings","columns","sortable","computed","sortedBy","sortDir","columnCount","totalUnits","flexibleProportion","column","width","header","create","actions","sortBy","columnToSort","toSortBy","newDir","_component2","AllocationHierarchyComponent","maxPaths","allocations","primaryAllocation","isMultiple","needsTitle","firstPart","middleParts","paths","lastPart","at","formattedPath","parts","separator","popupText","path","_tracking","_treeItem","_descriptor3","_descriptor4","_descriptor5","_descriptor6","items","constructItemTreeFromProjectAndTasks","tasks","projects","item","belongsTo","selectedItem","find","values","next","findItemInTree","numberOfInvoices","mapBy","uniqBy","toggleIsOverridingXeroAccount","isOverridingXeroAccount","xeroAccountOverride","toggleIsOverridingQuickbooksAccount","isOverridingQuickbooksAccount","quickbooksAccountOverride","tracked","action","getOwnPropertyDescriptor","buttonText","attachment","attachments","intl","onAttachmentsUploadComplete","validationErrors","onUploadComplete","isAttachmentModalVisible","numberOfAttachments","_onDelete","isDeleting","onDelete","_debug","_attachment","_descriptor7","_descriptor8","_class2","_descriptor9","_descriptor0","_descriptor1","_descriptor10","_descriptor11","_descriptor12","_descriptor13","_descriptor14","FileContainer","init","isSaving","fileContainers","some","fc","existingAttachmentHashes","att","hash","existingFileContainerHashes","onDropZoneDragOver","event","preventDefault","onDropZoneDrop","filesArray","dataTransfer","files","file","isValidType","forUpload","getFileHash","fileAlreadyStaged","stageFiles","onManualFileUpload","target","onManualUploadClick","fakeEvent","input","document","createElement","accept","acceptedMimeTypes","multiple","onchange","click","unstageFile","dfc","removeObject","fileIsTooLarge","isInvalid","invalidMessage","filePreviouslyAttached","pushObject","completeUpload","invalidFiles","containersToSave","saved","createAttachmentRecord","numberInvalid","numberOfFailures","savedRecords","close","notifications","message","toggleVisible","attachmentRecord","fromFileInput","sessionData","entity","save","hasErrored","errorMessage","acceptedMime","isMimeSame","buffer","arrayBuffer","crypto","subtle","digest","environment","hashBuffer","Uint8Array","b","padStart","fileHashes","AttachmentPreviewComponent","fileType","isPdf","isImage","startsWith","_asyncArrowRuntime","_emberChangeset","_lodash","newValue","oldValue","validateName","buildTask","context","generator","canManageUsers","getUserPermissionSet","perform","getAttachmentPermissionSet","initPermissionChangeset","attachmentChangeSet","Changeset","taskValidator","validationMap","simpleQuery","userAttachmentPermission","toArray","attachmentProjectPermission","getExistUserPermissions","users","last","getExistCanViewFilePermission","permissionChangeSet","clientsCanViewFileStorage","include","attribute","validate","saveUserAttachmentPermission","saveClientCanViewAttachmentPermission","onCloseAction","execute","existCanViewFilePermission","originalState","currentState","project","attr","destroyRecord","confirm","linkRecord","parent","hasMany","originalAttributes","originalSelectedUsers","selectedUsers","removeUsers","difference","attrToRemove","oa","addUsers","attrToAdd","u","canViewFileStorage","initChangeset","showClientVisibleButton","isEditable","newFeatureFlags","includesFeatureFlags","setAttachmentToUpdate","attachmentToUpdate","_templateOnly","AttachmentsPopoverComponent","direction","media","isDesktop","forceVisible","isOpen","isDraggingFiles","open","setupListeners","element","dragHandler","types","dragEndHandler","clickHandler","contains","addEventListener","teardownListeners","removeEventListener","projectOptions","selectedProject","safeBelongsToValue","passedInProjects","accountOptions","unused","currentCode","switchProject","projectId","j","_basicDropdownContent","_basicDropdownTrigger","_basicDropdownWormhole","_basicDropdown","_computed","parser","hasSelectedFile","notEmpty","hasNotSelectedFile","not","hasImported","import","importData","csvParsingErrors","rejectBy","oldError","clear","report","reportParsingErrors","errors","parsingError","msg","_emberConcurrency","_emberChangesetValidations","_bill","_billItem","_searchFilter","_searchTermEscape","_descriptor15","_descriptor16","_descriptor17","_descriptor18","_descriptor19","_descriptor20","_descriptor21","_descriptor22","_descriptor23","_descriptor24","_descriptor25","deleteKey","BillEditorComponent","condensedMode","columnSpans","hasPurchaseOrder","billForm","spans","select","canManageBills","code","description","allocation","purchaseOrderItem","glAccount","quantity","unitPrice","total","icon","totalSpan","sum","span","loadedBillItems","bill","safeHasManyToValue","hasNextPurchaseOrderPage","purchaseOrdersPage","currentPage","totalPages","isActionsRunning","billActions","secondaryActions","isRunning","primaryAction","activeAttachment","allAttachments","attachmentIndex","myAttachments","sortBillItems","billItems","sort","sortIndexDiff","Date","getTime","filteredBillItemForms","billItemForms","form","allBillItemsSelected","selectedBillItemForms","someBillItemsSelected","totalPrice","bif","hasUnsavedChanges","isDirty","isBillFormValid","isValid","isTotalPriceValid","every","isBillFormPristine","isPristine","isHandlingTransition","billValidations","sortedItems","billItemValidations","hasAttachments","attachmentsVisible","validateBillForm","timeout","restartable","searchTerm","effectiveSearchTerm","contactsSearchTerm","contactsPage","contacts","contactFilter","nextPageNumber","nextPage","page","number","clearPurchaseOrderIfReferenceChanged","loadPurchaseOrders","purchaseOrderSearchTerm","purchaseOrder","resetPurchaseOrderItems","purchaseOrderItemSearchTerm","purchaseOrderItemsPage","purchaseOrderItems","purchaseOrderItemFilter","contact","issuer","aliases","setContactAliasModalVisible","billsData","reloadBills","syncToAccountingPackage","wasNew","originalIssuerContactId","confirmBillTypeMatchesTotal","showWarning","selectedIssuerContactId","issuerContactAdded","issuerContact","rollbackProperty","content","sortIndex","itemPromises","billItem","formsToDelete","f","removeObjects","addBill","accountingPlatform","sendBill","handleAccountingPackageResponse","allocating","targetStatus","removeBillAndNavigateToNext","invoicedCosts","requestDelete","isInvoiced","title","deleteCb","nextBill","querySelector","nextElementSibling","removeBill","showBillDeleteConfirmModal","on","preventInternalNavigation","preventBrowserClose","resetChangeset","willDestroy","off","viewDuplicateBills","billNumber","urlFor","URLSearchParams","triggerClose","triggerSave","triggerNextBill","current","triggerPreviousBill","previousBill","previousElementSibling","billOutsideFilter","billStatus","validateBothDescriptionAndProductCode","changeset","rollbackAttributes","abort","returnValue","nextAttachment","attachmentCount","previousAttachment","viewAttachment","findIndex","href","attachmentsUploadComplete","newAttachments","filename","extension","fileSize","uploadError","deleteAttachment","linkAttachmentsToBill","attachmentInfo","attachmentsCount","addNewBillItem","row","scrollIntoView","behavior","focus","preventScroll","toggleSelectAll","toggleSelected","stopPropagation","indexOf","toSpliced","deleteSelectedBillItemForms","purchaseOrders","purchaseOrderFilter","setIssuerContact","hadContact","savedBillHasIssuerString","contactNameMatches","results","or","searchTermEscape","pageSize","defaultBillAllocationType","setDefaultAllocationType","currentAllocationType","hasDifferentAllocationType","setPurchaseOrder","existingPurchaseOrder","purchaseOrderNumber","clearBillItemPurchaseOrderItems","reference","setBillItemPurchaseOrderItem","createIssuerContact","contactName","itemsInvalid","warning","suggestedBillType","currentBillType","billTypeChangeConfirmation","billType","sign","existingBillTypePural","existingSign","xeroLinked","handleBillTypeChange","confirmed","confirmation","changeStatusWithoutValidations","fullyMapped","changeStatus","allocate","activePlatform","label","quickbooksLinked","hasRejection","resp","rejected","billResponses","billTypeResponseHandlerVisible","filterResponses","onBillTypeResponseHandlerCancel","onBillItemAllocatorClose","wasCancelled","BillItemAllocatorComponent","onOverrideGlAccount","overriddenGlAccount","selectedItems","stagedChanges","allItemsSelected","someItemsSelected","fullyAllocatedBills","bills","stagedState","task","allocationActions","billCount","billCountLabel","isActive","acceptAllocateSend","acceptAllocate","isLoading","load","actionsDisabled","primaryActionDisabled","searchString","glAccountsPage","glAccounts","hasNextPage","loadActivePlatformGlAccounts","projectIds","p","projectTree","billIds","unallocatedItems","computeMap","itemsJson","toJSON","updateInvoiceItems","itemIds","add","_saveAllocations","onClose","_acceptBills","errorCount","oldStatus","selectedMap","mapSetFromComputeMap","targetProject","targetTask","has","onMapChange","getPath","effectivePurchasesGlAccount","clearSelectedAllocations","Map","escapeHtml","replace","BillItemSummaryComponent","allocationPaths","isAllocated","isMapped","rows","summaryText","statusLabel","replaceAll","statusIcon","statusClass","responseErrors","responses","flat","attachmentErrors","BillsTableComponent","loadMoreBills","hasOneBill","selectedBills","info","currentRoute","params","bill_id","showBillsDeleteConfirmModal","allSettled","failedUpdates","failed","hasStatusFilter","someBillsSelected","selectedBillItems","deleteConfirmText","count","scrollActiveBill","active","inline","deleteMessages","showStatusColumn","condensed","filterString","showCondensedStatusStripe","fromColumnSpan","numberColumnSpan","allocationColumnSpan","billStatusBackgroundClasses","resetSelectionOnFilterChange","currentFilter","originalFilter","billStatusStripeClasses","navigateToBill","closeAllocator","getPurchaseOrderMatchingStatus","purchaseOrderDetails","BillsTableThComponent","state","endsWith","toggleOrderBy","onOrderBy","_stringSimilarity","_esm","_moment","_parseCurrencyString","_placemakersBillCsvNormalizer","_bunningsBillCsvNormalizer","normalizeColumnValue","toLowerCase","ParserError","getValidationMessages","flatMap","validation","TrimValue","BillsFile","sampleRows","csv","columnsLength","columnTypeOptions","matches","columnTypes","_findLikelyColumnTypes","columnTypeForm","_generateColumnTypeForm","validator","_key","changes","rv","v","validatorMap","bestMatch","option","rating","normalizedMatches","findBestMatch","base64","parse","bom","skip_empty_lines","relax_column_count","read","csvText","atob","write","end","parseCsvFromBase64","_e","skipNoneDescriptionRows","billFile","contactChangeSet","validationMessages","billsMap","noDescriptionIndexes","rowIndex","getColumn","colIndex","colType","invoiceNumber","productCode","parseFloat","abs","rawIssueDate","parsedIssueDate","ISO_8601","issueDate","toDate","rawDueDate","parsedDueDate","dueDate","getBillDueDate","allocationType","source","invalidProductRowIndexes","importedBills","findExistingBills","existing","saveBills","failedBills","billAttrs","billData","subtotal","onUploadBillsCSV","clearDuration","setContact","onClear","billFileItems","skipNoneDescriptionRowsAndUpload","uploadBills","onUpload","parseCsvFromAttachment","isPlaceMakersBillCsv","isBunningsBillCsv","entityId","uniqueBillNumbers","existingBills","peekAll","grouped","existingBill","new","importNewBillsOnly","importAllBills","contactValidator","bind","_c3Chart","steps","calc","inputs","chars","PLUS","MINUS","MULTIPLY","DIV","step","char","_formatNumber","metrics","date","endOf","periodType","table","metric","format","series","period","objectAt","toISOString","formatNumber","reverseColors","min","max","height","gauge","_ratio","places","dashZero","show","units","color","colors","pattern","threshold","unit","legend","position","dates","seriesMeta","start","currentPeriod","seriesIndex","periods","s","group","periodIndex","unshift","x","axis","reduction","yAxisPlaces","longest","longestLength","floor","setsOfThree","reductionText","pow","tick","y","text","grid","tooltip","sigfigs","numberLength","markEmptySeries","markNegativeSeries","markEmpty","markNegative","validateTitle","questionId","question","deleteQuestion","showEditQuestion","addNewQuestion","newQuestionTitle","checklist","hasDirtyAttributes","editQuestion","questionValidator","saveChecklist","setFocus","onChangeNewQuestionInput","hidingChildren","attributeBindings","tmpId","deleteAccount","account","createChildAccount","toggleHidingChildren","toggleProperty","toggleIsEditingDescription","saveDescription","didInsertElement","_super","hover","addClass","removeClass","nestedSortable","handle","helper","excludeRoot","toleranceElement","placeholder","update","updateList","accounts","nestingData","beginPropertyChanges","line","findBy","item_id","parent_id","left","children","filterBy","endPropertyChanges","_comboBox","tlc","string","finderVisible","selectedRow","is","activeValue","willDestroyElement","willRender","finderNotVisible","filteredOptions","activeDisplayName","setFinderVisible","visible","isDestroyed","isDestroying","keyDown","keyCode","newSelectedRow","keyUp","keepSelectedRowVisible","selectedRowIndex","$row","$container","top","scrollTop","outerHeight","unSetHighlight","setItem","_comboButton","showDropdown","focusOut","onButtonClick","holdFocus","confirmText","onCancel","allowDelete","getElement","clearTarget","longPressed","targetPosition","setTarget","withScroll","disabled","menuVisible","bindEvents","container","containerId","button","buttonId","setAttribute","containerContextMenuListener","onContainerContextMenu","containerClickListener","onContainerClick","containerMouseDownListener","onContainerMouseDown","containerMouseUpListener","onContainerMouseUp","containerFocusOutListener","onContainerFocusOut","buttonClickListener","removeEvents","random","clientX","clientY","longPressTimeout","onContainerLongPress","buttonRect","getBoundingClientRect","bottomRightX","right","scrollX","bottomRightY","bottom","scrollY","relatedTarget","parsePx","pxValue","parseInt","isVisible","innerHeight","innerWidth","onScroll","menuElement","parentElement","initialPosition","rect","parentRect","style","scrollLeft","scrollParent","scrollParentScrollListener","positionMenuFixed","removeProperty","originalDirection","checkedAllDirections","menuRect","menuStyle","getComputedStyle","menuOuterWidth","borderLeftWidth","paddingLeft","borderRightWidth","paddingRight","menuOuterHeight","borderTopWidth","paddingTop","borderBottomWidth","paddingBottom","overflowY","getPropertyValue","findFirstScrollableParent","passive","_dashboardItem","mouseEnter","mouseLeave","_evented","_account","_kpi","_entity","_entityGroup","groups","selectedKpis","selectedAccounts","selectedEntityGroups","selectedEntities","isMac","platform","canAccessEntities","canAccessEntityGroups","parentEntity","parenEntityFilter","canAccessMultipleEntities","role","readableForCurrentOrganisation","treeExpansion","kpis","profitAndLoss","balanceSheet","otherData","entities","entityGroups","isFirstStep","equal","isLastStep","singleMetric","multipleSeries","correctMetricCount","observer","module","getProperties","setProperties","correctSeriesCount","setSelectedKpis","kpiIds","allKpisInStore","setSelectedAccounts","accountIds","allAccountsInStore","setSelectedEntityGroups","entityGroupIds","allEntityGroupsInStore","setSelectedEntities","entityIds","allEntitiesInStore","setAccounts","depth","selectedMetric","kpi","dashboardModule","selectedSeries","includeCurrentEntity","entityGroup","advance","back","prev","withoutSaving","savePromises","model","updateEntityGroups","_newSelection","operation","updateEntities","updateKpis","updateAccounts","toggleIsDeleting","delete","toggleTree","cache","isEditing","updateMetrics","visualiser","subtract","linkDashboardModuleToAccounts","linkDashboardModuleToKpis","linkDashboardModuleToEntities","linkDashboardModulesToEntityGroups","includeCurrent","loadBalances","getMetrics","loadKpiValues","setMetrics","err","responseJSON","attemptToCorrectPermissionsError","periodTypes","hasData","payload","periodStart","periodEnd","cacheKey","merge","cached","lookup","loadGroups","disallowedGroups","detail","match","startingLength","toggleIsEditing","_makeTempId","modules","tree","spare","saveModulePositions","resizeEvent","createEvent","initEvent","dispatchEvent","$dashboardModules","later","each","section","dataset","moduleId","positionX","positionY","checkRowCount","$section","put","makeNewRowsSortable","component","nativeSortable","animation","pull","onSort","onAdd","onRemove","createModule","getEntity","includeCurrentBranch","isNewModule","finally","deleteModule","col","saveModsToRight","m","_dateInput","elementId","isTarget","hasTarget","focusDateInput","selectAndDeactivate","handleDateInput","toggle","today","didReceiveAttrs","setupAttrs","startDate","endDate","daysFromCenter","round","diff","center","dateString","isPicking","isThisYear","isSame","isSameYear","applyFilter","closeDropdown","onApply","thisWeek","calendar","startOf","calendarSelect","lastWeek","thisFortnight","lastFortnight","thisMonth","lastMonth","didOpen","willClose","range","changeCenter","currentFile","isDragAndDropVisible","emptyContent","isDelete","tableData","removeAttachment","filteredFiles","shortcutsToMime","image","archive","validationError","fileName","fileContainersForUpload","onDragLeave","isDropHover","onDragOver","processAttachments","DragSortListComponent","eachKey","containers","DSLContainer","buildContainers","list","setDraggedContainer","draggedContainer","sourceId","targetId","sortAction","onUpdate","newContainerList","unwrap","coordinates","containerList","clone","sourceCoordinates","c","targetCoordinates","sourceContainer","targetContainer","sourceList","sourceIndex","splice","targetList","targetIndex","newContainer","_buildContainers","prefix","dslId","DragSortListChildrenComponent","DragSortListDragHandleComponent","cursorClass","disableDragging","isDragging","DragSortListDraggableComponent","isDraggingOntoSelf","isDraggingInsideSelf","onDragStart","setData","onDragEnter","cursorYPos","originalEvent","pageY","elementTop","currentTarget","documentElement","elementHeight","offsetHeight","heightOffset","third","inTopThird","inBottomThird","inMiddleThird","isDroppingAbove","isDroppingInto","isDroppingBelow","onDrop","getData","onDragEnd","_durationInput","formatDuration","duration","handleFocus","selectOnFocus","requestAnimationFrame","handleBlur","rawValue","parseDuration","onDurationChange","couponCode","calEducationCouponCode","_positionedContainer","_basicDialog","_inPlaceDialog","_liquidDialog","_liquidTetherDialog","_tetherDialog","_overlay","_emberWormhole","parentNames","allowedEntities","aString","bString","localeCompare","hasParentColumn","filteredEntities","changeEntity","setProjectedRemaining","hours","manHoursProjectedTotal","manHoursActual","setProjectedRemainingTotal","costCenter","_faIcon","change","_basicImporter","baseParser","baseParserComponent","importObserver","importing","_ember","_fileField","reader","FileReader","sanitizedText","Papa","skipEmptyLines","newline","complete","readAsText","testing","onload","_dec","testMimes","tm","mime","doc","docx","pdf","ppt","pptx","rtf","xls","xlsx","extensionToMime","audio","video","defaultSize","hasBackgroundImports","canMap","setHasImported","selectedSystemDidChange","hasClass","optionsTemplate","system","unmapped","resetImport","remap","invertMap","setSelectedSystemValue","matchedSystem","systems","sys","selectSystem","manualUpdate","balance","revertToAuto","toggleConfigPane","colsPerGroup","totals","plBs","drCr","month","ytd","continuous","toggleShowChildren","toggleShowBreakdown","toggleFilter","valueWithUnit","suffix","emptyPlaceholder","currencyValue","formatterOptions","isUpdating","formatter","val","parseNumber","editRawValue","formatClassName","isZero","doWarnForZero","warnOnZero","displayFormattedValue","handleInput","handleFocusIn","handleFocusOut","isNaN","parsed","parserOptions","defaultValue","wasUpdated","_fromElsewhere","_banklink","_empower","_frameworks","_gjGardner","_itmManual","_maxim","_myobAo","_myob","_prostix","_rees","$fileInput","$fileInputClone","replaceWith","xeroIntegration","getXeroBalances","financialPortalPeriodSelector","_xeroCsv","GoogleMapComponent","registerControl","pendingControls","attachControls","pending","wrapper","controls","google","maps","ControlPosition","MutationObserver","classList","remove","disconnect","observe","childList","controlObservers","disconnectControlObservers","setupMap","lat","lng","radius","minRadius","maxRadius","hasLocation","zoom","clickableIcons","mapTypeId","MapTypeId","HYBRID","mapId","googleMaps","mapTypeControl","mapTypeControlOptions","TOP_RIGHT","clickListener","addListener","handleMapClick","mapListeners","marker","AdvancedMarkerElement","circle","Circle","strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity","clickable","editable","radiusListener","isProgrammaticUpdate","newRadius","getRadius","isClamped","setRadius","onRadiusChange","centerListener","newCenter","getCenter","onClick","newLat","latLng","newLng","updateMap","panTo","currentCenter","latDiff","lngDiff","setCenter","currentMapRadius","setMap","fitMapToCircle","setZoom","getMap","bounds","getBounds","fitBounds","listener","removeListener","getAxes","GroupingSelectorComponent","gs","axes","onChange","noneOption","level","updatedValue","getOptions","remainingGroups","opt","isSelected","g","IconButtonComponent","sizeClass","onChangeIndeterminate","indeterminate","onScrollEventListener","scrollableParent","el","clientHeight","scrollHeight","isNearScrollBottom","currentPosition","lastTriggerPosition","onLoadMore","didInsert","maybeLoadOnInsert","prevHeight","newHeight","synced","exported","imported","_roundNumber","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","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","warn","existingForKey","tsGroup","sortedChildren","ReportExporterComponent","alias","useProRata","marginType","proRataCoefMaterials","computedTotals","markupPercent","proRataCoefLabour","proRataCoefSubcontractors","subcontractor","entityDefaultOptions","isEntityDefault","optionsRecord","companyLogoUrl","introduction","footnotes","materialsDetail","projectTimesheetsDetail","labourInvoicesDetail","subcontractorInvoicesDetail","formatBytes","maxSize","logoUrl","uploadLogo","keepLatest","loadOptions","formData","FormData","append","fetch","json","normalisedTimesheets","workers","useChargeOutRates","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","workerIds","projectStatuses","taskBreadcrumbs","totalPay","dayInfo","projectStatus","addressList","validatePurchaseOrderNumber","purchaseOrderNumberValidator","supplierNameValidator","purchaseOrderOptions","purchaseOrderChangeSet","filteredPurchaseOrders","purchaseOrderNumberIconName","supplierIconName","dateOrderPlacedIconName","deliveryStatusIconName","nextPurchaseOrderNumber","openNewPOForm","purchaseOrderValidator","purchaseOrderValidateMap","setAddress","nextPoNumber","_validatePurchaseOrderNumber","supplierValue","taxFreightCharges","freightCharges","taxTotal","deletedPurchaseOrderItems","_purchaseOrderItems","isDeletingPurchaseOrder","newPurchaseOrderItems","isAddingProducts","latestUnitPrice","deliveredQuantity","buyer","seller","orderSubmittedDate","orderNote","requestedDeliveryDate","deliveryNote","deliveryAddress","purchaseOrderOption","downloadPurchaseOrderPDF","onSavePurchaseOrder","sendPurchaseOrder","includeAllAttachments","includeAllAttachmentsInSubmissionEmail","dateOrderPlaced","isApproveAndSendEmail","isSendEmail","canManagePurchaseOrders","purchaseOrderPermissions","canApprovePurchaseOrders","poActions","openApproveAndSendModal","openSendModal","showUpdatePriceButton","totalPriceFooter","supplierContactDetailsExists","contactEmail","onChangeUnitPrice","remainingQuantity","toFixNumber","toFixed","onChangeDeliveredQty","taskProductQuantity","onSelectProduct","productTableHeader","onSelectCurrentPageProducts","_p","canUseProjects","canManagePurchaseOrderProjects","sellerDetails","_items","groupPurchaseOrderItems","freightChargesWithTax","_reportBuilderAttachmentsBundle","_reportBuilderMarkAsReported","_reportBuilder","_reportBuilder2","markReportedOnExport","confirmMarkAsReported","markSelectedItemsAsReported","generateAndDownloadCsv","groupReportByCostCenter","includeAttachmentsOnExport","downloaded","reportData","materialInvoices","subcontractorInvoices","manualMaterials","manualTimesheets","manualSubcontractors","materialsMarkup","labourMarkup","subcontractorMarkup","groupedMaterialInvoices","groupInvoiceGroupsByTask","groupedSubcontractorInvoices","groupedLabourInvoices","groupedWorkers","newTimesheet","WorkerGroup","arg","getTasks","materialInvoiceGroups","subcontractorInvoiceGroups","labourInvoiceGroups","workerGroups","generateInvoiceTypeRows","getTimesheetTotal","marginTotal","generateLabourTypeRows","invoiceGroups","subcontractorGroups","timesheetGroups","invoiceSubtotal","sumBy","invoiceMargin","invoiceTotal","subcontractorSubtotal","subcontractorMargin","subcontractorTotal","labourInvoiceSubtotal","timesheetsSubtotal","timesheetsManHoursTotal","labourSubtotal","labourMargin","taskSubtotal","taskMargin","taskTotal","taskManHoursTotal","generateTaskTotalRows","generateManualTypeRows","manHoursTotal","margin","generateTotalRows","groupedItems","InvoiceGroup","manual","workerWrapper","totalWorkerHours","totalWorkerCost","workerCurrentChargeOutRate","timesheetTotal","generateAndDownloadXlsx","_portalApiToken","materialsSectionExpanded","labourSectionExpanded","subcontractorsSectionExpanded","CLOSED","manualLabour","invoiceProfit","invoiceProfitType","invoiceDollarProfit","generateDollarProfit","generateMargin","invoiceMarkup","generateMarkup","timesheetProfit","timesheetProfitType","timesheetDollarProfit","timesheetMargin","timesheetMarkup","subcontractorProfit","subcontractorProfitType","subcontractorDollarProfit","subtotals","manualInvoiceTotalPrice","invoiceTotalPrice","manualTimesheetTotalPrice","timesheetTotalPrice","labourInvoicePrice","timesheetTotalManHours","manualSubcontractorTotalPrice","subcontractorTotalPrice","allMaterialsSelected","invoiceWrapper","partMaterialsSelected","allTimesheetsSelected","partTimesheetsSelected","allSubcontractorsSelected","subcontractorWrapper","partSubcontractorsSelected","allLabourSelected","labourWrapper","partLabourSelected","setProfitType","groupKey","toggleItemsVisible","toggleTimesheetsSelected","toggleWorkersTimesheetsSelected","toggleTimesheetSelected","toggleMaterialsSelected","toggleSubcontractorsSelected","toggleLabourSelected","toggleTimesheetsReportedSelected","toggleMaterialsReportedSelected","toggleSubcontractorsReportedSelected","toggleResourceItemsSelected","toggleInvoiceItemSelected","addManualItem","newManualItem","deleteManualItem","downloadReport","setItemReportedFalse","setItemsReportedFalse","resetPageOverrides","profitKey","profitTypeKey","subtotalKey","profit","HTML_TO_PDF_SERVICE_URL","htmlToPdfService","isDownloading","htmlContent","outerHTML","includeMargins","Accept","blob","updateProductList","isEditingProduct","adapterFor","selectProductIds","isDeletingProducts","suppliersFilter","suppliersPageSize","deleteProducts","onClickProductName","selectedProductId","selectedProductIds","showFilters","productData","addressSuggestions","projectList","updateProjectList","projectChangeset","newProjectData","projectReference","openAndSave","closeNewProjectForm","openNewProjectForm","canManageProjects","projectModel","suggestion","latitude","longitude","filteredProjects","_pricing","merchant","newEstimateData","merchantList","pricing","getMerchantList","cdeptname","estimateChangeset","pricingMerchantId","pricingMerchantName","createPrice","newEstimate","estimates","onEstimateRowClick","PortalPricingError","editPrice","editingEstimateData","pricingJobId","estimateId","duplicatePrice","duplicateEstimateData","attachToProject","duplicatedEstimate","unlinkedEstimates","deletePrice","deletingEstimateData","estimate","importTemplateData","getImportStatus","canImport","getTemplates","merchantId","selectedUnlinkedEstimates","destroyImportUnlinkedEstimatesData","selectedTemplates","selectedTemplatesString","addTemplates","selectedTemplateIds","importMaterialsData","getPreloadedQuotes","quotes","selectedQuote","base64File","fileToBase64","importMaterialsFromFile","jobFile","jobFileName","jobFileType","importMaterialsFromQuote","quoteId","destroyImportMaterialsModal","createTasksFromEstimate","estimateForGenerateTasks","groupLabourAndMaterialBySubheading","groupSubcontractorsBySubheading","groupMiscByHeading","groupMiscBySubheading","groupOverheadBySubheading","groupOverheadByHeading","closeGenerateTasks","filteredEstimates","supportedFileFormats","openEditEstimateForm","closeDeleteModal","openDeleteModal","quoteNumber","readAsDataURL","showUnlinkedEstimatesDialog","groupMiscByItems","groupOverheadByItems","commit","commitBudget","commitQuote","commitProgress","commitScheduling","loadBudget","creatingBudgetVersion","loadQuote","creatingQuoteVersion","isLoadingBudget","createBudgetVersion","isLoadingQuote","createQuoteVersion","canManageBudgetVersions","canManageQuoteVersions","canManageProject","tabsArray","_client","canViewQuotesAttributes","canViewProgressAttributes","canViewFileStorageAttributes","canViewBudgetsAttributes","projectAttributes","taskAttributes","client","utas","uta","pa","ta","attributesToRemove","canViewBudgetFinancialReports","canViewBudgetReportsAttributes","canViewBudgetLabourHourReports","canViewBudgetLabourHourReportsAttributes","canViewChargeupReports","canViewChargeupReportsAttributes","canViewCostFinancialReports","canViewCostReportsAttributes","canViewCostLabourHourReports","canViewCostLabourHourReportsAttributes","canViewProgressReports","canViewProgressReportsAttributes","canViewQuoteReports","canViewQuoteReportsAttributes","canViewSchedulingReports","canViewSchedulingReportsAttributes","canViewTasks","canViewTasksAttributes","canViewInvoicingReports","canViewInvoicingReportsAttributes","canViewClientReports","canViewClientReportsAttributes","originalIds","_content","newIds","toAdd","handleAttributesForClients","permissionsChangeset","taskVisibilityOptions","canViewReports","allowedReports","projectPermissionsCount","projectPermissionsVisible","_projectPermissionsVisible","canSeeTaskVisibilityChecks","schedulingPermissionsCount","schedulingPermissionsVisible","_schedulingPermissionsVisible","reportsPermissionsCount","reportsPermissionsVisible","_reportsPermissionsVisible","_attributesToRemove","ar","existingAttributes","findAll","matchingExistingAttributes","ea","addToProjectAttributes","clientToAddToProject","clients","isAddingClientToProject","filteredClients","projectClients","unassignedClients","handleAttributesForSubcontractor","subcontractorToAddToProject","isAddingSubcontractorToProject","filteredSubcontractors","projectSubcontractors","unassignedSubcontractors","userIsYou","_user","_subcontractor","_subcontractor2","canManageBudgets","canManageBudgetsAttributes","canManageEstimates","canManageEstimatesAttributes","canManageProductsAttributes","canManageFileStorageAttributes","canManageProjectsAttributes","canManageQuotes","canManageQuotesAttributes","canManageSchedulingReports","canManageSchedulingReportsAttributes","canManageTasks","canManageTasksAttributes","canManageTimesheets","canManageTimesheetsAttributes","canViewBudgets","canViewProgress","canManageProgress","canManageProgressAttributes","canViewProducts","canViewProductsAttributes","canViewQuotes","canCreateHealthAndSafety","canCreateHealthAndSafetyAttributes","canManageHealthAndSafety","canManageHealthAndSafetyAttributes","entityCanViewBudgetReports","entityCanViewCostReports","entityCanViewChargeupReports","entityCanViewProgressReports","entityCanViewQuoteReports","entityCanViewBills","entityCanManageBills","entityCanManageTimesheets","entityCanViewTimesheets","entityCanViewBudgetLabourHourReports","entityCanViewCostLabourHourReports","entityCanViewInvoicingReports","allocationsPermissionsCount","allocationsPermissionsVisible","_allocationsPermissionsVisible","healthAndSafetyPermissionsCount","healthAndSafetyPermissionsVisible","_healthAndSafetyPermissionsVisible","userIsEntityAdmin","includesClaimsAboutEntity","canViewTimesheetsAttributes","canViewBillsAttributes","canManageBillsAttributes","entityCanManageProjects","entityCanViewTasks","entityCanManageTasks","entityCanViewBudgets","entityCanViewProgress","entityCanManageProgress","entityCanManageBudgets","entityCanViewQuotes","entityCanManageQuotes","entityCanViewProducts","entityCanManageProducts","entityCanViewFileStorage","entityCanManageFileStorage","entityCanViewSchedulingReports","entityCanManageSchedulingReports","entityCanManageEstimates","entityCanCreateHealthAndSafety","entityCanManageHealthAndSafety","handleAttributesForUser","userToAddToProject","isAddingUserToProject","filteredUsers","projectUsers","unassignedUsers","_user2","canViewAccessReports","canViewAccessReportsAttributes","canViewInvoices","canViewInvoicesAttributes","canManageInvoicesAttributes","canApproveInvoicesAttributes","canViewStagePayments","canViewStagePaymentsAttributes","canManageStagePayments","canManageStagePaymentsAttributes","canViewPurchaseOrders","canViewPurchaseOrdersAttributes","canManagePurchaseOrdersAttributes","canApprovePurchaseOrdersAttributes","handleAttributes","Access","entityCanViewAccessReports","entityCanViewInvoices","entityCanViewStagePayments","entityCanManageInvoices","entityCanManageStagePayments","entityCanApproveInvoices","entityCanViewPurchaseOrders","entityCanManagePurchaseOrders","entityCanApprovePurchaseOrders","_workers","handleWorkerProjectAttributes","workerToAddToProject","workerAttributes","isAddingWorkerToProject","projectWorkers","unassignedWorkers","workersToAddToProject","_workersToAddToProject","workersToRemoveFromProject","canManageWorkers","projectAttributesToAdd","_projectAttributesToRemove","projectAttributesToRemove","existingProjectAttributes","_worker2","canViewTaskAttributes","includesClaimsAboutProject","workerHealthAndSafetyAttributes","manageableProjectList","progressList","updateDraftProgressPosition","canCompleteTasks","makeTasks","isComplete","commitProject","showCommitProgressModal","saveDraftProgress","commitProgressVersion","numberOfChanges","countChanges","isDifferentFromLastVersion","canSeeCreateVersionButton","canSeeSaveDraftButton","findCanManageTaskProgress","pl","showTaskControls","latestVersion","currentProgressVersion","isDraft","tc","getTrackingCategoryOptions","storeTrackingOptions","xeroTrackingOptions","isDeletingProject","isArchivingProject","profitMarginChangeset","canManageProfitMargin","saveProfitMargin","clearAddressSuggestions","googleMapAddressFinder","loadProjectProfitMargin","projectClientsString","purchasesGlAccountIsOverridden","purchasesGlAccount","salesGlAccountIsOverridden","salesGlAccount","togglePurchasesGlAccountOverride","currentValue","defaultPurchasesGlAccount","toggleSalesGlAccountOverride","defaultSalesGlAccount","rad","setGoogleMapAddress","onClickMap","_descriptor29","_descriptor30","_descriptor31","_descriptor32","_descriptor33","stageNumber","isInteger","retention","newQuestion","currentChecklist","remainingQuoteValue","useValueFromTasks","allStages","quoteVersionValues","allStagesLinkedTasks","loadDataForEffectivePercentage","usedQuote","totalQuoteValue","linksByTask","effectivePercentage","calculateEffectivePercentage","currentTaskQuote","qvv","stagesCount","stagePayments","sortByDirection","stagePaymentsValues","numberOfStages","showCreateStagesModal","showNameEditor","showValueEditor","showDateEditor","invoiceLinks","selectedStages","joinedLinks","showBulkDeleteStagesModal","fixedValue","bulkActionsStageValue","showBulkActionsModal","_computedRemainingQuoteValue","stagePaymentOption","showProjectLevelContractTermsModal","downloadStagePaymentsPDF","includeTasks","includeCheckListItems","closeDownloadOptions","pageIsLoading","stagePaymentOptions","tableIsLoading","openNameEditor","openDateEditor","openValueEditor","selectedStagesValue","stagePaymentTask","showTaskSelectorModal","openChecklist","currentStageLinkedQuestions","showChecklistModal","onSelectAllStages","getSortIcon","payment","stageStatus","currentStageInvoices","completedTaskIds","pvv","completedQuestions","hasDueDate","hasTasks","hasQuestions","dueDateCondition","tasksCondition","questionsCondition","allConditionsMet","isReadyToBeClaimed","taskTooltip","checklistTooltip","badgeValue","badgeClass","popOverActions","primary","secondary","toggleStageStatus","claimAndInvoiceStage","constraintItems","deleteIndividualStage","sectionName","_col","onSelectStage","_bulkActionsStageValue","remainingQuote","remainingQuoteValueInContextWithStages","distributeRemainingQuoteAcrossStages","stagePaymentValidationMap","saveCurrentStage","preventNegative","showDownloadOptions","stagesFilter","quoteVersionValueFilter","linkTaskToStagePaymentsFilter","linkedTasks","stageLinks","allocationPercentage","tasksParents","currentTask","currentHierarchy","commonParent","stageId","_index","taskName","childrenLength","addTaskToList","firstTaskName","reloadTasks","newTaskList","getTasksFromItems","addTasksFromFile","_project","loadTaskChanges","newTaskContainers","_taskList","newTaskContainer","parentTaskId","parentTc","findParentTc","refresh","generatePathsFromTask","currentPercentages","newVal","oldVal","_changes","_oldVal","manHours","budgetChangeset","updateBudgetData","quoteChangeset","quoteData","draftBudget","updateQuoteData","hasDraftBudgetChanges","draftBudgetChange","hasDraftQuoteChanges","draftQuoteChange","hasBothDraftBudgetAndQuoteChanges","hasBudget","totalDraftBudgetManHours","totalDraftBudgetLabour","totalDraftBudgetMaterials","totalDraftBudgetSubcontractors","totalDraftBudgetSums","canManageProjectBudgetAndQuote","canManageProjectBudget","canManageProjectQuote","canManageBudget","canManageQuote","canViewBudget","canViewQuote","totalDraftBudgetCurrency","draftBudgetLabour","draftBudgetMaterials","draftBudgetSubcontractors","draftBudgetSums","totalDraftChildrenBudgetCurrency","childrenDraftBudgetLabour","childrenDraftBudgetMaterials","childrenDraftBudgetSubcontractors","childrenDraftBudgetSums","totalTotalDraftBudgetCurrency","totalDraftQuoteCurrency","draftQuoteLabour","draftQuoteMaterials","draftQuoteSubcontractors","draftQuoteSums","totalDraftChildrenQuoteCurrency","childrenDraftQuoteLabour","childrenDraftQuoteMaterials","childrenDraftQuoteSubcontractors","childrenDraftQuoteSums","totalTotalDraftQuoteCurrency","totalDraftQuoteLabour","totalDraftQuoteMaterials","totalDraftQuoteSubcontractors","totalDraftQuoteSums","totalProductCurrency","totalAmount","totalProducts","setMaterialBudgetFromProducts","budgetModel","openUpdateBudgetForm","budgetValueChanged","lineTotal","childrenDraftBudget","hasQuote","totalDraftQuoteManHours","openUpdateQuoteForm","calculateInitialQuoteValues","calculateInitialProfitPercentages","quoteValidationMap","validatePercentages","profitMarginChanged","quoteModel","expectedProfitType","childrenDraftQuote","quoteValueChanged","draftQuote","defaultProfitMargin","defaultPercentageValues","canManageTask","_client2","projectCanViewBudgetReports","projectCanViewCostReports","projectCanViewChargeupReports","projectCanViewProgressReports","projectCanViewQuoteReports","projectCanViewBudgetLabourHourReports","projectCanViewCostLabourHourReports","projectCanViewInvoicingReports","projectCanViewClientReports","taskPermissionsCount","taskPermissionsVisible","_taskPermissionsVisible","_parentTaskIds","getTaskId","projectCanViewTasks","includesClaimsAboutTask","projectCanViewBudgets","projectCanViewQuotes","projectCanViewProgress","projectCanViewFileStorage","projectCanViewSchedulingReports","addToTaskAttributes","handleAttributesForClient","clientToAddToTask","isAddingClientToTask","taskClients","subcontractorToAddToTask","isAddingSubcontractorToTask","taskSubcontractors","_subcontractor3","projectCanManageTimesheets","projectCanManageTasks","projectCanManageBudgets","projectCanManageProgress","projectCanManageQuotes","projectCanViewProducts","projectCanManageProducts","projectCanManageFileStorage","projectCanManageSchedulingReports","userToAddToTask","isAddingUserToTask","taskUsers","_user3","handleWorkerTaskAttributes","workerToAddToTask","workerTaskAttributes","workerProjectAttributes","isAddingWorkerToTask","taskWorkers","_workerToAddToTask","workerToRemoveFromTask","taskAttributesToAdd","_taskAttributesToRemove","taskAttributesToRemove","onChangeProductQuantity","dependencyTransferDestinationTask","taskToDelete","isDeletingTask","isDependencyTransferModalOpen","taskChangeset","loadTaskProfitMargin","contractTypeIsOverridden","taskHasDependencies","messages","subtaskNumber","availableDependencyTransferDestinationTasks","taskProject","selectDependencyTransferDestination","destinationTask","closeDependencyTransferModal","humanReadableContractType","effectiveContractType","toggleContractTypeOverride","taskModel","reportsDownload","pdfExportTargetId","pdfExportHideClass","landscape","scale","downloadAndSavePdf","saveResource","forecastTable","elements","_selectedDate","excludedProjectIds","_excludedProjectIds","_status","controllerDate","_controllerDate","excludedProjects","_excludedProjects","controllerStatus","_controllerStatus","hasFilters","removeFilter","filterStatus","onDateChange","csvOptions","reportElements","invoiceTable","tableName","csvExportOptions","updateSelectedDate","_csvOptions","elementType","isExportDisabled","toggleCsvOption","optionIndex","closeCSVExport","entityLevelReport","showDownloadButton","tbody","noteReport","selectedWorkers","getWorkers","selectedProjects","getProjects","setFilterByDate","dateRangeSelectorEndDate","dateRangeSelectorStartDate","removeAllProjectFilters","removeAllWorkerFilters","profitMarginsTable","wipReportTable","hasValueProjects","balanceDate","projectsData","attentionSafetyLogoSrc","ATTENTION_SAFETY","logo","budgetTable","projectPath","chargeupReport","quoteTable","projectLevelReport","taskLevelReport","o","costTable","showAllocationTypeFilter","allocationTypeLabel","setCostType","_filterByDate","labourHoursTable","updateStartDateInput","refreshReport","currentSelectedTaskIds","_gantt","_ganttLocaleZhCn","ganttChart","sync","stm","resetQueue","disable","enable","doAutoLoad","subjectEntityId","_this","canManageUsersAndWorkers","canViewUsersAndWorkers","canUseProgress","hidden","showAvatars","editor","picker","showCircle","taskMenu","cut","copy","paste","indent","outdent","onItem","taskRecord","language","LocaleManager","applyLocale","DateHelper","ProjectLines","Gantt","smoothZoom","visibleDate","scrollTaskIntoViewOnCellClick","animate","highlight","autoLoad","trackProjectSettings","listeners","loadStart","ganttIsLoading","loadFail","loadCanceled","autoRecord","recordingstop","redoCount","undoCount","restoringstop","queueReset","resetUndoRedoQueuesAfterLoad","silenceInitialCommit","autoCalculatePercentDoneForParentTasks","transport","mode","credentials","referrerPolicy","fillTicks","ganttFillTicksEnabled","subGridConfigs","locked","ganttTableCollapsed","ganttSubGridConfigsEnabled","normal","subGridCollapse","syncSubGridSetting","subGridExpand","showTaskColorPickers","features","cellEdit","addNewAtEnd","dependencyEdit","ganttDependenciesEnabled","ganttLabelsEnabled","criticalPaths","ganttCriticalPathsEnabled","nonWorkingTime","ganttNonWorkingTimeEnabled","columnLines","ganttColumnLinesEnabled","rollups","ganttRollupsEnabled","progressLine","ganttProgressLineEnabled","parentArea","ganttParentAreaEnabled","timeRanges","showCurrentTimeLine","cls","projectLines","percentBar","allowResize","rowReorder","pdfExport","exportDialog","orientationField","rowsRangeField","scheduleRangeField","exportServer","ganttExportServer","clientURL","translateURLsToAbsolute","sendAsBinary","taskEdit","generalTab","percentDone","effort","resourcesTab","advancedTab","constraintDateField","projectsById","selected_projects","projectIsSetting","onSetProjects","onSyncGantt","ganttChartIsVisible","manageableProjects","canUseImportAndManage","_ganttFillTicksEnabled","_ganttSubGridConfigsEnabled","subGrids","_ganttTableCollapsed","_ganttDependenciesEnabled","_ganttLabelsEnabled","_ganttCriticalPathsEnabled","_ganttNonWorkingTimeEnabled","_ganttColumnLinesEnabled","_ganttRollupsEnabled","_ganttProgressLineEnabled","_ganttParentAreaEnabled","toggleSetting","subGrid","onZoomInClick","zoomIn","onZoomOutClick","zoomOut","onCollapseAllClick","expandAll","onUndo","canUndo","undo","onRedo","canRedo","redo","onExpandAllClick","collapseAll","onShiftPreviousClick","shiftPrevious","onShiftNextClick","shiftNext","onZoomToFitClick","zoomToFit","leftMargin","rightMargin","onGoToTodayClick","onSearchChange","searchFilterRegex","searchValue","nbrDecimals","downloadPDF","showExportDialog","onTaskImportModalClose","reloadProject","initializeGanttChart","taskImportModalVisible","hasChargebeeSubscription","openChargebee","buildaPriceLogoSrc","BUILDA_PRICE","_nest","nestedAccounts","debitCreditMatchesParent","childAccounts","addLine","lastAccount","highestIndex","newAccount","isHeading","createAccount","cancelDelete","doDelete","parentAccount","remainingChildren","profitAndLossData","balanceSheetData","otherDataData","setAccountProperties","queuedSave","toggleDebitCredit","_dashboard","_editRecord","firstClosedPeriodLabel","firstClosedPeriodExplanation","openAllPeriods","setFirstClosedPeriod","firstClosedPeriod","firstClosedMonth","firstClosedYear","years","currentYear","months","_membership","propertyToToggle","noEditGroups","tableContent","branch","branchId","isInGroup","groupMembers","existingMember","canAccessGroup","accessItems","existingAccess","access","addNewGroup","deleteGroup","cancelDeleteGroup","confirmDeleteGroup","reason","saveGroups","saveLinks","saveAll","hasOtherData","otherDataAccounts","balanceCalculator","calcBalances","addValue","application","importController","editedMaps","stepName","multipleFiles","visibleSystems","selectedSystem","importSystem","entitySystem","switchSystem","getBranch","isConfiguring","unusedMaps","extBals","extBal","accountList","imp","balances","colspan","_getAccountDepth","importMaps","newMaps","externalId","mapRecord","importBalances","systemKey","previousSystemKey","newBalances","oldBalances","combineBalances","oldBals","newBals","newBalExtIds","oldBal","onEditMap","toggleEditing","toggleClass","currentId","oldMaps","oldMap","allMaps","mapsToSave","uniq","manBals","saveImport","saveMaps","currentStep","transitionToOnSave","transitionToOnDelete","_sortAccounts","monthVisible","ytdVisible","focusToggle","targets","breakdown","sourceValues","targetValue","actualValue","isBalanceTarget","isKpiTarget","showYtd","hasBreakdown","showBreakdown","monthTarget","computedValue","monthActual","monthDifference","computedDifference","monthArrowClasses","computedArrow","ytdTarget","ytdActual","ytdDifference","ytdArrowClasses","accountTargets","balanceTargets","untargetedAccounts","untargeted","kpiTargets","untargetedKPIs","checkingEmpty","arrayOfResults","addTarget","savedTarget","removeTarget","targetRecord","emptyLines","field1","field2","value1","value2","metricsKey","targetedKey","targeted","_generic","dataKeyPrefix","accountSettings","hideChildrenKey","canSeeBreakdown","colSpan","orderedEntities","initOrderedEntities","accountsSortedByEntity","applySetting","setting","hide","cloneDeep","sortByEntity","pageAsCSV","downloadSheet","existingSetting","togglePrintableTrue","groupNumber","shiftFarLeft","scopedEntity","otherEntities","hideChildren","csvBuilder","generateMetaDataRows","lastYearVisible","percentageVisible","profitAndLossTableVisible","selectedGroupIds","selectedGroups","selectedEntityIds","newUserData","financialsTableColspan","createNewUser","isItmPLInvite","createUserAjax","selectEntity","selectGroup","setProfitAndLossTableVisible","boolean","toggleYtdVisible","toggleMonthVisible","createRows","recurse","percentSales","percentParent","percentages","totalTitle","getPercentValue","repeat","monthPrev","ytdPrev","getSelectedItemName","entityNames","percentSalesHeadings","pAndLHeadingRow","pAndLContent","expensesHeadingRow","expensesContent","generateDataRows","interval","dateRange","age","durationOptions","intervalOptions","applyAccountSettings","intervalCount","linkToDetail","kpisSortedByEntity","groupId","currentStats","stats","chartPeriod","selectedPeriodData","periodDate","noData","watchchecked","goToModule","mod","outsideLink","slug","selectedDisplayOption","displayOptions","readyToDelete","deleting","showInvalid","referenceDirectives","openReferenceDirectives","closedReferenceDirectives","accountDirectives","openAccountDirectives","closedAccountDirectives","unusedAccounts","usedCodes","duplicates","duplicatesFound","isDuplicate","diplicatesPresent","directives","addDirective","kind","newDirective","unshiftObject","deleteDirective","showSyncIcon","isLinkedToActiveAccountingPlatform","disableForm","canEditGlAccounts","handleAccountsUpdated","handleAccountsRemoved","selectedAccountIds","isDeletingAccounts","onSelectAllAccounts","onClickGlAccountName","onSelectAccount","addNewGlAccount","loadedAccounts","validateEntityContent","businessNumber","companyLogo","lastLogo","updatedEntity","businessNumberLabel","taxNumberLabel","autoClear","toggleAdditionalLabourMargin","updateLogo","entityModel","previewImage","clearLogo","updateContacts","isContactLinkedToAccountingPlatform","onChangeSyncWithAccountingPlatform","createContact","aliasName","aliasNameInput","supplierChangeset","currentAliases","showAddAliasModal","isDeletingSupplier","aliasesTableData","removeAlias","aliasesTableHeader","canEditSupplier","saveSupplier","deleteSupplier","deleteSupplierDisabledTitle","isLinkedToResources","filteredAliases","closeAddAliasModal","duplicateSuppliers","getDuplicateSuppliers","mergeOptions","needDeleteSuppliers","selectedSupplierIds","isDeletingSuppliers","needDeleteXeroSuppliers","updateSupplierList","mergeDuplicateSuppliers","actionData","optionsIndex","mergeIndex","updateIds","selectableSuppliers","supplierTableHeader","supplierHeader","onSelectAllSuppliers","supplierTableData","isLinkedToAccountingPlatform","selectionDisabledTitle","supplierData","onClickSupplierName","viewContactLabel","onClickViewAccountingPlatform","contactPerson","contactNumber","onSelectSupplier","onDeletingSuppliers","xeroContactId","viewContactUrl","openMergeDuplicateSuppliersDialog","onMergeDuplicateSuppliers","onCheckingDuplicateSuppliers","closeDuplicateSupplierModal","hasDuplicateSuppliers","goNewSupplier","_ipsConnection","setEntityFeatures","getUsage","connect","stores","selectedItmStores","requestIntegrationAjax","itmSuppliers","statusText","xeroCompanyId","companyId","xeroCompanyName","companyName","shortCode","allowedXeroIntegration","quickbooksUrl","xeroConnection","connection","ipsConnectionValidator","eaccountsInvoiceIntegration","allowed","requestableItmStores","requestedItmStores","addItmStoreRequest","contactSupport","helpCenter","helpCenterActive","openHelpCenter","cancelItmStoreRequest","reconnectITmStoreRequest","inviteUserAjax","destroyAttribute","userChangeset","canManageUser","loginAs","entityAttributesToAdd","entityAttributesToRemove","workersToAdd","isCompanyAdministrator","administratorAttributes","canManageEverything","managerAttributes","canViewBills","canViewTimesheets","canViewProjects","canViewProjectsAttributes","canManageWorkersAttributes","canViewWorkers","canViewWorkersAttributes","canViewPayrollReports","canViewPayrollReportsAttributes","canEstimate","canManageEstimateSettings","canManageEstimateSettingsAttributes","canUseReportBuilderReport","canUseReportBuilderReportAttributes","canManageIntegrations","canManageIntegrationsAttributes","handleEntityAttributes","handleWorkers","workerCount","includesClaimsAboutWorker","canManageNotes","canViewNotes","settingsPermissionsCount","settingsPermissionsVisible","_settingsPermissionsVisible","canEditUser","canManageUserPermissions","_entityAttributesToRemove","existingEntityAttributes","existingWorkerAttributes","canViewUsers","canViewUsersAttributes","canManageUsersAttributes","canViewFinancialReporting","canViewFinancialReportingAttributes","canManageFinancialReporting","canManageFinancialReportingAttributes","permissionsDescription","financialReportingPermissionsCount","financialReportingPermissionsVisible","_financialReportingPermissionsVisible","authCode","clipboard","writeText","_getDefaultLanguage","languages","workerChangeset","permissionChangeset","confirmMessage","canDeleteWorker","backdateChargeOutRateChangeSet","backdateCostRateChangeSet","validateChargeOutRateContent","validateCostRateContent","numberOfTimesheetsUpdated","costRates","getEmployees","accountingPlatformEmployees","getEarningRates","xeroEarningsRates","canUseWorkerType","canUsePayRate","canUseCostRate","canUseWorkerCostCalculator","canUseChargeOutRate","canUseBackdateChargeOutRate","canUseBackdateCostRate","workerTypes","setDefaultChargeOutRate","initBackdateChargeOutRateChangeset","backdateChargeOutRateMap","initBackdateCostRateChangeset","backdateCostRateMap","copyAuthCode","copiedAuthCode","validateUserContent","addOrRemoveHAndSPerm","userCanManageHealthAndSafety","setLocale","currentPassword","oldPassword","newPassword","confirmPassword","changePassword","closePasswordModal","passwordModalVisible","terms","initUserCanManageHealthAndSafety","hasManage","hasCreate","resetPassword","signOut","tokenExpired","resetPasswordForm","passwordConfirmation","clearAll","handleRequestPasswordReset","_dataAdapter","time","hhmmss","second","compact","notation","EUR","USD","NZD","CNY","AUD","GBP","_and","_helper","_regexp","appVersion","version","APP","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","_assign","param","camelCaseWords","word","_camelize","camelize","_cancelAll","_capitalize","capitalize","_changesetGet","_changesetSet","changesetSet","_changeset","_collectionToArray","chunks","_classify","classify","convertToTitleCase","txt","charAt","_dasherize","dateAgo","thatMoment","fromNow","_element","ellipsisTextCharacters","maxCharacters","truncatedText","ellipsisTextWords","maxWords","truncatedWords","truncatedString","_emberPowerCalendarDayClasses","_emberPowerSelectIsEqual","_emberPowerSelectIsGroup","_emberPowerSelectIsSelectedPresent","_util","EnsureSafeComponentHelper","_eq","compute","excludesSomeFeatureFlags","fileSizeToString","bytes","si","dp","thresh","_formatDate","_formatMessage","NaN","DASH","isPercentage","MINUS_SIGN","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","formatAs","rawNumber","standardizeInput","finalize","calcPlaces","rounded","factor","padded","pointIndex","pad","formatNegativeSign","len","addCommas","currencySymbol","symbol","addCurrencySymbol","applyDecoration","flags","raw","parsedInput","roundsToZero","isNegative","_formatRelative","actionName","os","hasKeyboard","mainModifier","_formatTime","getFileIcon","gz","rar","zip","_gt","_gte","_humanize","humanize","_ifKey","_ignoreChildren","_inc","inc","_isActive","_isAfter","_isArray","_isBefore","_isBetween","_isEmpty","_isEqual","isHash","_isSameOrAfter","_isSameOrBefore","_isSame","_lowercase","lowercase","_lt","_lte","math","operand1","operand2","parseOperand","_media","_momentAdd","_momentCalendar","_momentDiff","_momentDuration","_momentFormat","_momentFromNow","_momentFrom","_momentSubtract","_momentToDate","_momentToNow","_momentTo","_notEq","_not","_now","fromCharCode","charCodeAt","_onKey","_or","ordinalFor","lastDigit","_pageTitle","fetchPages","accumulatedResults","updatedResults","_perform","_pipe","pipe","_pluralize","_powerCalendarFormatDate","_preventDefault","effective","_range","_replaceWith","_rootUrl","EPSILON","round6dp","_routeParams","_singularize","sortKey","categoryKey","other","_stopPropagation","_t","_titleize","titleize","_toggleAction","_toggle","_transitionTo","_trim","_truncate","truncate","_underscore","underscore","_unix","_uppercase","uppercase","_urlFor","_utc","_w","_xor","addLicense","am5LicenseKey","_initializerFactory","_deprecationFilter","installDeprecationFilter","_deprecationSupport","registerOptionsForType","singleton","_responsive","_emberSimpleAuth","_engines","_faviconTitle","favicon","apiUrl","authenticationUrl","getDefaultPlatform","changeTitle","changeFavicon","oidc","authenticationURL","_mobileDragDrop","_scrollBehaviour","polyfill","dragImageTranslateOverride","scrollBehaviourDragImageTranslateOverride","NativeArray","Worker","myWorker","onmessage","insertAdjacentHTML","terminate","_pathResolver","_addModalsContainer","_googleAnalyticsFour","_mixin","mediaEvents","defaultRoute","defaultRouteModel","transitionArgs","redirect","registerViewportModeChangeListener","handleViewportModeChange","deregisterViewModeChangeListener","didTransition","willTransition","_model","_calcMapBalance","inverse","sourceBalance","_sanitizeFilename","_baseModel","mimeToHumanType","humanTypes","aac","abw","avi","gif","jpeg","jpg","mp3","mpeg","odp","ods","odt","png","tif","tiff","weba","webm","webp","xml","presentation","spreadsheet","testMime","checkMime","test","toBase64","humanType","BaseAttachmentsModel","_filename","_extension","_fileType","_size","previewHref","_BaseModel","relationName","serialized","relationships","relationship","_baseAttachmentModel","glAccountLabel","canSeeProject","canSeeTask","assignment","assignments","handleTask","allocationPath","purchaseOrderMatchingStatus","hasError","hasWarning","billedQuantity","quantityInOtherBills","quantityOrdered","quantityDelivered","unitPriceMatches","typeLabel","activeItems","xeroInvoiceId","xeroCreditNoteId","quickbooksBillId","quickbooksCreditNoteId","xeroDeeplinkUrl","accountingPackageUrl","newIsValid","VALID_STATUSES","VALID_ALLOCATION_TYPES","hasDuplicate","isAcceptedButNotSyncedToAccountingPlatform","valuesArray","labourDiff","manHoursDiff","materialsDiff","subcontractorsDiff","sumsDiff","findChangeForTask","createChangeForTask","deleteChangeForTask","hasValidPurchasePaymentTerm","paymentTermType","paymentTermDay","getPurchaseDisplayPaymentTermType","purchaseDisplayPaymentTerm","hasValidSalesPaymentTerm","salesPaymentTermType","salesPaymentTermDay","getSalesDisplayPaymentTermType","salesDisplayPaymentTerm","quickbooksContactId","quickbooksVendorId","profitMarginRef","loadStagePaymentOptions","loadCompanyLogo","activeProjectTasks","activeProjects","attachmentIds","allProjectAttachments","budgetTotal","quoteTotal","gstValue","entityLinkedAttributes","includesSomeClaims","checks","excludesSomeClaims","excludesClaims","xeroAccountId","quickbooksAccountId","viewGlAccountUrl","searchField","lowerValue","xeroDeepLinkPath","displayAge","displayStatus","annualWorkingDays","systemItems","otherItems","isConnected","changeType","_descriptor34","_descriptor35","_descriptor36","loads","loadAttachments","activeChildrenAttachments","activeTimesheetTasks","activeParentTasks","currentBudgetVersion","currentQuoteVersion","draftBudgetChangeSet","draftQuoteChangeSet","effectiveXerSalesGlAccount","draftTaskChangeSet","draftProgressChangeSet","draftSchedulingChangeSet","createAndSaveDraftTaskChangeSet","createAndSaveDraftBudgetChangeSet","createAndSaveDraftQuoteChangeSet","_Class","pathArray","deliveryStatus","deliveryStatusLabel","loadTask","loadCurrentProfitMargin","loadProducts","parentRef","parentProfitMarginRef","projectRef","taskProducts","allActiveChildrenArray","draftProgressChange","currentProgressChange","currentBudgetValue","currentQuoteValue","budgetManHours","budgetLabour","budgetMaterials","budgetSubcontractors","budgetSums","hasDirectBudget","hasTaskChildrenBudget","hasDirectProducts","hasProducts","hasTaskChildrenProducts","hasDirectAttachments","hasTaskChildrenAttachments","hasDirectQuote","hasTaskChildrenQuote","allChildrenAttachments","activeTaskChildrenProducts","quoteManHours","quoteLabour","quoteMaterials","quoteSubcontractors","quoteSums","_parents","parents","getParents","draftBudgetManHours","childrenDraftBudgetManHours","totalDraftBudget","draftQuoteManHours","totalDraftQuote","getDefaultValues","getDefaultPurchasesGlAccount","getDefaultSalesGlAccount","effectiveXeroSalesGlAccount","getDefaultContractType","_updateTask","diffs","hasRetried","isMissingTaskChangeSet","isMissingBudgetChangeSet","isMissingQuoteChangeSet","_updateBudget","_updateQuote","rejectedResult","moveDependenciesToTaskId","descendantTasksToUnload","deleteTaskMetadata","unloadTasks","tasksToUnload","taskToUnload","childTasksToUnload","nextDiffs","_destroy","taskChangeSet","budgetChangeSet","quoteChangeSet","schedulingChangeSet","parentTaskMargin","parentTaskGlAccount","parentTaskContractType","valueInHours","payTotal","costTotal","chargeOutTotal","currentChargeOutRateTotal","getDefaultUserOrWorkerLanguage","pricingRole","adminRole","activeRole","_getEntityAttributes","_getProjectAttributes","_getTaskAttributes","_getWorkerAttributes","excludesSomeClaimsAboutEntity","excludesClaimsAboutEntity","includesSomeClaimsAboutProject","excludesSomeClaimsAboutProject","excludesClaimsAboutProject","includesSomeClaimsAboutTask","excludesSomeClaimsAboutTask","excludesClaimsAboutTask","includesSomeClaimsAboutWorker","excludesSomeClaimsAboutWorker","excludesClaimsAboutWorker","taskActiveChildren","tasksIds","defaultChargeOutRate","chargeOut","_emberModifier","_bootstrap","BootstrapTooltipModifier","modify","setContent","Tooltip","willRemove","dispose","_didInsert","_didUpdate","_style","_willDestroy","_router","routerMap","Router","locationType","mount","resetNamespace","_route","beforeModel","usersRole","stripHtml","announcementValidationMap","announcement_id","announcementId","getAnnouncement","getEntityAttributes","getUserAttributes","getAnnouncementChangeset","currentModel","refreshModel","getSystemAnnouncements","regenerateDemoEntity","entityValidationMap","featuresValidator","_newValue","_oldValue","featuresValidationMap","entity_id","getEntityChangeset","getEntities","getFeaturesChangeset","setupController","controller","_menuRoute","storeEntities","needsAttributes","licenseeId","userIds","licensee_id","getLicensee","getUsers","_qs","page_location","page_title","trackPage","setup","substring","oauth_token","oauth_verifier","xeroAuthRedirect","finishAuthenticate","newUrl","history","replaceState","isConnectionError","adapterOperationAborted","isUnauthorizedError","stack","serverError","rootElement","requireAuthentication","errorParam","b64","redirectURI","submitAuthCodeAjax","_confirmEmailCode","refreshRegistrationData","getRegistrationData","paramsFor","targetName","fullRouteName","_projectFile","_taskFile","_labourHours","_notes","_position","_profitMargins","controllerName","templateName","_timesheet","_loadingRouteFrom","reloadApp","rollbackUnsavedChanges","localName","sectionRoute","parentRoute","isLeavingSection","_modelFactoryCache","updateHelpCenter","setLabels","onRouteWillChange","isAborted","activate","_onRouteWillChange","deactivate","showHelpCenter","doNotThrowErrorOnNoData","subjects","valueOverride","groupType","metricsSubject","resourceName","subject","setDate","searchEnabled","modelKeys","humanEnums","loadedReport","pmConnection","getAdHocReport","getPmConnection","_class3","_initFromData","_createFile","projectLinkModel","taskLinkModel","_name","ua","activeProject","ap","entityLoaded","getAttachments","getOpenProjects","getActiveTasks","loadModel","openProjects","post","controllerFor","getEntityFile","project_id","projectAttachments","documentIndexPath","getFile","getProject","taskAttachments","currentLevelTasks","task_id","getTask","maxNumberOfBills","billQuery","invoicesQuery","_invoices","xeroAccounts","quickbooksAccounts","invoiceAdded","parentModel","getOwner","billsController","getKey","existingInvoiceKeys","suppliersWithPaymentTermsHash","lastParams","resetController","isExiting","invoice_id","addTimesheetNote","addTimesheets","addTimesheetStatuses","removeTimesheet","_scrollRoute","dateIsValid","workerExists","dateQuery","newNote","afterModel","workerEntity","invoicePage","getInvoices","getInvoiceOptions","newlyCreatedInvoice","_proxy","currentInvoice","validateTotalPrice","hasExistedValue","hasNewValue","getInvoice","getInvoiceItems","createInvoiceChangeSet","getInvoicePermissions","getRelatedInvoices","isPOChangeSetDirty","itemsWithDirtyAttributes","payrollPath","isContractor","timesheetProjectIds","timesheetTaskIds","_purchaseOrderOption","purchaseOrderQuery","getPurchaseOrders","getPurchaseOrderOptions","newlyCreatedPurchaseOrder","purchaseOrderId","currentPurchaseOrder","validTasks","purchase_order_id","getPurchaseOrder","getPurchaseOrderItems","createPurchaseOrderChangeSet","getPurchaseOrderPermissions","csv_data","excel_data","_computed2","itemsVisible","partSelected","nReported","allReported","timesheetTotals","timesheetsQuery","_projectTasks","invoiceItemQuery","isToReportBuilder","isFromExportRoute","createWorkerGroups","workerProjectAllocations","workerProjectAllocation","createInvoiceGroups","clearExportedSelectedResources","pdfController","csvController","excelController","clearSelectedResources","fetchProjects","fetchTasks","fetchWorkerJobAllocations","fetchTimesheets","fetchInvoicesAndItems","invoiceGroupTypes","pdf_data","getEstimate","estimate_id","hideHelpCenter","engineData","getSessionId","jobId","getUnlinkedEstimates","projectRoute","getEstimates","loadProject","ossEngineData","setProjectId","setAccessToken","permissionsValidator","permissionsValidationMap","TaskTypeContainer","currentProjectAttributeIds","selectedTaskAttributes","tva","canViewTaskTasks","canViewSumsTasks","canViewSubcontractorTasks","canViewPlantTasks","canViewMilestoneTasks","canViewInternalTasks","canViewBuildersWorkTasks","client_id","getClient","getAttributes","getTaskVisibilityOptions","getPermissionsChangeset","userProjectAttributes","userClientEntityAttributes","projectClientPermissions","uca","upa","getClients","userSubcontractorEntityAttributes","projectSubcontractorPermissions","usa","getSubcontractors","subcontractor_id","getSubcontractor","userEntityAttributes","allUsers","uea","clientIds","subcontractorIds","user_id","worker_id","getWorker","_isComplete","isPartiallyComplete","progressDirect","actualManHours","latestVersionForecastManHours","forecastManHours","currentDraftForecastManHours","currentDraftProgress","_progress","childrenForecastManHours","childrenForecastedProgress","totalProgress","hasMissingCosts","invoiceLabour","timesheetLabour","calculateVariance","calculateRemainingBudget","labourCost","labourVariance","remainingLabourBudget","materialsVariance","remainingMaterialsBudget","subcontractorsVariance","remainingSubcontractorsBudget","remainingSumsBudget","varianceMargin","hasChildrenMissingCosts","hasProgressWithBudgetAndNoActual","hasProgress","hasManHours","hasChildrenProgressWithBudgetAndNoActual","hasVersionDiff","hasDiff","versionProgress","lastProgress","latestProgress","sentences","hasChildVersionDiff","hasNoManHours","hasNoChildManHours","hasChildDiff","costTotals","progressDirects","draftProgressChangeSetId","progressVersionValueId","taskCostTotals","taskProgressDirects","getProgressList","projectRecord","profitMarginValidator","completionDate","createProjectChangeset","createProfitMarginChangeset","loadGlAccounts","loadXeroTrackingOptions","_sortBy","sortMap","normalizedKey","stages","getStagePayments","getStagePaymentsValues","loadProjectStagePaymentOptions","getStageRelatedInvoices","removeDeletedTasks","lastProjectId","previousTaskList","getTaskList","controllerTasks","previousContainers","addPreviousContainers","applyPreviousState","previousContainer","mergeTreeState","userTaskAttributes","userSubcontractorAttributes","wpa","ws","createTaskChangeset","linkToProject","setMinutes","setSeconds","setMilliseconds","getForecastReport","summaryMetricSubject","getInvoiceReport","_startDate","_endDate","_projectIds","_workerIds","linkToTimesheet","$and","linkedInvoiceIds","dayEndDate","dayStartDate","getNoteReport","financialBreakDown","getProfitMarginsReport","getWipReport","case","getProjectsData","entryTime","occupancyFilter","getReport","getProjectTasks","canUseProjectBudgetReport","linkToStartDate","linkToEndDate","recursiveKey","getBudgetReport","getParentTasks","getChargeupReport","footerFilter","canUseProjectClientReport","entityCanUseInvoicing","entityCanUseInvoicingReport","summaryTable","fixedPriceTable","costPlusTable","taskTable","taskFilter","computedSelectedTaskIds","taskIdsGroupedByParentId","parentsTasksIds","getChildren","childIds","positionReportTaskIds","$or","showTimesheetsTable","showBillsTable","canUseProjectInvoicingReport","costReport","billReport","getSelectedTaskIds","getCostReport","getForecastTableReport","reportRoute","featureFlag","getLabourHoursReport","getQuoteReport","loadUser","triggerRefresh","dashboardQuery","kpiQueryOptions","accountQueryOptions","entitiesQueryOptions","entityGroupsQueryOptions","entityFilter","configData","financialOption","financialOptions","branches","notifyPropertyChange","periodString","imports","organisation","firstId","targetRecords","accountRecords","kpiRecords","includeGroupData","accountsQuery","groupQuery","userGroups","userLinkedEntityGroupsIds","groupRecords","groupIds","groupsRedacted","entityValues","extractAndFormat","groupValues","includedEntities","balData","getAccountDepth","print","topLevelAccounts","isBranch","ownFirstClosedPeriod","ownDataWithheld","itmReportKpis","systemMargin","achievedMargin","grossMargin","netProfit","ebitda","itmImportantAccounts","sales","costOfSales","stockVariation","loyaltiesAndFreight","otherIncomeAndDepreciation","expenses","previousYearPeriod","allEntitiesAndGroups","accountQuery","kpiQuery","entityReports","reportsHash","salesNumbers","salesReport","SalesReportPrevious","parseReport","indexCurrent","indexPrevious","parsedReport","accountMeta","monthPercentSales","monthPrevPercentSales","ytdPercentSales","ytdPrevPercentSales","monthPercentParent","monthPrevPercentParent","ytdPercentParent","ytdPrevPercentParent","accountReports","parentReport","rebates","allowedGroups","accountsList","accountsArray","metricsPromises","collectByMetric","allBalances","matchingAccount","dataSets","blankObject","formattedValues","dataItem","earliest","latest","periodsForEntity","entityPeriod","parentEntityId","getGroups","getKpis","formatReport","extractedGroupValues","kpiData","introLine","periodOptions","loadEntityGroups","loadKpiMeta","loadKPIs","_getKPIs","loadStats","_getStats","kpiMeta","resolvedEntity","_getCached","_cache","_getDirectives","merchantAccounts","refreshDirectives","chart_of_account_id","glAccountId","getGlAccount","getGlAccounts","loadEntityProfitMargin","loadPurchaseOrderOptions","loadInvoiceOptions","loadEntityStagePaymentOptions","validateEmail","supplierValidationMap","contact_id","supplierId","getSupplier","getSupplierChangeset","getFirstDuplicateSuppliers","jobList","ownTakeoff","materialProduct","materialRate","dataDictionary","flatRateResource","subcontractorRate","crTools","miscTemplate","sumsSettings","labourFactor","pendingList","overheadTemplates","workgangPositions","workgangs","subcontractorList","organization","staff","menu","trade","messaging","reminders","subheader","quoteUploader","PAGES","isUnknown","requestedSupplierIds","ipsConnection","defaultEntityFeatures","getFeaturePermissionsChangeset","entityAttributesChangeSet","getItmSuppliers","getIpsConnection","featurePermissionsChangeset","validateFirstName","validateLastName","userValidator","getUserChangeset","userEntityAttributesFilter","validateIsCompanyAdministrator","validateCanManageEverything","validateWorkers","usersWorkers","validatePhoneNumber","validatePayRate","validateChargeOutRate","validateCostRate","validateIsContractor","validateSmartPayrollEmployeeCode","validateSmartPayrollEmployeeDepartmentCode","xeroEmployee","validateXeroEmployee","xeroEarningsRate","validateXeroEarningsRate","emergencyContactNameOne","validateEmergencyContactNameOne","emergencyContactRelationshipOne","validateEmergencyContactRelationshipOne","emergencyContactPhoneNumberOne","validateEmergencyContactPhoneNumberOne","emergencyContactNameTwo","validateEmergencyContactNameTwo","emergencyContactRelationshipTwo","validateEmergencyContactRelationshipTwo","emergencyContactPhoneNumberTwo","validateEmergencyContactPhoneNumberTwo","workerValidator","workerValidationMap","canSeeProjectsAndTasks","loadAccountingPlatformEmployees","getWorkerChangeset","getWorkerPermissionsChangeset","getWorkersTimesheets","getLabourCostCalculators","getXeroEarningsRates","getProfitMargin","getAccountingPlatformEmployees","workerPermissionsChangeset","loadTerms","initApp","prohibitAuthentication","ApiV2Serializer","resourceHash","extractRelationships","eachRelationship","relationshipMeta","normalizeResponse","primaryModelClass","requestType","documentHash","ApiV2JSONAPISerializer","keyForAttribute","keyForRelationship","_payload","normalizedResponse","resourceMeta","includedMeta","_apiV2Serializer","EntityProductSerializer","ProjectProductSerializer","TaskProductSerializer","_ensureRegistered","AccountingPlatforms","updateXeroSuppliers","createXeroContact","req","glAccountVisibleFields","invoiceItemTaxVisibleFields","glAccountsSearchField","quickbooksInvoiceId","updateHasNextPage","lastLoadArgs","firstPage","_loadBills","migrateToBuildaPrice","identityUserId","authPatch","authGetExcel","authGetBlob","authPostHtml","projectQuoteTotals","projectBudgetTotals","projectProgressTotals","projectCostTotals","updateSystemAnnouncements","submitFilesToIPS","authPostForm","cacheName","cachePath","cbCustomerId","currentEntityAttributes","subscriptionChanging","portalSession","getChargebeePortalSession","instance","Chargebee","setPortalSession","createChargebeePortal","handleClose","subscriptionChanged","handleSubscriptionChange","hostedPage","openCheckout","subscriptionIsChanging","subscriptionChangedMoment","waitTime","attempts","latestEntityAttributes","xor","_cookies","_htmlJsConfirm","_notifications","_emberElsewhere","_period","helpCenterInitialized","activateHelpCenter","initializeHelpCenter","zEmbed","zE","frameElement","cssText","getElementsByTagName","parentNode","insertBefore","contentWindow","domain","_l","zendeskHost","zEQueue","identify","setHelpCenterSuggestions","_intl","deleteTitle","deleteMessage","confirmingDelete","_resolveConfirmation","confirmDelete","dismissDelete","attachmentToFile","binary","File","submitError","refusedUsage","ipsUsage","getIpsContactInfo","updateIpsContactEmail","_keyboard","mediaMatchesDidChange","consumeMediaService","_metrics","toggleMenu","_configUtils","computedFromConfig","hasEmberTether","hasLiquidWormhole","hasLiquidTether","destinationElementId","getDestinationElementIdFromConfig","onRouteDidChange","_onRouteDidChange","pre","moduleRoutes","bannedRoutes","usableRoutes","thisRoute","routeBreadcrumbs","currentModule","FINANCIALS","STEP","BUILDA_PRICE_PROMO","APB","TPB","STEP_UP","ITM","check","entityCanUseCrystalPayroll","entityCanUseKeypay","entityCanUsePartner","entityCanUseOldPricing","entityIsParent","entityCanUseStrategies","entityIsItm","entityIsItmParent","entityCanUseFinancialReporting","entityCanUseBuildaPrice","entityCanUseCarters","entityCanUseIPS","entityCanUseBills","entityCanUseStatements","entityCanUsePlaceMakers","entityCanUseSmartPayroll","entityCanUseItmInvoiceIntegration","entityCanUsePurchaseOrders","entityCanUseInvoices","entityCanUseStagePayments","entityCanUseDashboards","entityCanUseEstimates","entityCanUseNotes","entityCanUseClientReports","entityCanUseProjectFinancials","entityCanUseForecastReport","entityCanUseProfitMarginsReport","entityCanUseLabourHoursReport","entityCanUseBudgetReport","entityCanUseQuoteReport","entityCanUsePositionReport","entityCanUseCostReport","entityCanUseChargeupReport","entityCanUseWipReport","entityCanUseScheduling","entityCanUseTimesheets","entityCanUseFileStorage","entityCanUseProducts","entityCanUseProjectProgress","entityCanUseCsvTaskFileUploader","entityCanUseHealthAndSafety","entityCanUseClientPortal","entityCanUseGeofencing","entityHasSubcontractorPackage","entityIsCalStudent","entityHasSupport","isAPBCustomer","workerPseudoUser","userIsWorker","userIsAdmin","userIsPartner","userIsEntityMember","userCanViewEntity","userHasPricingRole","userIsClient","canUsePartner","canUseOldPricing","canUseStrategies","hasAccessToPortal","modelId","canUseWorkerJobAllocation","_canUseEntityProgressReports","_canUseEntityChargeupReports","canManageTaskBudgets","canManageTaskQuotes","canUseTaskBudgets","canUseTaskQuotes","canUseQuoteVersions","canUseBudgetVersions","canManageProgressVersions","canSeeProjects","hasWorker","wa","reportBuilderDeprecationDate","entityCreatedDate","canUseProjectProgressReports","_canUseProjectProgressReports","canUseProjectQuoteReports","_canUseEntityQuoteReports","_canUseProjectQuoteReports","canUseProjectBudgetReports","_canUseEntityBudgetReports","_canUseProjectBudgetReports","canUseProjectCostReports","_canUseEntityCostReports","_canUseProjectCostReports","canUseProjectTasks","_canUseEntityTasks","_canUseProjectTasks","_canUseEntityProjects","_canUseEntityBudgetLabourHourReports","_canUseEntityCostLabourHourReports","_canUseEntityInvoicingReports","_canUseEntityClientReports","_canUseProjectBudgetLabourHourReports","_canUseProjectCostLabourHourReports","_canUseProjectChargeupReports","_canUseProjectInvoicingReports","canUseEntityWIPReport","canUseEntityBudgetReports","canUseEntityQuoteReports","canUseEntityProgressReports","canUseEntityCostReports","canUseEntityInvoicingReports","canUseProjectWIPReport","canUseProjectQuoteReport","canUseEntityChargeupReports","canUseEntityTasks","canUseProjectChargeupReports","canUseTaskQuoteReports","canUseTaskChargeupReports","canUseProjectCostReport","canUseEntityTimesheets","canUseEntityBills","canUseProjectTimesheets","canUseProjectBills","canUseTaskCostReports","canUseTaskTimesheets","canUseTaskBills","canUseTaskTasks","canUseTaskBudgetReports","canUseEntityClientReports","canUseProjectInvoicingReports","canUseProjectClientReports","projectTaskIds","attributeIdsByTask","attributeIds","taskHasClientReports","taskHasQuoteReports","taskHasProgressReports","taskHasChargeupReports","taskHasInvoicingReports","canUseTaskProgressReports","canUseTaskInvoicingReports","canUseTaskClientReports","canUseEntityForecastReport","canUseProjectForecastReport","canUseEntityProfitMarginReport","canUseEntityLabourHourReport","canUseProjectProfitMarginReport","canUseProfitMarginReport","_canUSeEntityTasks","canUseProjectChargeupReport","canUseEntityPositionReport","canUseDashboardReport","useProjectProgressReports","canUseProjectPositionReport","canUseProjectLabourHourReport","canUseProjectCostLabourHourReports","canUseProjectBudgetLabourHourReports","canUseEntityInvoicingReport","canUseEntityProjects","canUseLabourHourReport","canManagePayroll","legacyBillsDeprecationDate","canManageEstimatesSettings","canUseUsers","canManageSubcontractors","canUseSubcontractors","canUseWorkers","canManageSuppliers","canUseSuppliers","canUseXeroIntegration","canUseQuickbooksIntegration","canSeeNewBuildaPriceMigrationButton","canUseItmInvoiceIntegration","canUseDocumentsPage","groupedProjectAttributes","groupedTaskAttributes","attachmentAttributes","canUseAttachments","aa","canUseProgressPage","tasksCanViewProjectProgress","canViewProjectProgress","taskCanViewTasks","taskCanViewProjectProgress","canUseProject","canUseIntegrations","_resource","canUseFPDashboard","canUseFPKpis","canUseFPItmCustomerPAndL","canUseFPProfitAndLoss","canUseFPBalanceSheet","canUseFPOtherData","canUseFPPersonalData","canUseFPDataAvailability","canUseFPImportManager","canUseFPStrategies","canUseFPReportingPeriod","canUseFPChartOfAccounts","canUseFPKpisConfig","canUseFPGroups","userCanNotEditFPGroups","userCanSeeFPBreakdown","canUseProjectCopy","showProxy","defaultClearDuration","setupAutoClear","isBpNotification","NZL","AUS","USA","GBR","OSService","matchMedia","newProject","DEFAULT_PDF_OPTIONS","generatePdf","hideClass","originalElement","cloneNode","transverseParents","transverseChildren","nodeName","imageData","toDataURL","img","replaceChild","cssRules","styleSheet","styleSheets","cssRule","CSSStyleRule","hasClassName","selectorText","titleElement","innerText","whiteSpace","firstChild","cssHtml","compressedReadableStream","Blob","stream","pipeThrough","CompressionStream","compressedResponse","Response","bodyBlob","generateAndDownloadPdf","_entityId","isInitialized","syncPriceBookNowAjax","disconnectAjax","clientId","authPath","pmAuthAddress","response_type","redirect_uri","encodeState","nonce","handlePmError","btoa","platforms","getPlatforms","processData","authDelete","xhrFields","portalApiPostHandler","_cachedSession","timestamp","URLS","updateQuickBooksContacts","syncBill","syncInvoice","quickbooksRealmId","quickbooksCompanyName","_canUse","redirectUrl","initQuickbooksResponse","connectAjax","consentUrl","contactId","updateQuickBooksContactsAjax","createContactInQuickbooksAjax","getQuickBooksAccountsAjax","getQuickBooksEmployeesAjax","sendBillToQuickbooks","sendInvoiceToQuickbooks","combinedMessage","createTimesheetsAjax","handleQuickbooksFetchRequest","getQuickBooksAccounts","getQuickBooksEmployeesFromQuickbooks","sendCreditNoteToQuickbooks","createTimesheetsInQuickbooks","createContactInQuickbooks","fetchRequestWithToken","billId","syncCreditNote","config","_fileName","generateReportDataForCSV","formatValue","dataRows","processRows","csvRow","dataRow","footRows","generateCSVBlob","isDestroyingOrDestroyed","bpLicenseeParentEntityId","_initEntity","_initEntities","_initUser","isWorkerPseudoUser","loadedWorker","momentLocal","loadedUser","entitiesPromise","isUsingLoginAs","originalUserData","toggleAdminMode","authResponse","authenticatedData","_session","handleAuthentication","routeAfterAuthentication","hasAcceptedTerms","_store","ApplicationStore","simpleQueryRecord","queryRecord","pollService","checkForData","announcementData","unreadAnnouncements","archived","dismissAnnouncementModal","systemAnnouncementId","closeAnnouncementModal","XeroAppsEnum","oauthCallback","authorizeRedirect","getPayRunCalendars","getEarningsRates","getBalances","xeroApp","initXeroResponse","redirectTo","connections","xeroCreditNoteAccountError","sendBillToXero","sendCreditNoteToXero","sendInvoiceToXero","updateXeroSuppliersAjax","createXeroContactAjax","createXeroTimesheetsAjax","getXeroAccountsAjax","getXeroEmployeesAjax","getXeroTrackingCategoryOptionsAjax","getXeroPayRunCalendarsAjax","getXeroEarningsRatesAjax","getXeroBalancesAjax","handleXeroFetchRequest","handleV2XeroFetchRequest","_adaptive","localStorageKey","useMirage","_noSite","_site","_details","_hazards","_board","_selection","_ppe","_report","_setup","_notifiable","_summary","_signin","_reports","_helpers","_transform","deserialize","deserialized","BooleanTransform","DateTransform","NumberTransform","StringTransform","setDefault","easing","fromRoute","toRoute","newRoute","oldRoute","newParts","oldParts","use","BpTheme","Theme","setupDefaultRules","rule","positive","negative","sanitizeString","invoiceReference","matchingReferenceDirective","invoiceAccount","matchingAccountDirective","manBal","isManual","manualBalance","lastBill","customerNumber","issuedTo","orderNumber","jobNumber","specialInstructions","extractHead","discount","extractItem","_subTotal","subTotal","itemsTotal","checkTotal","REQUIRED_HEADERS","_findDate","_extractNumber","indices","allKeys","totalNet","documentDate","customerOrderNumber","deliveryDate","productDescription","unitPriceExcludingGST","_cartersType","_cartersType2","_cartersType3","_cartersType4","isType1","isType2","isType3","isType4","parseInvoice","rowIsEmpty","headerRow","COLUMN_NAMES","hasFooterLabel","FOOTER_ROW_NAMES","hasNoContent","headerLine","newFormatHeaderColumns","isNewFormat","ITEM_HEADERS","HEADERS","ITEM_HEADERS_OLD","linesWithErrors","matchInvoice","invoiceExists","createInvoice","createInvoiceFromOldFormat","createItem","createItemFromOldFormat","extractNumber","parsedNumber","yearLength","dateFormat","createdDateStr","dueDateStr","INVOICE_HEADERS","h","placemakersParser","parsedInvoices","referenceLineIndex","referenceLine","lineNumber","lineKey","updateLine","createInvoiceFromHeaderLine","createItemFromLine","missingHeader","columnKeys","InvoiceNumber","createIdentifier","ContactName","lineInvoice","getUnitPriceWithDiscount","UnitAmount","Discount","unitPriceWithDiscount","Description","InventoryItemCode","Quantity","Reference","InvoiceDate","DueDate","NORMALIZED_BUNNINGS_HEADERS","normalizedRows","currentBill","rowTypes","drCrCorrection","invertCorrection","periodDebit","periodCredit","ytdDebit","ytdCredit","collectionToArray","collection","iterator","_sums","dividedBy","numeratorKey","denominatorKey","_sum","arrayStr","keyStr","_sumBy","sumByProducts","_sumByProducts","formattedDays","totalObj","toCSV","joiner","textWithoutNewLines","generateHeaderRows","nestedReport","lineData","extractReportValues","reportLine","metricsSortedByEntity","parsedCsv","msSaveOrOpenBlob","msSaveBlob","createObjectURL","removeChild","csvAsString","deprecationTally","SEEN","installed","registerDeprecationHandler","untilMajor","until","DEDUPE","strFileName","strMimeType","ReactNativeWebView","onloadend","base64data","postMessage","mimeType","self","defaultMime","anchor","MyBlob","MozBlob","WebKitBlob","dataUrlToBlob","saver","tempUiArr","mx","strUrl","binData","decodeURIComponent","uiArr","winMode","callee","revokeObjectURL","userAgent","rel","localPart","extra","part","oldLink","findParam","routeDescription","paramName","fileError","contentError","noun","ordinal","lineNo","buildAccountName","expected","validateHeaders","accountNumber","accountName","accountLevel","actual","currentHeader","extractValue","linesRemoved","rest","debit","credit","extractAccountCode","extractAccountName","isDebit","lastIndexOf","pages","lines","cells","_oldXeroParser","_newXeroParser","isOldXeroFormat","locales","Route","MultiSelectableTreeItem","isSomeChildChecked","isEveryChildChecked","taskData","topTasks","childrenArray","nest","idKey","_oidcClientTs","oidcConfig","UserManager","authority","applicationName","requestedScopes","automaticSilentRenew","silent_redirect_uri","popup_redirect_uri","post_logout_redirect_uri","userStore","WebStorageStateStore","localStorage","stateStore","NORMALIZED_PLACEMAKERS_HEADERS","PLACEMAKERS_BILL_HEADER","PLACEMAKERS_ITEM_HEADER","rowStartsWith","expectedHeaders","MIRAGE","OTBS","fullLogo","defaultPlatforms","outputPlatforms","details","Numerator","Denominator","getAttachmentHrefs","hrefs","materialHrefs","subcontractorHrefs","getReportedResourcesSummary","resourcesToTrack","previouslyReportedResources","sortReportedResources","resources","reported","reportedResourcesSummary","replacement","illegal","control","reserved","windowsReserved","nonAsciiChars","term","opKey","buildRow","periodLength","compare","aSystem","bSystem","categoryComparison","compareTwoStrings","first","firstBigrams","bigram","intersectionSize","mainString","targetStrings","areArgsValid","ratings","bestMatchIndex","currentTargetString","currentRating","object","prod","TreeItem","itemToFind","findItem","nodes","targetBranch","resultPath","traverse","currentPath","newPath","projectData","projectGroupedTopLevelTasks","projectItems","excludedTaskIds","childKey","excludedItemIds","_validators","eitherDescriptionOrProductCode","validatePresence","validateNumber","allowString","gte","validateDueDate","presence","validateInclusion","validateFormat","metaName","rawConfig","getAttribute","exports","runningTests","require"],"sources":["vendor/ember-cli/app-prefix.js","portal/adapters/api-v2-adapter.js","portal/adapters/application.js","portal/adapters/entity-product.js","portal/adapters/errors.js","portal/adapters/project-product.js","portal/adapters/task-product.js","portal/app.js","portal/authenticators/embed.js","portal/authenticators/login-as.js","portal/authenticators/oauth2.js","portal/authenticators/oidc.js","portal/authenticators/push-session.js","portal/breakpoints.js","portal/components/active-table.js","portal/components/admin-mode.js","portal/components/allocation-hierarchy.js","portal/components/allocation-selector.js","portal/components/allocation-selector/bread-crumb.js","portal/components/attachment-dropdown-list.js","portal/components/attachment-dropdown.js","portal/components/attachment-dropdown/item.js","portal/components/attachment-manager.js","portal/components/attachment-preview.js","portal/components/attachment-settings-modal.js","portal/components/attachment-table.js","portal/components/attachment-upload-modal.js","portal/components/attachments-popover.js","portal/components/auto-mapping/directive-pm.js","portal/components/basic-dropdown-content.js","portal/components/basic-dropdown-trigger.js","portal/components/basic-dropdown-wormhole.js","portal/components/basic-dropdown.js","portal/components/basic-importer.js","portal/components/bill-editor.js","portal/components/bill-item-allocator.js","portal/components/bill-item-summary.js","portal/components/bill-type-response-handler.js","portal/components/bills-table.js","portal/components/bills-table/th.js","portal/components/bills-uploader.js","portal/components/c3-chart.js","portal/components/calculation-breakdown.js","portal/components/charts/data-table.js","portal/components/charts/gauge-chart.js","portal/components/charts/line-chart.js","portal/components/charts/pie-chart.js","portal/components/checklist.js","portal/components/coa-editor-line.js","portal/components/coa-editor.js","portal/components/combo-box.js","portal/components/combo-button.js","portal/components/confirm-delete.js","portal/components/content-tabs.js","portal/components/content-tabs/tab.js","portal/components/context-menu.js","portal/components/context-menu/menu.js","portal/components/dashboard-item.js","portal/components/dashboard-item/card.js","portal/components/dashboard-item/icon.js","portal/components/dashboard-item/module.js","portal/components/dashboard/config-modal.js","portal/components/dashboard/draggable-module.js","portal/components/dashboard/module-rows.js","portal/components/data-withheld-notice.js","portal/components/date-input.js","portal/components/date-range-selector.js","portal/components/documents-table.js","portal/components/drag-and-drop-container.js","portal/components/drag-sort-list.js","portal/components/drag-sort-list/children.js","portal/components/drag-sort-list/drag-handle.js","portal/components/drag-sort-list/draggable.js","portal/components/drag-sort-list/separator.js","portal/components/draggable-task.js","portal/components/dropdown-button.js","portal/components/duration-input.js","portal/components/education-promotion-button.js","portal/components/ember-modal-dialog-positioned-container.js","portal/components/ember-modal-dialog/-basic-dialog.js","portal/components/ember-modal-dialog/-in-place-dialog.js","portal/components/ember-modal-dialog/-liquid-dialog.js","portal/components/ember-modal-dialog/-liquid-tether-dialog.js","portal/components/ember-modal-dialog/-tether-dialog.js","portal/components/ember-modal-dialog/overlay.js","portal/components/ember-wormhole.js","portal/components/entity-selector.js","portal/components/entity-table-contents.js","portal/components/estimate/item.js","portal/components/fa-icon.js","portal/components/file-field.js","portal/components/file-importer.js","portal/components/file-inputs/csv.js","portal/components/file-inputs/general.js","portal/components/file-inputs/text.js","portal/components/file-type-icon.js","portal/components/filter-pill.js","portal/components/financial-data-importer.js","portal/components/financial-data-table.js","portal/components/financials-table-section.js","portal/components/format-duration-with-unit.js","portal/components/formatted-input.js","portal/components/from-elsewhere.js","portal/components/gl-importers/api.js","portal/components/gl-importers/banklink.js","portal/components/gl-importers/eaccounts.js","portal/components/gl-importers/empower.js","portal/components/gl-importers/frameworks.js","portal/components/gl-importers/gj-gardner.js","portal/components/gl-importers/itm-manual.js","portal/components/gl-importers/maxim.js","portal/components/gl-importers/myob-ao.js","portal/components/gl-importers/myob.js","portal/components/gl-importers/prostix.js","portal/components/gl-importers/rees.js","portal/components/gl-importers/xero-api.js","portal/components/gl-importers/xero-csv.js","portal/components/google-map.js","portal/components/grouping-selector.js","portal/components/groups-redacted-notice.js","portal/components/icon-button.js","portal/components/indeterminate-checkbox.js","portal/components/infinity-scroll.js","portal/components/info-popup.js","portal/components/info-wrapper.js","portal/components/integration-icon.js","portal/components/invoice-item-editor-modal.js","portal/components/invoice-item-table-pm.js","portal/components/invoice-type-response-handler.js","portal/components/invoices-uploader.js","portal/components/ips-uploader.js","portal/components/ips-usage.js","portal/components/ips-usage/alert.js","portal/components/ips-usage/upgrade.js","portal/components/item-selector.js","portal/components/item-selector/bread-crumb.js","portal/components/itm-financial-table-section.js","portal/components/label-indicator.js","portal/components/label-popup.js","portal/components/lazy-each.js","portal/components/link-to-external.js","portal/components/loading-button.js","portal/components/loading-icon.js","portal/components/logged-in-as.js","portal/components/mapping/draggable-map.js","portal/components/mapping/map-list.js","portal/components/mapping/map-status.js","portal/components/markdown-to-html.js","portal/components/metric-breakdown.js","portal/components/mobile-side-bar.js","portal/components/mobile-side-menu.js","portal/components/mobile-title-bar.js","portal/components/mobile-title-bar/avatar.js","portal/components/mobile-title-bar/avatar/avatar-link.js","portal/components/mobile-title-bar/back-button.js","portal/components/mobile-title-bar/burger-button.js","portal/components/mobile-title-bar/page-title.js","portal/components/modal-dialog.js","portal/components/module-navigation/admin.js","portal/components/module-navigation/dashboard.js","portal/components/module-navigation/financials.js","portal/components/module-navigation/module-dashboard.js","portal/components/module-navigation/operations/incoming.js","portal/components/module-navigation/operations/outgoing.js","portal/components/module-navigation/pricing.js","portal/components/module-navigation/project.js","portal/components/module-navigation/projects.js","portal/components/module-navigation/reports.js","portal/components/module-navigation/reports/company-reports.js","portal/components/module-navigation/reports/project.js","portal/components/module-navigation/scheduling.js","portal/components/module-navigation/settings.js","portal/components/month-picker.js","portal/components/multi-item-selector-paginated.js","portal/components/multi-item-selector.js","portal/components/multi-task-selector-input.js","portal/components/multi-task-selector.js","portal/components/multiple-from-elsewhere.js","portal/components/multiselect-checkboxes.js","portal/components/nested-task-card.js","portal/components/nested-task-card/add-task.js","portal/components/new-combo-box.js","portal/components/new-supplier-prompt.js","portal/components/notification-container.js","portal/components/notification-message.js","portal/components/overlaid-dropdown.js","portal/components/page-filters.js","portal/components/page-filters/item.js","portal/components/page-filters/pill.js","portal/components/page-header.js","portal/components/page-title-breadcrumbs.js","portal/components/pagination-table.js","portal/components/pdf-export-timesheet-row.js","portal/components/people-table.js","portal/components/personal-financial-table-section.js","portal/components/pm-integration-settings.js","portal/components/pop-hover-over.js","portal/components/pop-hover-over/content.js","portal/components/pop-over.js","portal/components/pop-over/content.js","portal/components/pop-up.js","portal/components/pop-up/content.js","portal/components/power-calendar-multiple.js","portal/components/power-calendar-multiple/days.js","portal/components/power-calendar-range.js","portal/components/power-calendar-range/days.js","portal/components/power-calendar.js","portal/components/power-calendar/days.js","portal/components/power-calendar/nav.js","portal/components/power-select-after-options-button.js","portal/components/power-select-multiple.js","portal/components/power-select-multiple/input.js","portal/components/power-select-multiple/trigger.js","portal/components/power-select.js","portal/components/power-select/before-options.js","portal/components/power-select/input.js","portal/components/power-select/label.js","portal/components/power-select/no-matches-message.js","portal/components/power-select/options.js","portal/components/power-select/placeholder.js","portal/components/power-select/power-select-group.js","portal/components/power-select/search-message.js","portal/components/power-select/trigger.js","portal/components/pricing-page.js","portal/components/pricing-quote-uploader.js","portal/components/product-editor.js","portal/components/product-selector.js","portal/components/products-uploader.js","portal/components/profit-margin-form.js","portal/components/project-card.js","portal/components/project-change-set-description.js","portal/components/project-selector.js","portal/components/ptl-form.js","portal/components/ptl-input.js","portal/components/purchase-order-item-creator.js","portal/components/purchase-order-item-selector.js","portal/components/radio-button.js","portal/components/radio-slider.js","portal/components/referral-promotion-button.js","portal/components/report-builder-pm/invoice-type-table.js","portal/components/report-builder-pm/manual-type-table.js","portal/components/report-builder-pm/timesheet-type-table.js","portal/components/report-engine-element-container.js","portal/components/report-engine-element.js","portal/components/report-engine-element/big-text.js","portal/components/report-engine-element/card.js","portal/components/report-engine-element/gauge.js","portal/components/report-engine-element/note-timeline.js","portal/components/report-engine-element/pie.js","portal/components/report-engine-element/projects-table.js","portal/components/report-engine-element/table.js","portal/components/report-engine-element/table/row.js","portal/components/report-engine-element/value.js","portal/components/report-engine-element/value/value.js","portal/components/report-exporter-pm.js","portal/components/resource-history.js","portal/components/rich-text-editor.js","portal/components/search-select.js","portal/components/search-select/item.js","portal/components/search-selector.js","portal/components/select-input.js","portal/components/select-input/option.js","portal/components/sidebar.js","portal/components/sidebar/back-button.js","portal/components/sidebar/entity-selector.js","portal/components/sidebar/item.js","portal/components/sidebar/section.js","portal/components/sidebar/title.js","portal/components/skeleton-screens/table.js","portal/components/sortable-list.js","portal/components/stage-payment-task-selector-row.js","portal/components/stage-payment-task-selector.js","portal/components/sticky-top.js","portal/components/strategies-table.js","portal/components/supplier-invoices-pm/invoice-item.js","portal/components/supplier-invoices-pm/invoice-row.js","portal/components/supplier-invoices-pm/invoice.js","portal/components/takeoff-uploader-modal.js","portal/components/takeoff-uploader-modal/assign.js","portal/components/takeoff-uploader-modal/item-row.js","portal/components/takeoff-uploader-modal/item-row/add-item.js","portal/components/takeoff-uploader-modal/map.js","portal/components/takeoff-uploader-modal/upload.js","portal/components/task-breadcrumbs.js","portal/components/task-detail-badge.js","portal/components/task-progress-position-row.js","portal/components/task-selector.js","portal/components/task-selector/bread-crumb.js","portal/components/task-template-item-row.js","portal/components/task-template-item-row/add-item.js","portal/components/task-template-modal.js","portal/components/task-transfer-selector.js","portal/components/task-type-badge.js","portal/components/timeline-task-import-item-row.js","portal/components/timeline-task-import-item-row/add-item.js","portal/components/timeline-task-import-modal.js","portal/components/timesheet-line-pm.js","portal/components/timesheets-table-pm.js","portal/components/title-bar-tabs.js","portal/components/title-bar-tabs/tab.js","portal/components/title-bar.js","portal/components/to-elsewhere.js","portal/components/usage-bar.js","portal/components/value-change-indicator.js","portal/components/worker-cost-calculator.js","portal/components/worker-project-allocation-modal.js","portal/controllers/admin.js","portal/controllers/admin/announcements.js","portal/controllers/admin/announcements/announcement.js","portal/controllers/admin/announcements/index.js","portal/controllers/admin/billing-report.js","portal/controllers/admin/entities.js","portal/controllers/admin/entities/entity.js","portal/controllers/admin/entities/index.js","portal/controllers/admin/licensees/index.js","portal/controllers/admin/licensees/licensee.js","portal/controllers/application.js","portal/controllers/complete-registration-cb.js","portal/controllers/entity-loading.js","portal/controllers/entity.js","portal/controllers/entity/builda-price.js","portal/controllers/entity/builda-price/company/documents/project-file/task-file.js","portal/controllers/entity/builda-price/dashboard.js","portal/controllers/entity/builda-price/dashboard/index.js","portal/controllers/entity/builda-price/operations/documents/index.js","portal/controllers/entity/builda-price/operations/documents/project-file/index.js","portal/controllers/entity/builda-price/operations/documents/project-file/task-file.js","portal/controllers/entity/builda-price/operations/incoming/bills-legacy.js","portal/controllers/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/controllers/entity/builda-price/operations/incoming/bills.js","portal/controllers/entity/builda-price/operations/incoming/statements.js","portal/controllers/entity/builda-price/operations/incoming/timesheets.js","portal/controllers/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/controllers/entity/builda-price/operations/outgoing/invoices/index.js","portal/controllers/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/controllers/entity/builda-price/operations/outgoing/payroll.js","portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/index.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/controllers/entity/builda-price/operations/products.js","portal/controllers/entity/builda-price/projects.js","portal/controllers/entity/builda-price/projects/index.js","portal/controllers/entity/builda-price/projects/project/documents.js","portal/controllers/entity/builda-price/projects/project/estimates.js","portal/controllers/entity/builda-price/projects/project/estimates/index.js","portal/controllers/entity/builda-price/projects/project/financials.js","portal/controllers/entity/builda-price/projects/project/health-and-safety.js","portal/controllers/entity/builda-price/projects/project/people.js","portal/controllers/entity/builda-price/projects/project/people/clients/client.js","portal/controllers/entity/builda-price/projects/project/people/clients/index.js","portal/controllers/entity/builda-price/projects/project/people/subcontractors/index.js","portal/controllers/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/controllers/entity/builda-price/projects/project/people/users/index.js","portal/controllers/entity/builda-price/projects/project/people/users/user.js","portal/controllers/entity/builda-price/projects/project/people/workers/index.js","portal/controllers/entity/builda-price/projects/project/people/workers/worker.js","portal/controllers/entity/builda-price/projects/project/products.js","portal/controllers/entity/builda-price/projects/project/progress.js","portal/controllers/entity/builda-price/projects/project/settings.js","portal/controllers/entity/builda-price/projects/project/stage-payments.js","portal/controllers/entity/builda-price/projects/project/tasks.js","portal/controllers/entity/builda-price/projects/project/tasks/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task.js","portal/controllers/entity/builda-price/projects/project/tasks/task/documents.js","portal/controllers/entity/builda-price/projects/project/tasks/task/financials.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/controllers/entity/builda-price/projects/project/tasks/task/products.js","portal/controllers/entity/builda-price/projects/project/tasks/task/settings.js","portal/controllers/entity/builda-price/reports/company/forecast-breakdown.js","portal/controllers/entity/builda-price/reports/company/invoicing.js","portal/controllers/entity/builda-price/reports/company/labour-hours.js","portal/controllers/entity/builda-price/reports/company/notes.js","portal/controllers/entity/builda-price/reports/company/position.js","portal/controllers/entity/builda-price/reports/company/profit-margins.js","portal/controllers/entity/builda-price/reports/company/wip.js","portal/controllers/entity/builda-price/reports/projects/index.js","portal/controllers/entity/builda-price/reports/projects/project.js","portal/controllers/entity/builda-price/reports/projects/project/access.js","portal/controllers/entity/builda-price/reports/projects/project/budget/index.js","portal/controllers/entity/builda-price/reports/projects/project/budget/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/chargeup/index.js","portal/controllers/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/cost.js","portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/invoicing/index.js","portal/controllers/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/controllers/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/notes.js","portal/controllers/entity/builda-price/reports/projects/project/position/index.js","portal/controllers/entity/builda-price/reports/projects/project/position/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/controllers/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/quote/index.js","portal/controllers/entity/builda-price/reports/projects/project/quote/task/index.js","portal/controllers/entity/builda-price/scheduling.js","portal/controllers/entity/builda-price/scheduling/timeline.js","portal/controllers/entity/disabled.js","portal/controllers/entity/financials.js","portal/controllers/entity/financials/chart-of-accounts.js","portal/controllers/entity/financials/dashboard-loading.js","portal/controllers/entity/financials/dashboard.js","portal/controllers/entity/financials/general.js","portal/controllers/entity/financials/groups/access.js","portal/controllers/entity/financials/groups/membership.js","portal/controllers/entity/financials/groups/order.js","portal/controllers/entity/financials/import.js","portal/controllers/entity/financials/import/data.js","portal/controllers/entity/financials/import/start.js","portal/controllers/entity/financials/kpis.js","portal/controllers/entity/financials/kpis/kpi.js","portal/controllers/entity/financials/planning/strategies.js","portal/controllers/entity/financials/reports/general-ledger/balance-sheet.js","portal/controllers/entity/financials/reports/general-ledger/generic.js","portal/controllers/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/controllers/entity/financials/reports/general-ledger/other-data.js","portal/controllers/entity/financials/reports/general-ledger/personal-data.js","portal/controllers/entity/financials/reports/general-ledger/profit-and-loss.js","portal/controllers/entity/financials/reports/kpis/index.js","portal/controllers/entity/financials/reports/kpis/kpi.js","portal/controllers/entity/index.js","portal/controllers/entity/module-dashboard.js","portal/controllers/entity/settings/auto-mapping.js","portal/controllers/entity/settings/chart-of-accounts/chart-of-account.js","portal/controllers/entity/settings/chart-of-accounts/index.js","portal/controllers/entity/settings/company.js","portal/controllers/entity/settings/contacts/contact.js","portal/controllers/entity/settings/contacts/index.js","portal/controllers/entity/settings/gl-accounts.js","portal/controllers/entity/settings/integrations.js","portal/controllers/entity/settings/people.js","portal/controllers/entity/settings/people/clients/client.js","portal/controllers/entity/settings/people/clients/index.js","portal/controllers/entity/settings/people/subcontractors/index.js","portal/controllers/entity/settings/people/subcontractors/subcontractor.js","portal/controllers/entity/settings/people/users/index.js","portal/controllers/entity/settings/people/users/user.js","portal/controllers/entity/settings/people/workers/index.js","portal/controllers/entity/settings/people/workers/worker.js","portal/controllers/entity/settings/profile.js","portal/controllers/entity/settings/suppliers.js","portal/controllers/initiate-password-reset.js","portal/controllers/no-access.js","portal/controllers/reset-password.js","portal/controllers/terms-of-service.js","portal/data-adapter.js","portal/formats.js","portal/helpers/-base.js","portal/helpers/and.js","portal/helpers/app-version.js","portal/helpers/assign.js","portal/helpers/bool.js","portal/helpers/camel-case-words.js","portal/helpers/camelize.js","portal/helpers/cancel-all.js","portal/helpers/capitalize.js","portal/helpers/changeset-get.js","portal/helpers/changeset-set.js","portal/helpers/changeset.js","portal/helpers/chunk-callback.js","portal/helpers/classify.js","portal/helpers/convert-to-title-case.js","portal/helpers/dasherize.js","portal/helpers/date-ago.js","portal/helpers/element.js","portal/helpers/ellipsis-characters.js","portal/helpers/ellipsis-words.js","portal/helpers/ember-power-calendar-day-classes.js","portal/helpers/ember-power-select-is-equal.js","portal/helpers/ember-power-select-is-group.js","portal/helpers/ember-power-select-is-selected-present.js","portal/helpers/ensure-safe-component.js","portal/helpers/eq.js","portal/helpers/excludes-feature-flags.js","portal/helpers/excludes-some-feature-flags.js","portal/helpers/file-size-to-string.js","portal/helpers/format-date.js","portal/helpers/format-duration.js","portal/helpers/format-message.js","portal/helpers/format-number.js","portal/helpers/format-relative.js","portal/helpers/format-shortcut.js","portal/helpers/format-time.js","portal/helpers/get-file-icon.js","portal/helpers/gt.js","portal/helpers/gte.js","portal/helpers/html-safe.js","portal/helpers/humanize.js","portal/helpers/if-key.js","portal/helpers/ignore-children.js","portal/helpers/inc.js","portal/helpers/includes-feature-flags.js","portal/helpers/includes-some-feature-flags.js","portal/helpers/includes.js","portal/helpers/is-active.js","portal/helpers/is-after.js","portal/helpers/is-array.js","portal/helpers/is-before.js","portal/helpers/is-between.js","portal/helpers/is-empty.js","portal/helpers/is-equal.js","portal/helpers/is-hash.js","portal/helpers/is-same-or-after.js","portal/helpers/is-same-or-before.js","portal/helpers/is-same.js","portal/helpers/lowercase.js","portal/helpers/lt.js","portal/helpers/lte.js","portal/helpers/map-get.js","portal/helpers/math.js","portal/helpers/media.js","portal/helpers/moment-add.js","portal/helpers/moment-calendar.js","portal/helpers/moment-diff.js","portal/helpers/moment-duration.js","portal/helpers/moment-format.js","portal/helpers/moment-from-now.js","portal/helpers/moment-from.js","portal/helpers/moment-subtract.js","portal/helpers/moment-to-date.js","portal/helpers/moment-to-now.js","portal/helpers/moment-to.js","portal/helpers/moment.js","portal/helpers/not-eq.js","portal/helpers/not.js","portal/helpers/now.js","portal/helpers/number-format.js","portal/helpers/number-to-char.js","portal/helpers/object-at.js","portal/helpers/on-key.js","portal/helpers/or.js","portal/helpers/ordinal-for.js","portal/helpers/page-title.js","portal/helpers/pagination-callback.js","portal/helpers/perform.js","portal/helpers/pipe.js","portal/helpers/pluralize.js","portal/helpers/power-calendar-format-date.js","portal/helpers/prevent-default.js","portal/helpers/profit-type-label.js","portal/helpers/project-status-label.js","portal/helpers/range.js","portal/helpers/replace-with.js","portal/helpers/root-url.js","portal/helpers/round-number.js","portal/helpers/route-params.js","portal/helpers/singularize.js","portal/helpers/sort-accounts.js","portal/helpers/stop-propagation.js","portal/helpers/t.js","portal/helpers/task.js","portal/helpers/timesheet-status-label.js","portal/helpers/titleize.js","portal/helpers/toggle-action.js","portal/helpers/toggle.js","portal/helpers/transition-to.js","portal/helpers/trim.js","portal/helpers/truncate.js","portal/helpers/underscore.js","portal/helpers/unix.js","portal/helpers/uppercase.js","portal/helpers/url-for.js","portal/helpers/utc.js","portal/helpers/w.js","portal/helpers/xor.js","portal/initializers/am5.js","portal/initializers/app-version.js","portal/initializers/deprecation-handler.js","portal/initializers/ember-cli-mirage.js","portal/initializers/ember-data-data-adapter.js","portal/initializers/ember-data.js","portal/initializers/ember-responsive-breakpoints.js","portal/initializers/ember-simple-auth.js","portal/initializers/engines.js","portal/initializers/init-domain.js","portal/initializers/mobile-drag-drop.js","portal/initializers/new-relic.js","portal/initializers/responsive.js","portal/initializers/restore-array-extensions.js","portal/initializers/update-check-842bcfc2e55bff3468d9b7cc2cb618ef.js","portal/initializers/urls.js","portal/instance-initializers/add-modals-container.js","portal/metrics-adapters/base.js","portal/metrics-adapters/google-analytics-four.js","portal/mixins/edit-record.js","portal/mixins/menu-route.js","portal/mixins/scroll-route.js","portal/models/account-map.js","portal/models/account.js","portal/models/attachment-attribute.js","portal/models/attachment-project-attribute.js","portal/models/attachment.js","portal/models/base-attachment-model.js","portal/models/base-model.js","portal/models/bill-attachment.js","portal/models/bill-item.js","portal/models/bill.js","portal/models/budget-change-set.js","portal/models/budget-change.js","portal/models/budget-version-value.js","portal/models/budget-version.js","portal/models/contact.js","portal/models/dashboard-module.js","portal/models/eaccounts-invoice-integration.js","portal/models/entity-attribute.js","portal/models/entity-group.js","portal/models/entity-invoice-option.js","portal/models/entity-product.js","portal/models/entity.js","portal/models/estimate.js","portal/models/financial-option.js","portal/models/gl-account.js","portal/models/import.js","portal/models/index.js","portal/models/invoice-attachment.js","portal/models/invoice-auto-map-directive.js","portal/models/invoice-invoice-option.js","portal/models/invoice-item.js","portal/models/invoice.js","portal/models/ips-connection.js","portal/models/ips-document.js","portal/models/itm-supplier.js","portal/models/kpi.js","portal/models/labour-cost-calculator-item.js","portal/models/labour-cost-calculator.js","portal/models/link-attachment-to-entity.js","portal/models/link-attachment-to-project.js","portal/models/link-attachment-to-purchase-order.js","portal/models/link-attachment-to-task.js","portal/models/link-dashboard-module-account.js","portal/models/link-dashboard-module-entity-group.js","portal/models/link-dashboard-module-entity.js","portal/models/link-dashboard-module-kpi.js","portal/models/link-entity-group-can-be-accessed-by.js","portal/models/link-entity-group-member.js","portal/models/link-entity-to-entity-attribute.js","portal/models/link-invoice-item-to-bill-item.js","portal/models/link-invoice-item-to-project.js","portal/models/link-invoice-item-to-task.js","portal/models/link-invoice-item-to-timesheet.js","portal/models/link-task-to-stage-payment.js","portal/models/link-user-to-entity-group.js","portal/models/link-user-to-pricing-role.js","portal/models/pm-connection.js","portal/models/pricing-connection.js","portal/models/pricing-role.js","portal/models/profit-margin.js","portal/models/progress-change-set.js","portal/models/progress-change.js","portal/models/progress-version-value.js","portal/models/progress-version.js","portal/models/project-commit.js","portal/models/project-product.js","portal/models/project.js","portal/models/purchase-order-item.js","portal/models/purchase-order-option.js","portal/models/purchase-order.js","portal/models/quickbooks-employee.js","portal/models/quickbooks-oauth2-connection.js","portal/models/quote-change-set.js","portal/models/quote-change.js","portal/models/quote-version-value.js","portal/models/quote-version.js","portal/models/report-export-option.js","portal/models/resource-event.js","portal/models/scheduling-change-set.js","portal/models/scheduling-change.js","portal/models/scheduling-version-value.js","portal/models/scheduling-version.js","portal/models/stage-payment-option.js","portal/models/stage-payment-question.js","portal/models/stage-payment.js","portal/models/supplier-debtor-account.js","portal/models/system-announcement.js","portal/models/target.js","portal/models/task-change-set.js","portal/models/task-change.js","portal/models/task-product.js","portal/models/task-template-item.js","portal/models/task-template.js","portal/models/task.js","portal/models/timesheet-note.js","portal/models/timesheet-status.js","portal/models/timesheet.js","portal/models/user-attachment-attribute.js","portal/models/user-attribute.js","portal/models/user-entity-attribute.js","portal/models/user-project-attribute.js","portal/models/user-task-attribute.js","portal/models/user-worker-attribute.js","portal/models/user.js","portal/models/worker-attribute.js","portal/models/worker-entity-attribute.js","portal/models/worker-job-allocation.js","portal/models/worker-project-attribute.js","portal/models/worker-task-attribute.js","portal/models/worker.js","portal/models/xero-connection.js","portal/models/xero-earnings-rate.js","portal/models/xero-employee.js","portal/models/xero-tracking-option.js","portal/modifiers/basic-dropdown-trigger.js","portal/modifiers/bootstrap-tooltip.js","portal/modifiers/did-insert.js","portal/modifiers/did-update.js","portal/modifiers/on-key.js","portal/modifiers/style.js","portal/modifiers/will-destroy.js","portal/resolver.js","portal/router.js","portal/routes/admin.js","portal/routes/admin/announcements/announcement.js","portal/routes/admin/announcements/index.js","portal/routes/admin/billing-report.js","portal/routes/admin/demo-entity.js","portal/routes/admin/entities/entity.js","portal/routes/admin/entities/index.js","portal/routes/admin/index.js","portal/routes/admin/licensees/index.js","portal/routes/admin/licensees/licensee.js","portal/routes/application.js","portal/routes/basic.js","portal/routes/complete-pm-auth.js","portal/routes/complete-registration-cb.js","portal/routes/embed.js","portal/routes/embed/documents.js","portal/routes/embed/documents/index.js","portal/routes/embed/documents/project-file.js","portal/routes/embed/documents/project-file/index.js","portal/routes/embed/documents/project-file/task-file.js","portal/routes/embed/error.js","portal/routes/embed/labour-hours.js","portal/routes/embed/notes.js","portal/routes/embed/position.js","portal/routes/embed/profit-margins.js","portal/routes/embed/timesheets.js","portal/routes/embed/timesheets/timesheet.js","portal/routes/entity-loading.js","portal/routes/entity.js","portal/routes/entity/builda-price.js","portal/routes/entity/builda-price/dashboard/index.js","portal/routes/entity/builda-price/index.js","portal/routes/entity/builda-price/operations/documents.js","portal/routes/entity/builda-price/operations/documents/index.js","portal/routes/entity/builda-price/operations/documents/project-file.js","portal/routes/entity/builda-price/operations/documents/project-file/index.js","portal/routes/entity/builda-price/operations/documents/project-file/task-file.js","portal/routes/entity/builda-price/operations/incoming/bills-legacy.js","portal/routes/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/routes/entity/builda-price/operations/incoming/bills.js","portal/routes/entity/builda-price/operations/incoming/bills/bill.js","portal/routes/entity/builda-price/operations/incoming/index.js","portal/routes/entity/builda-price/operations/incoming/invoices/index.js","portal/routes/entity/builda-price/operations/incoming/invoices/invoice.js","portal/routes/entity/builda-price/operations/incoming/statements.js","portal/routes/entity/builda-price/operations/incoming/timesheets.js","portal/routes/entity/builda-price/operations/incoming/timesheets/index.js","portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet-loading.js","portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/routes/entity/builda-price/operations/index.js","portal/routes/entity/builda-price/operations/outgoing/index.js","portal/routes/entity/builda-price/operations/outgoing/invoices/index.js","portal/routes/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/routes/entity/builda-price/operations/outgoing/payroll.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/index.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/routes/entity/builda-price/operations/products.js","portal/routes/entity/builda-price/projects.js","portal/routes/entity/builda-price/projects/index.js","portal/routes/entity/builda-price/projects/project.js","portal/routes/entity/builda-price/projects/project/documents.js","portal/routes/entity/builda-price/projects/project/estimates/estimate.js","portal/routes/entity/builda-price/projects/project/estimates/index.js","portal/routes/entity/builda-price/projects/project/financials.js","portal/routes/entity/builda-price/projects/project/health-and-safety.js","portal/routes/entity/builda-price/projects/project/index.js","portal/routes/entity/builda-price/projects/project/people.js","portal/routes/entity/builda-price/projects/project/people/clients/client.js","portal/routes/entity/builda-price/projects/project/people/clients/index.js","portal/routes/entity/builda-price/projects/project/people/index.js","portal/routes/entity/builda-price/projects/project/people/subcontractors/index.js","portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/routes/entity/builda-price/projects/project/people/users/index.js","portal/routes/entity/builda-price/projects/project/people/users/user.js","portal/routes/entity/builda-price/projects/project/people/workers/index.js","portal/routes/entity/builda-price/projects/project/people/workers/worker.js","portal/routes/entity/builda-price/projects/project/prices.js","portal/routes/entity/builda-price/projects/project/products.js","portal/routes/entity/builda-price/projects/project/progress.js","portal/routes/entity/builda-price/projects/project/settings.js","portal/routes/entity/builda-price/projects/project/stage-payments.js","portal/routes/entity/builda-price/projects/project/tasks/index.js","portal/routes/entity/builda-price/projects/project/tasks/task.js","portal/routes/entity/builda-price/projects/project/tasks/task/documents.js","portal/routes/entity/builda-price/projects/project/tasks/task/financials.js","portal/routes/entity/builda-price/projects/project/tasks/task/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/routes/entity/builda-price/projects/project/tasks/task/products.js","portal/routes/entity/builda-price/projects/project/tasks/task/settings.js","portal/routes/entity/builda-price/reports/company/forecast-breakdown.js","portal/routes/entity/builda-price/reports/company/invoicing.js","portal/routes/entity/builda-price/reports/company/labour-hours.js","portal/routes/entity/builda-price/reports/company/notes.js","portal/routes/entity/builda-price/reports/company/position.js","portal/routes/entity/builda-price/reports/company/profit-margins.js","portal/routes/entity/builda-price/reports/company/wip.js","portal/routes/entity/builda-price/reports/index.js","portal/routes/entity/builda-price/reports/projects/index.js","portal/routes/entity/builda-price/reports/projects/project.js","portal/routes/entity/builda-price/reports/projects/project/access.js","portal/routes/entity/builda-price/reports/projects/project/budget/index.js","portal/routes/entity/builda-price/reports/projects/project/budget/task.js","portal/routes/entity/builda-price/reports/projects/project/budget/task/index.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/index.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/task.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/routes/entity/builda-price/reports/projects/project/cost.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/routes/entity/builda-price/reports/projects/project/index.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/index.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/task.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/task.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/routes/entity/builda-price/reports/projects/project/notes.js","portal/routes/entity/builda-price/reports/projects/project/position/index.js","portal/routes/entity/builda-price/reports/projects/project/position/task.js","portal/routes/entity/builda-price/reports/projects/project/position/task/index.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/task.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/routes/entity/builda-price/reports/projects/project/quote/index.js","portal/routes/entity/builda-price/reports/projects/project/quote/task.js","portal/routes/entity/builda-price/reports/projects/project/quote/task/index.js","portal/routes/entity/builda-price/scheduling.js","portal/routes/entity/builda-price/scheduling/index.js","portal/routes/entity/builda-price/scheduling/timeline.js","portal/routes/entity/disabled.js","portal/routes/entity/financials.js","portal/routes/entity/financials/chart-of-accounts.js","portal/routes/entity/financials/dashboard-loading.js","portal/routes/entity/financials/dashboard.js","portal/routes/entity/financials/general.js","portal/routes/entity/financials/groups.js","portal/routes/entity/financials/groups/access.js","portal/routes/entity/financials/groups/index.js","portal/routes/entity/financials/groups/membership.js","portal/routes/entity/financials/groups/order.js","portal/routes/entity/financials/import.js","portal/routes/entity/financials/import/data.js","portal/routes/entity/financials/import/done.js","portal/routes/entity/financials/import/index.js","portal/routes/entity/financials/import/start.js","portal/routes/entity/financials/index.js","portal/routes/entity/financials/kpis.js","portal/routes/entity/financials/kpis/index.js","portal/routes/entity/financials/kpis/kpi.js","portal/routes/entity/financials/planning/strategies.js","portal/routes/entity/financials/reports/general-ledger/balance-sheet.js","portal/routes/entity/financials/reports/general-ledger/base.js","portal/routes/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/routes/entity/financials/reports/general-ledger/other-data.js","portal/routes/entity/financials/reports/general-ledger/personal-data.js","portal/routes/entity/financials/reports/general-ledger/profit-and-loss.js","portal/routes/entity/financials/reports/imports.js","portal/routes/entity/financials/reports/index.js","portal/routes/entity/financials/reports/kpis/index.js","portal/routes/entity/financials/reports/kpis/kpi.js","portal/routes/entity/index.js","portal/routes/entity/module-dashboard.js","portal/routes/entity/settings/auto-mapping.js","portal/routes/entity/settings/chart-of-accounts/chart-of-account.js","portal/routes/entity/settings/chart-of-accounts/index.js","portal/routes/entity/settings/company.js","portal/routes/entity/settings/contacts/contact.js","portal/routes/entity/settings/contacts/index.js","portal/routes/entity/settings/estimates/embedded-page.js","portal/routes/entity/settings/index.js","portal/routes/entity/settings/integrations.js","portal/routes/entity/settings/people/clients/client.js","portal/routes/entity/settings/people/clients/index.js","portal/routes/entity/settings/people/index.js","portal/routes/entity/settings/people/subcontractors/index.js","portal/routes/entity/settings/people/subcontractors/subcontractor.js","portal/routes/entity/settings/people/users/index.js","portal/routes/entity/settings/people/users/user.js","portal/routes/entity/settings/people/workers/index.js","portal/routes/entity/settings/people/workers/worker.js","portal/routes/entity/settings/profile.js","portal/routes/error.js","portal/routes/index.js","portal/routes/initiate-password-reset.js","portal/routes/loading.js","portal/routes/login-redirect.js","portal/routes/login.js","portal/routes/logout-redirect.js","portal/routes/no-access.js","portal/routes/reset-password.js","portal/routes/terms-of-service.js","portal/serializers/api-v2-serializer.js","portal/serializers/application.js","portal/serializers/entity-product.js","portal/serializers/project-product.js","portal/serializers/task-product.js","portal/services/-ensure-registered.js","portal/services/accounting-platform.js","portal/services/bills-data.js","portal/services/builda-price.js","portal/services/cache.js","portal/services/chargebee.js","portal/services/cookies.js","portal/services/dialog.js","portal/services/ember-elsewhere.js","portal/services/engine-data.js","portal/services/financial-portal-period-selector.js","portal/services/help-center.js","portal/services/intl.js","portal/services/invoiced-costs.js","portal/services/ips.js","portal/services/keyboard.js","portal/services/media-events.js","portal/services/media.js","portal/services/metrics.js","portal/services/mobile-menu.js","portal/services/modal-dialog.js","portal/services/modules.js","portal/services/moment.js","portal/services/new-feature-flags.js","portal/services/notifications.js","portal/services/number-format.js","portal/services/os.js","portal/services/oss-engine-data.js","portal/services/page-title.js","portal/services/pdf-export.js","portal/services/placemakers.js","portal/services/platform.js","portal/services/portal-api-v2.js","portal/services/portal-api.js","portal/services/power-calendar.js","portal/services/pricing.js","portal/services/quickbooks.js","portal/services/reports-download.js","portal/services/session-data.js","portal/services/session.js","portal/services/store.js","portal/services/system-announcements.js","portal/services/xero-integration.js","portal/session-stores/application.js","portal/storages/settings.js","portal/templates/admin-loading.js","portal/templates/admin.js","portal/templates/admin/announcements.js","portal/templates/admin/announcements/announcement.js","portal/templates/admin/announcements/index.js","portal/templates/admin/billing-report.js","portal/templates/admin/demo-entity.js","portal/templates/admin/entities.js","portal/templates/admin/entities/entity.js","portal/templates/admin/entities/index.js","portal/templates/admin/licensees.js","portal/templates/admin/licensees/index.js","portal/templates/admin/licensees/licensee.js","portal/templates/application.js","portal/templates/complete-pm-auth.js","portal/templates/complete-registration-cb.js","portal/templates/embed.js","portal/templates/embed/error.js","portal/templates/entity-access-denied.js","portal/templates/entity.js","portal/templates/entity/builda-price.js","portal/templates/entity/builda-price/dashboard.js","portal/templates/entity/builda-price/dashboard/index.js","portal/templates/entity/builda-price/operations.js","portal/templates/entity/builda-price/operations/communications.js","portal/templates/entity/builda-price/operations/documents.js","portal/templates/entity/builda-price/operations/documents/index.js","portal/templates/entity/builda-price/operations/documents/project-file.js","portal/templates/entity/builda-price/operations/documents/project-file/index.js","portal/templates/entity/builda-price/operations/documents/project-file/task-file.js","portal/templates/entity/builda-price/operations/incoming.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/templates/entity/builda-price/operations/incoming/bills.js","portal/templates/entity/builda-price/operations/incoming/bills/bill.js","portal/templates/entity/builda-price/operations/incoming/statements.js","portal/templates/entity/builda-price/operations/incoming/timesheets-loading.js","portal/templates/entity/builda-price/operations/incoming/timesheets.js","portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/templates/entity/builda-price/operations/outgoing.js","portal/templates/entity/builda-price/operations/outgoing/invoices/index.js","portal/templates/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/templates/entity/builda-price/operations/outgoing/payroll-loading.js","portal/templates/entity/builda-price/operations/outgoing/payroll.js","portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/index.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/templates/entity/builda-price/operations/products.js","portal/templates/entity/builda-price/projects.js","portal/templates/entity/builda-price/projects/index.js","portal/templates/entity/builda-price/projects/project.js","portal/templates/entity/builda-price/projects/project/documents.js","portal/templates/entity/builda-price/projects/project/estimate.js","portal/templates/entity/builda-price/projects/project/estimates/estimate-loading.js","portal/templates/entity/builda-price/projects/project/estimates/estimate.js","portal/templates/entity/builda-price/projects/project/estimates/index.js","portal/templates/entity/builda-price/projects/project/financials.js","portal/templates/entity/builda-price/projects/project/health-and-safety.js","portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading.js","portal/templates/entity/builda-price/projects/project/health-and-safety/index.js","portal/templates/entity/builda-price/projects/project/people.js","portal/templates/entity/builda-price/projects/project/people/clients.js","portal/templates/entity/builda-price/projects/project/people/clients/client.js","portal/templates/entity/builda-price/projects/project/people/clients/index.js","portal/templates/entity/builda-price/projects/project/people/subcontractors.js","portal/templates/entity/builda-price/projects/project/people/subcontractors/index.js","portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/templates/entity/builda-price/projects/project/people/users.js","portal/templates/entity/builda-price/projects/project/people/users/index.js","portal/templates/entity/builda-price/projects/project/people/users/user.js","portal/templates/entity/builda-price/projects/project/people/workers.js","portal/templates/entity/builda-price/projects/project/people/workers/index.js","portal/templates/entity/builda-price/projects/project/people/workers/worker.js","portal/templates/entity/builda-price/projects/project/products.js","portal/templates/entity/builda-price/projects/project/progress.js","portal/templates/entity/builda-price/projects/project/settings.js","portal/templates/entity/builda-price/projects/project/stage-payments.js","portal/templates/entity/builda-price/projects/project/tasks.js","portal/templates/entity/builda-price/projects/project/tasks/index.js","portal/templates/entity/builda-price/projects/project/tasks/task.js","portal/templates/entity/builda-price/projects/project/tasks/task/documents.js","portal/templates/entity/builda-price/projects/project/tasks/task/financials.js","portal/templates/entity/builda-price/projects/project/tasks/task/people.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/templates/entity/builda-price/projects/project/tasks/task/products.js","portal/templates/entity/builda-price/projects/project/tasks/task/settings.js","portal/templates/entity/builda-price/reports.js","portal/templates/entity/builda-price/reports/company.js","portal/templates/entity/builda-price/reports/company/forecast-breakdown.js","portal/templates/entity/builda-price/reports/company/invoicing.js","portal/templates/entity/builda-price/reports/company/labour-hours.js","portal/templates/entity/builda-price/reports/company/notes.js","portal/templates/entity/builda-price/reports/company/position.js","portal/templates/entity/builda-price/reports/company/profit-margins.js","portal/templates/entity/builda-price/reports/company/wip.js","portal/templates/entity/builda-price/reports/projects.js","portal/templates/entity/builda-price/reports/projects/index.js","portal/templates/entity/builda-price/reports/projects/project.js","portal/templates/entity/builda-price/reports/projects/project/access.js","portal/templates/entity/builda-price/reports/projects/project/budget/index.js","portal/templates/entity/builda-price/reports/projects/project/budget/task/index.js","portal/templates/entity/builda-price/reports/projects/project/chargeup/index.js","portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/templates/entity/builda-price/reports/projects/project/cost.js","portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/templates/entity/builda-price/reports/projects/project/invoicing/index.js","portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/templates/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/templates/entity/builda-price/reports/projects/project/notes.js","portal/templates/entity/builda-price/reports/projects/project/position/index.js","portal/templates/entity/builda-price/reports/projects/project/position/task/index.js","portal/templates/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/templates/entity/builda-price/reports/projects/project/quote/index.js","portal/templates/entity/builda-price/reports/projects/project/quote/task/index.js","portal/templates/entity/builda-price/scheduling.js","portal/templates/entity/builda-price/scheduling/timeline.js","portal/templates/entity/disabled.js","portal/templates/entity/financials-loading.js","portal/templates/entity/financials.js","portal/templates/entity/financials/chart-of-accounts-loading.js","portal/templates/entity/financials/chart-of-accounts.js","portal/templates/entity/financials/dashboard.js","portal/templates/entity/financials/general-loading.js","portal/templates/entity/financials/general.js","portal/templates/entity/financials/groups-loading.js","portal/templates/entity/financials/groups.js","portal/templates/entity/financials/groups/membership-and-access.js","portal/templates/entity/financials/groups/order.js","portal/templates/entity/financials/import.js","portal/templates/entity/financials/import/data.js","portal/templates/entity/financials/import/done.js","portal/templates/entity/financials/import/index.js","portal/templates/entity/financials/import/start.js","portal/templates/entity/financials/kpis-loading.js","portal/templates/entity/financials/kpis.js","portal/templates/entity/financials/kpis/kpi.js","portal/templates/entity/financials/planning/strategies.js","portal/templates/entity/financials/reports.js","portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading.js","portal/templates/entity/financials/reports/general-ledger/balance-sheet.js","portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading.js","portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/templates/entity/financials/reports/general-ledger/other-data-loading.js","portal/templates/entity/financials/reports/general-ledger/other-data.js","portal/templates/entity/financials/reports/general-ledger/personal-data-loading.js","portal/templates/entity/financials/reports/general-ledger/personal-data.js","portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading.js","portal/templates/entity/financials/reports/general-ledger/profit-and-loss.js","portal/templates/entity/financials/reports/imports-loading.js","portal/templates/entity/financials/reports/imports.js","portal/templates/entity/financials/reports/kpis-loading.js","portal/templates/entity/financials/reports/kpis.js","portal/templates/entity/financials/reports/kpis/index.js","portal/templates/entity/financials/reports/kpis/kpi.js","portal/templates/entity/module-dashboard.js","portal/templates/entity/settings.js","portal/templates/entity/settings/auto-mapping-loading.js","portal/templates/entity/settings/auto-mapping.js","portal/templates/entity/settings/chart-of-accounts.js","portal/templates/entity/settings/chart-of-accounts/chart-of-account.js","portal/templates/entity/settings/chart-of-accounts/index.js","portal/templates/entity/settings/company-loading.js","portal/templates/entity/settings/company.js","portal/templates/entity/settings/contacts.js","portal/templates/entity/settings/contacts/contact.js","portal/templates/entity/settings/contacts/index.js","portal/templates/entity/settings/estimates/embedded-page.js","portal/templates/entity/settings/integrations.js","portal/templates/entity/settings/people.js","portal/templates/entity/settings/people/clients.js","portal/templates/entity/settings/people/clients/client.js","portal/templates/entity/settings/people/clients/index.js","portal/templates/entity/settings/people/subcontractors.js","portal/templates/entity/settings/people/subcontractors/index.js","portal/templates/entity/settings/people/subcontractors/subcontractor.js","portal/templates/entity/settings/people/users.js","portal/templates/entity/settings/people/users/index.js","portal/templates/entity/settings/people/users/user.js","portal/templates/entity/settings/people/workers.js","portal/templates/entity/settings/people/workers/index.js","portal/templates/entity/settings/people/workers/worker.js","portal/templates/entity/settings/profile.js","portal/templates/error.js","portal/templates/initiate-password-reset.js","portal/templates/loading.js","portal/templates/login.js","portal/templates/logout-redirect.js","portal/templates/no-access.js","portal/templates/not-found.js","portal/templates/project.js","portal/templates/project/no-site.js","portal/templates/project/site.js","portal/templates/project/site/dashboard.js","portal/templates/project/site/details.js","portal/templates/project/site/hazards.js","portal/templates/project/site/hazards/board.js","portal/templates/project/site/hazards/selection.js","portal/templates/project/site/index.js","portal/templates/project/site/ppe.js","portal/templates/project/site/reports/index.js","portal/templates/project/site/reports/report.js","portal/templates/project/site/setup.js","portal/templates/project/site/setup/notifiable.js","portal/templates/project/site/setup/summary.js","portal/templates/project/site/signin.js","portal/templates/reports.js","portal/templates/reset-password.js","portal/templates/site.js","portal/templates/terms-of-service.js","portal/test-support/helpers.js","portal/transforms/array.js","portal/transforms/boolean.js","portal/transforms/date.js","portal/transforms/number.js","portal/transforms/string.js","portal/transitions.js","portal/utils/am5-bp-theme.js","portal/utils/auto-map.js","portal/utils/balance-calculator.js","portal/utils/bill-parsers/bunnings.js","portal/utils/bill-parsers/carters-type-1.js","portal/utils/bill-parsers/carters-type-2.js","portal/utils/bill-parsers/carters-type-3.js","portal/utils/bill-parsers/carters-type-4.js","portal/utils/bill-parsers/carters.js","portal/utils/bill-parsers/csv.js","portal/utils/bill-parsers/itm.js","portal/utils/bill-parsers/mitre.js","portal/utils/bill-parsers/placemakers.js","portal/utils/bill-parsers/xero.js","portal/utils/bunnings-bill-csv-normalizer.js","portal/utils/calc-map-balance.js","portal/utils/collection-to-array.js","portal/utils/computed.js","portal/utils/crystal-csv-generator.js","portal/utils/csv-builder.js","portal/utils/deprecation-filter.js","portal/utils/download.js","portal/utils/duration-input.js","portal/utils/email-validator.js","portal/utils/extract-number.js","portal/utils/favicon-title.js","portal/utils/find-date.js","portal/utils/find-param.js","portal/utils/get-default-language.js","portal/utils/gl-import-parsers/banklink.js","portal/utils/gl-import-parsers/empower.js","portal/utils/gl-import-parsers/frameworks.js","portal/utils/gl-import-parsers/gj-gardner.js","portal/utils/gl-import-parsers/itm-manual.js","portal/utils/gl-import-parsers/maxim.js","portal/utils/gl-import-parsers/myob-ao.js","portal/utils/gl-import-parsers/myob.js","portal/utils/gl-import-parsers/new-xero-parser.js","portal/utils/gl-import-parsers/old-xero-parser.js","portal/utils/gl-import-parsers/prostix.js","portal/utils/gl-import-parsers/rees.js","portal/utils/gl-import-parsers/xero-csv.js","portal/utils/intl/missing-message.js","portal/utils/labour-cost-calculator-fixtures.js","portal/utils/loading-route-from.js","portal/utils/make-temp-id.js","portal/utils/multi-selectable-tree-item.js","portal/utils/nest.js","portal/utils/network-errors.js","portal/utils/oidc-config.js","portal/utils/parse-currency-string.js","portal/utils/path-resolver.js","portal/utils/placemakers-bill-csv-normalizer.js","portal/utils/platform.js","portal/utils/profit-margin.js","portal/utils/report-builder-attachments-bundle.js","portal/utils/report-builder-mark-as-reported.js","portal/utils/report-builder.js","portal/utils/sanitize-filename.js","portal/utils/search-filter.js","portal/utils/search-term-escape.js","portal/utils/smart-payroll-csv-generator.js","portal/utils/sort-accounts.js","portal/utils/sort-by-account-code.js","portal/utils/string-similarity.js","portal/utils/sums.js","portal/utils/task-templates.js","portal/utils/titleize.js","portal/utils/tree-item.js","portal/validators/bill-item.js","portal/validators/bill.js","portal/validators/ips-connection.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","define(\"portal/adapters/api-v2-adapter\", [\"exports\", \"@ember-data/adapter/rest\", \"portal/config/environment\", \"ember-inflector\", \"@ember/service\", \"@ember/string\"], function (_exports, _rest, _environment, _emberInflector, _service, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/rest\",0,\"portal/config/environment\",0,\"ember-inflector\",0,\"@ember/service\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApiV2Adapter = _exports.default = (_class = class ApiV2Adapter extends _rest.default {\n    pathForType(type) {\n      // eslint-disable-next-line ember/no-string-prototype-extensions\n      return (0, _emberInflector.pluralize)((0, _string.dasherize)(type));\n    }\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"host\", void 0);\n      _defineProperty(this, \"headers\", void 0);\n      this.host = _environment.default.urls.api + _environment.default.urls.apiV2Path + '/resources';\n      const access_token = this.session.data.authenticated.access_token;\n      this.headers = {\n        Authorization: `Bearer ${access_token}`\n      };\n    }\n    createRecord(store, type, snapshot) {\n      const data = this.serialize(snapshot, {\n        includeId: true\n      });\n      for (const key of Object.keys(data)) {\n        if (snapshot.record[key] === undefined) delete data[key];\n      }\n      let url = this.buildURL(type.modelName, null, snapshot, 'createRecord');\n      return this.ajax(url, 'POST', {\n        data\n      });\n    }\n    updateRecord(store, type, snapshot) {\n      const data = this.serialize(snapshot, {\n        includeId: true\n      });\n      for (const key of Object.keys(data)) {\n        if (snapshot.record[key] === undefined) delete data[key];\n      }\n      let id = snapshot.id;\n      let url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PUT', {\n        data\n      });\n    }\n    async saveBulk(type, records) {\n      const url = this.buildURL(type, null, records, 'saveBulk');\n      const serializedRecords = records.map(record => this.serialize(record, {\n        includeId: true\n      }));\n      return this.ajax(url, 'PUT', {\n        data: JSON.stringify(serializedRecords),\n        contentType: 'application/json; charset=utf-8'\n      }).then(response => {\n        response.forEach((res, index) => {\n          const modelClass = this.store.modelFor(type);\n          const pendingRecord = records[index];\n          const mergedData = Object.assign({}, this.serialize(pendingRecord, {\n            includeId: true\n          }), res);\n          const data = this.store.serializerFor(type).normalize(modelClass, {\n            id: res._id,\n            ...mergedData\n          });\n          if (pendingRecord.isNew) {\n            pendingRecord.set('id', res._id);\n          }\n          this.store.push(data);\n          pendingRecord._internalModel._recordData._attributes = {};\n          pendingRecord.send('pushedData');\n        });\n      });\n    }\n    async deleteBulk(type, records) {\n      const url = this.buildURL(type, null, records, 'deleteBulk');\n\n      // mark records as deleted in store before sending to backend\n      records.forEach(record => this.store.peekRecord(type, record).deleteRecord());\n      return this.ajax(url, 'DELETE', {\n        data: JSON.stringify(records),\n        contentType: 'application/json; charset=utf-8'\n      }).then(response => {\n        response.forEach((res, index) => {\n          const pendingRecordId = records[index];\n          const pendingRecord = this.store.peekRecord(type, pendingRecordId);\n          if (pendingRecord.isDeleted && pendingRecord.id === res.id) pendingRecord.unloadRecord();\n        });\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/adapters/application\", [\"exports\", \"@ember-data/adapter/json-api\", \"portal/config/environment\", \"@ember/service\", \"portal/adapters/errors\", \"@ember/string\", \"@ember-data/request-utils/string\"], function (_exports, _jsonApi, _environment, _service, _errors, _string, _string2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/json-api\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"portal/adapters/errors\",0,\"@ember/string\",0,\"@ember-data/request-utils/string\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  (0, _string2.irregular)('link-entity-group-can-be-accessed-by', 'link-entity-group-can-be-accessed-bys');\n  class ConcurrencyHandler {\n    constructor(maxConcurrency) {\n      this.maxConcurrency = maxConcurrency;\n      this.runningCount = 0;\n      this.queue = [];\n    }\n    enqueue(asyncTask) {\n      return new Promise((resolve, reject) => {\n        const taskWrapper = async () => {\n          this.runningCount++;\n          try {\n            const result = await asyncTask();\n            resolve(result);\n          } catch (error) {\n            reject(error);\n          } finally {\n            this.runningCount--;\n            this.dequeue();\n          }\n        };\n        this.queue.push(taskWrapper);\n        if (this.runningCount < this.maxConcurrency) {\n          this.dequeue();\n        }\n      });\n    }\n    dequeue() {\n      if (this.queue.length > 0 && this.runningCount < this.maxConcurrency) {\n        const nextTask = this.queue.shift();\n        nextTask();\n      }\n    }\n  }\n  const concurrencyHandler = new ConcurrencyHandler(10);\n  let ApiV2JSONAdapter = _exports.default = (_class = class ApiV2JSONAdapter extends _jsonApi.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"coalesceFindRequests\", true);\n      this.host = _environment.default.urls.api + _environment.default.urls.apiV2Path + '/json-api';\n    }\n    get headers() {\n      let headers = {\n        'Content-Type': 'application/json'\n      };\n      if (this.session.isAuthenticated) {\n        headers.Authorization = `Bearer ${this.session.data.authenticated.access_token}`;\n      }\n      return headers;\n    }\n    pathForType(type) {\n      return (0, _string2.pluralize)((0, _string.dasherize)(type));\n    }\n\n    // _meta fields the model declares as `static requiredMetaFields`\n    _withRequiredMeta(modelName, query = {}) {\n      const required = this.store.modelFor(modelName)?.requiredMetaFields;\n      if (!required?.length) return query;\n      const type = this.pathForType(modelName);\n\n      // union, so a call site asking for extra meta keeps both\n      const keys = [...(query.fields?.[type]?.split(',') ?? []), ...required.map(key => `_meta.${key}`)].map(key => key.trim()).filter(Boolean);\n      return {\n        ...query,\n        fields: {\n          ...query.fields,\n          [type]: [...new Set(keys)].join(',')\n        }\n      };\n    }\n\n    // findRecord and findAll both build their params here\n    buildQuery(snapshot) {\n      return this._withRequiredMeta(snapshot.modelName, super.buildQuery(snapshot) ?? {});\n    }\n\n    // Limit the max number of concurrent requests to prevent dos\n    async ajax(url, type, options) {\n      return concurrencyHandler.enqueue(() => super.ajax(url, type, options));\n    }\n    shouldReloadAll() {\n      return true;\n    }\n    shouldBackgroundReloadRecord() {\n      return true;\n    }\n    handleResponse(status) {\n      if (status === 0) {\n        return new _errors.ConnectionError();\n      } else if (status === 401) {\n        this.session.invalidate().catch(() => {});\n      }\n      return super.handleResponse(...arguments);\n    }\n    chunkArray(array, size) {\n      return Array.from({\n        length: Math.ceil(array.length / size)\n      }, (_, i) => array.slice(i * size, i * size + size));\n    }\n\n    // when we \"coalesceFindRequests = true\", it groups all get by id of similar resource requests into find many request\n    // for new json api v2, filter has to be below format\n    async findMany(store, type, ids, snapshots) {\n      const chunkSize = _environment.default.chunkCallbackSize;\n      const chunks = this.chunkArray(ids, chunkSize);\n      const requests = chunks.map(chunk => {\n        const url = this.buildURL(type.modelName, chunk, snapshots, 'findMany');\n        return this.ajax(url, 'GET', {\n          data: this._withRequiredMeta(type.modelName, {\n            filter: {\n              and: [{\n                field: '_id',\n                // TODO change this to id\n                op: 'IN',\n                value: chunk\n              }]\n            }\n          })\n        });\n      });\n\n      // TODO this can be done better\n      const responses = await Promise.all(requests);\n      const merged = responses.reduce((acc, response) => {\n        if (response.data) {\n          acc.data = acc.data.concat(response.data);\n        }\n        if (response.included) {\n          acc.included = (acc.included || []).concat(response.included || []);\n        }\n        return acc;\n      }, {\n        data: []\n      });\n      return merged;\n    }\n    query(store, type, query) {\n      if (query.filter?.simple) {\n        const operatorMapping = {\n          $eq: 'EQ',\n          $ne: 'NE',\n          $in: 'IN',\n          $nin: 'NIN',\n          $lt: 'LT',\n          $gt: 'GT',\n          $lte: 'LE',\n          $gte: 'GE',\n          $like: 'LIKE',\n          $ilike: 'ILIKE'\n        };\n        const _filter = {\n          and: []\n        };\n        for (const [key, value] of Object.entries(query.filter.simple)) {\n          if (value && typeof value === 'object' && !Array.isArray(value)) {\n            for (const [operator, operand] of Object.entries(value)) {\n              const mappedOperator = operatorMapping[operator];\n              if (!mappedOperator) {\n                throw new Error(`Invalid operator: ${operator}`);\n              }\n              if ((operator === '$in' || operator === '$nin') && !Array.isArray(operand)) {\n                throw new Error(`Operand for ${operator} must be an array.`);\n              }\n              _filter.and.push({\n                field: key,\n                op: mappedOperator,\n                value: operand\n              });\n            }\n          } else {\n            _filter.and.push({\n              field: key,\n              op: 'EQ',\n              value: value\n            });\n          }\n        }\n        query.filter = _filter;\n      }\n      return super.query(store, type, this._withRequiredMeta(type.modelName, query));\n    }\n    findRecord(store, type, id, snapshot) {\n      let url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n\n      // usage example\n      //  adapterOptions: {\n      //      fields: {\n      //        meta: 'canDelete',\n      //      }\n      //    }\n\n      let query = this.buildQuery(snapshot) || {};\n      const {\n        fields\n      } = snapshot.adapterOptions || {};\n\n      // http://jsonapi.org/format/#fetching-sparse-fieldsets\n      if (fields && !Array.isArray(fields) && typeof fields === 'object') {\n        for (const [key, value] of Object.entries(fields)) {\n          query[`fields[${key}]`] = value;\n        }\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n    deleteRecord(store, type, snapshot) {\n      const url = new URL(this.buildURL(type.modelName, snapshot.id, snapshot, 'deleteRecord'));\n      const {\n        meta\n      } = snapshot.adapterOptions || {};\n      for (const [key, value] of Object.entries(meta || {})) {\n        url.searchParams.set(`meta[${key}]`, value);\n      }\n      return this.ajax(url.toString(), 'DELETE');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/adapters/entity-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class EntityProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = EntityProductAdapter;\n});","define(\"portal/adapters/errors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.ConnectionError = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  class ConnectionError extends Error {\n    constructor() {\n      super('The server could not be reached');\n      this.name = 'ConnectionError';\n    }\n  }\n  _exports.ConnectionError = ConnectionError;\n});","define(\"portal/adapters/project-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class ProjectProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = ProjectProductAdapter;\n});","define(\"portal/adapters/task-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class TaskProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = TaskProductAdapter;\n});","define(\"portal/app\", [\"exports\", \"@ember/application\", \"ember-power-calendar-moment\", \"ember-resolver\", \"ember-load-initializers\", \"ember-power-calendar\", \"portal/config/environment\"], function (_exports, _application, _emberPowerCalendarMoment, _emberResolver, _emberLoadInitializers, _emberPowerCalendar, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"ember-power-calendar-moment\",0,\"ember-resolver\",0,\"ember-load-initializers\",0,\"ember-power-calendar\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  (0, _emberPowerCalendar.registerDateLibrary)(_emberPowerCalendarMoment.default);\n\n  //export default class App extends Application {\n  //  modulePrefix = config.modulePrefix;\n  //  podModulePrefix = config.podModulePrefix;\n  //  Resolver = Resolver;\n  //}\n  //\n  //loadInitializers(App, config.modulePrefix);\n\n  class App extends _application.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modulePrefix\", _environment.default.modulePrefix);\n      _defineProperty(this, \"podModulePrefix\", _environment.default.podModulePrefix);\n      _defineProperty(this, \"Resolver\", _emberResolver.default);\n      _defineProperty(this, \"engines\", {\n        'builda-price-client-addon': {\n          dependencies: {\n            services: ['dialog', 'engineData', {\n              hostRouter: 'router'\n            }, 'session']\n          }\n        },\n        'oss-portal-addon': {\n          dependencies: {\n            services: ['ossEngineData', {\n              hostRouter: 'router'\n            }, 'dialog', 'notifications', 'session']\n          }\n        }\n      });\n    }\n  }\n  _exports.default = App;\n  (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","define(\"portal/authenticators/embed\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"portal/config/environment\", \"@ember/service\", \"jquery\"], function (_exports, _base, _environment, _service, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/authenticators/base\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EmbedAuthenticator = _exports.default = (_class = class EmbedAuthenticator extends _base.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    restore(data) {\n      return data;\n    }\n    async authenticate(accessToken = '', userId = '', transition) {\n      const user = await new Promise((resolve, reject) => _jquery.default.ajax({\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/json-api/users/${userId}`,\n        method: 'GET',\n        headers: {\n          Authorization: `Bearer ${accessToken}`\n        },\n        dataType: 'json',\n        contentType: 'application/json'\n      }).then(resolve, reject));\n\n      // https://ember-simple-auth.com/api/classes/ApplicationRouteMixin.html\n      // this causes ember simple auth to retry the transition after the authentication\n      // without this, it would hit the index route and route to the main application\n      this.session.attemptedTransition = transition;\n      return {\n        access_token: accessToken,\n        authenticator: 'authenticator:embed',\n        expires_in: 10800,\n        // not known\n        token_type: 'bearer',\n        user: {\n          id: user.data.id,\n          ...user.data.attributes\n        }\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/authenticators/login-as\", [\"exports\", \"rsvp\", \"portal/authenticators/oauth2\"], function (_exports, _rsvp, _oauth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"portal/authenticators/oauth2\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth.default.extend({\n    authenticate(data) {\n      return _rsvp.default.resolve(data);\n    }\n  });\n});","define(\"portal/authenticators/oauth2\", [\"exports\", \"rsvp\", \"@ember/utils\", \"@ember/runloop\", \"@ember/object\", \"@ember/service\", \"jquery\", \"@ember/array\", \"ember-simple-auth/authenticators/oauth2-password-grant\", \"portal/config/environment\"], function (_exports, _rsvp, _utils, _runloop, _object, _service, _jquery, _array, _oauth2PasswordGrant, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/array\",0,\"ember-simple-auth/authenticators/oauth2-password-grant\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth2PasswordGrant.default.extend({\n    router: (0, _service.inject)(),\n    serverTokenEndpoint: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth',\n    serverTokenRevocationEndpoint: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/logout',\n    refreshAccessTokens: false,\n    authenticate(identification, password, scope = []) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        const data = {\n          grant_type: 'password',\n          identification,\n          password\n        };\n        const serverTokenEndpoint = (0, _object.get)(this, 'serverTokenEndpoint');\n        const scopesString = (0, _array.makeArray)(scope).join(' ');\n        if (!(0, _utils.isEmpty)(scopesString)) {\n          (0, _object.set)(data, 'scope', scopesString);\n        }\n        this.makeRequest(serverTokenEndpoint, data).then(response => (0, _runloop.run)(() => resolve(response)), xhr => (0, _runloop.run)(() => reject(xhr)));\n      });\n    },\n    // Overriden to prevent session timeouts\n    restore(data) {\n      if ((0, _utils.isEmpty)(data['access_token'])) {\n        return _rsvp.default.reject();\n      } else {\n        return _rsvp.default.resolve(data);\n      }\n    },\n    invalidate(data) {\n      // this is automatically called on a 401\n      // the first thing we do is go into the loading route\n      // nothing is waiting for this promise to resolve and the application\n      // keeps trying to load while invalidated\n      // doing this puts us in a safe place to wait for the invalidate to finish\n      this.router.transitionTo('loading');\n\n      // This is mostly taken from the oath2-password-grant source code, see:\n      // https://github.com/simplabs/ember-simple-auth/blob/1.2.0/addon/authenticators/oauth2-password-grant.js#L257\n      // Deviations from the original source are annotated.\n      const serverTokenRevocationEndpoint = this.get('serverTokenRevocationEndpoint');\n      function success(resolve) {\n        (0, _runloop.cancel)(this._refreshTokenTimeout);\n        delete this._refreshTokenTimeout;\n        resolve();\n      }\n      return new _rsvp.default.Promise(resolve => {\n        if ((0, _utils.isEmpty)(serverTokenRevocationEndpoint)) {\n          success.apply(this, [resolve]);\n        } else {\n          const requests = [];\n\n          // Added original user's token to the list of tokens to invalidate.\n          (0, _array.A)(['access_token', 'refresh_token', 'originalUserData.access_token']).forEach(tokenType => {\n            // Switched to get syntax in order to support a path as well as a key.\n            const token = (0, _object.get)(data, tokenType);\n            if (!(0, _utils.isEmpty)(token)) {\n              requests.push(this.makeRequest(serverTokenRevocationEndpoint, {\n                token_type_hint: tokenType,\n                token\n              }));\n            }\n          });\n          const succeed = () => {\n            success.apply(this, [resolve]);\n          };\n          _rsvp.default.all(requests).then(succeed, succeed);\n        }\n      });\n    },\n    makeRequest(url, data) {\n      return _jquery.default.ajax({\n        url,\n        type: 'POST',\n        data: JSON.stringify(data),\n        dataType: 'json',\n        contentType: 'application/json'\n      });\n    }\n  });\n});","define(\"portal/authenticators/oidc\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"@ember/service\", \"portal/utils/oidc-config\"], function (_exports, _base, _service, _oidcConfig) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/authenticators/base\",0,\"@ember/service\",0,\"portal/utils/oidc-config\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const REDIRECT_TIMEOUT = 15000;\n\n  // basically race the IDP to make sure we don't get stuck (it'll redirect us, so this will die)\n  function waitForRedirect(startRedirect) {\n    return new Promise((_resolve, reject) => {\n      const timer = setTimeout(() => reject(new Error('Timed out waiting for the identity server')), REDIRECT_TIMEOUT);\n      Promise.resolve().then(startRedirect).catch(error => {\n        clearTimeout(timer);\n        reject(error);\n      });\n    });\n  }\n  let OidcAuthenticator = _exports.default = (_class = class OidcAuthenticator extends _base.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _defineProperty(this, \"_isInvalidating\", false);\n      this._bindOidcEvents();\n    }\n    _bindOidcEvents() {\n      _oidcConfig.userManager.events.addUserLoaded(async user => {\n        if (!this.session.isAuthenticated) {\n          // this is a fresh cross tab login so run the full auth method\n          await this.session.authenticate('authenticator:oidc', {\n            bypassRedirect: true,\n            user\n          });\n        } else {\n          // background token refresh - update the session data\n          const existingBpUser = this.session.data.authenticated.user;\n          this.trigger('sessionDataUpdated', {\n            ...user,\n            user: existingBpUser\n          });\n        }\n      });\n      _oidcConfig.userManager.events.addUserUnloaded(() => {\n        if (this.session.isAuthenticated && !this._isInvalidating) {\n          this.session.invalidate();\n        }\n      });\n      _oidcConfig.userManager.events.addAccessTokenExpiring(() => {\n        navigator.locks.request('oidc-client-refresh', {\n          ifAvailable: true\n        }, async lock => {\n          //  if we can't get the lock a faster tab is getting the token\n          if (!lock) return;\n          try {\n            // we got a lock but check if another tab has already refreshed\n            const currentUser = await _oidcConfig.userManager.getUser();\n            if (currentUser && currentUser.expires_in > 60) {\n              return;\n            }\n\n            // token is actually expiring - refresh it\n            await _oidcConfig.userManager.signinSilent();\n          } catch (error) {\n            await this.session.invalidate();\n          }\n        });\n      });\n    }\n    async _buildSessionData(oidcUser) {\n      if (!oidcUser) throw new Error('No OIDC user provided');\n      const bpUser = await this.buildaPrice.getMeFromIdentityId(oidcUser.access_token, oidcUser.profile.sub);\n      return {\n        ...oidcUser,\n        user: bpUser\n      };\n    }\n    async authenticate(options = {}) {\n      if (options.bypassRedirect) {\n        return this._buildSessionData(options.user);\n      }\n\n      // returning from the IDP login screen\n      if (window.location.search.includes('code=')) {\n        const oidcUser = await _oidcConfig.userManager.signinRedirectCallback();\n        return this._buildSessionData(oidcUser);\n      }\n      return waitForRedirect(() => _oidcConfig.userManager.signinRedirect());\n    }\n    async restore(data) {\n      const oidcUser = await _oidcConfig.userManager.getUser();\n      if (!oidcUser || oidcUser.expired) {\n        throw new Error('Session is missing or expired');\n      }\n\n      // if we already have the user, use it...\n      if (data && data.user) {\n        return {\n          ...oidcUser,\n          user: data.user\n        };\n      }\n\n      // ...otherwise we need to load it\n      return this._buildSessionData(oidcUser);\n    }\n\n    // make sure this never rejects otherwise users could get stuck with a broken sesssion\n    async invalidate(_data, options = {}) {\n      this._isInvalidating = true;\n      try {\n        // if returning from the IDP logout screen, just let ESA clear local state\n        if (options.logoutComplete) return;\n\n        // manual logout initiated by the user\n        const oidcUser = await _oidcConfig.userManager.getUser().catch(() => null);\n        if (oidcUser) {\n          try {\n            await waitForRedirect(() => _oidcConfig.userManager.signoutRedirect());\n          } catch (_) {\n            // the IDP never took us, so log out locally rather than hang\n            await this._forgetUser();\n          }\n          return;\n        }\n\n        // if we don't have a session, dump the user manager state\n        await this._forgetUser();\n      } finally {\n        this._isInvalidating = false;\n      }\n    }\n    async _forgetUser() {\n      try {\n        await _oidcConfig.userManager.removeUser();\n      } catch (_) {\n        // absorb the error so we can still clear the ESA session\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/authenticators/push-session\", [\"exports\", \"rsvp\", \"portal/authenticators/oauth2\"], function (_exports, _rsvp, _oauth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"portal/authenticators/oauth2\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth.default.extend({\n    authenticate: _rsvp.default.resolve\n  });\n});","define(\"portal/breakpoints\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.BREAKPOINTS = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * the portal's breakpoint scale, declared for the ember-responsive `media`\n   * service. this is what backs `this.media.isDesktop` in js and\n   * `{{media 'isDesktop'}}` in templates.\n   *\n   * keep in sync with app/styles/_breakpoints.scss, which declares the same scale\n   * for scss and also configures bootstrap's $grid-breakpoints -- so `lg` and\n   * `isDesktop` switch at the same width. tests/unit/breakpoints-test.js fails if\n   * the two drift apart.\n   *\n   * only the numbers in BREAKPOINTS are hand-written; the media queries are derived\n   * from them. that matters for `tablet`, whose upper bound is `desktop - 1`: it was\n   * previously a hardcoded 991px, so moving `desktop` on its own would have opened a\n   * band of widths matching no breakpoint at all.\n   */\n\n  const BREAKPOINTS = _exports.BREAKPOINTS = {\n    mobileMax: 767,\n    tablet: 768,\n    desktop: 1200,\n    jumbo: 1550,\n    ultrawide: 1920\n  };\n  const minWidth = px => `(min-width: ${px}px)`;\n  const maxWidth = px => `(max-width: ${px}px)`;\n\n  // mobile / tablet / desktop are mutually exclusive and between them cover every\n  // width. jumbo and ultrawide are subsets of desktop, matching the `*-up` scss\n  // mixins; nothing consumes `isUltrawide` yet, but it is declared so this file and\n  // the scss scale stay a line-for-line match.\n  var _default = _exports.default = {\n    mobile: maxWidth(BREAKPOINTS.mobileMax),\n    tablet: `${minWidth(BREAKPOINTS.tablet)} and ${maxWidth(BREAKPOINTS.desktop - 1)}`,\n    desktop: minWidth(BREAKPOINTS.desktop),\n    jumbo: minWidth(BREAKPOINTS.jumbo),\n    ultrawide: minWidth(BREAKPOINTS.ultrawide)\n  };\n});","define(\"portal/components/active-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/active-table\", \"@ember/template-factory\"], function (_exports, _component, _object, _activeTable, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/components/active-table\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    <tr>\n      {{#each this.headers as |header|}}\n        <th\n          width={{header.width}}\n          class='{{if header.sorted \"data-table__sorted-column-header\"}}\n            {{if header.ascending \"data-table__sorted-column-header--ascending\"}}'\n        >\n          {{#if header.key}}\n            <a {{action 'sortBy' header}} class='link'>\n              <span>{{header.name}}</span>\n            </a>\n          {{else}}\n            {{header.name}}\n          {{/if}}\n        </th>\n      {{/each}}\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{yield}}\n  </tbody>\n  */\n  {\n    \"id\": \"Kqok1v0p\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"headers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"th\\\"],[15,\\\"width\\\",[30,1,[\\\"width\\\"]]],[15,0,[29,[[52,[30,1,[\\\"sorted\\\"]],\\\"data-table__sorted-column-header\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"ascending\\\"]],\\\"data-table__sorted-column-header--ascending\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"key\\\"]],[[[1,\\\"          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,7],[[30,0],\\\"sortBy\\\",[30,1]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"header\\\",\\\"&default\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"if\\\",\\\"a\\\",\\\"action\\\",\\\"span\\\",\\\"tbody\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/active-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _activeTable.default,\n    tagName: 'table',\n    classNames: ['active-table', 'data-table'],\n    classNameBindings: ['sortable'],\n    data: [],\n    columns: [],\n    sortable: true,\n    headers: (0, _object.computed)('columns', 'sortedBy.0', function () {\n      const [sortedBy, sortDir] = (0, _object.get)(this, 'sortedBy.0').split(':');\n      const columns = (0, _object.get)(this, 'columns');\n      const columnCount = (0, _object.get)(columns, 'length');\n      const headers = [];\n      let totalUnits = 0;\n      let flexibleProportion = 1;\n      columns.forEach(column => {\n        if (column.width) {\n          totalUnits += column.width;\n        } else {\n          flexibleProportion -= 1 / columnCount;\n        }\n      });\n      columns.forEach(column => {\n        const header = _object.default.create({\n          name: column.name,\n          key: column.key\n        });\n        if (column.width && typeof column.width === 'number') {\n          (0, _object.set)(header, 'width', column.width / totalUnits * flexibleProportion * 100 + '%');\n        } else if (column.width && typeof column.width === 'string') {\n          (0, _object.set)(header, 'width', column.width);\n        } else {\n          (0, _object.set)(header, 'width', 1 / columnCount * 100 + '%');\n        }\n\n        // If the content is sorted by this column\n        if (sortedBy === (0, _object.get)(header, 'key')) {\n          (0, _object.set)(header, 'sorted', true);\n          (0, _object.set)(header, 'ascending', sortDir !== 'desc');\n        }\n        headers.push(header);\n      });\n      return headers;\n    }),\n    actions: {\n      sortBy: function (columnToSort) {\n        const toSortBy = (0, _object.get)(columnToSort, 'key');\n        const [sortedBy, sortDir] = (0, _object.get)(this, 'sortedBy.0').split(':');\n        if (sortedBy === toSortBy) {\n          // set sort order\n          const newDir = sortDir === 'desc' ? 'asc' : 'desc';\n          (0, _object.set)(this, 'sortedBy', [sortedBy + ':' + newDir]);\n\n          // nofity column\n          (0, _object.set)(columnToSort, 'sorted', true);\n          (0, _object.set)(columnToSort, 'ascending', newDir === 'asc');\n        } else {\n          // set sort order\n          (0, _object.set)(this, 'sortedBy', [toSortBy + ':asc']);\n\n          // set column meta\n          (0, _object.get)(this, 'headers').forEach(column => (0, _object.set)(column, 'sorted', false));\n          (0, _object.set)(columnToSort, 'sorted', true);\n          (0, _object.set)(columnToSort, 'ascending', true);\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/admin-mode\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='logged-in-as'>\n    <div class='logged-in-as__marquee'>\n      <div class='marquee'>\n        <p>\n          You're in admin mode\n          <FaIcon @icon='exclamation-circle' style='margin-left: 5px' />\n        </p>\n      </div>\n    </div>\n    <button\n      class='logged-in-as__return text-button'\n      type='button'\n      {{on 'click' this.sessionData.toggleAdminMode}}\n    >\n      Return\n      <FaIcon @icon='sign-out-alt' style='margin-left: 5px' />\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"t08KA0i8\",\n    \"block\": \"[[[10,0],[14,0,\\\"logged-in-as\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"logged-in-as__marquee\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"marquee\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        You're in admin mode\\\\n        \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"logged-in-as__return text-button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"sessionData\\\",\\\"toggleAdminMode\\\"]]],null],[12],[1,\\\"\\\\n    Return\\\\n    \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"sign-out-alt\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/admin-mode.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/allocation-hierarchy\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.firstPart}}\n    {{#if this.popupText}}\n      <LabelPopup @text={{this.popupText}}>\n        {{this.formattedPath}}\n      </LabelPopup>\n    {{else}}\n      {{this.formattedPath}}\n    {{/if}}\n  {{else}}\n    &mdash;\n  {{/if}}\n  */\n  {\n    \"id\": \"qLj7ZztT\",\n    \"block\": \"[[[41,[30,0,[\\\"firstPart\\\"]],[[[41,[30,0,[\\\"popupText\\\"]],[[[1,\\\"    \\\"],[8,[39,1],null,[[\\\"@text\\\"],[[30,0,[\\\"popupText\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"formattedPath\\\"]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[30,0,[\\\"formattedPath\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"  —\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"label-popup\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-hierarchy.hbs\",\n    \"isStrictMode\": false\n  });\n  class AllocationHierarchyComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"separator\", ' › ');\n    }\n    get maxPaths() {\n      return this.args.maxPaths ?? 3;\n    }\n    get allocations() {\n      return this.args.allocations ?? [];\n    }\n    get primaryAllocation() {\n      return this.allocations[0] ?? [];\n    }\n    get isMultiple() {\n      return this.allocations.length > 1;\n    }\n    get isEmpty() {\n      return this.allocations.length === 0;\n    }\n    get needsTitle() {\n      return this.isMultiple || this.primaryAllocation.length > this.maxPaths;\n    }\n    get firstPart() {\n      if (this.isEmpty) return undefined;\n      if (this.isMultiple) return `${this.allocations.length} projects`;\n      return this.primaryAllocation[0];\n    }\n    get middleParts() {\n      if (this.isMultiple || this.primaryAllocation.length <= 2) {\n        return undefined;\n      }\n      const paths = this.primaryAllocation.slice(1, -1);\n      if (paths.length > this.maxPaths - 2) {\n        return ['...'];\n      }\n      return paths;\n    }\n    get lastPart() {\n      if (this.isMultiple || this.primaryAllocation.length < 2) {\n        return undefined;\n      }\n      return this.primaryAllocation.at(-1);\n    }\n    get formattedPath() {\n      if (!this.firstPart) return undefined;\n      const parts = [this.firstPart];\n      if (this.middleParts) {\n        parts.push(...this.middleParts);\n      }\n      if (this.lastPart) {\n        parts.push(this.lastPart);\n      }\n      return parts.join(this.separator);\n    }\n    get popupText() {\n      if (this.isEmpty || !this.needsTitle) return undefined;\n      return this.allocations.map(path => path.join(this.separator)).join('\\n');\n    }\n  }\n  _exports.default = AllocationHierarchyComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AllocationHierarchyComponent);\n});","define(\"portal/components/allocation-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/tree-item\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _treeItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/tree-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @onClose={{@onCancel}}\n    @containerClass='bg-white border rounded'\n  >\n    <div class='d-flex bg-light border-bottom'>\n      <h2 class='h2 m-3'>\n        {{#if (gt this.numberOfInvoices 1)}}\n          {{t\n            'components.allocation-selector.allocatingItemsInXBills'\n            number=this.numberOfInvoices\n            item=(pluralize @items.length 'Item')\n          }}\n        {{else}}\n          {{t\n            'components.allocation-selector.allocatingItems'\n            item=(pluralize @items.length 'Item')\n          }}\n        {{/if}}\n      </h2>\n    </div>\n  \n    <div class='allocation-selector__list border-bottom'>\n      <ItemSelector\n        @items={{this.items}}\n        @selectedItem={{this.selectedItem}}\n        @onChange={{fn (mut this.selectedItem)}}\n        @nameKey='name'\n        @homeText={{t 'common.Projects'}}\n        @noItemsMessage={{t 'common.No tasks or projects'}}\n        @searchPlaceholder={{t 'common.Search for a task or project'}}\n        @noSearchItemsMessage={{t 'common.No tasks or projects found'}}\n      />\n    </div>\n  \n    {{#if @xeroIntegration.ready}}\n      <div\n        class='d-flex p-3 border-bottom'\n        data-test-overriding-account-content-div\n      >\n        <label class='p-2'>\n          <InfoPopup\n            @text={{if\n              this.isOverridingXeroAccount\n              (t\n                'components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount'\n              )\n            }}\n          />\n          &nbsp;&nbsp;{{t 'common.Xero account'}}:\n        </label>\n        {{#unless this.isOverridingXeroAccount}}\n          <div class='p-2'>\n            {{#if this.selectedItem.item.effectivePurchasesGlAccount}}\n              {{this.selectedItem.item.effectivePurchasesGlAccount.code}}\n              -\n              {{this.selectedItem.item.effectivePurchasesGlAccount.name}}\n            {{else}}\n              {{t 'components.allocation-selector.No default account'}}\n            {{/if}}\n          </div>\n        {{else}}\n          <PowerSelect\n            style='width: 300px;'\n            @options={{@xeroAccounts}}\n            @selected={{this.xeroAccountOverride}}\n            @onChange={{fn (mut this.xeroAccountOverride)}}\n            @disabled={{@isXeroFetching}}\n            @searchEnabled={{true}}\n            @searchField='searchField'\n            @placeholder={{t 'shared.bill.000 - Account'}}\n            @allowClear={{true}}\n            @afterOptionsComponent={{component\n              'power-select-after-options-button'\n              onClick=@onUpdateXeroAccounts\n              icon='sync'\n              text=(t 'shared.bill.Click to update Xero accounts')\n              isLoading=@isXeroFetching\n              loadingText=(t 'shared.bill.Loading Xero accounts')\n            }}\n            as |option|\n          >\n            {{option.code}}\n            -\n            {{option.name}}\n          </PowerSelect>\n        {{/unless}}\n  \n        <button\n          class='btn btn-link'\n          type='button'\n          data-test-overriding-account-button\n          {{on 'click' this.toggleIsOverridingXeroAccount}}\n        >\n          {{#if this.isOverridingXeroAccount}}\n            {{t 'components.allocation-selector.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'components.allocation-selector.Override account'}}\n          {{/if}}\n        </button>\n      </div>\n    {{/if}}\n  \n    {{#if @quickbooksIntegration.ready}}\n      <div\n        class='d-flex p-3 border-bottom'\n        data-test-overriding-account-content-div\n      >\n        <label class='p-2'>\n          <InfoPopup\n            @text={{if\n              this.isOverridingQuickbooksAccount\n              (t\n                'components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount'\n              )\n            }}\n          />\n          &nbsp;&nbsp;{{'QuickBooks Account'}}:\n        </label>\n        {{#unless this.isOverridingQuickbooksAccount}}\n          <div class='p-2'>\n            {{#if this.selectedItem.item.effectivePurchasesGlAccount}}\n              {{this.selectedItem.item.effectivePurchasesGlAccount.name}}\n            {{else}}\n              {{t 'components.allocation-selector.No default account'}}\n            {{/if}}\n          </div>\n        {{else}}\n          <PowerSelect\n            style='width: 300px;'\n            @options={{@quickbooksAccounts}}\n            @selected={{this.quickbooksAccountOverride}}\n            @onChange={{fn (mut this.quickbooksAccountOverride)}}\n            @disabled={{@isQuickbooksFetching}}\n            @keys='name'\n            @searchEnabled={{true}}\n            @placeholder={{t 'shared.bill.000 - Account'}}\n            @allowClear={{true}}\n            @afterOptionsComponent={{component\n              'power-select-after-options-button'\n              onClick=@onUpdateQuickbooksAccounts\n              icon='sync'\n              text='Click to update QuickBooks accounts'\n              isLoading=@isQuickbooksFetching\n              loadingText='Loading QuickBooks accounts'\n            }}\n            as |option|\n          >\n            {{option.name}}\n          </PowerSelect>\n        {{/unless}}\n  \n        <button\n          class='btn btn-link'\n          type='button'\n          data-test-overriding-account-button\n          {{on 'click' this.toggleIsOverridingQuickbooksAccount}}\n        >\n          {{#if this.isOverridingQuickbooksAccount}}\n            {{t 'components.allocation-selector.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'components.allocation-selector.Override account'}}\n          {{/if}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <div class='d-flex p-3 bg-light'>\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{@isAllocating}}\n          {{on 'click' (fn (mut this.selectedItem) null)}}\n        >{{t 'components.allocation-selector.Clear allocation'}}</button>\n      </div>\n  \n      <button\n        class='btn btn-secondary text-white me-2'\n        type='button'\n        {{on 'click' @onCancel}}\n      >{{t 'common.Cancel'}}</button>\n  \n      <DropdownButton\n        @buttonText={{t\n          'components.allocation-selector.allocatingItems'\n          item=(pluralize @items.length 'item')\n        }}\n        @onPrimaryClick={{(fn\n          @onAllocateSelected\n          this.selectedItem.item\n          (or this.xeroAccountOverride this.quickbooksAccountOverride)\n        )}}\n        @disabled={{@isAllocating}}\n      >\n        {{#unless @isAllocating}}\n          <div\n            role='button'\n            class='dropdown-item'\n            {{on\n              'click'\n              (fn\n                @onAllocateAndAcceptSelected\n                this.selectedItem.item\n                this.xeroAccountOverride\n              )\n            }}\n            data-test-accept-allocation-and-accept-button\n          >{{t 'common.Allocate'}}\n            &amp;\n            {{t 'components.allocation-selector.accept'}}</div>\n          {{#if @xeroIntegration.ready}}\n            <div\n              role='button'\n              class='dropdown-item'\n              {{on\n                'click'\n                (fn\n                  @onAllocateAcceptAndSendToXeroSelected\n                  this.selectedItem.item\n                  this.xeroAccountOverride\n                )\n              }}\n              data-test-accept-allocation-send-xero-button\n            >{{t 'common.Allocate'}},\n              {{t 'components.allocation-selector.accept'}}\n              &amp;\n              {{t 'components.allocation-selector.send to Xero'}}</div>\n          {{/if}}\n        {{else}}\n          <div\n            class='dropdown-item text-center'\n            data-test-accept-allocation-loading-button\n          >\n            <LoadingIcon @type='spinner' />\n          </div>\n        {{/unless}}\n      </DropdownButton>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"0aUvzoKO\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,[30,1],\\\"bg-white border rounded\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex bg-light border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 m-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"numberOfInvoices\\\"]],1],null],[[[1,\\\"        \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.allocatingItemsInXBills\\\"],[[\\\"number\\\",\\\"item\\\"],[[30,0,[\\\"numberOfInvoices\\\"]],[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"Item\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.allocatingItems\\\"],[[\\\"item\\\"],[[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"Item\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"allocation-selector__list border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@selectedItem\\\",\\\"@onChange\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\"],[[30,0,[\\\"items\\\"]],[30,0,[\\\"selectedItem\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"selectedItem\\\"]]],null]],null],\\\"name\\\",[28,[37,5],[\\\"common.Projects\\\"],null],[28,[37,5],[\\\"common.No tasks or projects\\\"],null],[28,[37,5],[\\\"common.Search for a task or project\\\"],null],[28,[37,5],[\\\"common.No tasks or projects found\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3,[\\\"ready\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex p-3 border-bottom\\\"],[14,\\\"data-test-overriding-account-content-div\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[52,[30,0,[\\\"isOverridingXeroAccount\\\"]],[28,[37,5],[\\\"components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Xero account\\\"],null]],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isOverridingXeroAccount\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"code\\\"]]],[1,\\\"\\\\n            -\\\\n            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.No default account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,13],[[24,5,\\\"width: 300px;\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,4],[30,0,[\\\"xeroAccountOverride\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[30,5],true,\\\"searchField\\\",[28,[37,5],[\\\"shared.bill.000 - Account\\\"],null],true,[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,6],\\\"sync\\\",[28,[37,5],[\\\"shared.bill.Click to update Xero accounts\\\"],null],[30,5],[28,[37,5],[\\\"shared.bill.Loading Xero accounts\\\"],null]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,7,[\\\"code\\\"]]],[1,\\\"\\\\n          -\\\\n          \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[7]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,\\\"data-test-overriding-account-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"toggleIsOverridingXeroAccount\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOverridingXeroAccount\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Override account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,8,[\\\"ready\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex p-3 border-bottom\\\"],[14,\\\"data-test-overriding-account-content-div\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[52,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]],[28,[37,5],[\\\"components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[1,\\\"QuickBooks Account\\\"],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.No default account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,13],[[24,5,\\\"width: 300px;\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@keys\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,9],[30,0,[\\\"quickbooksAccountOverride\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"quickbooksAccountOverride\\\"]]],null]],null],[30,10],\\\"name\\\",true,[28,[37,5],[\\\"shared.bill.000 - Account\\\"],null],true,[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,11],\\\"sync\\\",\\\"Click to update QuickBooks accounts\\\",[30,10],\\\"Loading QuickBooks accounts\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,12,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[12]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,\\\"data-test-overriding-account-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"toggleIsOverridingQuickbooksAccount\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Override account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex p-3 bg-light\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,13]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"selectedItem\\\"]]],null],null],null]],null],[12],[1,[28,[35,5],[\\\"components.allocation-selector.Clear allocation\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white me-2\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,18],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[[28,[37,5],[\\\"components.allocation-selector.allocatingItems\\\"],[[\\\"item\\\"],[[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"item\\\"],null]]]],[28,[37,8],[[30,14],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[28,[37,19],[[30,0,[\\\"xeroAccountOverride\\\"]],[30,0,[\\\"quickbooksAccountOverride\\\"]]],null]],null],[30,13]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,13]],[[[1,\\\"        \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"dropdown-item\\\"],[24,\\\"data-test-accept-allocation-and-accept-button\\\",\\\"\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[30,15],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"common.Allocate\\\"],null]],[1,\\\"\\\\n          &\\\\n          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.accept\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"ready\\\"]],[[[1,\\\"          \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"dropdown-item\\\"],[24,\\\"data-test-accept-allocation-send-xero-button\\\",\\\"\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[30,16],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"common.Allocate\\\"],null]],[1,\\\",\\\\n            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.accept\\\"],null]],[1,\\\"\\\\n            &\\\\n            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.send to Xero\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"dropdown-item text-center\\\"],[14,\\\"data-test-accept-allocation-loading-button\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,20],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onCancel\\\",\\\"@items\\\",\\\"@xeroIntegration\\\",\\\"@xeroAccounts\\\",\\\"@isXeroFetching\\\",\\\"@onUpdateXeroAccounts\\\",\\\"option\\\",\\\"@quickbooksIntegration\\\",\\\"@quickbooksAccounts\\\",\\\"@isQuickbooksFetching\\\",\\\"@onUpdateQuickbooksAccounts\\\",\\\"option\\\",\\\"@isAllocating\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h2\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"pluralize\\\",\\\"item-selector\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"info-popup\\\",\\\"unless\\\",\\\"power-select\\\",\\\"component\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"dropdown-button\\\",\\\"or\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"isOverridingXeroAccount\", _descriptor, this);\n      _initializerDefineProperty(this, \"isOverridingQuickbooksAccount\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroAccountOverride\", _descriptor3, this);\n      _initializerDefineProperty(this, \"quickbooksAccountOverride\", _descriptor4, this);\n      _initializerDefineProperty(this, \"items\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedItem\", _descriptor6, this);\n      this.items = _treeItem.default.constructItemTreeFromProjectAndTasks(this.args.tasks, this.args.projects);\n\n      // if all the items have exactly the same map automatically set the selected item\n      const tasks = new Set(this.args.items.map(item => item.belongsTo('task').value()).filter(t => t));\n      const projects = new Set(this.args.items.map(item => item.belongsTo('project').value()).filter(t => t));\n      // if we have more than one unique map we can't do anything\n      if (projects.size + tasks.size > 1) return;\n      if (projects.size === 1) {\n        // projects are always top level\n        this.selectedItem = this.items.find(i => i.item === projects.values().next().value);\n      }\n      if (tasks.size === 1) {\n        this.selectedItem = _treeItem.default.findItemInTree(this.items, tasks.values().next().value);\n      }\n    }\n    get numberOfInvoices() {\n      return this.args.items.mapBy('bill').uniqBy('id').length;\n    }\n    toggleIsOverridingXeroAccount() {\n      this.isOverridingXeroAccount = !this.isOverridingXeroAccount;\n      // we set this to null so our callbacks can be called with the override\n      this.xeroAccountOverride = null;\n    }\n    toggleIsOverridingQuickbooksAccount() {\n      this.isOverridingQuickbooksAccount = !this.isOverridingQuickbooksAccount;\n      // we set this to null so our callbacks can be called with the override\n      this.quickbooksAccountOverride = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isOverridingXeroAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isOverridingQuickbooksAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"xeroAccountOverride\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"quickbooksAccountOverride\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedItem\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleIsOverridingXeroAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsOverridingXeroAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsOverridingQuickbooksAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsOverridingQuickbooksAccount\"), _class.prototype), _class));\n});","define(\"portal/components/allocation-selector/bread-crumb\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isSelected}}\n    <span class='text-primary fw-bolder' data-test-allocation-selector-path>\n      {{yield}}\n    </span>\n  {{else}}\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' @onClick}}\n      data-test-allocation-selector-path\n    >\n      {{yield}}\n    </span>\n    <FaIcon @icon={{or @icon 'chevron-right'}} class='mx-2' />\n  {{/if}}\n  */\n  {\n    \"id\": \"wT0nWY5w\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,1],[14,0,\\\"text-primary fw-bolder\\\"],[14,\\\"data-test-allocation-selector-path\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-allocation-selector-path\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[[28,[37,5],[[30,3],\\\"chevron-right\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isSelected\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"yield\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-selector/bread-crumb.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/attachment-dropdown-list\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopOver @direction='bottom-left' as |po|>\n    <button\n      type='button'\n      class={{or @buttonClass 'btn btn-secondary text-white'}}\n    >\n      {{this.buttonText}}\n      &nbsp;&nbsp;<FaIcon @icon='paperclip' />\n    </button>\n    <po.Content>\n      {{#each @attachments as |attachment|}}\n        <div class='d-flex me-1'>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-6 m-1'\n            {{on 'click' (fn @onDownloadAttachment attachment)}}\n          >\n            <div class='d-flex align-items-center'>\n              <FileTypeIcon @mime={{attachment.fileType}} />\n              <span class='ms-2'>\n                {{ellipsis-characters attachment.filename 30}}\n              </span>\n            </div>\n          </button>\n          <button\n            type='button'\n            class='text-button'\n            {{on 'click' (fn @onDeleteAttachment attachment)}}\n          >\n            <FaIcon @icon='times' class='me-2' />\n          </button>\n        </div>\n      {{else}}\n        <div class='text-nowrap fs-6 text-center m-1'>\n          {{t 'shared.bill.No attachments'}}\n        </div>\n      {{/each}}\n  \n      {{#if @isDragAndDropVisible}}\n        <div class='d-flex justify-content-center'>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            style='min-width: 180px;'\n            {{on 'click' (fn (mut this.isAttachmentModalVisible) true)}}\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n              'components.attachment-dropdown-list.Add attachments'\n            }}\n          </button>\n        </div>\n      {{/if}}\n    </po.Content>\n  </PopOver>\n  \n  <AttachmentUploadModal\n    @visible={{this.isAttachmentModalVisible}}\n    @parent={{@parent}}\n    @onUploadComplete={{this.onAttachmentsUploadComplete}}\n    @isDragAndDropVisible={{@isDragAndDropVisible}}\n  />\n  */\n  {\n    \"id\": \"dNIHDMkz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"button\\\"],[15,0,[28,[37,2],[[30,2],\\\"btn btn-secondary text-white\\\"],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"buttonText\\\"]]],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"paperclip\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,3]],null]],null],null,[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex me-1\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-6 m-1\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,5],[30,4]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@mime\\\"],[[30,4,[\\\"fileType\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"ms-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[[30,4,[\\\"filename\\\"]],30],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,6],[30,4]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"text-nowrap fs-6 text-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"shared.bill.No attachments\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,5,\\\"min-width: 180px;\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,14],[[30,0,[\\\"isAttachmentModalVisible\\\"]]],null],true],null]],null],[12],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,12],[\\\"components.attachment-dropdown-list.Add attachments\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,15],null,[[\\\"@visible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"isAttachmentModalVisible\\\"]],[30,8],[30,0,[\\\"onAttachmentsUploadComplete\\\"]],[30,7]]],null]],[\\\"po\\\",\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"attachment\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\",\\\"@parent\\\"],false,[\\\"pop-over\\\",\\\"button\\\",\\\"or\\\",\\\"fa-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"file-type-icon\\\",\\\"span\\\",\\\"ellipsis-characters\\\",\\\"t\\\",\\\"if\\\",\\\"mut\\\",\\\"attachment-upload-modal\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isAttachmentModalVisible\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get buttonText() {\n      const attachment = this.args.attachments.length === 1 ? this.intl.t('shared.bill.attachment') : this.intl.t('shared.bill.attachments');\n      return this.args.attachments.length ? `${this.args.attachments.length} ${attachment}` : this.intl.t('shared.bill.No attachments');\n    }\n    onAttachmentsUploadComplete({\n      error,\n      validationErrors,\n      attachments\n    }) {\n      this.args.onUploadComplete({\n        error,\n        validationErrors,\n        attachments\n      });\n      this.isAttachmentModalVisible = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isAttachmentModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onAttachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAttachmentsUploadComplete\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-dropdown\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <OverlaidDropdown\n    @buttonText={{this.buttonText}}\n    @buttonIcon={{or this.buttonIcon 'paperclip'}}\n    @align={{or this.align 'right'}}\n    @buttonClasses={{or this.buttonClasses 'button'}}\n  ><div\n      class='attachment-dropdown__item-container'\n    >{{yield}}</div></OverlaidDropdown>\n  */\n  {\n    \"id\": \"2tSjms9o\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@buttonText\\\",\\\"@buttonIcon\\\",\\\"@align\\\",\\\"@buttonClasses\\\"],[[30,0,[\\\"buttonText\\\"]],[28,[37,1],[[30,0,[\\\"buttonIcon\\\"]],\\\"paperclip\\\"],null],[28,[37,1],[[30,0,[\\\"align\\\"]],\\\"right\\\"],null],[28,[37,1],[[30,0,[\\\"buttonClasses\\\"]],\\\"button\\\"],null]]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"attachment-dropdown__item-container\\\"],[12],[18,1,null],[13]],[]]]]]],[\\\"&default\\\"],false,[\\\"overlaid-dropdown\\\",\\\"or\\\",\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberOfAttachments\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get buttonText() {\n      const attachment = this.numberOfAttachments === 1 ? this.intl.t('shared.bill.attachment') : this.intl.t('shared.bill.attachments');\n      return this.numberOfAttachments ? `${this.numberOfAttachments} ${attachment}` : this.intl.t('shared.bill.No attachments');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberOfAttachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/attachment-dropdown/item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='attachment-dropdown__item'\n    {{on 'mouseleave' (fn (mut this.deleteConfirm) false)}}\n  >\n    {{#if this.onDownload}}\n      <div\n        class='attachment-dropdown__item-download-container'\n        title={{this.filename}}\n        {{on 'click' this.onDownload}}\n      >\n        <div class='attachment-dropdown__item-file-icon'>\n          <FileTypeIcon @mime={{this.mime}} />\n        </div>\n        <div class='attachment-dropdown__item-file-name'>\n          {{this.filename}}\n        </div>\n      </div>\n    {{/if}}\n    {{#if this.onDelete}}\n      <div class='attachment-dropdown__item-file-delete-button'>\n        {{#if this.isDeleting}}\n          <LoadingIcon @type='spinner' />\n        {{else}}\n          {{#if this.deleteConfirm}}\n            <button\n              type='button'\n              class='text-button text-button--delete'\n              {{on 'click' this._onDelete}}\n            >{{t 'common.Confirm'}} <FaIcon @icon='trash' /></button>\n          {{else}}\n            <button\n              type='button'\n              class='text-button'\n              {{on 'click' (fn (mut this.deleteConfirm) true)}}\n            >{{t 'common.Delete'}} <FaIcon @icon='trash' /></button>\n          {{/if}}\n        {{/if}}\n      </div>\n    {{/if}}\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"/+fbXtaJ\",\n    \"block\": \"[[[11,0],[24,0,\\\"attachment-dropdown__item\\\"],[4,[38,1],[\\\"mouseleave\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"deleteConfirm\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDownload\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"attachment-dropdown__item-download-container\\\"],[16,\\\"title\\\",[30,0,[\\\"filename\\\"]]],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onDownload\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-icon\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@mime\\\"],[[30,0,[\\\"mime\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-name\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"filename\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"onDelete\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-delete-button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"deleteConfirm\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"_onDelete\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Confirm\\\"],null]],[1,\\\" \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"deleteConfirm\\\"]]],null],true],null]],null],[12],[1,[28,[35,8],[\\\"common.Delete\\\"],null]],[1,\\\" \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"if\\\",\\\"file-type-icon\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n      _initializerDefineProperty(this, \"isDeleting\", _descriptor, this);\n      _initializerDefineProperty(this, \"deleteConfirm\", _descriptor2, this);\n    }\n    async _onDelete() {\n      try {\n        this.isDeleting = true;\n        await this.onDelete();\n      } finally {\n        this.isDeleting = false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDeleting\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"deleteConfirm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onDelete\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-manager\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/array\", \"@ember/object\", \"@ember/debug\", \"@glimmer/tracking\", \"portal/models/attachment\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _service, _array, _object, _debug, _tracking, _attachment, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _class2, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/array\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/config/environment\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.visible}}\n    <ModalDialog\n      @onClose={{fn (mut this.visible) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <div\n        id='attachment-manager__drop-zone'\n        {{on 'drop' this.onDropZoneDrop}}\n        {{on 'dragover' this.onDropZoneDragOver}}\n      >\n        {{#if this.fileContainers.length}}\n          <div class='attachment-manager__file-table-container'>\n            <table class='attachment-manager__file-table'>\n              <tbody>\n                {{#each this.fileContainers as |fc|}}\n                  <tr data-test-attachment-manager-attachment-row={{fc.hash}}>\n                    <td\n                      class='attachment-manager__file-table-file-name-cell'\n                    ><FileTypeIcon\n                        @mime={{fc.file.type}}\n                      />&nbsp;&nbsp;{{fc.file.name}}</td>\n                    <td class='attachment-manager__file-table-icon-cell'>\n                      {{#if fc.saved}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--success'\n                          data-test-attachment-manager-saved-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{t\n                              'components.attachment-manager.Attachment has been saved'\n                            }}\n                            @iconName='check'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                      {{#if fc.isInvalid}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--info'\n                          data-test-attachment-manager-invalid-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{fc.invalidMessage}}\n                            @iconName='exclamation-circle'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                      {{#if fc.hasErrored}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--error'\n                          data-test-attachment-manager-error-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{fc.errorMessage}}\n                            @iconName='exclamation-triangle'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                    </td>\n                    <td class='attachment-manager__file-table-icon-cell'>\n                      {{#if fc.isSaving}}\n                        <LoadingIcon @type='spinner' />\n                      {{else}}\n                        <button\n                          class='text-button'\n                          type='button'\n                          {{on 'click' (fn this.unstageFile fc)}}\n                          disabled={{this.isSaving}}\n                          data-test-attachment-manager-delete-container={{fc.hash}}\n                        ><FaIcon @icon='times' /></button>\n                      {{/if}}\n                    </td>\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n        {{/if}}\n  \n        <div class='attachment-manager__drop-zone-button'>\n          {{t 'shared.bill.Drag files here or'}}&nbsp;\n          <button\n            class='button button--add'\n            data-test-attachment-manager-browse-button=''\n            type='button'\n            {{on 'click' this.onManualUploadClick}}\n          >{{t 'shared.bill.Browse files'}}</button>\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button'\n          @isLoading={{this.isSaving}}\n          @action={{this.completeUpload}}\n          @buttonText={{t 'common.Upload files'}}\n          data-test-attachment-manager-upload-files\n        />\n        <button\n          class='button button--plain'\n          disabled={{this.isSaving}}\n          type='button'\n          {{on 'click' this.close}}\n        >{{t 'common.Close'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"kkRFVoiu\",\n    \"block\": \"[[[41,[30,0,[\\\"visible\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,2],[[28,[37,3],[[30,0,[\\\"visible\\\"]]],null],false],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,1,\\\"attachment-manager__drop-zone\\\"],[4,[38,5],[\\\"drop\\\",[30,0,[\\\"onDropZoneDrop\\\"]]],null],[4,[38,5],[\\\"dragover\\\",[30,0,[\\\"onDropZoneDragOver\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fileContainers\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"attachment-manager__file-table-container\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"attachment-manager__file-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"fileContainers\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[15,\\\"data-test-attachment-manager-attachment-row\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-file-name-cell\\\"],[12],[8,[39,12],null,[[\\\"@mime\\\"],[[30,1,[\\\"file\\\",\\\"type\\\"]]]],null],[1,\\\"  \\\"],[1,[30,1,[\\\"file\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-icon-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"saved\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--success\\\"],[15,\\\"data-test-attachment-manager-saved-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[28,[37,15],[\\\"components.attachment-manager.Attachment has been saved\\\"],null],\\\"check\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"isInvalid\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--info\\\"],[15,\\\"data-test-attachment-manager-invalid-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,1,[\\\"invalidMessage\\\"]],\\\"exclamation-circle\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasErrored\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--error\\\"],[15,\\\"data-test-attachment-manager-error-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,1,[\\\"errorMessage\\\"]],\\\"exclamation-triangle\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-icon-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isSaving\\\"]],[[[1,\\\"                      \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[16,\\\"data-test-attachment-manager-delete-container\\\",[30,1,[\\\"hash\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"unstageFile\\\"]],[30,1]],null]],null],[12],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-manager__drop-zone-button\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,15],[\\\"shared.bill.Drag files here or\\\"],null]],[1,\\\" \\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,\\\"data-test-attachment-manager-browse-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"onManualUploadClick\\\"]]],null],[12],[1,[28,[35,15],[\\\"shared.bill.Browse files\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],[[24,\\\"data-test-attachment-manager-upload-files\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button\\\",[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"completeUpload\\\"]],[28,[37,15],[\\\"common.Upload files\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"close\\\"]]],null],[12],[1,[28,[35,15],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"fc\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"on\\\",\\\"table\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"file-type-icon\\\",\\\"span\\\",\\\"info-popup\\\",\\\"t\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"footer\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-manager.hbs\",\n    \"isStrictMode\": false\n  });\n  let FileContainer = (_class = class FileContainer extends _object.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"file\", _descriptor, this);\n      _initializerDefineProperty(this, \"hash\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isSaving\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isInvalid\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasErrored\", _descriptor5, this);\n      _initializerDefineProperty(this, \"saved\", _descriptor6, this);\n      _initializerDefineProperty(this, \"invalidMessage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"errorMessage\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"file\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hash\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isInvalid\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasErrored\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"saved\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"invalidMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"errorMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor0, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor1, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor10, this);\n      _initializerDefineProperty(this, \"acceptedMimeTypes\", _descriptor11, this);\n      _initializerDefineProperty(this, \"visible\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor13, this);\n      _initializerDefineProperty(this, \"fileContainers\", _descriptor14, this);\n    }\n    init() {\n      super.init(...arguments);\n      (false && (0, _debug.warn)('You must supply a `toggleVisible` function prop', this.toggleVisible && typeof this.toggleVisible === 'function', {\n        id: 'attachment-manager.no-toggle-visible-prop'\n      }));\n      (false && (0, _debug.warn)('You must supply a `onUploadComplete` function prop', this.onUploadComplete && typeof this.onUploadComplete === 'function', {\n        id: 'attachment-manager.no-upload-complete-prop'\n      }));\n    }\n    get isSaving() {\n      return this.fileContainers.some(fc => fc.isSaving);\n    }\n    get existingAttachmentHashes() {\n      return this.attachments.map(att => att.hash);\n    }\n    get existingFileContainerHashes() {\n      return this.fileContainers.map(fc => fc.hash);\n    }\n    onDropZoneDragOver(event) {\n      // this function runs hundreds of times keep it fast\n      event.preventDefault();\n    }\n    async onDropZoneDrop(event) {\n      event.preventDefault();\n      let filesArray = [...event.dataTransfer.files];\n      // remove directories and not accepted file types\n      filesArray = filesArray.filter(file => this.isValidType(file));\n      // populate the hash for each file\n      let forUpload = await Promise.all(filesArray.map(async file => ({\n        file,\n        hash: await this.getFileHash(file)\n      })));\n      // discard duplicate files\n      forUpload = forUpload.filter(file => !this.fileAlreadyStaged(file.hash));\n      this.stageFiles(forUpload);\n    }\n    async onManualFileUpload(event) {\n      const filesArray = [...event.target.files];\n      // populate the hash for each file\n      let forUpload = await Promise.all(filesArray.map(async file => ({\n        file,\n        hash: await this.getFileHash(file)\n      })));\n      // discard duplicate files\n      forUpload = forUpload.filter(file => !this.fileAlreadyStaged(file.hash));\n      this.stageFiles(forUpload);\n    }\n    onManualUploadClick(event) {\n      if (event.target.files) {\n        // This is a testing override, since a file picker is hard to use in a test environment,\n        // the file refs are tacked on to the click event instead.\n        const fakeEvent = {\n          preventDefault: () => null,\n          dataTransfer: {\n            files: event.target.files\n          }\n        };\n        this.onDropZoneDrop(fakeEvent);\n        return;\n      }\n      const input = document.createElement('input');\n      input.type = 'file';\n      input.accept = this.acceptedMimeTypes.join(', ');\n      input.multiple = true;\n      input.onchange = this.onManualFileUpload;\n      input.click();\n    }\n    unstageFile(dfc) {\n      this.fileContainers.removeObject(dfc);\n    }\n    async stageFiles(files) {\n      files.forEach(({\n        file,\n        hash\n      }) => {\n        const fc = {\n          file,\n          hash\n        };\n        if (this.fileIsTooLarge(file.size)) {\n          fc.isInvalid = true;\n          fc.invalidMessage = this.intl.t('components.attachment-manager.fileIsLargerThan20MBAndWillNotBeUploaded');\n        } else if (this.filePreviouslyAttached(hash)) {\n          fc.isInvalid = true;\n          fc.invalidMessage = this.intl.t('components.attachment-manager.thisFileIsAlreadyAttachedAndWillNotBeUploaded');\n        }\n        return this.fileContainers.pushObject(FileContainer.create(fc));\n      });\n    }\n    async completeUpload() {\n      try {\n        const invalidFiles = this.fileContainers.filter(fc => fc.isInvalid);\n        const containersToSave = this.fileContainers.filter(fc => !fc.isInvalid && !fc.saved);\n        const attachmentResources = await Promise.all(containersToSave.map(fc => this.createAttachmentRecord(fc)));\n        const saved = attachmentResources.filter(r => !r.isNew);\n        this.onUploadComplete({\n          numberInvalid: invalidFiles.length,\n          numberOfFailures: containersToSave.length - saved.length,\n          savedRecords: saved.filter(r => !r.isNew)\n        });\n        if (saved.length === containersToSave.length) this.close();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error\n        });\n      }\n    }\n    close() {\n      this.fileContainers = (0, _array.A)([]);\n      this.toggleVisible();\n    }\n    async createAttachmentRecord(fc) {\n      fc.isSaving = true;\n      let attachmentRecord;\n      try {\n        attachmentRecord = await _attachment.default.fromFileInput(fc.file, this.store, this.sessionData.entity);\n        await attachmentRecord.save({\n          adapterOptions: {\n            meta: {\n              data: attachmentRecord.data\n            }\n          }\n        });\n        fc.saved = true;\n      } catch (error) {\n        fc.hasErrored = true;\n        fc.errorMessage = this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments');\n        this.notifications.error({\n          error,\n          message: this.intl.t('components.attachment-manager.Error saving attachment')\n        });\n      } finally {\n        fc.isSaving = false;\n        return attachmentRecord;\n      }\n    }\n    isValidType(file) {\n      // directories and files without types are not allowed\n      if (!file.type) return false;\n      // No mime types specified means allow all types\n      if (!this.acceptedMimeTypes) return true;\n      return this.acceptedMimeTypes.some(acceptedMime => (0, _attachment.isMimeSame)(acceptedMime, file.type));\n    }\n    async getFileHash(file) {\n      const buffer = await file.arrayBuffer();\n      let hash;\n      if (crypto?.subtle?.digest || _environment.default.environment !== 'test') {\n        const hashBuffer = await crypto.subtle.digest('SHA-1', buffer);\n        const hashArray = Array.from(new Uint8Array(hashBuffer));\n        hash = hashArray.map(b => b.toString(16).padStart(2, '0')).join('');\n      } else {\n        hash = window.fileHashes[file.name];\n      }\n      return hash;\n    }\n    fileIsTooLarge(size) {\n      // 30MB is current server limit\n      // Base64 encoding increases size by ~33% https://developer.mozilla.org/en-US/docs/Glossary/Base64\n      return size > 2e7; // 20MB\n    }\n    filePreviouslyAttached(hash) {\n      return this.existingAttachmentHashes.includes(hash);\n    }\n    fileAlreadyStaged(hash) {\n      return this.existingFileContainerHashes.includes(hash);\n    }\n  }, _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"acceptedMimeTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"visible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"fileContainers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onDropZoneDragOver\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDropZoneDragOver\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDropZoneDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDropZoneDrop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onManualFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onManualFileUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onManualUploadClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onManualUploadClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unstageFile\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"unstageFile\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"completeUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"completeUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"close\"), _class2.prototype), _class2));\n});","define(\"portal/components/attachment-preview\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isPdf}}\n    <iframe\n      class='w-100 h-100 flex-grow-1 border-0'\n      title={{@attachment.filename}}\n      src={{@attachment.previewHref}}\n    >\n    </iframe>\n  {{else if this.isImage}}\n    <div\n      class='w-100 h-100 flex-grow-1 border rounded d-flex align-items-center justify-content-center overflow-auto'\n    >\n      <img\n        class='mw-100 mh-100 object-fit-contain'\n        alt={{@attachment.filename}}\n        src={{@attachment.previewHref}}\n      />\n    </div>\n  {{else}}\n    <div\n      class='d-flex flex-column align-items-center justify-content-center border rounded flex-grow-1'\n    >\n      <div>{{t 'components.bill-editor.Can not preview this file'}}</div>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"/LNCdOgV\",\n    \"block\": \"[[[41,[30,0,[\\\"isPdf\\\"]],[[[1,\\\"  \\\"],[10,\\\"iframe\\\"],[14,0,\\\"w-100 h-100 flex-grow-1 border-0\\\"],[15,\\\"title\\\",[30,1,[\\\"filename\\\"]]],[15,\\\"src\\\",[30,1,[\\\"previewHref\\\"]]],[12],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isImage\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"w-100 h-100 flex-grow-1 border rounded d-flex align-items-center justify-content-center overflow-auto\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"img\\\"],[14,0,\\\"mw-100 mh-100 object-fit-contain\\\"],[15,\\\"alt\\\",[30,1,[\\\"filename\\\"]]],[15,\\\"src\\\",[30,1,[\\\"previewHref\\\"]]],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-column align-items-center justify-content-center border rounded flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[12],[1,[28,[35,4],[\\\"components.bill-editor.Can not preview this file\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"@attachment\\\"],false,[\\\"if\\\",\\\"iframe\\\",\\\"div\\\",\\\"img\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-preview.hbs\",\n    \"isStrictMode\": false\n  });\n  class AttachmentPreviewComponent extends _component2.default {\n    get fileType() {\n      return this.args.attachment?.fileType;\n    }\n    get isPdf() {\n      return this.fileType === 'application/pdf';\n    }\n    get isImage() {\n      return this.fileType?.startsWith('image/');\n    }\n  }\n  _exports.default = AttachmentPreviewComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AttachmentPreviewComponent);\n});","define(\"portal/components/attachment-settings-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _lodash, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @onClose={{@onCloseAction}}\n    @overlayClass='modal'\n    @containerClass='block-module attachment-settings-modal__container'\n  >\n    {{#if this.initChangeset.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <form data-test-new-project-form>\n        <header>\n          <h3 class='text-truncate'>{{@attachment.filename}}</h3>\n        </header>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Name'}}\n          @key='filename'\n          @model={{this.attachmentChangeSet}}\n          disabled={{not this.isEditable}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.attachmentChangeSet}}\n          disabled={{not this.isEditable}}\n        />\n  \n        {{#if this.canManageUsers}}\n          <PtlInput\n            @type='powerSelectMultiple'\n            @label={{t 'common.Shared with'}}\n            @key='users'\n            @optionKeys={{array 'fullName'}}\n            @searchField='name'\n            @options={{@users}}\n            @model={{this.permissionChangeSet}}\n            @forceValidationVisible={{gt this.saveAttachment.performCount 0}}\n            @disabled={{this.saveAttachment.isRunning}}\n          />\n          {{#if this.showClientVisibleButton}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'components.attachment-settings-modal.Visible to project clients'\n              }}\n              @key='clientsCanViewFileStorage'\n              @model={{this.permissionChangeSet}}\n              disabled={{this.saveAttachment.isRunning}}\n            />\n          {{/if}}\n        {{/if}}\n  \n        <footer class='block-module__footer'>\n          {{#if this.isEditable}}\n            <button\n              class='btn btn-link text-danger text-decoration-underline'\n              type='button'\n              disabled={{or\n                this.saveAttachment.isRunning\n                this.onDeletingAttachment.isRunning\n              }}\n              {{on 'click' (perform this.onDeletingAttachment)}}\n            >\n              {{#if this.onDeletingAttachment.isRunning}}\n                &nbsp;&nbsp;{{t 'common.Deleting'}}…\n              {{else}}\n                {{t 'common.Delete attachment'}}\n              {{/if}}\n            </button>\n          {{/if}}\n          <div class='float-end d-flex align-items-center'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              data-test-new-project-close-button\n              disabled={{or\n                this.saveAttachment.isRunning\n                this.onDeletingAttachment.isRunning\n              }}\n              {{on 'click' @onCloseAction}}\n            >{{if\n                this.isEditable\n                (t 'common.Cancel')\n                (t 'common.Close')\n              }}</button>\n            {{#if this.isEditable}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{or\n                  this.saveAttachment.isRunning\n                  this.onDeletingAttachment.isRunning\n                }}\n                {{on 'click' (perform this.saveAttachment)}}\n              >\n                {{#if this.saveAttachment.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n                {{else}}\n                  {{t 'common.Save'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        </footer>\n      </form>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"FuBUqjBY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[true,[30,1],\\\"modal\\\",\\\"block-module attachment-settings-modal__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"initChangeset\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-project-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-truncate\\\"],[12],[1,[30,2,[\\\"filename\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"text\\\",[28,[37,8],[\\\"common.Name\\\"],null],\\\"filename\\\",[30,0,[\\\"attachmentChangeSet\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"text\\\",[28,[37,8],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"attachmentChangeSet\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageUsers\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@searchField\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,8],[\\\"common.Shared with\\\"],null],\\\"users\\\",[28,[37,9],[\\\"fullName\\\"],null],\\\"name\\\",[30,3],[30,0,[\\\"permissionChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"saveAttachment\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showClientVisibleButton\\\"]],[[[1,\\\"          \\\"],[8,[39,6],[[16,\\\"disabled\\\",[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,8],[\\\"components.attachment-settings-modal.Visible to project clients\\\"],null],\\\"clientsCanViewFileStorage\\\",[30,0,[\\\"permissionChangeSet\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"onDeletingAttachment\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Delete attachment\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-project-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,1]],null],[12],[1,[52,[30,0,[\\\"isEditable\\\"]],[28,[37,8],[\\\"common.Cancel\\\"],null],[28,[37,8],[\\\"common.Close\\\"],null]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"saveAttachment\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,8],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"@onCloseAction\\\",\\\"@attachment\\\",\\\"@users\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"form\\\",\\\"header\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"not\\\",\\\"t\\\",\\\"array\\\",\\\"gt\\\",\\\"footer\\\",\\\"button\\\",\\\"or\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-settings-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"attachmentChangeSet\", _descriptor, this);\n      _initializerDefineProperty(this, \"permissionChangeSet\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _defineProperty(this, \"validateName\", newValue => {\n        const filename = newValue;\n        return filename && filename.length > 0 || this.intl.t('validation.Please provide a file name');\n      });\n      _defineProperty(this, \"taskValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'filename':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"userAttachmentPermission\", ['canViewFileStorage']);\n      _defineProperty(this, \"attachmentProjectPermission\", ['clientsCanViewFileStorage']);\n      _defineProperty(this, \"initChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.canManageUsers) {\n            yield Promise.all([this.getUserPermissionSet.perform(), this.getAttachmentPermissionSet.perform()]);\n            yield this.initPermissionChangeset.perform();\n          }\n          this.attachmentChangeSet = (0, _emberChangeset.Changeset)(this.args.attachment, this.taskValidator, this.validationMap);\n        }\n      }), null, \"initChangeset\", null));\n      _defineProperty(this, \"getUserPermissionSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('user-attribute', {\n            _id: {\n              $in: this.userAttachmentPermission\n            }\n          });\n          return attributes.toArray().reduce((acc, a) => ({\n            ...acc,\n            [a.id]: a\n          }), {});\n        }\n      }), null, \"getUserPermissionSet\", null));\n      _defineProperty(this, \"getAttachmentPermissionSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('attachment-attribute', {\n            _id: {\n              $in: this.attachmentProjectPermission\n            }\n          });\n          return attributes.toArray().reduce((acc, a) => ({\n            ...acc,\n            [a.id]: a\n          }), {});\n        }\n      }), null, \"getAttachmentPermissionSet\", null));\n      _defineProperty(this, \"initPermissionChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.getExistUserPermissions.perform();\n          const users = this.getExistUserPermissions.last.value.map(at => at.belongsTo('user').value());\n          yield this.getExistCanViewFilePermission.perform();\n          this.permissionChangeSet = (0, _emberChangeset.Changeset)({\n            users,\n            clientsCanViewFileStorage: this.getExistCanViewFilePermission.last.value.length > 0\n          });\n        }\n      }), null, \"initPermissionChangeset\", null));\n      _defineProperty(this, \"getExistUserPermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('user-attachment-attribute', {\n            entity: this.sessionData.entity.id,\n            attachment: this.args.attachment.id\n          }, {\n            include: 'user'\n          });\n          return attributes;\n        }\n      }), null, \"getExistUserPermissions\", null));\n      _defineProperty(this, \"getExistCanViewFilePermission\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('attachment-project-attribute', {\n            attachment: this.args.attachment.id,\n            attribute: this.getAttachmentPermissionSet.last.value.clientsCanViewFileStorage.id\n          });\n          return attributes;\n        }\n      }), null, \"getExistCanViewFilePermission\", null));\n      _defineProperty(this, \"saveAttachment\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.attachmentChangeSet.validate();\n          if (this.attachmentChangeSet.isInvalid) return;\n          try {\n            yield this.attachmentChangeSet.save();\n            if (this.canManageUsers) {\n              yield Promise.all([this.saveUserAttachmentPermission.perform(), this.saveClientCanViewAttachmentPermission.perform()]);\n            }\n            this.notifications.success(this.intl.t('components.attachment-settings-modal.Successfully saved attachment settings'));\n            this.args.onCloseAction();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.attachment-settings-modal.somethingWentWrongWhileSavingAttachmentSettings'),\n              error\n            });\n          }\n        }\n      }), null, \"saveAttachment\", null));\n      _defineProperty(this, \"saveClientCanViewAttachmentPermission\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          // make sure current state saved.\n          this.permissionChangeSet.execute();\n          yield this.getExistCanViewFilePermission.perform();\n          // get the up to date value\n          const existCanViewFilePermission = this.getExistCanViewFilePermission.last.value;\n          const originalState = existCanViewFilePermission.length > 0;\n          const currentState = this.permissionChangeSet.clientsCanViewFileStorage;\n          if (originalState !== currentState) {\n            if (currentState) {\n              yield this.store.createRecord('attachment-project-attribute', {\n                entity: this.args.attachment.belongsTo('entity').value(),\n                attachment: this.args.attachment,\n                project: this.args.project,\n                attribute: this.getAttachmentPermissionSet.last.value.clientsCanViewFileStorage\n              }).save();\n            } else {\n              yield existCanViewFilePermission.map(attr => attr.destroyRecord());\n            }\n          }\n        }\n      }), null, \"saveClientCanViewAttachmentPermission\", null));\n      _defineProperty(this, \"onDeletingAttachment\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!confirm(this.intl.t('components.attachment-settings-modal.Do you want to delete this attachment'))) return;\n          const linkAttachmentsToParent = this.args.parent.hasMany('attachments').value();\n          const linkRecord = linkAttachmentsToParent.find(item => item.belongsTo('attachment').id() === this.args.attachment.id);\n\n          // first we need to delete the link record\n          yield linkRecord.destroyRecord();\n\n          //after delete actual attachment record\n          yield this.args.attachment.destroyRecord();\n          this.args.onCloseAction(true);\n        }\n      }), null, \"onDeletingAttachment\", null));\n      _defineProperty(this, \"saveUserAttachmentPermission\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const originalAttributes = this.getExistUserPermissions.last.value;\n          const originalSelectedUsers = originalAttributes.map(at => at.belongsTo('user').value());\n          const selectedUsers = this.permissionChangeSet.users;\n          const removeUsers = _lodash.default.difference(originalSelectedUsers, selectedUsers);\n          let attrToRemove = [];\n          if (removeUsers.length) {\n            attrToRemove = originalAttributes.filter(oa => removeUsers.includes(oa.belongsTo('user').value()));\n          }\n          const addUsers = _lodash.default.difference(selectedUsers, originalSelectedUsers);\n          let attrToAdd = [];\n          if (addUsers.length) {\n            attrToAdd = addUsers.map(u => this.store.createRecord('user-attachment-attribute', {\n              user: u,\n              attachment: this.args.attachment,\n              entity: this.args.attachment.belongsTo('entity').value(),\n              attribute: this.getUserPermissionSet.last.value.canViewFileStorage\n            }));\n          }\n          yield Promise.all([attrToRemove.map(attr => attr.destroyRecord()), attrToAdd.map(attr => attr.save())]);\n        }\n      }), null, \"saveUserAttachmentPermission\", null));\n      this.initChangeset.perform();\n    }\n    get showClientVisibleButton() {\n      return !this.args.attachment.hasMany('entities').ids().length;\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.parent, 'canManageFileStorage');\n    }\n    get canManageUsers() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.parent, 'canManageUsers');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"attachmentChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"permissionChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/attachment-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex flex-column'>\n    {{#each @attachments as |attachment|}}\n      <div class='d-flex align-items-center attachment-table__attachment-row'>\n        <div class='d-flex flex-grow-1 align-items-center'>\n          <div class='me-3'>\n            <FileTypeIcon @mime={{attachment.fileType}} @size='2x' />\n          </div>\n  \n          <div class='d-flex flex-column align-items-start'>\n            <button\n              type='button'\n              class='fs-5 btn btn-link m-0 p-0'\n              {{on 'click' (fn this.setAttachmentToUpdate attachment)}}\n            >{{attachment.filename}}</button>\n            <div class='text-dark fs-6'>\n              {{attachment.description}}\n            </div>\n            <div class='text-muted fs-6'>\n              {{date-ago attachment.dateCreated}},\n              {{file-size-to-string attachment.size true}}\n            </div>\n          </div>\n        </div>\n  \n        <div class='d-flex align-items-center'>\n          <a\n            target='_blank'\n            href={{attachment.href}}\n            rel='noopener noreferrer'\n            class='btn btn-link'\n          ><FaIcon @icon='download' @size='md' /></a>\n        </div>\n      </div>\n    {{else}}\n      <p class='text-center'>\n        {{t 'common.No documents'}}\n      </p>\n    {{/each}}\n  </div>\n  \n  {{#if this.attachmentToUpdate}}\n    <AttachmentSettingsModal\n      @parent={{@parent}}\n      @project={{@project}}\n      @attachment={{this.attachmentToUpdate}}\n      @users={{@users}}\n      @onCloseAction={{fn (mut this.attachmentToUpdate) null}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"Vsg9dAVP\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center attachment-table__attachment-row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"me-3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,3],null,[[\\\"@mime\\\",\\\"@size\\\"],[[30,2,[\\\"fileType\\\"]],\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column align-items-start\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"fs-5 btn btn-link m-0 p-0\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"setAttachmentToUpdate\\\"]],[30,2]],null]],null],[12],[1,[30,2,[\\\"filename\\\"]]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-dark fs-6\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-muted fs-6\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[[30,2,[\\\"dateCreated\\\"]]],null]],[1,\\\",\\\\n            \\\"],[1,[28,[35,8],[[30,2,[\\\"size\\\"]],true],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[30,2,[\\\"href\\\"]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-link\\\"],[12],[8,[39,10],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"download\\\",\\\"md\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,12],[\\\"common.No documents\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"attachmentToUpdate\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@parent\\\",\\\"@project\\\",\\\"@attachment\\\",\\\"@users\\\",\\\"@onCloseAction\\\"],[[30,3],[30,4],[30,0,[\\\"attachmentToUpdate\\\"]],[30,5],[28,[37,6],[[28,[37,15],[[30,0,[\\\"attachmentToUpdate\\\"]]],null],null],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@attachments\\\",\\\"attachment\\\",\\\"@parent\\\",\\\"@project\\\",\\\"@users\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"file-type-icon\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"date-ago\\\",\\\"file-size-to-string\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"p\\\",\\\"t\\\",\\\"if\\\",\\\"attachment-settings-modal\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachmentToDelete\", _descriptor, this);\n      _initializerDefineProperty(this, \"attachmentToUpdate\", _descriptor2, this);\n    }\n    setAttachmentToUpdate(attachment, event) {\n      event.preventDefault();\n      this.attachmentToUpdate = attachment;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"attachmentToDelete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"attachmentToUpdate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setAttachmentToUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setAttachmentToUpdate\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-upload-modal\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @visible}}\n    <ModalDialog\n      @onClose={{fn (mut @visible) false}}\n      @translucentOverlay='true'\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <div class='card width--large'>\n        <DragAndDropContainer\n          @parent={{@parent}}\n          @onUploadComplete={{@onUploadComplete}}\n          @isDragAndDropVisible={{@isDragAndDropVisible}}\n        />\n      </div>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if @onUploadComplete.isRunning}}\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.uploading'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{@onUploadComplete.isRunning}}\n              {{on 'click' (fn (mut @visible) false)}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"CbvDEYih\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,2],[[28,[37,3],[[30,1]],null],false],null],\\\"true\\\",\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card width--large\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,2],[30,3],[30,4]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.uploading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,3,[\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,1]],null],false],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@visible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"drag-and-drop-container\\\",\\\"footer\\\",\\\"button\\\",\\\"span\\\",\\\"t\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-upload-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/attachments-popover\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopOver\n    @direction={{this.direction}}\n    @fixed={{true}}\n    @disableBlur={{true}}\n    @disabled={{@disabled}}\n    class={{if this.forceVisible 'pop-over__container--force-visible'}}\n    {{on 'click' this.open}}\n    {{did-insert this.setupListeners}}\n    {{will-destroy this.teardownListeners}}\n    ...attributes\n    as |po|\n  >\n    <button\n      type='button'\n      class='btn btn-secondary text-white text-nowrap d-inline-flex align-items-center justify-content-between gap-2'\n      disabled={{@disabled}}\n    >\n      <span class='d-inline-flex align-items-center gap-2 text-nowrap'>\n        <FaIcon @icon='file-alt' />\n        <span>{{this.buttonText}}</span>\n      </span>\n      <FaIcon @icon='caret-down' />\n    </button>\n  \n    <po.Content class='p-0'>\n      <div class='d-flex flex-column gap-3 p-3' style='max-width: 90vw;'>\n        <div class='fs-6 fw-semibold'>{{t\n            'components.attachments-popover.Attach files'\n          }}</div>\n  \n        <DragAndDropContainer\n          @onUploadComplete={{@onUploadComplete}}\n          @isDragAndDropVisible={{true}}\n        />\n  \n        <div class='list-group overflow-auto' style='max-height: 20rem;'>\n          {{#each this.attachments as |attachment|}}\n            <div\n              class='list-group-item d-flex align-items-center gap-3 px-3 py-3'\n            >\n              <div\n                class='d-flex align-items-center gap-3 flex-grow-1 overflow-hidden'\n              >\n                <div\n                  class='d-flex justify-content-center flex-shrink-0'\n                  style='width: 1.5rem;'\n                >\n                  <FileTypeIcon @mime={{attachment.fileType}} @size='lg' />\n                </div>\n  \n                <div class='flex-grow-1 overflow-hidden'>\n                  <div\n                    class='d-block text-truncate fw-semibold'\n                    title={{attachment.filename}}\n                  >\n                    {{ellipsis-characters attachment.filename 30}}\n                  </div>\n                  <div class='small text-muted'>\n                    {{if\n                      (or attachment.size (eq attachment.size 0))\n                      (file-size-to-string attachment.size true)\n                      (t 'components.attachments-popover.File size unavailable')\n                    }}\n                  </div>\n                </div>\n              </div>\n  \n              <div class='d-flex align-items-center gap-3 flex-shrink-0'>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-none fw-semibold p-0 text-nowrap'\n                  {{on 'click' (fn @onViewAttachment attachment)}}\n                >\n                  {{t 'common.View'}}\n                </button>\n  \n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-none p-0 lh-1'\n                  aria-label={{t 'common.Delete attachment'}}\n                  {{on 'click' (fn @onDeleteAttachment attachment)}}\n                >\n                  <FaIcon @icon='trash' />\n                </button>\n              </div>\n            </div>\n          {{else}}\n            <div class='list-group-item py-4 text-center text-muted'>\n              {{t 'components.attachments-popover.No attachments'}}\n            </div>\n          {{/each}}\n        </div>\n      </div>\n    </po.Content>\n  </PopOver>\n  */\n  {\n    \"id\": \"KQj3LmbV\",\n    \"block\": \"[[[8,[39,0],[[16,0,[52,[30,0,[\\\"forceVisible\\\"]],\\\"pop-over__container--force-visible\\\"]],[17,1],[4,[38,2],[\\\"click\\\",[30,0,[\\\"open\\\"]]],null],[4,[38,3],[[30,0,[\\\"setupListeners\\\"]]],null],[4,[38,4],[[30,0,[\\\"teardownListeners\\\"]]],null]],[[\\\"@direction\\\",\\\"@fixed\\\",\\\"@disableBlur\\\",\\\"@disabled\\\"],[[30,0,[\\\"direction\\\"]],true,true,[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white text-nowrap d-inline-flex align-items-center justify-content-between gap-2\\\"],[15,\\\"disabled\\\",[30,2]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"d-inline-flex align-items-center gap-2 text-nowrap\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"file-alt\\\"]],null],[1,\\\"\\\\n      \\\"],[10,1],[12],[1,[30,0,[\\\"buttonText\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,3,[\\\"Content\\\"]],[[24,0,\\\"p-0\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-column gap-3 p-3\\\"],[14,5,\\\"max-width: 90vw;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"fs-6 fw-semibold\\\"],[12],[1,[28,[35,9],[\\\"components.attachments-popover.Attach files\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,10],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,4],true]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"list-group overflow-auto\\\"],[14,5,\\\"max-height: 20rem;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"attachments\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"list-group-item d-flex align-items-center gap-3 px-3 py-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 flex-grow-1 overflow-hidden\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"d-flex justify-content-center flex-shrink-0\\\"],[14,5,\\\"width: 1.5rem;\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,13],null,[[\\\"@mime\\\",\\\"@size\\\"],[[30,5,[\\\"fileType\\\"]],\\\"lg\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex-grow-1 overflow-hidden\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"d-block text-truncate fw-semibold\\\"],[15,\\\"title\\\",[30,5,[\\\"filename\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,5,[\\\"filename\\\"]],30],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"small text-muted\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[52,[28,[37,15],[[30,5,[\\\"size\\\"]],[28,[37,16],[[30,5,[\\\"size\\\"]],0],null]],null],[28,[37,17],[[30,5,[\\\"size\\\"]],true],null],[28,[37,9],[\\\"components.attachments-popover.File size unavailable\\\"],null]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 flex-shrink-0\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-none fw-semibold p-0 text-nowrap\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,18],[[30,6],[30,5]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,9],[\\\"common.View\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-none p-0 lh-1\\\"],[16,\\\"aria-label\\\",[28,[37,9],[\\\"common.Delete attachment\\\"],null]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,18],[[30,7],[30,5]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"list-group-item py-4 text-center text-muted\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"components.attachments-popover.No attachments\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[3]]]]]],[\\\"&attrs\\\",\\\"@disabled\\\",\\\"po\\\",\\\"@onUploadComplete\\\",\\\"attachment\\\",\\\"@onViewAttachment\\\",\\\"@onDeleteAttachment\\\"],false,[\\\"pop-over\\\",\\\"if\\\",\\\"on\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"button\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"t\\\",\\\"drag-and-drop-container\\\",\\\"each\\\",\\\"-track-array\\\",\\\"file-type-icon\\\",\\\"ellipsis-characters\\\",\\\"or\\\",\\\"eq\\\",\\\"file-size-to-string\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/attachments-popover.hbs\",\n    \"isStrictMode\": false\n  });\n  let AttachmentsPopoverComponent = _exports.default = (_class = class AttachmentsPopoverComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"media\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isDraggingFiles\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isOpen\", _descriptor4, this);\n      _defineProperty(this, \"element\", null);\n      _defineProperty(this, \"dragHandler\", null);\n      _defineProperty(this, \"dragEndHandler\", null);\n      _defineProperty(this, \"clickHandler\", null);\n    }\n    get attachments() {\n      return this.args.attachments || [];\n    }\n    get buttonText() {\n      return this.args.buttonText || `${this.intl.t('common.Attachments')} (${this.attachments.length})`;\n    }\n    get direction() {\n      if (this.media.isDesktop) {\n        return 'bottom-left';\n      } else {\n        return 'bottom-right';\n      }\n    }\n    get forceVisible() {\n      return this.isOpen || this.isDraggingFiles;\n    }\n    open() {\n      this.isOpen = true;\n    }\n    setupListeners(element) {\n      this.element = element;\n      this.dragHandler = event => {\n        if (event.dataTransfer?.types?.includes('Files')) {\n          this.isDraggingFiles = true;\n          this.isOpen = true;\n        }\n      };\n      this.dragEndHandler = () => {\n        this.isDraggingFiles = false;\n      };\n      this.clickHandler = event => {\n        if (!this.element.contains(event.target)) {\n          this.isOpen = false;\n        }\n      };\n      window.addEventListener('dragenter', this.dragHandler);\n      window.addEventListener('dragover', this.dragHandler);\n      window.addEventListener('drop', this.dragEndHandler);\n      window.addEventListener('dragend', this.dragEndHandler);\n      window.addEventListener('mousedown', this.clickHandler);\n    }\n    teardownListeners() {\n      window.removeEventListener('dragenter', this.dragHandler);\n      window.removeEventListener('dragover', this.dragHandler);\n      window.removeEventListener('drop', this.dragEndHandler);\n      window.removeEventListener('dragend', this.dragEndHandler);\n      window.removeEventListener('mousedown', this.clickHandler);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDraggingFiles\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"open\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"open\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupListeners\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupListeners\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"teardownListeners\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"teardownListeners\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AttachmentsPopoverComponent);\n});","define(\"portal/components/auto-mapping/directive-pm\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{!\n    This component is a template sentence with two inputs.\n    The second input could be a select box, if the directive is account based,\n    or a text input, if the directive is a reference based.\n  }}\n  \n  <div\n    class='directive__segment directive__segment--left'\n    data-test-sentence-fragment=''\n  >\n    {{t 'components.auto-mapping.directive-pm.Auto map bills to the project'}}\n  </div>\n  \n  <SelectInput\n    @class={{concat\n      'select-box directive__segment directive__segment--left'\n      (unless this.directive.project.id ' invalid')\n    }}\n    @value={{this.directive.project.id}}\n    @action={{action 'switchProject'}}\n    data-test-project-select={{if this.directive.isNew 'new' this.directive.id}}\n    as |si|\n  >\n    <si.option @value={{null}}>{{t 'common.Select a project'}}</si.option>\n  \n    {{#each this.projectOptions as |project|}}\n      <si.option @value={{project.id}}>{{project.name}}</si.option>\n    {{/each}}\n  </SelectInput>\n  \n  {{#if (eq this.directive.kind 'account')}}\n    <div\n      class='directive__segment directive__segment--left'\n      data-test-sentence-fragment=''\n    >\n      {{t\n        'components.auto-mapping.directive-pm.whenTheyAreBilledToTheMerchantAccount'\n      }}\n    </div>\n  \n    <SelectInput\n      @class={{concat\n        'select-box directive__segment directive__segment--left'\n        (unless this.directive.value ' invalid')\n      }}\n      @value={{this.directive.value}}\n      @action={{fn (mut this.directive.value)}}\n      data-test-account-select={{if this.directive.isNew 'new' this.directive.id}}\n      as |si|\n    >\n      <si.option>{{t\n          'components.auto-mapping.directive-pm.Select an account'\n        }}</si.option>\n  \n      {{#each this.accountOptions as |account|}}\n        <si.option\n          @value={{account.code}}\n          data-test-account-option={{this.directive.id}}\n        >\n          {{account.name}}&nbsp;({{account.supplier.name}})\n        </si.option>\n      {{/each}}\n    </SelectInput>\n  \n  {{else if (eq this.directive.kind 'reference')}}\n  \n    <div\n      class='directive__segment directive__segment--left'\n      data-test-sentence-fragment=''\n    >\n      {{t\n        'components.auto-mapping.directive-pm.whenTheBillsPurchaseOrderFieldIs'\n      }}\n    </div>\n  \n    <Input\n      @value={{this.directive.value}}\n      class={{concat\n        'text-input directive__segment directive__segment--left'\n        (unless this.directive.value ' invalid')\n      }}\n      data-test-reference={{if this.directive.isNew 'new' this.directive.id}}\n    />\n  \n  {{else}}\n  \n    <div data-test-error-message=''>\n      {{t 'components.auto-mapping.directive-pm.Something went wrong'}}\n    </div>\n  {{/if}}\n  \n  <button\n    class='button button--delete directive__segment'\n    data-test-delete=''\n    type='button'\n    {{action this.delete}}\n  ><FaIcon @icon='trash' /></button>\n  */\n  {\n    \"id\": \"eWTJiSZy\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"directive__segment directive__segment--left\\\"],[14,\\\"data-test-sentence-fragment\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.Auto map bills to the project\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,2],[[16,\\\"data-test-project-select\\\",[52,[30,0,[\\\"directive\\\",\\\"isNew\\\"]],\\\"new\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]]],[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[[28,[37,4],[\\\"select-box directive__segment directive__segment--left\\\",[52,[51,[30,0,[\\\"directive\\\",\\\"project\\\",\\\"id\\\"]]],\\\" invalid\\\"]],null],[30,0,[\\\"directive\\\",\\\"project\\\",\\\"id\\\"]],[28,[37,6],[[30,0],\\\"switchProject\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[null]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Select a project\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"projectOptions\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"directive\\\",\\\"kind\\\"]],\\\"account\\\"],null],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"directive__segment directive__segment--left\\\"],[14,\\\"data-test-sentence-fragment\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.whenTheyAreBilledToTheMerchantAccount\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],[[16,\\\"data-test-account-select\\\",[52,[30,0,[\\\"directive\\\",\\\"isNew\\\"]],\\\"new\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]]],[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[[28,[37,4],[\\\"select-box directive__segment directive__segment--left\\\",[52,[51,[30,0,[\\\"directive\\\",\\\"value\\\"]]],\\\" invalid\\\"]],null],[30,0,[\\\"directive\\\",\\\"value\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"directive\\\",\\\"value\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"option\\\"]],null,null,[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.Select an account\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"accountOptions\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[30,3,[\\\"option\\\"]],[[16,\\\"data-test-account-option\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]],[[\\\"@value\\\"],[[30,4,[\\\"code\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\" (\\\"],[1,[30,4,[\\\"supplier\\\",\\\"name\\\"]]],[1,\\\")\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"  \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,9],[[30,0,[\\\"directive\\\",\\\"kind\\\"]],\\\"reference\\\"],null],[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"directive__segment directive__segment--left\\\"],[14,\\\"data-test-sentence-fragment\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.whenTheBillsPurchaseOrderFieldIs\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,12],[[16,0,[28,[37,4],[\\\"text-input directive__segment directive__segment--left\\\",[52,[51,[30,0,[\\\"directive\\\",\\\"value\\\"]]],\\\" invalid\\\"]],null]],[16,\\\"data-test-reference\\\",[52,[30,0,[\\\"directive\\\",\\\"isNew\\\"]],\\\"new\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]]],[[\\\"@value\\\"],[[30,0,[\\\"directive\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[10,0],[14,\\\"data-test-error-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.Something went wrong\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[24,0,\\\"button button--delete directive__segment\\\"],[24,\\\"data-test-delete\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],[30,0,[\\\"delete\\\"]]],null],[12],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13]],[\\\"si\\\",\\\"project\\\",\\\"si\\\",\\\"account\\\"],false,[\\\"div\\\",\\\"t\\\",\\\"select-input\\\",\\\"if\\\",\\\"concat\\\",\\\"unless\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"fn\\\",\\\"mut\\\",\\\"input\\\",\\\"button\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/auto-mapping/directive-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['directive'],\n    /**\n     * Makes sure that the selected project is included in the list.\n     * It may not have been passed in as an option if it was not open.\n     * @type {Project[]}\n     */\n    projectOptions: (0, _object.computed)('directive.project', 'projects.[]', function () {\n      const selectedProject = (0, _object.get)(this, 'directive').safeBelongsToValue('project');\n      const passedInProjects = (0, _object.get)(this, 'projects').toArray();\n      if (passedInProjects.mapBy('id').includes(selectedProject ? (0, _object.get)(selectedProject, 'id') : null)) {\n        return [...passedInProjects];\n      } else {\n        return [selectedProject, ...passedInProjects];\n      }\n    }),\n    // Include all the unused accounts, as well as the account currently used by this directive.\n    accountOptions: (0, _object.computed)('allAccounts', 'directive.value', 'unusedAccounts.[]', function () {\n      const unused = (0, _object.get)(this, 'unusedAccounts');\n      const currentCode = (0, _object.get)(this, 'directive.value');\n\n      // Filtering the complete list preserves order, as opposed to adding the current account to the unused list.\n      return (0, _object.get)(this, 'allAccounts').filter(a => (0, _object.get)(a, 'code') === currentCode || unused.includes(a));\n    }),\n    actions: {\n      switchProject(projectId) {\n        const project = ((0, _object.get)(this, 'projects') === undefined ? [] : (0, _object.get)(this, 'projects')).find(j => (0, _object.get)(j, 'id') === projectId);\n\n        // No project being set is akin to the directive not existing, it is therefore not a valid state to enter.\n        if (project == null) return;\n        (0, _object.set)(this, 'directive.project', project);\n      }\n    }\n  }));\n});","define(\"portal/components/basic-dropdown-content\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-content\"], function (_exports, _basicDropdownContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownContent.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown-content\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-dropdown-trigger\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-trigger\"], function (_exports, _basicDropdownTrigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownTrigger.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown-trigger\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-dropdown-wormhole\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-wormhole\"], function (_exports, _basicDropdownWormhole) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownWormhole.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown-wormhole\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-dropdown\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown\"], function (_exports, _basicDropdown) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdown.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-importer\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object/computed\", \"@ember/object\", \"@ember/utils\"], function (_exports, _component, _service, _computed, _object, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@ember/object\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _component.default.extend({\n    notifications: (0, _service.inject)(),\n    // Override this\n    parser: null,\n    hasSelectedFile: (0, _computed.notEmpty)('importData'),\n    hasNotSelectedFile: (0, _computed.not)('hasSelectedFile'),\n    hasImported: false,\n    actions: {\n      import(importData) {\n        const parser = (0, _object.get)(this, 'parser');\n        const csvParsingErrors = (0, _object.get)(importData, 'errors').rejectBy('type', 'Delimiter');\n        const oldError = (0, _object.get)(this, 'error');\n        if (!parser) {\n          throw new Error('No report parser provided. You should import this component and extend it, overriding the parser field');\n        }\n        if (oldError) {\n          (0, _object.get)(this, 'notifications').clear(oldError);\n        }\n        if (csvParsingErrors.length) {\n          this.send('parsingError', ['Bad CSV']);\n          return;\n        }\n\n        // Parse the response\n        const report = parser((0, _object.get)(importData, 'data'));\n        const reportParsingErrors = report.errors;\n        if (!(0, _utils.isEmpty)(reportParsingErrors)) {\n          this.send('parsingError', reportParsingErrors);\n          return;\n        }\n        this.import(report);\n        (0, _object.set)(this, 'hasImported', true);\n        (0, _object.set)(this, 'importData', null);\n      },\n      parsingError(errors) {\n        const msg = errors[0] || \"The file you selected didn't have the structure we were expecting. Please check the guides and try again.\";\n        const error = (0, _object.get)(this, 'notifications').error(msg);\n        (0, _object.set)(this, 'error', error);\n      }\n    }\n  });\n});","define(\"portal/components/bill-editor\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-concurrency\", \"@ember/object\", \"@ember/service\", \"ember-changeset\", \"@glimmer/tracking\", \"ember-changeset-validations\", \"portal/validators/bill\", \"portal/validators/bill-item\", \"portal/utils/search-filter\", \"@ember/runloop\", \"portal/utils/search-term-escape\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberConcurrency, _object, _service, _emberChangeset, _tracking, _emberChangesetValidations, _bill, _billItem, _searchFilter, _runloop, _searchTermEscape, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"ember-changeset-validations\",0,\"portal/validators/bill\",0,\"portal/validators/bill-item\",0,\"portal/utils/search-filter\",0,\"@ember/runloop\",0,\"portal/utils/search-term-escape\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! the trigger has to sit outside the branches below - the loading state\n    unmounts the editor, so a bill change landing while it is up would be missed }}\n  <div hidden {{did-update (perform this.resetChangeset @bill)}}></div>\n  \n  {{#if this.resetChangeset.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div\n      class='d-flex flex-wrap p-2 border-bottom position-sticky bg-white z-1'\n      style='top: 0;'\n    >\n      <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n        {{@bill.typeLabel}}\n        {{@bill.billNumber}}\n        <span\n          class='badge ms-1 fs-7\n            {{if (eq @bill.status \"DRAFT\") \"bg-secondary\"}}\n            {{if (eq @bill.status \"ACCEPTED\") \"bg-info\"}}\n            {{if (eq @bill.status \"HELD\") \"bg-warning text-dark\"}}\n            {{if (eq @bill.status \"PAID\") \"bg-success\"}}\n            {{if (eq @bill.status \"ARCHIVED\") \"bg-secondary\"}}\n            '\n        >\n          {{@bill.statusLabel}}\n        </span>\n        {{#if @bill.hasDuplicate}}\n          <button\n            type='button'\n            class='btn btn-link p-0 ms-1 text-decoration-none'\n            title={{t 'components.bill-editor.View duplicate bills'}}\n            {{on 'click' this.viewDuplicateBills}}\n          >\n            <span class='badge fs-7 bg-danger'>\n              {{t 'common.Duplicate'}}\n              <FaIcon @icon='external-link-alt' />\n            </span>\n          </button>\n        {{/if}}\n      </h2>\n  \n      <div class='d-flex align-items-center gap-2 ms-auto'>\n        {{#if @bill.accountingPackageUrl}}\n          <a\n            href={{@bill.accountingPackageUrl}}\n            target='_blank'\n            rel='noopener noreferrer'\n            class='btn btn-link text-primary text-decoration-underline m-1'\n          >\n            {{t\n              'components.bill-editor.viewInLabel'\n              label=this.accountingPlatform.label\n            }}\n            <FaIcon class='ms-1' @icon='external-link-alt' />\n          </a>\n        {{/if}}\n  \n        <AttachmentsPopover\n          @attachments={{this.allAttachments}}\n          @disabled={{not this.canManageBills}}\n          @onViewAttachment={{this.viewAttachment}}\n          @onUploadComplete={{this.attachmentsUploadComplete}}\n          @onDeleteAttachment={{this.deleteAttachment}}\n        />\n  \n        <div class='d-flex'>\n          {{#if\n            (and\n              this.billActions.primaryAction\n              (not this.billActions.secondaryActions.length)\n            )\n          }}\n            <button\n              type='button'\n              class='btn btn-primary text-white m-1'\n              disabled={{or this.isLoading this.isActionsRunning}}\n              {{on\n                'click'\n                (perform\n                  this.billActions.primaryAction.action\n                  this.billActions.primaryAction.targetStatus\n                )\n              }}\n            >\n              {{#if this.isActionsRunning}}\n                {{t 'common.Syncing'}}&hellip;\n              {{else}}\n                {{this.billActions.primaryAction.name}}\n              {{/if}}\n            </button>\n          {{else if\n            (and\n              this.billActions.primaryAction\n              this.billActions.secondaryActions.length\n            )\n          }}\n            <div class='m-1'>\n              <DropdownButton\n                @onPrimaryClick={{perform\n                  this.billActions.primaryAction.action\n                  this.billActions.primaryAction.targetStatus\n                  this.billActions.primaryAction.syncToAccountingPackage\n                }}\n                @buttonText={{if\n                  this.isActionsRunning\n                  (t 'common.Saving')\n                  this.billActions.primaryAction.name\n                }}\n                @disabled={{or this.isLoading this.isActionsRunning}}\n              >\n                {{#each this.billActions.secondaryActions as |action|}}\n                  <button\n                    type='button'\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (perform\n                        action.action\n                        action.targetStatus\n                        action.syncToAccountingPackage\n                      )\n                    }}\n                    disabled={{action.action.isRunning}}\n                  >\n                    {{#if action.action.isRunning}}\n                      {{t 'common.Updating'}}&hellip;\n                    {{else}}\n                      {{action.name}}\n                    {{/if}}\n                  </button>\n                {{/each}}\n              </DropdownButton>\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='d-flex align-items-center gap-1'>\n          {{#unless @bill.isNew}}\n            <IconButton\n              @size='md'\n              @icon='arrow-up'\n              {{on 'click' this.previousBill}}\n              {{on-key 'ArrowUp' this.triggerPreviousBill}}\n              title={{format-shortcut\n                'ArrowUp'\n                (t 'components.bill-editor.Previous bill')\n              }}\n            />\n            <IconButton\n              @size='md'\n              @icon='arrow-down'\n              {{on 'click' this.nextBill}}\n              {{on-key 'ArrowDown' this.triggerNextBill}}\n              title={{format-shortcut\n                'ArrowDown'\n                (t 'components.bill-editor.Next bill')\n              }}\n            />\n          {{/unless}}\n  \n          <LinkTo\n            @route='entity.builda-price.operations.incoming.bills'\n            class='d-flex'\n          >\n            <IconButton\n              @size='md'\n              @icon='times'\n              {{on-key 'Escape' this.triggerClose}}\n              title={{format-shortcut\n                'Esc'\n                (t 'components.bill-editor.Back to list')\n              }}\n            />\n          </LinkTo>\n        </div>\n      </div>\n    </div>\n  \n    <form class='p-3'>\n      <div class='d-flex'>\n        <div class='col mb-3'>\n          <label class='mb-1'>\n            {{t 'common.Issuer'}}\n            <sup class='text-danger'>*</sup>\n          </label>\n          <SearchSelector\n            @onSelect={{this.setIssuerContact}}\n            @onLoad={{this.loadContacts}}\n            @noDataMessage={{t 'common.Create a contact'}}\n            @noDataAction={{this.createIssuerContact}}\n            @showNoDataActionWithResults={{true}}\n            @initialSearchTerm={{@bill.issuer}}\n            @placeholder={{@bill.issuer}}\n            @key='issuerContact'\n            @optionKeys={{array 'name'}}\n            @model={{this.billForm}}\n            @disabled={{or (not this.canManageBills) this.save.isRunning}}\n            @forceValidationVisible={{true}}\n          />\n          {{#if this.billForm.issuerContact}}\n            <LinkTo\n              @route='entity.settings.contacts.contact'\n              @model={{this.billForm.issuerContact.id}}\n              class='link ps-1'\n              target='_blank'\n            >\n              View contact\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n            </LinkTo>\n          {{/if}}\n        </div>\n  \n        <div class='col mx-3 mb-3'>\n          <PtlInput\n            @containerClass='mb-0'\n            @type='select'\n            @label={{t 'common.Allocation type'}}\n            @key='allocationType'\n            @required={{true}}\n            @model={{this.billForm}}\n            @options={{array\n              (hash value='MATERIALS' label=(t 'common.Materials'))\n              (hash value='SUBCONTRACTORS' label=(t 'common.Subcontractors'))\n              (hash value='LABOUR' label=(t 'common.Labour'))\n            }}\n            @selectNoBlankOption={{true}}\n            disabled={{or (not this.canManageBills) this.save.isRunning}}\n            @forceValidationVisible={{true}}\n          />\n          {{#if this.hasDifferentAllocationType}}\n            <button\n              type='button'\n              class='btn btn-link p-0 text-primary'\n              disabled={{or (not this.canManageBills) this.save.isRunning}}\n              {{on 'click' this.setDefaultAllocationType}}\n            >\n              {{t 'components.bill-editor.Set as default allocation type'}}\n            </button>\n          {{/if}}\n        </div>\n  \n        <PtlInput\n          @containerClass='col mb-3'\n          @type='text'\n          @label={{t 'common.Number'}}\n          @key='billNumber'\n          @model={{this.billForm}}\n          @required={{true}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n        />\n      </div>\n  \n      <div class='d-flex'>\n        <PtlInput\n          @containerClass='col mb-1'\n          @type='date'\n          @label={{t 'common.Issue date'}}\n          @key='issueDate'\n          @model={{this.billForm}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @required={{true}}\n          @forceValidationVisible={{true}}\n        />\n  \n        <PtlInput\n          @containerClass='col mb-1 mx-3'\n          @type='date'\n          @label={{t 'common.Due date'}}\n          @key='dueDate'\n          @model={{this.billForm}}\n          @required={{not (eq this.billForm.billType 'CREDIT_NOTE')}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n        />\n  \n        <div class='col position-relative'>\n          <NewComboBox\n            class='col mb-0'\n            @isLoading={{or\n              this.onSearchPurchaseOrders.isRunning\n              this.loadMorePurchaseOrders.isRunning\n            }}\n            @list={{this.purchaseOrders}}\n            @noDataMessage={{t 'shared.purchase-order.No purchase orders'}}\n            @onSelect={{this.setPurchaseOrder}}\n            @onSearch={{this.onSearchPurchaseOrders}}\n            @debounce={{this.debounceTime}}\n            @label={{t 'common.Purchase order'}}\n            @key='reference'\n            @optionKeys={{array 'purchaseOrderNumber'}}\n            @model={{this.billForm}}\n            @inputContainerClass='mb-1'\n            @hasNextPage={{this.hasNextPurchaseOrderPage}}\n            @onLoadMore={{this.loadMorePurchaseOrders}}\n            @disabled={{or (not this.canManageBills) this.save.isRunning}}\n            @forceValidationVisible={{true}}\n          />\n          {{#if this.billForm.purchaseOrder.id}}\n            <LinkTo\n              @route='entity.builda-price.operations.outgoing.purchase-orders.purchase-order'\n              @model={{this.billForm.purchaseOrder.id}}\n              class='link ps-1 position-absolute mt-1'\n              style='bottom: -3px;'\n              target='_blank'\n            >\n              View purchase order\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n            </LinkTo>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div class='d-flex'>\n        <PtlInput\n          @containerClass='col-8 mb-3'\n          @type='textarea'\n          @label={{t 'common.Notes'}}\n          @key='notes'\n          @model={{this.billForm}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n          style='max-height:60px;'\n        />\n      </div>\n  \n      {{#if this.canManageBills}}\n        <div class='pb-2 d-flex'>\n          {{#if (or this.allBillItemsSelected this.someBillItemsSelected)}}\n            <button\n              class='btn btn-link text-danger text-decoration-underline'\n              type='button'\n              {{on 'click' this.deleteSelectedBillItemForms}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          {{/if}}\n  \n          <button\n            class='ms-auto btn btn-success text-white'\n            type='button'\n            {{on 'click' this.addNewBillItem}}\n            {{on-key 'cmd+i' this.addNewBillItem}}\n            title={{format-shortcut 'cmd+i' (t 'common.Add new item')}}\n          >\n            {{t 'common.Add new item'}}\n          </button>\n        </div>\n      {{/if}}\n      <table\n        class='table table-sm align-middle w-100'\n        id='bill-items-table'\n        style='table-layout: fixed;'\n      >\n        <thead>\n          <tr>\n            {{#if this.columnSpans.select}}\n              <th\n                colspan={{this.columnSpans.select}}\n                role='button'\n                class='text-center px-1'\n                style='width: 32px;'\n                {{on 'click' this.toggleSelectAll}}\n              >\n                {{! template-lint-disable no-nested-interactive }}\n                <input\n                  class='pe-none'\n                  type='checkbox'\n                  checked={{this.allBillItemsSelected}}\n                  disabled={{this.save.isRunning}}\n                  indeterminate={{this.someBillItemsSelected}}\n                />\n              </th>\n            {{/if}}\n            <th colspan={{this.columnSpans.code}} class='text-nowrap'>\n              {{t 'common.Code'}}</th>\n            <th colspan={{this.columnSpans.description}} class='text-nowrap'>\n              {{t 'common.Description'}}\n            </th>\n  \n            {{#if this.columnSpans.allocation}}\n              <th colspan={{this.columnSpans.allocation}} class='text-nowrap'>\n                {{t 'common.Allocation'}}\n              </th>\n            {{/if}}\n            {{#if this.columnSpans.purchaseOrderItem}}\n              <th\n                colspan={{this.columnSpans.purchaseOrderItem}}\n                class='text-nowrap'\n              >\n                {{t 'components.bill-editor.PO item'}}\n              </th>\n            {{/if}}\n            {{#if this.columnSpans.glAccount}}\n              <th colspan={{this.columnSpans.glAccount}} class='text-nowrap'>\n                {{t 'common.GL account'}}\n              </th>\n            {{/if}}\n  \n            <th\n              colspan={{this.columnSpans.quantity}}\n              class='text-end text-nowrap'\n            >\n              {{t 'common.Qty'}}</th>\n            <th colspan={{this.columnSpans.unitPrice}} class='text-nowrap'>\n              {{t 'common.Unit price'}}</th>\n            <th colspan={{this.columnSpans.total}} class='text-end text-nowrap'>\n              {{t 'common.Total'}}\n            </th>\n            {{#if this.columnSpans.icon}}\n              <th colspan={{this.columnSpans.icon}}>\n              </th>\n            {{/if}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#if this.filteredBillItemForms.length}}\n            {{#each this.filteredBillItemForms as |item|}}\n              <tr>\n                {{#if this.columnSpans.select}}\n                  <td\n                    colspan={{this.columnSpans.select}}\n                    role='button'\n                    class='text-center px-1'\n                    style='width: 32px;'\n                    {{on 'click' (fn this.toggleSelected item)}}\n                  >\n                    {{! template-lint-disable no-nested-interactive }}\n                    <input\n                      class='pe-none'\n                      type='checkbox'\n                      disabled={{this.save.isRunning}}\n                      checked={{includes this.selectedBillItemForms item}}\n                    />\n                  </td>\n                {{/if}}\n                <td colspan={{this.columnSpans.code}}>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='text'\n                    @key='productCode'\n                    @model={{item}}\n                    style='width: 65px'\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    @forceValidationVisible={{true}}\n                    @onChange={{this.validateBothDescriptionAndProductCode item}}\n                  />\n                </td>\n                <td colspan={{this.columnSpans.description}}>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='text'\n                    @key='description'\n                    @model={{item}}\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    @forceValidationVisible={{true}}\n                    @onChange={{this.validateBothDescriptionAndProductCode item}}\n                  />\n                </td>\n  \n                {{#if this.columnSpans.allocation}}\n                  <td colspan={{this.columnSpans.allocation}}>\n                    <AllocationHierarchy @allocations={{item.allocations}} />\n                  </td>\n                {{/if}}\n                {{#if this.columnSpans.purchaseOrderItem}}\n                  <td colspan={{this.columnSpans.purchaseOrderItem}}>\n                    <div class='d-flex align-items-center w-100'>\n                      <div class='flex-grow-1 me-1' style='min-width: 0;'>\n                        <SearchSelector\n                          @onSelect={{fn this.setBillItemPurchaseOrderItem item}}\n                          @onLoad={{this.loadPurchaseOrderItems}}\n                          @noDataMessage={{t\n                            'components.bill-editor.No purchase order items'\n                          }}\n                          @key='purchaseOrderItem'\n                          @optionKeys={{array 'sku' 'description'}}\n                          @model={{item}}\n                          @disabled={{or\n                            (not this.canManageBills)\n                            this.save.isRunning\n                          }}\n                          @forceValidationVisible={{true}}\n                          class='w-100'\n                        />\n                      </div>\n                      {{#if item.purchaseOrderMatchingStatus}}\n                        <InfoPopup\n                          @text={{item.purchaseOrderMatchingStatus.title}}\n                          @iconName='exclamation-circle'\n                          class='{{item.purchaseOrderMatchingStatus.class}} ms-1'\n                        />\n                      {{/if}}\n                    </div>\n                  </td>\n                {{/if}}\n                {{#if this.columnSpans.glAccount}}\n                  <td colspan={{this.columnSpans.glAccount}}>\n                    <span class='fs-6'>\n                      {{item.glAccountLabel}}\n                    </span>\n                  </td>\n                {{/if}}\n  \n                <td colspan={{this.columnSpans.quantity}} class='text-end'>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='number'\n                    @key='quantity'\n                    @model={{item}}\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    style='width: 50px'\n                    @forceValidationVisible={{true}}\n                  />\n                </td>\n                <td colspan={{this.columnSpans.unitPrice}} class='text-end'>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='currency'\n                    @key='unitPrice'\n                    style='width: 60px'\n                    @model={{item}}\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    @forceValidationVisible={{true}}\n                  />\n                </td>\n                <td\n                  colspan={{this.columnSpans.total}}\n                  class='text-end text-nowrap'\n                >\n                  {{number-format\n                    (math (or item.quantity 0) '*' (or item.unitPrice 0))\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                {{#if this.columnSpans.icon}}\n                  <td colspan={{this.columnSpans.icon}} class='text-center px-1'>\n                    <BillItemSummary @item={{item}} />\n                  </td>\n                {{/if}}\n              </tr>\n            {{/each}}\n          {{else}}\n            <tr>\n              <td class='text-center' colspan={{this.columnSpans.totalSpan}}>\n                {{t 'components.bill-editor.No bill items'}}\n              </td>\n            </tr>\n          {{/if}}\n        </tbody>\n      </table>\n    </form>\n  \n    {{! z-index is 5 because the inputs get 5 when focused}}\n    <div\n      class='d-flex flex-column border-top p-3 position-sticky bg-white'\n      style='bottom: 0; z-index: 5;'\n    >\n      <h2 class='m-0 ms-auto mb-3'>\n        {{t 'common.Total'}}\n        {{number-format this.totalPrice style='currency' dashZero=true}}\n      </h2>\n  \n      <div class='d-flex align-items-center justify-content-between'>\n        {{#unless @bill.isNew}}\n          <button\n            type='button'\n            class='btn btn-link text-danger text-decoration-underline ps-0'\n            disabled={{or (not this.canManageBills) this.save.isRunning}}\n            {{on 'click' (fn (mut this.showBillDeleteConfirmModal) true)}}\n          >\n            {{#if this.save.isRunning}}\n              {{t 'common.Deleting'}}\n              &hellip;\n            {{else}}\n              {{t 'common.Delete'}}\n            {{/if}}\n          </button>\n  \n        {{/unless}}\n        <button\n          type='button'\n          class='btn btn-primary ms-auto'\n          disabled={{or\n            (not this.canManageBills)\n            this.save.isRunning\n            (not this.hasUnsavedChanges)\n          }}\n          {{on-key 'cmd+s' this.triggerSave}}\n          title={{format-shortcut 'cmd+s' 'Save'}}\n          {{on 'click' this.triggerSave}}\n        >\n          {{#if this.save.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;{{t\n              'common.Saving'\n            }}…\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </div>\n  \n    {{#unless @bill.isNew}}\n      <div\n        class='d-flex align-items-center p-3 border mx-3 mt-3'\n        role='button'\n        {{on 'click' (fn (mut this.showBillHistory) (not this.showBillHistory))}}\n      >\n        <h4 class='m-0'>\n          {{t 'components.bill-editor.Bill history'}}\n        </h4>\n        <h4 class='m-0 ms-auto'>\n          <FaIcon\n            @icon={{if this.showBillHistory 'chevron-down' 'chevron-right'}}\n          />\n        </h4>\n      </div>\n      {{#if this.showBillHistory}}\n        <div class='px-3'>\n          <ResourceHistory @resourceId={{@bill.id}} />\n        </div>\n      {{/if}}\n    {{/unless}}\n  \n  {{/if}}\n  <ConfirmDelete\n    @visible={{this.showBillDeleteConfirmModal}}\n    @title={{(t 'common.Delete bill')}}\n    @messages={{(t 'components.bill-editor.Do you want to delete this bill')}}\n    @deleteButtonText={{(t 'common.Delete bill')}}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{(perform this.deleteBill)}}\n    @onCancel={{fn (mut this.showBillDeleteConfirmModal) false}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  \n  {{#if this.billTypeChangeConfirmation}}\n    <ModalDialog\n      @onClose={{fn this.handleBillTypeChange false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t 'components.bill-editor.Change bill type'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p>\n          {{t\n            'components.bill-editor.yourUpdatedSubtotalIsSignExistingBillTypePluralShouldBeExistingSignDoYouWantToChangeThisDocumentToABillType'\n            sign=this.billTypeChangeConfirmation.sign\n            existingBillTypePlural=this.billTypeChangeConfirmation.existingBillTypePural\n            existingSign=this.billTypeChangeConfirmation.existingSign\n            billType=this.billTypeChangeConfirmation.billType\n          }}\n        </p>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <button\n          class='btn btn-secondary text-white ms-2'\n          type='button'\n          {{on 'click' (fn this.handleBillTypeChange false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary ms-2'\n          type='button'\n          {{on 'click' (fn this.handleBillTypeChange true)}}\n        >\n          {{t 'common.Confirm'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.billTypeResponseHandlerVisible}}\n    <BillTypeResponseHandler\n      @responses={{this.billResponses}}\n      @onCancel={{this.onBillTypeResponseHandlerCancel}}\n    />\n  {{/if}}\n  \n  {{#if this.allocating}}\n    <BillItemAllocator\n      @bills={{array @bill}}\n      @onClose={{this.onBillItemAllocatorClose}}\n      @billStatus={{@billStatus}}\n    />\n  {{/if}}\n  \n  {{#if this.attachmentsVisible}}\n    <div class='bill-attachment-overlay-pane p-3 d-flex flex-column'>\n      <div class='d-flex align-items-center mb-2'>\n        <IconButton\n          @icon='times'\n          {{on 'click' (fn (mut this.attachmentsVisible) false)}}\n        />\n  \n        <p class='m-0 fw-bold fs-6 ms-3'>\n          {{ellipsis-characters this.activeAttachment.filename 30}}\n        </p>\n  \n        {{#if this.activeAttachment}}\n          <a\n            rel='noopener noreferrer'\n            href={{this.activeAttachment.href}}\n            target='_blank'\n            class='ms-auto'\n          >\n            <FaIcon @icon='download' />\n            {{t 'common.Download'}}\n          </a>\n        {{/if}}\n      </div>\n  \n      {{#if this.activeAttachment}}\n        <AttachmentPreview @attachment={{this.activeAttachment}} />\n      {{/if}}\n  \n      {{#if (gt this.allAttachments.length 1)}}\n        <div class='d-flex pt-2 align-items-center justify-content-end'>\n          <IconButton\n            @size='sm'\n            @icon='arrow-left'\n            {{on 'click' this.previousAttachment}}\n          />\n  \n          <span class='m-1'>\n            {{math this.attachmentIndex '+' 1}}\n            /\n            {{this.allAttachments.length}}\n          </span>\n  \n          <IconButton\n            @size='sm'\n            @icon='arrow-right'\n            {{on 'click' this.nextAttachment}}\n          />\n        </div>\n      {{/if}}\n    </div>\n  {{/if}}\n  \n  {{#if this.setContactAliasModalVisible}}\n    <ModalDialog\n      @onClose={{fn (mut this.setContactAliasModalVisible) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-body'>\n        <p class='m-0'>\n          {{t\n            'components.bill-editor.doYouAlsoWantToAddAliasAsAnAliasOfYourContact'\n            alias=@bill.issuer\n            contact=this.billForm.issuerContact.name\n          }}\n        </p>\n      </div>\n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.saveContactAlias.isRunning}}\n            {{on 'click' (fn (mut this.setContactAliasModalVisible) false)}}\n          >{{t 'common.No'}}</button>\n          <button\n            class='btn btn-primary text-white ms-2'\n            type='button'\n            disabled={{this.saveContactAlias.isRunning}}\n            {{on 'click' (perform this.saveContactAlias)}}\n          >\n            {{#if this.saveContactAlias.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Saving'}}\n            {{else}}\n              {{t 'components.bill-editor.Add alias'}}\n            {{/if}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"3bK63QNx\",\n    \"block\": \"[[[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,1],[[28,[37,2],[[30,0,[\\\"resetChangeset\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"resetChangeset\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-wrap p-2 border-bottom position-sticky bg-white z-1\\\"],[14,5,\\\"top: 0;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"billNumber\\\"]]],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[29,[\\\"badge ms-1 fs-7\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"ACCEPTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"PAID\\\"],null],\\\"bg-success\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\"]]],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasDuplicate\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 ms-1 text-decoration-none\\\"],[16,\\\"title\\\",[28,[37,9],[\\\"components.bill-editor.View duplicate bills\\\"],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"viewDuplicateBills\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"badge fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-2 ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"accountingPackageUrl\\\"]],[[[1,\\\"        \\\"],[10,3],[15,6,[30,1,[\\\"accountingPackageUrl\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.bill-editor.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[8,[39,11],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@attachments\\\",\\\"@disabled\\\",\\\"@onViewAttachment\\\",\\\"@onUploadComplete\\\",\\\"@onDeleteAttachment\\\"],[[30,0,[\\\"allAttachments\\\"]],[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"viewAttachment\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"deleteAttachment\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[28,[37,14],[[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,16],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,9],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,15],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],null,[[\\\"@onPrimaryClick\\\",\\\"@buttonText\\\",\\\"@disabled\\\"],[[28,[37,2],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"syncToAccountingPackage\\\"]]],null],[52,[30,0,[\\\"isActionsRunning\\\"]],[28,[37,9],[\\\"common.Saving\\\"],null],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[28,[37,16],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,2,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,2,[\\\"action\\\"]],[30,2,[\\\"targetStatus\\\"]],[30,2,[\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,9],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"ArrowUp\\\",[28,[37,9],[\\\"components.bill-editor.Previous bill\\\"],null]],null]],[4,[38,10],[\\\"click\\\",[30,0,[\\\"previousBill\\\"]]],null],[4,[38,23],[\\\"ArrowUp\\\",[30,0,[\\\"triggerPreviousBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-up\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"ArrowDown\\\",[28,[37,9],[\\\"components.bill-editor.Next bill\\\"],null]],null]],[4,[38,10],[\\\"click\\\",[30,0,[\\\"nextBill\\\"]]],null],[4,[38,23],[\\\"ArrowDown\\\",[30,0,[\\\"triggerNextBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-down\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"d-flex\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.bills\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"Esc\\\",[28,[37,9],[\\\"components.bill-editor.Back to list\\\"],null]],null]],[4,[38,23],[\\\"Escape\\\",[30,0,[\\\"triggerClose\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"form\\\"],[14,0,\\\"p-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Issuer\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataAction\\\",\\\"@showNoDataActionWithResults\\\",\\\"@initialSearchTerm\\\",\\\"@placeholder\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setIssuerContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,9],[\\\"common.Create a contact\\\"],null],[30,0,[\\\"createIssuerContact\\\"]],true,[30,1,[\\\"issuer\\\"]],[30,1,[\\\"issuer\\\"]],\\\"issuerContact\\\",[28,[37,29],[\\\"name\\\"],null],[30,0,[\\\"billForm\\\"]],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"issuerContact\\\"]],[[[1,\\\"          \\\"],[8,[39,24],[[24,0,\\\"link ps-1\\\"],[24,\\\"target\\\",\\\"_blank\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"billForm\\\",\\\"issuerContact\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            View contact\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col mx-3 mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@options\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"mb-0\\\",\\\"select\\\",[28,[37,9],[\\\"common.Allocation type\\\"],null],\\\"allocationType\\\",true,[30,0,[\\\"billForm\\\"]],[28,[37,29],[[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"MATERIALS\\\",[28,[37,9],[\\\"common.Materials\\\"],null]]]],[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"SUBCONTRACTORS\\\",[28,[37,9],[\\\"common.Subcontractors\\\"],null]]]],[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"LABOUR\\\",[28,[37,9],[\\\"common.Labour\\\"],null]]]]],null],true,true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasDifferentAllocationType\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 text-primary\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"setDefaultAllocationType\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Set as default allocation type\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-3\\\",\\\"text\\\",[28,[37,9],[\\\"common.Number\\\"],null],\\\"billNumber\\\",[30,0,[\\\"billForm\\\"]],true,true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1\\\",\\\"date\\\",[28,[37,9],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"billForm\\\"]],true,true]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1 mx-3\\\",\\\"date\\\",[28,[37,9],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"billForm\\\"]],[28,[37,14],[[28,[37,7],[[30,0,[\\\"billForm\\\",\\\"billType\\\"]],\\\"CREDIT_NOTE\\\"],null]],null],true]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col position-relative\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,32],[[24,0,\\\"col mb-0\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@inputContainerClass\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,16],[[30,0,[\\\"onSearchPurchaseOrders\\\",\\\"isRunning\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"purchaseOrders\\\"]],[28,[37,9],[\\\"shared.purchase-order.No purchase orders\\\"],null],[30,0,[\\\"setPurchaseOrder\\\"]],[30,0,[\\\"onSearchPurchaseOrders\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,9],[\\\"common.Purchase order\\\"],null],\\\"reference\\\",[28,[37,29],[\\\"purchaseOrderNumber\\\"],null],[30,0,[\\\"billForm\\\"]],\\\"mb-1\\\",[30,0,[\\\"hasNextPurchaseOrderPage\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\"]],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"purchaseOrder\\\",\\\"id\\\"]],[[[1,\\\"          \\\"],[8,[39,24],[[24,0,\\\"link ps-1 position-absolute mt-1\\\"],[24,5,\\\"bottom: -3px;\\\"],[24,\\\"target\\\",\\\"_blank\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order\\\",[30,0,[\\\"billForm\\\",\\\"purchaseOrder\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            View purchase order\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,5,\\\"max-height:60px;\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"col-8 mb-3\\\",\\\"textarea\\\",[28,[37,9],[\\\"common.Notes\\\"],null],\\\"notes\\\",[30,0,[\\\"billForm\\\"]],true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageBills\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"pb-2 d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"allBillItemsSelected\\\"]],[30,0,[\\\"someBillItemsSelected\\\"]]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"deleteSelectedBillItemForms\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-auto btn btn-success text-white\\\"],[16,\\\"title\\\",[28,[37,22],[\\\"cmd+i\\\",[28,[37,9],[\\\"common.Add new item\\\"],null]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[4,[38,23],[\\\"cmd+i\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Add new item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm align-middle w-100\\\"],[14,1,\\\"bill-items-table\\\"],[14,5,\\\"table-layout: fixed;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"select\\\"]],[[[1,\\\"            \\\"],[11,\\\"th\\\"],[16,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"select\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-center px-1\\\"],[24,5,\\\"width: 32px;\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"toggleSelectAll\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[30,0,[\\\"allBillItemsSelected\\\"]]],[15,\\\"disabled\\\",[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],[15,\\\"indeterminate\\\",[30,0,[\\\"someBillItemsSelected\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"code\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Code\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"description\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Description\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"common.Allocation\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"components.bill-editor.PO item\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"common.GL account\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"quantity\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Qty\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"unitPrice\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"total\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]]],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filteredBillItemForms\\\",\\\"length\\\"]],[[[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"filteredBillItemForms\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"select\\\"]],[[[1,\\\"                \\\"],[11,\\\"td\\\"],[16,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"select\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-center px-1\\\"],[24,5,\\\"width: 32px;\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"toggleSelected\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"disabled\\\",[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],[15,\\\"checked\\\",[28,[37,41],[[30,0,[\\\"selectedBillItemForms\\\"]],[30,3]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"code\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[24,5,\\\"width: 65px\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\"],[\\\"m-0\\\",\\\"text\\\",\\\"productCode\\\",[30,3],true,[28,[30,0,[\\\"validateBothDescriptionAndProductCode\\\"]],[[30,3]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"description\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\"],[\\\"m-0\\\",\\\"text\\\",\\\"description\\\",[30,3],true,[28,[30,0,[\\\"validateBothDescriptionAndProductCode\\\"]],[[30,3]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[8,[39,42],null,[[\\\"@allocations\\\"],[[30,3,[\\\"allocations\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"d-flex align-items-center w-100\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex-grow-1 me-1\\\"],[14,5,\\\"min-width: 0;\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,28],[[24,0,\\\"w-100\\\"]],[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,40],[[30,0,[\\\"setBillItemPurchaseOrderItem\\\"]],[30,3]],null],[30,0,[\\\"loadPurchaseOrderItems\\\"]],[28,[37,9],[\\\"components.bill-editor.No purchase order items\\\"],null],\\\"purchaseOrderItem\\\",[28,[37,29],[\\\"sku\\\",\\\"description\\\"],null],[30,3],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"purchaseOrderMatchingStatus\\\"]],[[[1,\\\"                      \\\"],[8,[39,43],[[16,0,[29,[[30,3,[\\\"purchaseOrderMatchingStatus\\\",\\\"class\\\"]],\\\" ms-1\\\"]]]],[[\\\"@text\\\",\\\"@iconName\\\"],[[30,3,[\\\"purchaseOrderMatchingStatus\\\",\\\"title\\\"]],\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"fs-6\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,3,[\\\"glAccountLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"quantity\\\"]]],[14,0,\\\"text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,5,\\\"width: 50px\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"number\\\",\\\"quantity\\\",[30,3],true]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"unitPrice\\\"]]],[14,0,\\\"text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[24,5,\\\"width: 60px\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"unitPrice\\\",[30,3],true]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"total\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,44],[[28,[37,45],[[28,[37,16],[[30,3,[\\\"quantity\\\"]],0],null],\\\"*\\\",[28,[37,16],[[30,3,[\\\"unitPrice\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]]],[14,0,\\\"text-center px-1\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,46],null,[[\\\"@item\\\"],[[30,3]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"totalSpan\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"components.bill-editor.No bill items\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-column border-top p-3 position-sticky bg-white\\\"],[14,5,\\\"bottom: 0; z-index: 5;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 ms-auto mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,9],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,44],[[30,0,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline ps-0\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Deleting\\\"],null]],[1,\\\"\\\\n            …\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[28,[37,14],[[30,0,[\\\"hasUnsavedChanges\\\"]]],null]],null]],[16,\\\"title\\\",[28,[37,22],[\\\"cmd+s\\\",\\\"Save\\\"],null]],[24,4,\\\"button\\\"],[4,[38,23],[\\\"cmd+s\\\",[30,0,[\\\"triggerSave\\\"]]],null],[4,[38,10],[\\\"click\\\",[30,0,[\\\"triggerSave\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,9],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"d-flex align-items-center p-3 border mx-3 mt-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillHistory\\\"]]],null],[28,[37,14],[[30,0,[\\\"showBillHistory\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Bill history\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showBillHistory\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBillHistory\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,49],null,[[\\\"@resourceId\\\"],[[30,1,[\\\"id\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"]],[]]],[8,[39,50],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]],[28,[37,9],[\\\"common.Delete bill\\\"],null],[28,[37,9],[\\\"components.bill-editor.Do you want to delete this bill\\\"],null],[28,[37,9],[\\\"common.Delete bill\\\"],null],[28,[37,9],[\\\"common.Deleting\\\"],null],[28,[37,2],[[30,0,[\\\"deleteBill\\\"]]],null],[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,9],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"billTypeChangeConfirmation\\\"]],[[[1,\\\"  \\\"],[8,[39,52],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Change bill type\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.yourUpdatedSubtotalIsSignExistingBillTypePluralShouldBeExistingSignDoYouWantToChangeThisDocumentToABillType\\\"],[[\\\"sign\\\",\\\"existingBillTypePlural\\\",\\\"existingSign\\\",\\\"billType\\\"],[[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"sign\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"existingBillTypePural\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"existingSign\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"billType\\\"]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Confirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billTypeResponseHandlerVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,54],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"billResponses\\\"]],[30,0,[\\\"onBillTypeResponseHandlerCancel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocating\\\"]],[[[1,\\\"  \\\"],[8,[39,55],null,[[\\\"@bills\\\",\\\"@onClose\\\",\\\"@billStatus\\\"],[[28,[37,29],[[30,1]],null],[30,0,[\\\"onBillItemAllocatorClose\\\"]],[30,4]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentsVisible\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"bill-attachment-overlay-pane p-3 d-flex flex-column\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"attachmentsVisible\\\"]]],null],false],null]],null]],[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"m-0 fw-bold fs-6 ms-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,56],[[30,0,[\\\"activeAttachment\\\",\\\"filename\\\"]],30],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeAttachment\\\"]],[[[1,\\\"        \\\"],[10,3],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[15,6,[30,0,[\\\"activeAttachment\\\",\\\"href\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeAttachment\\\"]],[[[1,\\\"      \\\"],[8,[39,57],null,[[\\\"@attachment\\\"],[[30,0,[\\\"activeAttachment\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,58],[[30,0,[\\\"allAttachments\\\",\\\"length\\\"]],1],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex pt-2 align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[30,0,[\\\"previousAttachment\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"sm\\\",\\\"arrow-left\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,45],[[30,0,[\\\"attachmentIndex\\\"]],\\\"+\\\",1],null]],[1,\\\"\\\\n          /\\\\n          \\\"],[1,[30,0,[\\\"allAttachments\\\",\\\"length\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[30,0,[\\\"nextAttachment\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"sm\\\",\\\"arrow-right\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"setContactAliasModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,52],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[28,[37,40],[[28,[37,47],[[30,0,[\\\"setContactAliasModalVisible\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.doYouAlsoWantToAddAliasAsAnAliasOfYourContact\\\"],[[\\\"alias\\\",\\\"contact\\\"],[[30,1,[\\\"issuer\\\"]],[30,0,[\\\"billForm\\\",\\\"issuerContact\\\",\\\"name\\\"]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"setContactAliasModalVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,9],[\\\"common.No\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"saveContactAlias\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Add alias\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@bill\\\",\\\"action\\\",\\\"item\\\",\\\"@billStatus\\\"],false,[\\\"div\\\",\\\"did-update\\\",\\\"perform\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"span\\\",\\\"eq\\\",\\\"button\\\",\\\"t\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"a\\\",\\\"attachments-popover\\\",\\\"not\\\",\\\"and\\\",\\\"or\\\",\\\"dropdown-button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"icon-button\\\",\\\"format-shortcut\\\",\\\"on-key\\\",\\\"link-to\\\",\\\"form\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"ptl-input\\\",\\\"hash\\\",\\\"new-combo-box\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"input\\\",\\\"tbody\\\",\\\"td\\\",\\\"fn\\\",\\\"includes\\\",\\\"allocation-hierarchy\\\",\\\"info-popup\\\",\\\"number-format\\\",\\\"math\\\",\\\"bill-item-summary\\\",\\\"mut\\\",\\\"h4\\\",\\\"resource-history\\\",\\\"confirm-delete\\\",\\\"p\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"bill-type-response-handler\\\",\\\"bill-item-allocator\\\",\\\"ellipsis-characters\\\",\\\"attachment-preview\\\",\\\"gt\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/components/bill-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  const deleteKey = '_deleteMe';\n  let BillEditorComponent = _exports.default = (_class = class BillEditorComponent extends _component2.default {\n    get condensedMode() {\n      return !this.media.isDesktop;\n    }\n    get columnSpans() {\n      const hasPurchaseOrder = Boolean(this.billForm?.get('purchaseOrder'));\n      const spans = {\n        select: this.canManageBills ? 1 : 0,\n        code: 4,\n        description: hasPurchaseOrder ? 6 : 10,\n        allocation: this.condensedMode ? 0 : hasPurchaseOrder ? 6 : 4,\n        purchaseOrderItem: hasPurchaseOrder ? 6 : 0,\n        glAccount: this.condensedMode ? 0 : 4,\n        quantity: 4,\n        unitPrice: 4,\n        total: 2,\n        icon: this.condensedMode ? 1 : 0\n      };\n      return {\n        ...spans,\n        totalSpan: Object.values(spans).reduce((sum, span) => sum + span, 0)\n      };\n    }\n    get canManageBills() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageBills');\n    }\n    get loadedBillItems() {\n      return this.args.bill.safeHasManyToValue('items')?.toArray() || [];\n    }\n    get hasNextPurchaseOrderPage() {\n      const current = this.purchaseOrdersPage?.currentPage ?? 1;\n      const total = this.purchaseOrdersPage?.totalPages ?? 1;\n      return current < total;\n    }\n    get isActionsRunning() {\n      return this.billActions.secondaryActions.some(action => action.action.isRunning) || this.billActions.primaryAction?.action.isRunning;\n    }\n    get activeAttachment() {\n      return this.allAttachments[this.attachmentIndex];\n    }\n    get allAttachments() {\n      return this.args.bill.myAttachments || [];\n    }\n    sortBillItems(billItems) {\n      return billItems.sort((a, b) => {\n        const sortIndexDiff = (a.get('sortIndex') || 0) - (b.get('sortIndex') || 0);\n        if (sortIndexDiff !== 0) return sortIndexDiff;\n        return new Date(a.get('dateCreated')).getTime() - new Date(b.get('dateCreated')).getTime();\n      });\n    }\n    get filteredBillItemForms() {\n      return this.billItemForms.filter(form => !form.get(deleteKey));\n    }\n    get allBillItemsSelected() {\n      if (this.billItemForms.length === 0) return false;\n      return this.billItemForms.length === this.selectedBillItemForms.length;\n    }\n    get someBillItemsSelected() {\n      if (this.allBillItemsSelected) return false;\n      return this.selectedBillItemForms.length > 0;\n    }\n    get totalPrice() {\n      return this.filteredBillItemForms.reduce((total, bif) => total += (bif.get('quantity') || 0) * (bif.get('unitPrice') || 0), 0);\n    }\n    get hasUnsavedChanges() {\n      return this.billForm.isDirty || this.billItemForms.some(form => form.isDirty || form.get(deleteKey) || form.get('data.isNew'));\n    }\n    get isBillFormValid() {\n      return this.billForm?.isValid && this.isTotalPriceValid && this.billItemForms.every(form => {\n        if (form.get(deleteKey)) return true;\n        return form.isValid;\n      });\n    }\n    get isBillFormPristine() {\n      return this.billForm?.isPristine && this.billItemForms.every(form => {\n        if (form.get(deleteKey)) return true;\n        return form.isPristine;\n      });\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"media\", _descriptor0, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor1, this);\n      _initializerDefineProperty(this, \"billForm\", _descriptor10, this);\n      _initializerDefineProperty(this, \"billItemForms\", _descriptor11, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachmentIndex\", _descriptor13, this);\n      _initializerDefineProperty(this, \"attachmentsVisible\", _descriptor14, this);\n      _initializerDefineProperty(this, \"allocating\", _descriptor15, this);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", undefined);\n      _defineProperty(this, \"contactsSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"purchaseOrders\", _descriptor16, this);\n      _initializerDefineProperty(this, \"purchaseOrdersPage\", _descriptor17, this);\n      _defineProperty(this, \"purchaseOrderSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"purchaseOrderItems\", _descriptor18, this);\n      _initializerDefineProperty(this, \"purchaseOrderItemsPage\", _descriptor19, this);\n      _defineProperty(this, \"purchaseOrderItemSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"showBillDeleteConfirmModal\", _descriptor20, this);\n      _initializerDefineProperty(this, \"billTypeChangeConfirmation\", _descriptor21, this);\n      _initializerDefineProperty(this, \"billResponses\", _descriptor22, this);\n      _initializerDefineProperty(this, \"billTypeResponseHandlerVisible\", _descriptor23, this);\n      _initializerDefineProperty(this, \"setContactAliasModalVisible\", _descriptor24, this);\n      _initializerDefineProperty(this, \"selectedBillItemForms\", _descriptor25, this);\n      _defineProperty(this, \"isHandlingTransition\", false);\n      _defineProperty(this, \"resetChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.isHandlingTransition) return;\n          this.selectedBillItemForms = [];\n          const billValidations = (0, _bill.default)(this.intl);\n          this.billForm = new _emberChangeset.Changeset(this.args.bill, (0, _emberChangesetValidations.default)(billValidations), billValidations);\n          const sortedItems = this.sortBillItems(this.loadedBillItems);\n          const billItemValidations = (0, _billItem.default)(this.intl);\n          this.billItemForms = sortedItems.map(item => new _emberChangeset.Changeset(item, (0, _emberChangesetValidations.default)(billItemValidations), billItemValidations));\n\n          // pending (unsaved) attachments belong to the previous bill - drop them\n          this.attachments = [];\n          const hasAttachments = this.allAttachments.length > 0;\n          this.attachmentsVisible = hasAttachments && !this.condensedMode;\n          this.attachmentIndex = 0;\n          if (!this.args.bill.isNew) {\n            (0, _runloop.next)(this, async () => {\n              await this.validateBillForm();\n            });\n          }\n\n          // hold the loading state so swapping to the next bill is noticeable\n          yield (0, _emberConcurrency.timeout)(300);\n        }\n      }), {\n        restartable: true\n      }, \"resetChangeset\", null));\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            let effectiveSearchTerm;\n            if (searchTerm === undefined) {\n              if (this.billForm.get('issuerContact')) {\n                effectiveSearchTerm = '';\n              } else {\n                effectiveSearchTerm = this.billForm.get('issuer');\n              }\n            } else {\n              effectiveSearchTerm = searchTerm.trim();\n            }\n            if (effectiveSearchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = effectiveSearchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (effectiveSearchTerm?.length) {\n              contactFilter.and.push((0, _searchFilter.default)(['name'], effectiveSearchTerm));\n            }\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"onSearchPurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.clearPurchaseOrderIfReferenceChanged(searchTerm);\n          this.billForm.set('reference', searchTerm);\n          yield this.loadPurchaseOrders(searchTerm);\n        }\n      }), {\n        restartable: true\n      }, \"onSearchPurchaseOrders\", null));\n      _defineProperty(this, \"loadMorePurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.loadPurchaseOrders(this.purchaseOrderSearchTerm);\n        }\n      }), null, \"loadMorePurchaseOrders\", null));\n      _defineProperty(this, \"loadPurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const purchaseOrder = this.billForm.get('purchaseOrder');\n            if (!purchaseOrder) {\n              this.resetPurchaseOrderItems();\n              return [];\n            }\n            const effectiveSearchTerm = searchTerm?.trim?.();\n            if (effectiveSearchTerm !== this.purchaseOrderItemSearchTerm) {\n              this.resetPurchaseOrderItems();\n            }\n            if (this.purchaseOrderItemsPage?.currentPage >= this.purchaseOrderItemsPage?.totalPages) {\n              return this.purchaseOrderItems;\n            }\n            const purchaseOrderItemFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'purchaseOrder',\n                op: 'EQ',\n                value: purchaseOrder.id\n              }]\n            };\n            if (effectiveSearchTerm?.length) {\n              purchaseOrderItemFilter.and.push((0, _searchFilter.default)(['sku', 'description'], effectiveSearchTerm));\n            }\n            const nextPageNumber = (this.purchaseOrderItemsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('purchase-order-item', {\n              filter: purchaseOrderItemFilter,\n              sort: 'sortIndex',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.purchaseOrderItemsPage = nextPage.meta;\n            this.purchaseOrderItems = [...this.purchaseOrderItems, ...nextPage.toArray()];\n            return this.purchaseOrderItems;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.somethingWentWrongLoadingPurchaseOrderItems'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadPurchaseOrderItems\", null));\n      _defineProperty(this, \"saveContactAlias\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const contact = this.billForm.get('issuerContact');\n            if (!contact || !this.args.bill.issuer) return;\n            contact.aliases.push(this.args.bill.issuer);\n            // save the contact to persist the alias\n            yield contact.save();\n            this.setContactAliasModalVisible = false;\n            this.notifications.success({\n              message: this.intl.t('components.bill-editor.Contact alias saved successfully')\n            });\n            yield this.billsData.reloadBills.perform();\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.bill-editor.somethingWentWrongWhileSavingTheContactAlias')\n            });\n          }\n        }\n      }), null, \"saveContactAlias\", null));\n      _defineProperty(this, \"save\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (syncToAccountingPackage = false) {\n          try {\n            const wasNew = this.args.bill.isNew;\n            const originalIssuerContactId = this.args.bill.belongsTo('issuerContact').id() || null;\n            if (!wasNew) {\n              yield this.confirmBillTypeMatchesTotal();\n            }\n            if (!(yield this.validateBillForm({\n              showWarning: true\n            }))) return false;\n            const selectedIssuerContactId = this.billForm.get('issuerContact')?.id || null;\n            const issuerContactAdded = !wasNew && !originalIssuerContactId && selectedIssuerContactId;\n            const issuerContact = this.billForm.get('issuerContact');\n            const purchaseOrder = this.billForm.get('purchaseOrder');\n            this.billForm.rollbackProperty('issuerContact');\n            this.billForm.rollbackProperty('purchaseOrder');\n            this.args.bill.issuerContact = issuerContact?.content || issuerContact || null;\n            this.args.bill.purchaseOrder = purchaseOrder?.content || purchaseOrder || null;\n            yield this.billForm.save();\n            if (wasNew) {\n              yield Promise.all(this.attachments.filter(attachment => attachment.isNew).map(attachment => attachment.save()));\n            }\n            let sortIndex = 0;\n            const itemPromises = this.billItemForms.map(form => {\n              if (form.get(deleteKey)) {\n                return form.get('data').destroyRecord();\n              } else {\n                const billItem = form.get('data');\n                const purchaseOrderItem = form.get('purchaseOrderItem');\n                form.rollbackProperty('purchaseOrderItem');\n                billItem.purchaseOrderItem = purchaseOrderItem?.content || purchaseOrderItem || null;\n                form.set('sortIndex', sortIndex++);\n                return form.save();\n              }\n            });\n            yield Promise.all(itemPromises);\n            const formsToDelete = this.billItemForms.filter(f => f.get(deleteKey));\n            this.billItemForms.removeObjects(formsToDelete);\n            this.notifications.success(this.intl.t('components.bill-editor.Bill successfully saved'));\n            if (wasNew) {\n              this.billsData.addBill(this.args.bill);\n              this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', this.args.bill.id);\n            } else if (issuerContactAdded) {\n              yield this.billsData.reloadBills.perform();\n            }\n            if (syncToAccountingPackage) {\n              const response = yield this.accountingPlatform.sendBill.perform(this.args.bill);\n              this.handleAccountingPackageResponse(response);\n            }\n            return true;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.There was an error while saving the bill'),\n              error\n            });\n            return false;\n          }\n        }\n      }), null, \"save\", \"drop\"));\n      _defineProperty(this, \"syncToAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!(yield this.validateBillForm())) return;\n          const response = yield this.accountingPlatform.sendBill.perform(this.args.bill);\n          this.handleAccountingPackageResponse(response);\n        }\n      }), null, \"syncToAccountingPackage\", null));\n      _defineProperty(this, \"allocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!(yield this.validateBillForm())) return;\n          this.allocating = true;\n        }\n      }), null, \"allocate\", null));\n      _defineProperty(this, \"changeStatusWithoutValidations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (targetStatus) {\n          try {\n            this.args.bill.set('status', targetStatus);\n            yield this.args.bill.save();\n            this.notifications.success(this.intl.t('components.bill-editor.Bill successfully saved'));\n            this.removeBillAndNavigateToNext(this.args.bill);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatusWithoutValidations\", null));\n      _defineProperty(this, \"changeStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (targetStatus, syncToAccountingPackage = false) {\n          try {\n            if (!(yield this.validateBillForm())) return;\n            this.billForm.set('status', targetStatus);\n            const saved = yield this.save.perform(syncToAccountingPackage);\n            if (!saved) return;\n            this.removeBillAndNavigateToNext(this.args.bill);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatus\", null));\n      _defineProperty(this, \"deleteBill\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const bill = this.args.bill;\n            yield this.invoicedCosts.requestDelete.perform({\n              isInvoiced: bill.isInvoiced,\n              title: this.intl.t('services.invoiced-costs.Delete linked bill'),\n              message: this.intl.t('services.invoiced-costs.billMessage'),\n              deleteCb: async () => {\n                const nextBill = document.querySelector('[active-bill=\"\"]')?.nextElementSibling;\n                try {\n                  // Instead of directly deleting just mark it as delete, remove from service data and then delete bill\n                  await bill.deleteRecord();\n                  await this.billsData.removeBill(bill);\n                  await bill.save();\n                  if (nextBill) {\n                    nextBill.click();\n                  } else {\n                    this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n                  }\n                  this.notifications.success(this.intl.t('components.bill-editor.Successfully deleted bill'));\n                } finally {\n                  this.showBillDeleteConfirmModal = false;\n                }\n              }\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong deleting bill'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteBill\", null));\n      this.router.on('routeWillChange', this.preventInternalNavigation);\n      window.addEventListener('beforeunload', this.preventBrowserClose);\n      this.resetChangeset.perform();\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.router.off('routeWillChange', this.preventInternalNavigation);\n      window.removeEventListener('beforeunload', this.preventBrowserClose);\n    }\n    viewDuplicateBills() {\n      const billNumber = this.args.bill.billNumber?.trim();\n      if (!billNumber) return;\n      const url = this.router.urlFor('entity.builda-price.operations.incoming.bills');\n      const query = new URLSearchParams({\n        search: billNumber,\n        status: ''\n      });\n      window.open(`${url}?${query}`, '_blank');\n    }\n    triggerClose() {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n    }\n    triggerSave(event) {\n      event.preventDefault();\n      this.save.perform();\n    }\n    triggerNextBill(event) {\n      event.preventDefault();\n      this.nextBill();\n    }\n    nextBill() {\n      // TODO this is gross but easier than using props\n      const current = document.querySelector('[active-bill=\"\"]');\n      if (current?.nextElementSibling) {\n        current.nextElementSibling.click();\n        return true;\n      }\n      return false;\n    }\n    triggerPreviousBill(event) {\n      event.preventDefault();\n      this.previousBill();\n    }\n    previousBill() {\n      // TODO this is gross but easier than using props\n      const current = document.querySelector('[active-bill=\"\"]');\n      if (current?.previousElementSibling) {\n        current.previousElementSibling.click();\n        return true;\n      }\n      return false;\n    }\n    removeBillAndNavigateToNext(bill) {\n      // anytime this is true you need to remove it from the list anyway\n      // no billStatus = ALL\n      const billOutsideFilter = this.args.billStatus && this.args.billStatus !== bill.status;\n\n      // only advance if the bill no longer exists in the list or the bill has moved to accepted\n      const shouldAutoAdvance = billOutsideFilter || bill.status === 'ACCEPTED';\n      if (shouldAutoAdvance) {\n        const hasNextBill = this.nextBill();\n        if (!hasNextBill) {\n          this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n        }\n      }\n      if (billOutsideFilter) {\n        this.billsData.removeBill(bill);\n      }\n    }\n    validateBothDescriptionAndProductCode(changeset) {\n      if (changeset.get('productCode') || changeset.get('description')) {\n        changeset.validate('productCode');\n        changeset.validate('description');\n      }\n    }\n    preventInternalNavigation(transition) {\n      if (this.isHandlingTransition) return;\n      if (this.hasUnsavedChanges) {\n        this.isHandlingTransition = true;\n        const confirmLeave = window.confirm(this.intl.t('components.bill-editor.youHaveUnsavedChangesToThisBillAreYouSureYouWantToLeave'));\n        if (!confirmLeave) {\n          transition.abort();\n        } else {\n          // unload safely all new records\n          this.billItemForms.forEach(form => {\n            const record = form.get('data');\n            if (record.isNew) {\n              record.unloadRecord();\n            } else {\n              record.rollbackAttributes();\n            }\n          });\n        }\n        (0, _runloop.next)(() => {\n          this.isHandlingTransition = false;\n        });\n      }\n    }\n    preventBrowserClose(event) {\n      if (this.hasUnsavedChanges) {\n        event.preventDefault();\n        event.returnValue = '';\n      }\n    }\n    nextAttachment() {\n      const attachmentCount = this.allAttachments.length;\n      if (!attachmentCount) return;\n      this.attachmentIndex = (this.attachmentIndex + 1) % attachmentCount;\n    }\n    previousAttachment() {\n      const attachmentCount = this.allAttachments.length;\n      if (!attachmentCount) return;\n      this.attachmentIndex = (this.attachmentIndex - 1 + attachmentCount) % attachmentCount;\n    }\n    viewAttachment(attachment) {\n      const attachmentIndex = this.allAttachments.findIndex(item => attachment.id && item.id === attachment.id || item.href === attachment.href);\n      if (attachmentIndex >= 0) {\n        this.attachmentIndex = attachmentIndex;\n      }\n      this.attachmentsVisible = true;\n    }\n    async attachmentsUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const newAttachments = attachments.map(attachment => {\n          return this.store.createRecord('bill-attachment', {\n            bill: this.args.bill,\n            entity: this.sessionData.entity,\n            data: attachment.data,\n            filename: attachment.filename,\n            fileType: attachment.fileType,\n            extension: attachment.extension,\n            size: attachment.fileSize\n          });\n        });\n        if (!this.args.bill.isNew) {\n          await Promise.all(newAttachments.map(attachment => attachment.save()));\n        }\n        this.attachments = [...this.attachments, ...newAttachments];\n        if (newAttachments.length) {\n          this.attachmentIndex = this.allAttachments.length - 1;\n        }\n        this.attachmentsVisible = this.allAttachments.length > 0;\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (uploadError) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongWhileSavingAttachments'),\n          error: uploadError\n        });\n      }\n    }\n    async deleteAttachment(attachment) {\n      try {\n        const linkAttachmentsToBill = this.args.bill.hasMany('attachments').value();\n        const linkRecord = linkAttachmentsToBill?.find(item => attachment.id && item.id === attachment.id || item.attachmentInfo.href === attachment.href);\n        if (linkRecord?.isNew) {\n          linkRecord.unloadRecord();\n        } else {\n          await linkRecord?.destroyRecord();\n        }\n        this.attachments = this.attachments.filter(item => item.attachmentInfo.href !== attachment.href);\n        const attachmentsCount = this.allAttachments.length;\n        if (attachmentsCount === 0) {\n          this.attachmentsVisible = false;\n          this.attachmentIndex = 0;\n        } else if (this.attachmentIndex >= attachmentsCount) {\n          this.attachmentIndex = attachmentsCount - 1;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongWhileDeletingTheAttachment'),\n          error: error\n        });\n      }\n    }\n    addNewBillItem() {\n      const billItemValidations = (0, _billItem.default)(this.intl);\n      this.billItemForms = [...this.billItemForms, new _emberChangeset.Changeset(this.store.createRecord('bill-item', {\n        bill: this.args.bill,\n        entity: this.sessionData.entity,\n        sortIndex: this.billItemForms.length\n      }), (0, _emberChangesetValidations.default)(billItemValidations), billItemValidations)];\n\n      // added settimeout to make sure last row is rendered and then focus into created row\n      setTimeout(() => {\n        const row = document.querySelector('#bill-items-table tbody tr:last-child');\n        const input = row?.querySelector('input[name=\"productCode\"]');\n        row?.scrollIntoView({\n          behavior: 'smooth',\n          block: 'center'\n        });\n        input?.focus({\n          preventScroll: true\n        });\n      }, 10);\n    }\n    toggleSelectAll() {\n      if (this.allBillItemsSelected) {\n        this.selectedBillItemForms = [];\n      } else {\n        this.selectedBillItemForms = this.billItemForms;\n      }\n    }\n    toggleSelected(item, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedBillItemForms.indexOf(item);\n      if (i < 0) {\n        this.selectedBillItemForms = [...this.selectedBillItemForms, item];\n      } else {\n        this.selectedBillItemForms = this.selectedBillItemForms.toSpliced(i, 1);\n      }\n    }\n    deleteSelectedBillItemForms() {\n      for (const form of this.selectedBillItemForms) {\n        form.set(deleteKey, true);\n      }\n      this.billItemForms = [...this.billItemForms];\n      this.selectedBillItemForms = [];\n    }\n    async loadPurchaseOrders(searchTerm) {\n      try {\n        const effectiveSearchTerm = searchTerm?.trim?.();\n        if (effectiveSearchTerm !== this.purchaseOrderSearchTerm) {\n          this.purchaseOrdersPage = undefined;\n          this.purchaseOrders = [];\n          this.purchaseOrderSearchTerm = effectiveSearchTerm;\n        }\n        const purchaseOrderFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }]\n        };\n        if (effectiveSearchTerm?.length) {\n          purchaseOrderFilter.and.push((0, _searchFilter.default)(['purchaseOrderNumber'], effectiveSearchTerm));\n        }\n        const nextPageNumber = (this.purchaseOrdersPage?.currentPage || 0) + 1;\n        const nextPage = await this.store.query('purchase-order', {\n          filter: purchaseOrderFilter,\n          sort: 'purchaseOrderNumber',\n          page: {\n            size: 10,\n            number: nextPageNumber\n          }\n        });\n        this.purchaseOrdersPage = nextPage.meta;\n        this.purchaseOrders = [...this.purchaseOrders, ...nextPage.toArray()];\n        return this.purchaseOrders;\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongLoadingMorePurchaseOrders'),\n          error\n        });\n      }\n    }\n    async setIssuerContact(contact) {\n      const hadContact = !!this.billForm.get('issuerContact');\n      const savedBillHasIssuerString = !!this.args.bill.issuer;\n      const contactNameMatches = contact && savedBillHasIssuerString && this.billForm.get('issuerContact.name') === this.args.bill.issuer;\n      if (savedBillHasIssuerString && !hadContact && !contactNameMatches) {\n        const results = await this.store.query('contact', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              or: [{\n                field: 'aliases',\n                op: 'CONTAINS_ILIKE',\n                value: `${(0, _searchTermEscape.searchTermEscape)(this.args.bill.issuer)}`\n              }, {\n                field: 'name',\n                op: 'EQ',\n                value: this.args.bill.issuer\n              }]\n            }]\n          },\n          pageSize: 1\n        });\n        if (!results?.toArray()?.length) {\n          this.setContactAliasModalVisible = true;\n        }\n      }\n      this.billForm.set('issuerContact', contact || null);\n      this.billForm.set('issuer', contact?.name || null);\n      if (contact?.defaultBillAllocationType && this.args.bill.isNew) {\n        this.billForm.set('allocationType', contact.defaultBillAllocationType);\n      }\n    }\n    async setDefaultAllocationType() {\n      const currentAllocationType = this.billForm.get('allocationType');\n      const contact = this.store.peekRecord('contact', this.billForm.get('issuerContact').id);\n      contact.set('defaultBillAllocationType', currentAllocationType);\n      await contact.save();\n    }\n    get hasDifferentAllocationType() {\n      if (!this.billForm.get('issuerContact')) return false;\n      const currentAllocationType = this.billForm.get('allocationType');\n      const originalAllocationType = this.billForm.get('issuerContact').defaultBillAllocationType;\n      return currentAllocationType !== originalAllocationType;\n    }\n    setPurchaseOrder(purchaseOrder) {\n      const existingPurchaseOrder = this.billForm.get('purchaseOrder');\n      this.billForm.set('purchaseOrder', purchaseOrder || null);\n      this.billForm.set('reference', purchaseOrder?.purchaseOrderNumber);\n      this.resetPurchaseOrderItems();\n      if (existingPurchaseOrder?.id !== purchaseOrder?.id) {\n        this.clearBillItemPurchaseOrderItems();\n      }\n    }\n    clearPurchaseOrderIfReferenceChanged(reference) {\n      const purchaseOrder = this.billForm.get('purchaseOrder');\n      if (purchaseOrder?.purchaseOrderNumber && purchaseOrder.purchaseOrderNumber !== reference?.trim?.()) {\n        this.billForm.set('purchaseOrder', null);\n        this.resetPurchaseOrderItems();\n        this.clearBillItemPurchaseOrderItems();\n      }\n    }\n    resetPurchaseOrderItems() {\n      this.purchaseOrderItemsPage = undefined;\n      this.purchaseOrderItems = [];\n      this.purchaseOrderItemSearchTerm = undefined;\n    }\n    clearBillItemPurchaseOrderItems() {\n      this.billItemForms.forEach(item => {\n        item.set('purchaseOrderItem', null);\n      });\n    }\n    setBillItemPurchaseOrderItem(item, purchaseOrderItem) {\n      item.set('purchaseOrderItem', purchaseOrderItem || null);\n    }\n    async createIssuerContact(name) {\n      const contactName = name?.trim?.();\n      if (!contactName) return;\n      try {\n        const contact = await this.store.createRecord('contact', {\n          entity: this.sessionData.entity,\n          name: contactName\n        }).save();\n        this.setIssuerContact(contact);\n        this.contacts = [contact, ...this.contacts];\n        this.notifications.success(this.intl.t('components.bill-editor.Contact created'));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongCreatingTheContact'),\n          error\n        });\n      }\n    }\n    async validateBillForm({\n      showWarning = false\n    } = {}) {\n      await this.billForm.validate();\n      let itemsInvalid = false;\n      for (const form of this.billItemForms) {\n        if (form.get(deleteKey)) {\n          continue;\n        }\n        await form.validate();\n        if (form.isInvalid) {\n          itemsInvalid = true;\n        }\n      }\n      if (!this.isTotalPriceValid) {\n        if (showWarning) {\n          this.notifications.warning(this.intl.t(this.billForm.get('billType') === 'CREDIT_NOTE' ? 'components.bill-editor.Total price must be less than zero' : 'components.bill-editor.Total price must be greater than zero'));\n        }\n        return false;\n      }\n      if (this.billForm.isInvalid || itemsInvalid || !this.billForm.get('issuerContact')) {\n        if (showWarning) {\n          this.notifications.warning(this.intl.t('components.bill-editor.You must complete the form'));\n        }\n        return false;\n      }\n      return true;\n    }\n    confirmBillTypeMatchesTotal() {\n      const suggestedBillType = this.suggestedBillType;\n      if (!suggestedBillType) return true;\n      return new Promise(resolve => {\n        const currentBillType = this.billForm?.get('billType');\n        this.billTypeChangeConfirmation = {\n          suggestedBillType,\n          billType: suggestedBillType === 'CREDIT_NOTE' ? this.intl.t('shared.bill.Credit note') : this.intl.t('common.Bill'),\n          sign: suggestedBillType === 'CREDIT_NOTE' ? this.intl.t('common.negative') : this.intl.t('common.positive'),\n          existingBillTypePural: currentBillType === 'CREDIT_NOTE' ? this.intl.t('common.Credit notes') : this.intl.t('common.Bills'),\n          existingSign: currentBillType === 'CREDIT_NOTE' ? this.intl.t('common.negative') : this.intl.t('common.positive'),\n          resolve\n        };\n      });\n    }\n    get suggestedBillType() {\n      if (this.args.bill.xeroLinked) return null;\n      const currentBillType = this.billForm?.get('billType');\n      if (currentBillType === 'BILL' && this.totalPrice < 0) {\n        return 'CREDIT_NOTE';\n      }\n      if (currentBillType === 'CREDIT_NOTE' && this.totalPrice > 0) {\n        return 'BILL';\n      }\n      return null;\n    }\n    handleBillTypeChange(confirmed) {\n      const confirmation = this.billTypeChangeConfirmation;\n      if (!confirmation) return;\n      if (confirmed) {\n        this.billForm.set('billType', confirmation.suggestedBillType);\n      }\n      confirmation.resolve(confirmed);\n      this.billTypeChangeConfirmation = null;\n    }\n    get isTotalPriceValid() {\n      return this.billForm?.get('billType') === 'CREDIT_NOTE' ? this.totalPrice < 0 : this.totalPrice > 0;\n    }\n    get billActions() {\n      const actions = {\n        primaryAction: undefined,\n        secondaryActions: []\n      };\n\n      // Only allow \"Mark as Held\" when the bill form is invalid and the bill is not already held.\n      if (!this.isBillFormValid && this.args.bill.status !== 'HELD' && !this.args.bill.isNew) {\n        actions.primaryAction = {\n          name: this.intl.t('components.bill-editor.Mark as held'),\n          action: this.changeStatusWithoutValidations,\n          targetStatus: 'HELD'\n        };\n        return actions;\n      }\n      if (!this.isBillFormPristine) return actions;\n      const items = this.loadedBillItems;\n      const status = this.args.bill.status;\n      if (!items.length || this.args.bill.isNew) return actions;\n      if (status === 'DRAFT') {\n        if (this.args.bill.fullyMapped) {\n          // fully allocated -> accept it; syncing is only offered once accepted\n          actions.primaryAction = {\n            name: this.intl.t('components.bill-editor.Mark as accepted'),\n            action: this.changeStatus,\n            targetStatus: 'ACCEPTED'\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('common.Allocate'),\n            action: this.allocate\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('common.Allocate'),\n            action: this.allocate\n          };\n        }\n        actions.secondaryActions.push({\n          name: this.intl.t('components.bill-editor.Mark as paid'),\n          action: this.changeStatus,\n          targetStatus: 'PAID'\n        });\n        actions.secondaryActions.push({\n          name: this.intl.t('components.bill-editor.Mark as held'),\n          action: this.changeStatus,\n          targetStatus: 'HELD'\n        });\n        if (this.accountingPlatform.activePlatform) actions.secondaryActions.push({\n          name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n          action: this.syncToAccountingPackage\n        });\n      } else if (status === 'ACCEPTED') {\n        if (!this.args.bill.xeroLinked && !this.args.bill.quickbooksLinked && this.accountingPlatform.activePlatform) {\n          actions.primaryAction = {\n            name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('components.bill-editor.Mark as paid'),\n            action: this.changeStatus,\n            targetStatus: 'PAID'\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('components.bill-editor.Mark as paid'),\n            action: this.changeStatus,\n            targetStatus: 'PAID'\n          };\n          if (this.accountingPlatform.activePlatform) actions.secondaryActions.push({\n            name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          });\n        }\n        actions.secondaryActions.push({\n          name: this.intl.t('common.Allocate'),\n          action: this.allocate\n        });\n        actions.secondaryActions.push({\n          name: this.intl.t('components.bill-editor.Revert to Draft'),\n          action: this.changeStatus,\n          targetStatus: 'DRAFT'\n        });\n      } else if (status === 'PAID') {\n        if (this.accountingPlatform.activePlatform) {\n          actions.primaryAction = {\n            name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('components.bill-editor.Revert to Draft'),\n            action: this.changeStatus,\n            targetStatus: 'DRAFT'\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('components.bill-editor.Revert to Draft'),\n            action: this.changeStatusWithoutValidations,\n            targetStatus: 'DRAFT'\n          };\n        }\n      } else if (status === 'HELD') {\n        actions.primaryAction = {\n          name: this.intl.t('components.bill-editor.Revert to Draft'),\n          action: this.changeStatusWithoutValidations,\n          targetStatus: 'DRAFT'\n        };\n      }\n      return actions;\n    }\n    handleAccountingPackageResponse(response) {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        const hasRejection = response?.attachments?.some(resp => resp.rejected);\n        if (hasRejection) {\n          this.billResponses = [response];\n          this.billTypeResponseHandlerVisible = true;\n        } else if (response) {\n          this.notifications.success(this.intl.t('components.bill-editor.Sent bill to Xero'));\n        }\n        return;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        const filterResponses = (response || []).filter(item => Boolean(item));\n        if (filterResponses?.length) {\n          this.billResponses = [filterResponses];\n          this.billTypeResponseHandlerVisible = true;\n        } else {\n          this.notifications.success(this.intl.t('components.bill-editor.Sent bill to QuickBooks'));\n        }\n      }\n    }\n    onBillTypeResponseHandlerCancel() {\n      this.billResponses = [];\n      this.billTypeResponseHandlerVisible = false;\n    }\n    onBillItemAllocatorClose({\n      wasCancelled = false\n    } = {}) {\n      if (!wasCancelled && this.args.bill.status === 'ACCEPTED' && this.args.billStatus !== 'ACCEPTED') {\n        const hasNextBill = this.nextBill();\n        // if we didn't just navigate to a bill then close the bill (there is no more bills)\n        if (!hasNextBill) this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n      }\n      this.allocating = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"invoicedCosts\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"billForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"billItemForms\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"attachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"attachmentIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"attachmentsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"allocating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrders\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrdersPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrderItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrderItemsPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"showBillDeleteConfirmModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"billTypeChangeConfirmation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"billResponses\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"billTypeResponseHandlerVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"setContactAliasModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"selectedBillItemForms\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"viewDuplicateBills\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewDuplicateBills\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerNextBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerNextBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerPreviousBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerPreviousBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previousBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"previousBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateBothDescriptionAndProductCode\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"validateBothDescriptionAndProductCode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventInternalNavigation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"preventInternalNavigation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventBrowserClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"preventBrowserClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previousAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"previousAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"viewAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"attachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"attachmentsUploadComplete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewBillItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewBillItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelectAll\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelectAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteSelectedBillItemForms\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteSelectedBillItemForms\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIssuerContact\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setIssuerContact\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultAllocationType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultAllocationType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPurchaseOrder\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPurchaseOrder\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setBillItemPurchaseOrderItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setBillItemPurchaseOrderItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createIssuerContact\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createIssuerContact\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBillTypeChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBillTypeChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBillTypeResponseHandlerCancel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBillTypeResponseHandlerCancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBillItemAllocatorClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBillItemAllocatorClose\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillEditorComponent);\n});","define(\"portal/components/bill-item-allocator\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/tree-item\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _treeItem, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/tree-item\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @containerClass='modal-content bill-item-allocator__modal-container modal-dialog-scrollable'\n    @onClose={{@onClose}}\n    @translucentOverlay={{true}}\n    {{did-insert (perform this.updateItems @bills)}}\n    {{did-update (perform this.updateItems @bills)}}\n  >\n    <div class='modal-header'>\n      <h5 class='modal-title'>\n        {{t 'common.Allocating'}}\n      </h5>\n    </div>\n  \n    <div class='modal-body p-0'>\n      <div class='d-flex h-100'>\n        {{#if this.isLoading}}\n          <div\n            class='h-100 w-100 d-flex align-items-center justify-content-center'\n          >\n            <LoadingIcon @type='ripple' />\n          </div>\n        {{else}}\n          <div class='overflow-auto border-right' style='flex: 2; min-width: 0;'>\n            <table class='table align-middle'>\n              <thead>\n                <tr>\n                  <th\n                    class='text-center ps-2'\n                    role='button'\n                    data-test-allocator-select-all\n                    {{on 'click' this.toggleSelectAll}}\n                  >\n                    {{! template-lint-disable no-nested-interactive }}\n                    <input\n                      class='pe-none'\n                      type='checkbox'\n                      checked={{this.allItemsSelected}}\n                      indeterminate={{this.someItemsSelected}}\n                    />\n                  </th>\n                  <th>{{t 'common.Bill'}}</th>\n                  <th>{{t 'common.Description'}}</th>\n                  <th>{{t 'common.Allocation'}}</th>\n                  <th>{{t 'common.GL account'}}</th>\n                  <th class='text-right pe-2'>{{t 'common.Total'}}</th>\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.items as |item|}}\n                  {{#let (map-get this.stagedChanges item) as |allocation|}}\n                    {{#let\n                      (bool\n                        (or\n                          allocation.project\n                          allocation.task\n                          item.project.id\n                          item.task.id\n                        )\n                      )\n                      as |hasAllocation|\n                    }}\n                      <tr\n                        class={{if hasAllocation 'table-light'}}\n                        role='button'\n                        data-test-allocator-row={{item.id}}\n                        {{! template-lint-disable no-nested-interactive }}\n                        {{on 'click' (fn this.toggleSelected item)}}\n                      >\n                        <td class='text-center ps-2'>\n                          <input\n                            class='pe-none'\n                            type='checkbox'\n                            checked={{includes this.selectedItems item}}\n                          />\n                        </td>\n                        <td>\n                          {{item.bill.billNumber}}\n                        </td>\n                        <td>\n                          {{item.description}}\n                        </td>\n                        <td>\n                          <AllocationHierarchy\n                            @allocations={{or\n                              allocation.allocations\n                              item.allocations\n                            }}\n                          />\n                        </td>\n                        <td>\n                          {{#if allocation.glAccount}}\n                            {{allocation.glAccount.code}}\n                            -\n                            {{allocation.glAccount.name}}\n                          {{else if item.glAccount}}\n                            {{item.glAccount.label}}\n                          {{else}}\n                            –\n                          {{/if}}\n                        </td>\n                        <td class='no-wrap text-right pe-2'>\n                          {{number-format\n                            (math (or item.quantity 0) '*' (or item.unitPrice 0))\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    {{/let}}\n                  {{/let}}\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n  \n          <div class='d-flex flex-column mb-2' style='flex: 1; min-width: 0;'>\n            {{#if (gt this.selectedItems.length 0)}}\n              <div class='overflow-auto flex-grow-1' style='min-height: 0;'>\n                <ItemSelector\n                  @items={{this.projectTree}}\n                  @selectedItem={{this.selectedMap}}\n                  @onChange={{this.onMapChange}}\n                  @nameKey='name'\n                  @homeText={{t 'common.Projects'}}\n                  @noItemsMessage={{t 'common.No tasks or projects'}}\n                  @searchPlaceholder={{t 'common.Search for a task or project'}}\n                  @noSearchItemsMessage={{t 'common.No tasks or projects found'}}\n                />\n              </div>\n  \n            {{else}}\n              <div\n                class='h-100 w-100 d-flex align-items-center justify-content-center'\n              >\n                {{t\n                  'components.bill-item-allocator.Select items to make an allocation'\n                }}\n              </div>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    </div>\n  \n    {{#if this.selectedMap}}\n      <div class='d-flex'>\n        <div style='flex: 2' />\n        <div\n          style='flex: 1;'\n          class='border-start border-top bg-white position-relative z-1'\n        >\n          <div class='p-3'>\n            <button\n              type='button'\n              class='btn btn-link d-block p-0 mb-2'\n              data-test-allocator-clear\n              disabled={{or this.isLoading this.isSaving}}\n              {{on 'click' this.clearSelectedAllocations}}\n            >\n              {{t 'components.bill-item-allocator.Clear allocation'}}\n            </button>\n  \n            <label class='d-block'>GL Account</label>\n            <SearchSelector\n              @onSelect={{this.onOverrideGlAccount}}\n              @model={{changeset (hash value=this.overriddenGlAccount)}}\n              @key='value'\n              @onLoad={{this.loadGlAccounts}}\n              @placeholder={{if\n                this.selectedMap.item.effectivePurchasesGlAccount\n                (concat\n                  this.selectedMap.item.effectivePurchasesGlAccount.name\n                  ' - '\n                  this.selectedMap.item.effectivePurchasesGlAccount.code\n                )\n                '–'\n              }}\n              @optionKeys={{array 'code' 'name'}}\n              @disabled={{or this.isLoading this.isSaving}}\n            />\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  \n    <div class='modal-footer'>\n      <button\n        class='btn btn-secondary'\n        type='button'\n        data-test-allocator-close\n        {{on 'click' this.close}}\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      <div class='ms-auto d-flex'>\n        {{#if\n          (and (not this.primaryActionDisabled) this.secondaryActions.length)\n        }}\n          <DropdownButton\n            @onPrimaryClick={{perform this.primaryAction.task}}\n            @disabled={{this.primaryActionDisabled}}\n            @buttonText={{if\n              this.isSaving\n              (t 'common.Saving')\n              this.primaryAction.label\n            }}\n            @popOverFixed={{true}}\n          >\n            {{#each this.secondaryActions as |action|}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                data-test-allocator-secondary-action\n                {{on 'click' (perform action.task)}}\n              >\n                {{action.label}}\n              </button>\n            {{/each}}\n          </DropdownButton>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            data-test-allocator-primary-action\n            {{on 'click' (perform this.primaryAction.task)}}\n            disabled={{this.primaryActionDisabled}}\n          >\n            {{#if this.isSaving}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{this.primaryAction.label}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"juDA5t6r\",\n    \"block\": \"[[[8,[39,0],[[4,[38,1],[[28,[37,2],[[30,0,[\\\"updateItems\\\"]],[30,2]],null]],null],[4,[38,3],[[28,[37,2],[[30,0,[\\\"updateItems\\\"]],[30,2]],null]],null]],[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content bill-item-allocator__modal-container modal-dialog-scrollable\\\",[30,1],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"common.Allocating\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body p-0\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex h-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"h-100 w-100 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"overflow-auto border-right\\\"],[14,5,\\\"flex: 2; min-width: 0;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table align-middle\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"th\\\"],[24,0,\\\"text-center ps-2\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-allocator-select-all\\\",\\\"\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"toggleSelectAll\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[30,0,[\\\"allItemsSelected\\\"]]],[15,\\\"indeterminate\\\",[30,0,[\\\"someItemsSelected\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Bill\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Description\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Allocation\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.GL account\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right pe-2\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"items\\\"]]],null]],null],null,[[[44,[[28,[37,19],[[30,0,[\\\"stagedChanges\\\"]],[30,3]],null]],[[[44,[[28,[37,20],[[28,[37,21],[[30,4,[\\\"project\\\"]],[30,4,[\\\"task\\\"]],[30,3,[\\\"project\\\",\\\"id\\\"]],[30,3,[\\\"task\\\",\\\"id\\\"]]],null]],null]],[[[1,\\\"                    \\\"],[11,\\\"tr\\\"],[16,0,[52,[30,5],\\\"table-light\\\"]],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-allocator-row\\\",[30,3,[\\\"id\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"toggleSelected\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center ps-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[28,[37,24],[[30,0,[\\\"selectedItems\\\"]],[30,3]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,3,[\\\"bill\\\",\\\"billNumber\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,3,[\\\"description\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                        \\\"],[8,[39,25],null,[[\\\"@allocations\\\"],[[28,[37,21],[[30,4,[\\\"allocations\\\"]],[30,3,[\\\"allocations\\\"]]],null]]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"glAccount\\\"]],[[[1,\\\"                          \\\"],[1,[30,4,[\\\"glAccount\\\",\\\"code\\\"]]],[1,\\\"\\\\n                          -\\\\n                          \\\"],[1,[30,4,[\\\"glAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,3,[\\\"glAccount\\\"]],[[[1,\\\"                          \\\"],[1,[30,3,[\\\"glAccount\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          –\\\\n                        \\\"]],[]]]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"no-wrap text-right pe-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,26],[[28,[37,27],[[28,[37,21],[[30,3,[\\\"quantity\\\"]],0],null],\\\"*\\\",[28,[37,21],[[30,3,[\\\"unitPrice\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]]],[4]]]],[3]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column mb-2\\\"],[14,5,\\\"flex: 1; min-width: 0;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,28],[[30,0,[\\\"selectedItems\\\",\\\"length\\\"]],0],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"overflow-auto flex-grow-1\\\"],[14,5,\\\"min-height: 0;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,29],null,[[\\\"@items\\\",\\\"@selectedItem\\\",\\\"@onChange\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\"],[[30,0,[\\\"projectTree\\\"]],[30,0,[\\\"selectedMap\\\"]],[30,0,[\\\"onMapChange\\\"]],\\\"name\\\",[28,[37,6],[\\\"common.Projects\\\"],null],[28,[37,6],[\\\"common.No tasks or projects\\\"],null],[28,[37,6],[\\\"common.Search for a task or project\\\"],null],[28,[37,6],[\\\"common.No tasks or projects found\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"h-100 w-100 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"components.bill-item-allocator.Select items to make an allocation\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedMap\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"flex: 2\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"flex: 1;\\\"],[14,0,\\\"border-start border-top bg-white position-relative z-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link d-block p-0 mb-2\\\"],[24,\\\"data-test-allocator-clear\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"clearSelectedAllocations\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"components.bill-item-allocator.Clear allocation\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"d-block\\\"],[12],[1,\\\"GL Account\\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,32],null,[[\\\"@onSelect\\\",\\\"@model\\\",\\\"@key\\\",\\\"@onLoad\\\",\\\"@placeholder\\\",\\\"@optionKeys\\\",\\\"@disabled\\\"],[[30,0,[\\\"onOverrideGlAccount\\\"]],[28,[37,33],[[28,[37,34],null,[[\\\"value\\\"],[[30,0,[\\\"overriddenGlAccount\\\"]]]]]],null],\\\"value\\\",[30,0,[\\\"loadGlAccounts\\\"]],[52,[30,0,[\\\"selectedMap\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[28,[37,35],[[30,0,[\\\"selectedMap\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]],\\\" - \\\",[30,0,[\\\"selectedMap\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"code\\\"]]],null],\\\"–\\\"],[28,[37,36],[\\\"code\\\",\\\"name\\\"],null],[28,[37,21],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,\\\"data-test-allocator-close\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"close\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"ms-auto d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[28,[37,38],[[30,0,[\\\"primaryActionDisabled\\\"]]],null],[30,0,[\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,39],null,[[\\\"@onPrimaryClick\\\",\\\"@disabled\\\",\\\"@buttonText\\\",\\\"@popOverFixed\\\"],[[28,[37,2],[[30,0,[\\\"primaryAction\\\",\\\"task\\\"]]],null],[30,0,[\\\"primaryActionDisabled\\\"]],[52,[30,0,[\\\"isSaving\\\"]],[28,[37,6],[\\\"common.Saving\\\"],null],[30,0,[\\\"primaryAction\\\",\\\"label\\\"]]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-allocator-secondary-action\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,2],[[30,6,[\\\"task\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[30,6,[\\\"label\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,\\\"data-test-allocator-primary-action\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"primaryActionDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"primaryAction\\\",\\\"task\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSaving\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"primaryAction\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"@bills\\\",\\\"item\\\",\\\"allocation\\\",\\\"hasAllocation\\\",\\\"action\\\"],false,[\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"did-update\\\",\\\"div\\\",\\\"h5\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"on\\\",\\\"input\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"map-get\\\",\\\"bool\\\",\\\"or\\\",\\\"fn\\\",\\\"td\\\",\\\"includes\\\",\\\"allocation-hierarchy\\\",\\\"number-format\\\",\\\"math\\\",\\\"gt\\\",\\\"item-selector\\\",\\\"button\\\",\\\"label\\\",\\\"search-selector\\\",\\\"changeset\\\",\\\"hash\\\",\\\"concat\\\",\\\"array\\\",\\\"and\\\",\\\"not\\\",\\\"dropdown-button\\\"]]\",\n    \"moduleName\": \"portal/components/bill-item-allocator.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillItemAllocatorComponent = _exports.default = (_class = class BillItemAllocatorComponent extends _component2.default {\n    onOverrideGlAccount(glAccount) {\n      this.overriddenGlAccount = glAccount;\n      for (const item of this.selectedItems) {\n        const map = this.stagedChanges.get(item);\n        this.stagedChanges.set(item, {\n          ...map,\n          glAccount\n        });\n      }\n      this.stagedChanges = this.stagedChanges; // eslint-disable-line no-self-assign\n    }\n    // TODO search-selector containment block end\n\n    get allItemsSelected() {\n      if (!this.items || this.items.length === 0) return false;\n      return this.items.length === this.selectedItems.length;\n    }\n    get someItemsSelected() {\n      if (this.allItemsSelected) return false;\n      return this.selectedItems.length > 0;\n    }\n    get fullyAllocatedBills() {\n      return this.args.bills.filter(bill => {\n        const billItems = this.items.filter(item => item.belongsTo('bill').id() === bill.id);\n        return billItems.length > 0 && billItems.every(item => {\n          const stagedState = this.stagedChanges.get(item);\n          if (stagedState) {\n            return Boolean(stagedState.project || stagedState.task);\n          }\n          return Boolean(item.belongsTo('project').id() || item.belongsTo('task').id());\n        });\n      });\n    }\n    get allocationActions() {\n      const actions = [];\n      const billCount = this.fullyAllocatedBills.length;\n      const billCountLabel = billCount > 0 && this.args.bills.length > 1 ? ` ${billCount} ${this.intl.t('common.bills')}` : '';\n\n      // accepting is only on offer once there's a bill with every item allocated\n      if (billCount > 0) {\n        if (this.accountingPlatform.isActive) {\n          actions.push({\n            label: `${this.intl.t('components.bill-item-allocator.allocateAcceptSend')}${billCountLabel}`,\n            task: this.acceptAllocateSend\n          });\n        }\n        actions.push({\n          label: `${this.intl.t('components.bill-item-allocator.allocateAccept')}${billCountLabel}`,\n          task: this.acceptAllocate\n        });\n      }\n      actions.push({\n        label: this.intl.t('common.Allocate'),\n        task: this.allocate\n      });\n      return actions;\n    }\n    get primaryAction() {\n      return this.allocationActions[0];\n    }\n    get secondaryActions() {\n      return this.allocationActions.slice(1);\n    }\n    get isLoading() {\n      return this.load.isRunning;\n    }\n    get isSaving() {\n      return this.acceptAllocateSend.isRunning || this.acceptAllocate.isRunning || this.allocate.isRunning;\n    }\n    get actionsDisabled() {\n      return this.isLoading || this.isSaving || this.selectedItems.length === 0 && this.stagedChanges.size === 0;\n    }\n    get primaryActionDisabled() {\n      if (this.isLoading || this.isSaving) return true;\n\n      // an already fully allocated bill can be accepted without staging anything\n      if (this.fullyAllocatedBills.length > 0) return false;\n      return this.actionsDisabled;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor3, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"mapSetFromComputeMap\", _descriptor8, this);\n      _initializerDefineProperty(this, \"items\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedItems\", _descriptor0, this);\n      _initializerDefineProperty(this, \"projectTree\", _descriptor1, this);\n      _initializerDefineProperty(this, \"selectedMap\", _descriptor10, this);\n      _initializerDefineProperty(this, \"stagedChanges\", _descriptor11, this);\n      // TODO search-selector containment block start\n      _initializerDefineProperty(this, \"overriddenGlAccount\", _descriptor12, this);\n      _initializerDefineProperty(this, \"glAccounts\", _descriptor13, this);\n      _initializerDefineProperty(this, \"glAccountsPage\", _descriptor14, this);\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchString) {\n          if (searchString !== this.glAccountsPage.searchString) {\n            this.glAccounts = [];\n            this.glAccountsPage = {\n              ...this.glAccountsPage,\n              number: 0,\n              hasNextPage: undefined,\n              searchString\n            };\n          }\n          if (this.glAccountsPage.hasNextPage === false) return this.glAccounts;\n          this.glAccountsPage = {\n            ...this.glAccountsPage,\n            number: this.glAccountsPage.number + 1\n          };\n          const page = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform(searchString, this.glAccountsPage);\n          this.glAccountsPage = {\n            ...this.glAccountsPage,\n            hasNextPage: page.meta.totalPages >= this.glAccountsPage.number\n          };\n          this.glAccounts = [...this.glAccounts, ...page.toArray()];\n          return this.glAccounts;\n        }\n      }), null, \"loadGlAccounts\", null));\n      _defineProperty(this, \"load\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.query('project', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'EQ',\n                value: 'OPEN'\n              }]\n            },\n            include: 'purchasesGlAccount',\n            sort: 'sortIndex'\n          });\n          const projectIds = projects.map(p => p.id);\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'project',\n                op: 'IN',\n                value: projectIds\n              }, {\n                field: 'status',\n                op: 'IN',\n                value: ['ACTIVE', 'DRAFT_CREATED']\n              }, {\n                field: 'project.status',\n                op: 'EQ',\n                value: 'OPEN'\n              }]\n            },\n            include: 'purchasesGlAccount,children',\n            sort: 'path'\n          });\n          this.projectTree = _treeItem.default.constructItemTreeFromProjectAndTasks(tasks, projects);\n        }\n      }), {\n        restartable: true\n      }, \"load\", null));\n      _defineProperty(this, \"updateItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const billIds = this.args.bills.map(b => b.id);\n\n          // TODO could paginate this\n          const items = yield this.store.query('bill-item', {\n            filter: {\n              and: [{\n                field: 'bill',\n                op: 'IN',\n                value: billIds\n              }]\n            },\n            fields: {\n              'bill-items': '_meta.allocationPath'\n            },\n            sort: 'billId,sortIndex,-dateCreated'\n          });\n          this.items = items.toArray();\n\n          // only select items that aren't allocated\n          const unallocatedItems = [];\n          for (const item of this.items) {\n            if (item.belongsTo('project').id() || item.belongsTo('task').id()) continue;\n            unallocatedItems.push(item);\n          }\n          this.selectedItems = unallocatedItems;\n          this.computeMap();\n        }\n      }), null, \"updateItems\", \"drop\"));\n      _defineProperty(this, \"_saveAllocations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const itemsJson = [];\n          for (const [item, stagedState] of this.stagedChanges.entries()) {\n            item.project = stagedState.project;\n            item.task = stagedState.task;\n            item.glAccount = stagedState.glAccount;\n            itemsJson.push(item.toJSON({\n              includeId: true\n            }));\n          }\n          if (itemsJson.length === 0) return;\n          yield this.buildaPrice.updateInvoiceItems(itemsJson);\n\n          // we must reload the records for the server side isAllocated\n          // we could do this client side but this is easier\n          const itemIds = [];\n          const billIds = new Set();\n          for (const item of itemsJson) {\n            itemIds.push(item.id);\n            billIds.add(item.bill);\n          }\n          yield Promise.all([this.store.query('bill-item', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'IN',\n                value: [...itemIds]\n              }]\n            },\n            fields: {\n              'bill-items': '_meta.allocationPath'\n            }\n          }), this.store.query('bill', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'IN',\n                value: [...billIds]\n              }]\n            },\n            fields: {\n              bills: '_meta.allocationPath'\n            }\n          })]);\n          this.stagedChanges.clear();\n        }\n      }), null, \"_saveAllocations\", null));\n      _defineProperty(this, \"_acceptBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const bills = [...this.fullyAllocatedBills];\n          yield Promise.all(bills.map(async b => {\n            b.status = 'ACCEPTED';\n            await b.save();\n            if (this.args.billStatus && this.args.billStatus !== 'ACCEPTED') {\n              this.billsData.removeBill(b);\n            }\n          }));\n        }\n      }), null, \"_acceptBills\", null));\n      _defineProperty(this, \"allocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"allocate\", null));\n      _defineProperty(this, \"acceptAllocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          yield this._acceptBills.perform();\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"acceptAllocate\", null));\n      _defineProperty(this, \"acceptAllocateSend\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          const bills = [...this.fullyAllocatedBills];\n          if (!this.accountingPlatform.isActive) {\n            yield this._acceptBills.perform();\n          } else {\n            let errorCount = 0;\n            yield Promise.all(bills.map(async b => {\n              const oldStatus = b.status;\n              b.status = 'ACCEPTED';\n              await b.save();\n              try {\n                await this.accountingPlatform.sendBill.perform(b);\n                if (this.args.billStatus && this.args.billStatus !== 'ACCEPTED') {\n                  this.billsData.removeBill(b);\n                }\n              } catch (_) {\n                errorCount++;\n                b.status = oldStatus;\n                await b.save();\n              }\n            }));\n            if (errorCount) {\n              this.notifications.error({\n                message: this.intl.t('components.bill-item-allocator.thereAreErrorCountBillsFailedToSend', {\n                  errorCount\n                })\n              });\n              return; // halt early so we don't show success/close the modal\n            }\n          }\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"acceptAllocateSend\", null));\n      this.load.perform();\n    }\n    async computeMap() {\n      await this.load.last;\n      if (!this.selectedItems || this.selectedItems.length === 0) {\n        this.selectedMap = undefined;\n        return;\n      }\n      this.mapSetFromComputeMap = true;\n      let targetProject = null;\n      let targetTask = null;\n      for (const item of this.selectedItems) {\n        let project, task;\n        if (this.stagedChanges.has(item)) {\n          project = this.stagedChanges.get(item).project;\n          task = this.stagedChanges.get(item).task;\n        } else {\n          project = item.belongsTo('project').value();\n          task = item.belongsTo('task').value();\n        }\n        if (!project && !task) {\n          this.selectedMap = undefined;\n          return;\n        }\n        targetProject ??= project;\n        if (targetProject !== project) {\n          this.selectedMap = undefined;\n          return;\n        }\n        targetTask ??= task;\n        if (targetTask !== task) {\n          this.selectedMap = undefined;\n          return;\n        }\n      }\n      if (targetTask) {\n        this.selectedMap = _treeItem.default.findItemInTree(this.projectTree, targetTask);\n      } else if (targetProject) {\n        this.selectedMap = this.projectTree.find(i => i.item === targetProject);\n      } else {\n        this.selectedMap = undefined;\n      }\n    }\n    onMapChange(map) {\n      for (const item of this.selectedItems) {\n        if (map?.item.constructor.modelName === 'project') {\n          const allocations = [_treeItem.default.getPath(this.projectTree, map)];\n          this.stagedChanges.set(item, {\n            project: map.item,\n            task: undefined,\n            allocations,\n            glAccount: this.overriddenGlAccount || map.item.effectivePurchasesGlAccount\n          });\n        } else if (map?.item.constructor.modelName === 'task') {\n          const allocations = [_treeItem.default.getPath(this.projectTree, map)];\n          this.stagedChanges.set(item, {\n            project: undefined,\n            task: map.item,\n            allocations,\n            glAccount: this.overriddenGlAccount || map.item.effectivePurchasesGlAccount\n          });\n        } else if (!this.mapSetFromComputeMap) {\n          // only clear the allocation when the user makes a selection\n          this.stagedChanges.set(item, {\n            project: undefined,\n            task: undefined,\n            allocations: undefined,\n            glAccount: undefined\n          });\n        }\n      }\n      if (this.mapSetFromComputeMap) this.mapSetFromComputeMap = false;\n      this.stagedChanges = this.stagedChanges; // eslint-disable-line no-self-assign\n      this.selectedMap = map;\n    }\n    clearSelectedAllocations() {\n      for (const item of this.selectedItems) {\n        this.stagedChanges.set(item, {\n          project: undefined,\n          task: undefined,\n          allocations: undefined,\n          glAccount: undefined\n        });\n      }\n      this.stagedChanges = this.stagedChanges; // eslint-disable-line no-self-assign\n      this.selectedMap = undefined;\n    }\n    toggleSelectAll() {\n      if (this.allItemsSelected) {\n        this.selectedItems = [];\n      } else {\n        this.selectedItems = [...this.items];\n      }\n      this.computeMap();\n    }\n    toggleSelected(item, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedItems.indexOf(item);\n      if (i < 0) {\n        this.selectedItems = [...this.selectedItems, item];\n      } else {\n        this.selectedItems = this.selectedItems.toSpliced(i, 1);\n      }\n      this.computeMap();\n    }\n    close() {\n      this.stagedChanges.clear();\n      this.selectedItems = [];\n      this.args.onClose({\n        wasCancelled: true\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"mapSetFromComputeMap\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"projectTree\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"selectedMap\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"stagedChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Map();\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"overriddenGlAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"glAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"glAccountsPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        number: 0,\n        size: 10,\n        hasNextPage: undefined,\n        searchString: ''\n      };\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onOverrideGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onOverrideGlAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computeMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"computeMap\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMapChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMapChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedAllocations\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedAllocations\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelectAll\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelectAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillItemAllocatorComponent);\n});","define(\"portal/components/bill-item-summary\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! Aligned right because this sits in the last column of the table }}\n  <InfoPopup\n    @text={{this.summaryText}}\n    @iconName={{this.statusIcon}}\n    @align='right'\n    class={{this.statusClass}}\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"iHYQpaI6\",\n    \"block\": \"[[[8,[39,0],[[16,0,[30,0,[\\\"statusClass\\\"]]],[17,1]],[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,0,[\\\"summaryText\\\"]],[30,0,[\\\"statusIcon\\\"]],\\\"right\\\"]],null]],[\\\"&attrs\\\"],false,[\\\"info-popup\\\"]]\",\n    \"moduleName\": \"portal/components/bill-item-summary.hbs\",\n    \"isStrictMode\": false\n  });\n  const PATH_SEPARATOR = ' › ';\n  const escapeHtml = value => String(value).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n  const toLineBreaks = value => escapeHtml(value).replaceAll('\\n', '<br>');\n  let BillItemSummaryComponent = _exports.default = (_class = class BillItemSummaryComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    // the underlying bill-item. everything shown here comes from server meta\n    // rather than the form, so it is read from the record\n    get record() {\n      return this.args.item?.get('data');\n    }\n    get allocationPaths() {\n      return (this.record?.allocations ?? []).filter(path => path?.length);\n    }\n\n    // mirrors the per item test used by bill.fullymapped\n    get isAllocated() {\n      const record = this.record;\n      return Boolean(record?.isMapped || record?.belongsTo('project').id() || record?.belongsTo('task').id() || this.allocationPaths.length);\n    }\n    get allocation() {\n      if (!this.allocationPaths.length) return null;\n      return this.allocationPaths.map(path => path.join(PATH_SEPARATOR)).join('\\n');\n    }\n    get glAccount() {\n      return this.record?.belongsTo('glAccount').value()?.label || null;\n    }\n\n    // only rows with something to show make it into the popup\n    get rows() {\n      return [{\n        label: this.intl.t('common.Allocation'),\n        value: this.allocation\n      }, {\n        label: this.intl.t('common.GL account'),\n        value: this.glAccount\n      }].filter(row => row.value);\n    }\n    get summaryText() {\n      return [`<strong>${escapeHtml(this.statusLabel)}</strong>`, ...this.rows.map(row => `${escapeHtml(row.label)}: ${toLineBreaks(row.value)}`)].join('<br>');\n    }\n    get statusLabel() {\n      return this.isAllocated ? this.intl.t('common.Allocated') : this.intl.t('common.Not allocated');\n    }\n    get statusIcon() {\n      return this.isAllocated ? 'check-circle' : 'exclamation-circle';\n    }\n    get statusClass() {\n      return this.isAllocated ? 'text-left text-success' : 'text-left text-danger';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillItemSummaryComponent);\n});","define(\"portal/components/bill-type-response-handler\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{@onCancel}}\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @containerClass='block-module'\n  >\n    {{#if this.responseErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some bills failed to send'}}</p>\n      <div class='bill-type-response-handler__table-container'>\n        <table class='bill-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.responseErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-error>\n                <td>{{error}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n  \n    {{#if this.attachmentErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some attachments failed to send to Xero'}}</p>\n      <div class='bill-type-response-handler__table-container'>\n        <table class='bill-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.attachmentErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-attachment-error>\n                <td>{{error.rejectedReason}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n    <div class='block-module__footer'>\n      <button\n        class='button float-end'\n        data-test-bill-type-resource-handler-okay-button\n        type='button'\n        {{on 'click' @onCancel}}\n      >{{t 'common.Okay'}}</button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"Ty6sLlrJ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[30,1],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"responseErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some bills failed to send\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bill-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"bill-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"responseErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some attachments failed to send to Xero\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bill-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"bill-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"attachmentErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-attachment-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"rejectedReason\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end\\\"],[24,\\\"data-test-bill-type-resource-handler-okay-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Okay\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onCancel\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/bill-type-response-handler.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get responseErrors() {\n      return (this.args.responses ?? []).flat().filter(response => typeof response === 'string');\n    }\n    get attachmentErrors() {\n      const responses = (this.args.responses ?? []).reduce((attachments, response) => [...attachments, ...(response.attachments || [])], []);\n      const errors = responses.filter(response => response.rejected);\n      return errors;\n    }\n  });\n});","define(\"portal/components/bills-table\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.allocating}}\n    <BillItemAllocator\n      @bills={{this.selectedBills}}\n      @onClose={{this.closeAllocator}}\n      @billStatus={{@billStatus}}\n    />\n  {{/if}}\n  \n  <div\n    class='overflow-auto h-100'\n    {{did-update this.resetSelectionOnFilterChange this.filterString}}\n  >\n    <div\n      {{! TODO sticky-top bs class is overwritten by our deprecated component}}\n      class='d-flex align-items-center position-sticky bg-white z-1 p-3'\n      style='top: 0; height: 43px;'\n    >\n      {{#if this.someBillsSelected}}\n        <DropdownButton\n          data-test-bills-bulk-actions\n          @direction='bottom-right'\n          @btnClass='btn btn-sm btn-primary '\n          @buttonText={{t 'common.Allocate'}}\n          @onPrimaryClick={{fn (mut this.allocating) (not this.allocating)}}\n          @disabled={{or this.isLoading this.isActionsRunning}}\n        >\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (perform this.setSelectedBillsToHoldStatus)}}\n          >\n            {{t 'components.bills-table.Mark as held'}}\n          </button>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (fn (mut this.showBillsDeleteConfirmModal) true)}}\n          >\n            {{t 'common.Delete'}}\n          </button>\n        </DropdownButton>\n      {{/if}}\n    </div>\n  \n    <table class='table position-relative align-middle'>\n      <thead class='position-sticky' style='top: 43px;'>\n        <tr>\n          <th colspan='1' />\n          {{#if this.showStatusColumn}}\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='status'\n              class='text-nowrap'\n            >\n              {{t 'common.Status'}}\n            </BillsTable::Th>\n          {{/if}}\n          <BillsTable::Th\n            colspan={{this.fromColumnSpan}}\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            @key='issuer'\n            class='text-nowrap'\n          >\n            {{t 'common.From'}}\n          </BillsTable::Th>\n          <BillsTable::Th\n            colspan={{this.numberColumnSpan}}\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            @key='billNumber'\n            class='text-nowrap'\n          >\n            {{t 'common.Number'}}\n          </BillsTable::Th>\n          {{#unless @condensed}}\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='reference'\n              class='text-nowrap'\n            >\n              {{t 'common.Purchase order'}}\n            </BillsTable::Th>\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='issueDate'\n              class='text-nowrap'\n            >\n              {{t 'common.Issue date'}}\n            </BillsTable::Th>\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='dueDate'\n              class='text-nowrap'\n            >\n              {{t 'common.Due date'}}\n            </BillsTable::Th>\n          {{/unless}}\n          <th colspan={{this.allocationColumnSpan}} class='text-nowrap'>\n            {{t 'common.Allocation'}}\n          </th>\n          <BillsTable::Th\n            colspan='1'\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            class='text-nowrap'\n            @key='subtotal'\n          >\n            {{t 'common.Total'}}\n          </BillsTable::Th>\n        </tr>\n      </thead>\n      <InfinityScroll\n        @onLoadMore={{(fn (perform this.loadMoreBills))}}\n        as |didInsert|\n      >\n        <tbody {{did-insert didInsert}}>\n          {{#each this.billsData.bills as |bill|}}\n            {{#let\n              (is-active\n                'entity.builda-price.operations.incoming.bills.bill' bill.id\n              )\n              as |active|\n            }}\n              <tr\n                class={{if active 'table-primary'}}\n                {{on 'click' (fn this.navigateToBill bill.id)}}\n                {{did-insert this.scrollActiveBill active}}\n                {{did-update this.scrollActiveBill active}}\n                role='button'\n                active-bill={{active}}\n                data-test-bill-row={{bill.id}}\n              >\n                {{! template-lint-disable no-nested-interactive }}\n                {{#if (includes-feature-flags 'canManageBills')}}\n                  {{#if bill.newIsValid}}\n                    <td\n                      colspan='1'\n                      role='button'\n                      class='{{if\n                          this.showCondensedStatusStripe\n                          (map-get this.billStatusStripeClasses bill.status)\n                        }}\n                        '\n                      {{on 'click' (fn this.toggleSelected bill)}}\n                    >\n                      <input\n                        class='pe-none'\n                        type='checkbox'\n                        checked={{includes this.selectedBills bill}}\n                      />\n                    </td>\n                  {{else}}\n                    <td\n                      colspan='1'\n                      class='{{if\n                          this.showCondensedStatusStripe\n                          (map-get this.billStatusStripeClasses bill.status)\n                        }}\n                        '\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if this.showStatusColumn}}\n                  <td colspan='1'>\n                    <span\n                      class='badge m-1 fs-7\n                        {{map-get this.billStatusBackgroundClasses bill.status}}\n                        {{if (eq bill.status \"HELD\") \"text-dark\"}}\n                        {{if (eq bill.status \"PAID\") \"text-dark\"}}\n                        '\n                    >\n                      {{bill.statusLabel}}\n                    </span>\n                  </td>\n                {{/if}}\n                <td\n                  colspan={{this.fromColumnSpan}}\n                  data-test-bill-issuer\n                >{{bill.issuer}}</td>\n                <td colspan={{this.numberColumnSpan}} data-test-bill-number>\n                  {{#if bill.billNumber}}\n                    {{bill.billNumber}}\n                    {{#if (eq bill.billType 'CREDIT_NOTE')}}\n                      <span class='badge m-1 fs-7 bg-info'>\n                        {{bill.typeLabel}}\n                      </span>\n                    {{/if}}\n                    {{#if bill.hasDuplicate}}\n                      <span class='badge m-1 fs-7 bg-danger'>\n                        {{t 'common.Duplicate'}}\n                      </span>\n                    {{/if}}\n                    {{#if bill.isAcceptedButNotSyncedToAccountingPlatform}}\n                      <span class='badge m-1 fs-7 bg-danger'>\n                        {{t 'components.bills-table.Not synced to'}}\n                        {{this.accountingPlatform.label}}\n                      </span>\n                    {{/if}}\n                  {{else}}\n                    &mdash;\n                  {{/if}}\n                </td>\n                {{#unless @condensed}}\n                  <td colspan='1'>\n                    {{#if bill.reference}}\n                      {{bill.reference}}\n                      {{#if (this.getPurchaseOrderMatchingStatus bill)}}\n                        <span\n                          class='badge m-1 fs-7\n                            {{this.getPurchaseOrderMatchingStatus bill}}'\n                        >\n                          <FaIcon @icon='shopping-cart' @size='sm' />\n                          &nbsp;PO\n                        </span>\n                      {{/if}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                  <td colspan='1' class='text-nowrap'>\n                    {{#if bill.issueDate}}\n                      {{moment-format bill.issueDate (t 'date.shortWithWeekday')}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                  <td colspan='1' class='text-nowrap'>\n                    {{#if bill.dueDate}}\n                      {{moment-format bill.dueDate (t 'date.shortWithWeekday')}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                {{/unless}}\n                <td colspan={{this.allocationColumnSpan}}>\n                  <AllocationHierarchy @allocations={{bill.allocations}} />\n                </td>\n                <td colspan='1' class='text-nowrap'>\n                  {{number-format bill.subtotal style='currency' dashZero=true}}\n                </td>\n              </tr>\n            {{/let}}\n          {{else}}\n            <tr data-test-bills-empty>\n              <td class='text-center' colspan='12'>\n                {{t 'common.No bills'}}\n              </td>\n            </tr>\n          {{/each}}\n        </tbody>\n      </InfinityScroll>\n    </table>\n  </div>\n  \n  <ConfirmDelete\n    @visible={{this.showBillsDeleteConfirmModal}}\n    @title={{if\n      this.deleteConfirmText\n      (t 'common.Delete bills')\n      (t 'common.Delete bill')\n    }}\n    @messages={{this.deleteMessages}}\n    @confirmText={{this.deleteConfirmText}}\n    @deleteButtonText={{if\n      this.deleteConfirmText\n      (t 'common.Delete bills')\n      (t 'common.Delete bill')\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{(perform this.deleteSelectedBills)}}\n    @onCancel={{fn (mut this.showBillsDeleteConfirmModal) false}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  */\n  {\n    \"id\": \"8rBz0R/o\",\n    \"block\": \"[[[41,[30,0,[\\\"allocating\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@bills\\\",\\\"@onClose\\\",\\\"@billStatus\\\"],[[30,0,[\\\"selectedBills\\\"]],[30,0,[\\\"closeAllocator\\\"]],[30,1]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[11,0],[24,0,\\\"overflow-auto h-100\\\"],[4,[38,3],[[30,0,[\\\"resetSelectionOnFilterChange\\\"]],[30,0,[\\\"filterString\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center position-sticky bg-white z-1 p-3\\\"],[14,5,\\\"top: 0; height: 43px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"someBillsSelected\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-bills-bulk-actions\\\",\\\"\\\"]],[[\\\"@direction\\\",\\\"@btnClass\\\",\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[\\\"bottom-right\\\",\\\"btn btn-sm btn-primary \\\",[28,[37,5],[\\\"common.Allocate\\\"],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"allocating\\\"]]],null],[28,[37,8],[[30,0,[\\\"allocating\\\"]]],null]],null],[28,[37,9],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"setSelectedBillsToHoldStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"components.bills-table.Mark as held\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"table\\\"],[14,0,\\\"table position-relative align-middle\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[14,0,\\\"position-sticky\\\"],[14,5,\\\"top: 43px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showStatusColumn\\\"]],[[[1,\\\"          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"status\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,17],[[16,\\\"colspan\\\",[30,0,[\\\"fromColumnSpan\\\"]]],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"issuer\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.From\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[39,17],[[16,\\\"colspan\\\",[30,0,[\\\"numberColumnSpan\\\"]]],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"billNumber\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Number\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,4]],[[[1,\\\"          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"reference\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Purchase order\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"issueDate\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Issue date\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"dueDate\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Due date\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"allocationColumnSpan\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Allocation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"subtotal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,19],null,[[\\\"@onLoadMore\\\"],[[28,[37,6],[[28,[37,12],[[30,0,[\\\"loadMoreBills\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,\\\"tbody\\\"],[4,[38,21],[[30,5]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"billsData\\\",\\\"bills\\\"]]],null]],null],null,[[[44,[[28,[37,25],[\\\"entity.builda-price.operations.incoming.bills.bill\\\",[30,6,[\\\"id\\\"]]],null]],[[[1,\\\"            \\\"],[11,\\\"tr\\\"],[16,0,[52,[30,7],\\\"table-primary\\\"]],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"active-bill\\\",[30,7]],[16,\\\"data-test-bill-row\\\",[30,6,[\\\"id\\\"]]],[4,[38,11],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"navigateToBill\\\"]],[30,6,[\\\"id\\\"]]],null]],null],[4,[38,21],[[30,0,[\\\"scrollActiveBill\\\"]],[30,7]],null],[4,[38,3],[[30,0,[\\\"scrollActiveBill\\\"]],[30,7]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[\\\"canManageBills\\\"],null],[[[41,[30,6,[\\\"newIsValid\\\"]],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,\\\"colspan\\\",\\\"1\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[[52,[30,0,[\\\"showCondensedStatusStripe\\\"]],[28,[37,28],[[30,0,[\\\"billStatusStripeClasses\\\"]],[30,6,[\\\"status\\\"]]],null]],\\\"\\\\n                      \\\"]]],[4,[38,11],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"toggleSelected\\\"]],[30,6]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[28,[37,30],[[30,0,[\\\"selectedBills\\\"]],[30,6]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[15,0,[29,[[52,[30,0,[\\\"showCondensedStatusStripe\\\"]],[28,[37,28],[[30,0,[\\\"billStatusStripeClasses\\\"]],[30,6,[\\\"status\\\"]]],null]],\\\"\\\\n                      \\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[30,0,[\\\"showStatusColumn\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[15,0,[29,[\\\"badge m-1 fs-7\\\\n                      \\\",[28,[37,28],[[30,0,[\\\"billStatusBackgroundClasses\\\"]],[30,6,[\\\"status\\\"]]],null],\\\"\\\\n                      \\\",[52,[28,[37,32],[[30,6,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"text-dark\\\"],\\\"\\\\n                      \\\",[52,[28,[37,32],[[30,6,[\\\"status\\\"]],\\\"PAID\\\"],null],\\\"text-dark\\\"],\\\"\\\\n                      \\\"]]],[12],[1,\\\"\\\\n                    \\\"],[1,[30,6,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"fromColumnSpan\\\"]]],[14,\\\"data-test-bill-issuer\\\",\\\"\\\"],[12],[1,[30,6,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"numberColumnSpan\\\"]]],[14,\\\"data-test-bill-number\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"billNumber\\\"]],[[[1,\\\"                  \\\"],[1,[30,6,[\\\"billNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,6,[\\\"billType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,6,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"hasDuplicate\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"isAcceptedButNotSyncedToAccountingPlatform\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"components.bills-table.Not synced to\\\"],null]],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,4]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"reference\\\"]],[[[1,\\\"                    \\\"],[1,[30,6,[\\\"reference\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[30,0,[\\\"getPurchaseOrderMatchingStatus\\\"]],[[30,6]],null],[[[1,\\\"                      \\\"],[10,1],[15,0,[29,[\\\"badge m-1 fs-7\\\\n                          \\\",[28,[30,0,[\\\"getPurchaseOrderMatchingStatus\\\"]],[[30,6]],null]]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,33],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"shopping-cart\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n                         PO\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"issueDate\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,34],[[30,6,[\\\"issueDate\\\"]],[28,[37,5],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"dueDate\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,34],[[30,6,[\\\"dueDate\\\"]],[28,[37,5],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"allocationColumnSpan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,35],null,[[\\\"@allocations\\\"],[[30,6,[\\\"allocations\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,36],[[30,6,[\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]]]],[6]],[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bills-empty\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"12\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"common.No bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[5]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,37],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"common.Delete bills\\\"],null],[28,[37,5],[\\\"common.Delete bill\\\"],null]],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"common.Delete bills\\\"],null],[28,[37,5],[\\\"common.Delete bill\\\"],null]],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,12],[[30,0,[\\\"deleteSelectedBills\\\"]]],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,5],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@billStatus\\\",\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@condensed\\\",\\\"didInsert\\\",\\\"bill\\\",\\\"active\\\"],false,[\\\"if\\\",\\\"bill-item-allocator\\\",\\\"div\\\",\\\"did-update\\\",\\\"dropdown-button\\\",\\\"t\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"bills-table/th\\\",\\\"unless\\\",\\\"infinity-scroll\\\",\\\"tbody\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"is-active\\\",\\\"includes-feature-flags\\\",\\\"td\\\",\\\"map-get\\\",\\\"input\\\",\\\"includes\\\",\\\"span\\\",\\\"eq\\\",\\\"fa-icon\\\",\\\"moment-format\\\",\\\"allocation-hierarchy\\\",\\\"number-format\\\",\\\"confirm-delete\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/bills-table.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillsTableComponent = _exports.default = (_class = class BillsTableComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allocating\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showBillsDeleteConfirmModal\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedBills\", _descriptor1, this);\n      _initializerDefineProperty(this, \"originalFilter\", _descriptor10, this);\n      _defineProperty(this, \"loadMoreBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.billsData.loadMoreBills.perform(this.args.filter, this.args.fields, this.args.sort, this.args.pageSize);\n        }\n      }), null, \"loadMoreBills\", \"drop\"));\n      _defineProperty(this, \"deleteSelectedBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const hasOneBill = this.selectedBills.length === 1;\n          const isInvoiced = this.selectedBills.some(bill => bill.isInvoiced);\n          yield this.invoicedCosts.requestDelete.perform({\n            isInvoiced,\n            title: this.intl.t(hasOneBill ? 'services.invoiced-costs.Delete linked bill' : 'services.invoiced-costs.Delete linked bills'),\n            message: this.intl.t(hasOneBill ? 'services.invoiced-costs.billMessage' : 'services.invoiced-costs.billsMessage'),\n            deleteCb: async () => {\n              const bills = [...this.selectedBills];\n              const billIds = bills.map(bill => bill.id);\n              if (!bills.length) {\n                return this.notifications.info(this.intl.t('components.bills-table.youHaveNotSelectedAnyBillsToDelete'));\n              }\n              try {\n                await Promise.all(bills.map(async bill => {\n                  const items = bill.hasMany('items').value();\n\n                  // Instead of directly deleting just mark it as delete, remove from service data and then delete bill\n                  await bill.deleteRecord();\n                  await this.billsData.removeBill(bill);\n                  await bill.save();\n                  if (items) items.forEach(item => item.unloadRecord());\n                }));\n                this.selectedBills = [];\n                if (billIds.includes(this.router.currentRoute?.params?.bill_id)) {\n                  this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n                }\n                this.notifications.success(this.intl.t('components.bills-table.Successfully deleted bills'));\n              } finally {\n                this.showBillsDeleteConfirmModal = false;\n              }\n            }\n          });\n        }\n      }), null, \"deleteSelectedBills\", \"drop\"));\n      _defineProperty(this, \"setSelectedBillsToHoldStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.selectedBills.length) {\n            return this.notifications.info(this.intl.t('components.bills-table.You have not selected any bills'));\n          }\n          const targetStatus = 'HELD';\n          const bills = [...this.selectedBills];\n          const results = yield Promise.allSettled(bills.map(bill => {\n            bill.set('status', targetStatus);\n            return bill.save();\n          }));\n          const failedUpdates = results.filter(r => r.status === 'rejected');\n          if (failedUpdates.length) {\n            this.notifications.error(this.intl.t('components.bills-table.thereAreFailedTotalBillSFailedToUpdate', {\n              failed: failedUpdates.length,\n              total: this.selectedBills.length\n            }));\n          } else {\n            this.notifications.success(this.intl.t('components.bills-table.All bills updated successfully'));\n          }\n          if (this.hasStatusFilter) {\n            results.forEach((result, index) => {\n              if (result.status === 'fulfilled') {\n                this.billsData.removeBill(bills[index]);\n              }\n            });\n          }\n          this.selectedBills = this.selectedBills.filter(bill => this.billsData.bills.includes(bill));\n        }\n      }), null, \"setSelectedBillsToHoldStatus\", \"restartable\"));\n    }\n    get someBillsSelected() {\n      return this.selectedBills.length > 0;\n    }\n    get selectedBillItems() {\n      return this.selectedBills.map(bill => bill.hasMany('items').value()).flat();\n    }\n    get deleteConfirmText() {\n      if (this.selectedBills.length > 1) return this.intl.t('components.bills-table.deleteCountBills', {\n        count: this.selectedBills.length\n      });\n      return null;\n    }\n    scrollActiveBill(element, [active]) {\n      if (!active) return;\n      element.scrollIntoView({\n        block: 'nearest',\n        inline: 'nearest'\n      });\n    }\n    get deleteMessages() {\n      if (this.deleteConfirmText) return this.intl.t('components.bills-table.Do you want to delete these bills');\n      return this.intl.t('components.bill-editor.Do you want to delete this bill');\n    }\n    get showStatusColumn() {\n      return !this.args.condensed && !this.hasStatusFilter;\n    }\n    get hasStatusFilter() {\n      return this.args.filter?.and?.some(filter => filter.field === 'status');\n    }\n    get filterString() {\n      return JSON.stringify(this.args.filter);\n    }\n    get showCondensedStatusStripe() {\n      return this.args.condensed && !this.hasStatusFilter;\n    }\n    get fromColumnSpan() {\n      return this.args.condensed ? 4 : 1;\n    }\n    get numberColumnSpan() {\n      return this.args.condensed ? 2 : 1;\n    }\n    get allocationColumnSpan() {\n      if (this.args.condensed) return 4;\n      return this.showStatusColumn ? 4 : 5;\n    }\n    get billStatusBackgroundClasses() {\n      return new Map([['DRAFT', 'bg-secondary'], ['ACCEPTED', 'bg-info'], ['HELD', 'bg-warning'], ['PAID', 'bg-success'], ['ARCHIVED', 'bg-secondary']]);\n    }\n    resetSelectionOnFilterChange() {\n      const currentFilter = this.filterString;\n      if (this.originalFilter === null) {\n        this.originalFilter = currentFilter;\n        return;\n      }\n      if (this.originalFilter !== currentFilter) {\n        this.selectedBills = [];\n        this.originalFilter = currentFilter;\n      }\n      return;\n    }\n    get billStatusStripeClasses() {\n      return new Map([['DRAFT', 'status-stripe-secondary'], ['ACCEPTED', 'status-stripe-info'], ['HELD', 'status-stripe-warning'], ['PAID', 'status-stripe-success'], ['ARCHIVED', 'status-stripe-secondary']]);\n    }\n    navigateToBill(id) {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', id);\n    }\n    toggleSelected(bill, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedBills.indexOf(bill);\n      if (i < 0) {\n        this.selectedBills = [...this.selectedBills, bill];\n      } else {\n        this.selectedBills = this.selectedBills.toSpliced(i, 1);\n      }\n    }\n    closeAllocator({\n      wasCancelled = false\n    } = {}) {\n      this.allocating = false;\n      if (!wasCancelled) {\n        this.selectedBills = [];\n      }\n    }\n    getPurchaseOrderMatchingStatus(bill) {\n      const purchaseOrderDetails = bill.purchaseOrderDetails;\n      if (!purchaseOrderDetails) return '';\n      const values = Object.values(purchaseOrderDetails);\n      if (values.includes(false) || values.includes('OVER')) {\n        return 'bg-danger';\n      }\n      if (values.includes('PARTIAL')) {\n        return 'bg-warning';\n      }\n      return 'bg-success';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"invoicedCosts\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"allocating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"showBillsDeleteConfirmModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"selectedBills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"scrollActiveBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"scrollActiveBill\"), _class.prototype), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"originalFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"resetSelectionOnFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetSelectionOnFilterChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"navigateToBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"navigateToBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeAllocator\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeAllocator\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillsTableComponent);\n});","define(\"portal/components/bills-table/th\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <th ...attributes role='button' {{on 'click' this.toggleOrderBy}}>\n    {{yield}}\n  \n    {{#if this.icon}}\n      <FaIcon @icon={{this.icon}} />\n    {{/if}}\n  </th>\n  */\n  {\n    \"id\": \"pr4BuFeB\",\n    \"block\": \"[[[11,\\\"th\\\"],[17,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"toggleOrderBy\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"icon\\\"]],[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[30,0,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"th\\\",\\\"on\\\",\\\"yield\\\",\\\"if\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/bills-table/th.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillsTableThComponent = _exports.default = (_class = class BillsTableThComponent extends _component2.default {\n    get direction() {\n      const state = this.args.sort;\n      if (!state?.endsWith(this.args.key)) return false;\n      if (state.startsWith('-')) return 'desc';else return 'asc';\n    }\n    get icon() {\n      switch (this.direction) {\n        case 'asc':\n          return 'caret-up';\n        case 'desc':\n          return 'caret-down';\n        default:\n          return undefined;\n      }\n    }\n    toggleOrderBy() {\n      let newValue;\n      switch (this.direction) {\n        case 'asc':\n          newValue = `-${this.args.key}`;\n          break;\n        case 'desc':\n          newValue = undefined;\n          break;\n        default:\n          newValue = `${this.args.key}`;\n          break;\n      }\n      this.args.onOrderBy(newValue);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"toggleOrderBy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleOrderBy\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillsTableThComponent);\n});","define(\"portal/components/bills-uploader\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"moment\", \"portal/utils/parse-currency-string\", \"portal/utils/search-filter\", \"portal/utils/placemakers-bill-csv-normalizer\", \"portal/utils/bunnings-bill-csv-normalizer\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _moment, _parseCurrencyString, _searchFilter, _placemakersBillCsvNormalizer, _bunningsBillCsvNormalizer, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"moment\",0,\"portal/utils/parse-currency-string\",0,\"portal/utils/search-filter\",0,\"portal/utils/placemakers-bill-csv-normalizer\",0,\"portal/utils/bunnings-bill-csv-normalizer\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n    @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n  >\n    <div class='modal-content' style='max-width: 95vw;'>\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'components.bills-uploader.Import bills'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body overflow-auto'>\n        {{#if this.billFile}}\n          <div class='w-25'>\n            <label class='mb-1'>\n              {{t 'common.Contact'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'components.bills-uploader.No contacts'}}\n              @key='contact'\n              @optionKeys={{array 'name'}}\n              @model={{this.contactChangeSet}}\n              @forceValidationVisible={{gt this.uploadBills.performCount 0}}\n            />\n          </div>\n          <p>\n            {{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}\n          </p>\n          <div class='table-responsive'>\n            <table class='table table-sm table-bordered'>\n              <thead>\n                <tr>\n                  {{#each this.billFile.columnTypes as |type index|}}\n                    <th class='text-center align-top'>\n                      <PtlInput\n                        style='min-width: 85px;'\n                        @type='select'\n                        @label={{number-to-char index}}\n                        {{! the key needs to be a string }}\n                        @key={{concat index}}\n                        @options={{this.billFile.columnTypeOptions}}\n                        @model={{this.billFile.columnTypeForm}}\n                        @selectNoBlankOption={{true}}\n                        @forceValidationVisible={{gt\n                          this.uploadBills.performCount\n                          0\n                        }}\n                      />\n                    </th>\n                  {{/each}}\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.billFile.sampleRows as |columns|}}\n                  <tr>\n                    {{#each columns as |column index|}}\n                      <td\n                        class='no-wrap text-truncate\n                          {{if\n                            (eq\n                              (get this.billFile.columnTypeForm index)\n                              \"do-not-import\"\n                            )\n                            \"opacity-25\"\n                          }}'\n                        style='max-width: 200px;'\n                        title={{column}}\n                      >\n                        {{column}}\n                      </td>\n                    {{/each}}\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n  \n          <div class='d-flex justify-content-end p-2'>\n            {{#if this.uploadBills.isRunning}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{true}}\n              >\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.uploading'}}…\n              </button>\n            {{else}}\n              <button\n                class='btn btn-secondary'\n                type='button'\n                {{on 'click' this.onClear}}\n              >\n                {{t 'shared.uploader.Upload a different file'}}\n              </button>\n            {{/if}}\n          </div>\n        {{else}}\n          <DragAndDropContainer\n            @onUploadComplete={{this.onUpload}}\n            @isDragAndDropVisible={{true}}\n          >\n            <p class='text-center'>\n              {{t\n                'components.bills-uploader.Upload your CSV file to generate bills'\n              }}\n            </p>\n            <a\n              class='btn btn-link align-self-center mb-3'\n              href='/assets/example-invoices-file-329566189a769091832b514177383e26.csv'\n              download='example-invoices-file-329566189a769091832b514177383e26.csv'\n            >\n              <FaIcon @icon='download' />&nbsp;&nbsp;\n              {{t 'shared.uploader.Download example file'}}\n            </a>\n          </DragAndDropContainer>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.isLoading}}\n          {{on 'click' @onClose}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.billFile}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (fn (perform this.uploadBills))}}\n            disabled={{or this.uploadBills.isRunning this.saveBills.isRunning}}\n          >\n            {{#if (or this.uploadBills.isRunning this.saveBills.isRunning)}}\n              {{t 'components.bills-uploader.Importing bills'}}&hellip;\n            {{else}}\n              {{t 'components.bills-uploader.Import bills'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </div>\n  </ModalDialog>\n  \n  {{#if this.invalidProductRowIndexes}}\n    <ModalDialog\n      @onClose={{fn (mut this.invalidProductRowIndexes) ''}}\n      @containerClass='card'\n      @translucentOverlay={{true}}\n    >\n      <div class='card-body'>\n        <p>\n          {{t\n            'components.bills-uploader.theFollowingRowsInYourFileAreInvalidAndWereNotUploaded'\n          }}\n        </p>\n        <p class='products-uploader__invalid-rows-confirm-modal-row-message'>\n          {{this.invalidProductRowIndexes}}\n        </p>\n      </div>\n      <div class='card-footer'>\n        <div class='pull-right d-flex align-items-center'>\n          <button\n            class='btn btn-primary me-2'\n            type='button'\n            {{on 'click' this.skipNoneDescriptionRowsAndUpload}}\n          >\n            {{t 'components.bills-uploader.Upload valid rows anyway'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' (fn (mut this.invalidProductRowIndexes) '')}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importedBills.existing.length}}\n    <ModalDialog\n      @onClose={{fn (mut this.importedBills) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'shared.notification.xOutOfYBillsWereFoundToBeDuplicates'\n            duplicates=this.importedBills.existing.length\n            total=(math\n              this.importedBills.existing.length '+' this.importedBills.new.length\n            )\n          }}\n        </p>\n  \n        <div class='invoice-editor__import-modal__table-container'>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n            </tr>\n            {{#each this.importedBills.existing as |bill|}}\n              <tr>\n                <td>{{bill.issuer}}</td>\n                <td>{{bill.billNumber}}</td>\n                <td>{{bill.name}}</td>\n              </tr>\n            {{/each}}\n          </table>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.importedBills) false)}}\n          disabled={{this.saveBills.isRunning}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n  \n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' this.importAllBills}}\n          disabled={{this.saveBills.isRunning}}\n        >\n          {{t 'common.Import all'}}\n        </button>\n  \n        {{#if this.importedBills.new.length}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' this.importNewBillsOnly}}\n            disabled={{this.saveBills.isRunning}}\n          >\n            {{t 'components.bills-uploader.Import only new bills'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Gix+ALkZ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,1],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-content\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billFile\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"w-25\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,3],[\\\"components.bills-uploader.No contacts\\\"],null],\\\"contact\\\",[28,[37,8],[\\\"name\\\"],null],[30,0,[\\\"contactChangeSet\\\"]],[28,[37,9],[[30,0,[\\\"uploadBills\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"billFile\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,17],[[24,5,\\\"min-width: 85px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,18],[[30,3]],null],[28,[37,19],[[30,3]],null],[30,0,[\\\"billFile\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"billFile\\\",\\\"columnTypeForm\\\"]],true,[28,[37,9],[[30,0,[\\\"uploadBills\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"billFile\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,4]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                        \\\",[52,[28,[37,22],[[28,[37,23],[[30,0,[\\\"billFile\\\",\\\"columnTypeForm\\\"]],[30,6]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"max-width: 200px;\\\"],[15,\\\"title\\\",[30,5]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.uploading\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"shared.uploader.Upload a different file\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Upload your CSV file to generate bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[14,\\\"download\\\",\\\"example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\\n            \\\"],[1,[28,[35,3],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billFile\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,30],[[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,32],[[30,0,[\\\"uploadBills\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Importing bills\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import bills\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invalidProductRowIndexes\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,31],[[28,[37,33],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null],\\\"card\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.theFollowingRowsInYourFileAreInvalidAndWereNotUploaded\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"products-uploader__invalid-rows-confirm-modal-row-message\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"invalidProductRowIndexes\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pull-right d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"skipNoneDescriptionRowsAndUpload\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Upload valid rows anyway\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,33],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,31],[[28,[37,33],[[30,0,[\\\"importedBills\\\"]]],null],false],null],true,\\\"modal\\\",\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"shared.notification.xOutOfYBillsWereFoundToBeDuplicates\\\"],[[\\\"duplicates\\\",\\\"total\\\"],[[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],[28,[37,34],[[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],\\\"+\\\",[30,0,[\\\"importedBills\\\",\\\"new\\\",\\\"length\\\"]]],null]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__import-modal__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"importedBills\\\",\\\"existing\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,33],[[30,0,[\\\"importedBills\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"importAllBills\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Import all\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"importedBills\\\",\\\"new\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"importNewBillsOnly\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import only new bills\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\",\\\"bill\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h5\\\",\\\"t\\\",\\\"if\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"p\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"drag-and-drop-container\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"fn\\\",\\\"perform\\\",\\\"mut\\\",\\\"math\\\"]]\",\n    \"moduleName\": \"portal/components/bills-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  const normalizeColumnValue = (value = '') => {\n    return value.toLowerCase().replace(/^\\uFEFF|^ï»¿/, '').trim();\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      relax_column_count: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  const getValidationMessages = (errors = []) => {\n    return errors.flatMap(error => {\n      const validation = error?.validation ?? error?.value?.validation;\n      if (Array.isArray(validation)) return validation;\n      if (validation) return [validation];\n      return [];\n    }).filter(Boolean);\n  };\n  const TrimValue = value => String(value || '').trim();\n  let BillsFile = (_class = class BillsFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _defineProperty(this, \"columnTypeOptions\", void 0);\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('common.Invoice number'),\n        value: 'invoiceNumber',\n        matches: ['invoice number', 'invoice no', 'invoice reference', 'invoicenumber', 'document number'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Issue date'),\n        value: 'issueDate',\n        matches: ['issue date', 'issue', 'issued', 'date', 'created date', 'invoicedate', 'invoice date', 'document date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Due date'),\n        value: 'dueDate',\n        matches: ['due date', 'due', 'duedate', 'delivery date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Customer reference'),\n        value: 'reference',\n        matches: ['customer reference', 'reference', 'order reference', 'order number', 'your ref', 'your ref.', 'customer order number', 'contract number', 'job'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Code'),\n        value: 'code',\n        matches: ['sku', 'product code', 'item code', 'inventoryitemcode', 'inventory item code'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Description'),\n        value: 'description',\n        matches: ['description', 'item name', 'line', 'product title', 'product description'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Unit price'),\n        value: 'unitPrice',\n        matches: ['unit price', 'price', 'unit rate', 'unitamount', 'unit amount', 'unit price excluding gst', 'net', 'nett value'],\n        type: 'currency'\n      }, {\n        label: intl.t('common.Quantity'),\n        value: 'quantity',\n        matches: ['quantity', 'qty', 'qty ordered', 'qty supplied', 'quantity delivered', 'quantity ordered', 'quantity supplied'],\n        type: 'number'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current);\n        const value = newValue || oldValue;\n        // you need at least one of each of these to progress\n        const requiredValues = ['invoiceNumber'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return 'Invoice number is required';\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        if (values.filter(v => v === value).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const header = normalizeColumnValue(this.csv[0]?.[i]);\n        const winners = this.columnTypeOptions.map(option => {\n          if (!option.matches.length || !header) return {\n            option,\n            rating: 0\n          };\n          const normalizedMatches = option.matches.map(normalizeColumnValue);\n          const score = (0, _stringSimilarity.findBestMatch)(header, normalizedMatches);\n          return {\n            option,\n            rating: score.bestMatch.rating || 0\n          };\n        });\n\n        // find best matching column type\n        const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n        // we now have the closest matching column type for this column\n        results.push(bestMatch?.rating >= likenessThreshold ? bestMatch.option.value : 'do-not-import');\n\n        // in the future we could also try evaluate the columns against the data type\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor9, this);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", void 0);\n      _defineProperty(this, \"contactsSearchTerm\", void 0);\n      _initializerDefineProperty(this, \"billFileItems\", _descriptor0, this);\n      _initializerDefineProperty(this, \"billFile\", _descriptor1, this);\n      _initializerDefineProperty(this, \"importedBills\", _descriptor10, this);\n      _initializerDefineProperty(this, \"invalidProductRowIndexes\", _descriptor11, this);\n      _initializerDefineProperty(this, \"contactChangeSet\", _descriptor12, this);\n      _defineProperty(this, \"contactValidator\", ({\n        key,\n        newValue\n      }) => {\n        if (key === 'contact') {\n          return Boolean(newValue) || this.intl.t('components.bills-uploader.Please provide a contact');\n        }\n      });\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        return csv;\n      });\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = searchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) contactFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"uploadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_e, skipNoneDescriptionRows = false) {\n          this.billFile.columnTypeForm.validate();\n\n          // this is not throwing error, so i have specify key\n          this.contactChangeSet.validate('contact');\n          if (this.billFile.columnTypeForm.isInvalid || this.contactChangeSet.isInvalid) {\n            const validationMessages = [...getValidationMessages(this.billFile.columnTypeForm.errors), ...getValidationMessages(this.contactChangeSet.errors)];\n            this.notifications.warning(validationMessages[0] || this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          try {\n            yield this.billFile.columnTypeForm.save();\n            const billsMap = new Map();\n            const noDescriptionIndexes = [];\n            const contact = this.contactChangeSet.get('contact');\n            this.billFile.csv.forEach((columns, rowIndex) => {\n              // Skip the first row (headers)\n              if (rowIndex === 0) return;\n              const getColumn = label => {\n                const colIndex = this.billFile.columnTypes.findIndex(colType => colType === label);\n                return columns[colIndex]?.trim() || null;\n              };\n              const invoiceNumber = getColumn('invoiceNumber');\n              const reference = getColumn('reference');\n              const description = getColumn('description') || reference || invoiceNumber;\n              if (skipNoneDescriptionRows && !description) return;\n              if (!description) noDescriptionIndexes.push(rowIndex + 1);\n              const item = {\n                description,\n                productCode: getColumn('code'),\n                unitPrice: (0, _parseCurrencyString.default)(getColumn('unitPrice')),\n                quantity: parseFloat(getColumn('quantity')) || 1\n              };\n              if (Number(item.unitPrice) < 0) {\n                item.quantity = item.quantity * -1;\n                item.unitPrice = Math.abs(item.unitPrice);\n              }\n              const rawIssueDate = getColumn('issueDate');\n              const parsedIssueDate = rawIssueDate ? (0, _moment.default)(rawIssueDate, [_moment.default.ISO_8601, 'YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YY', 'D/M/YYYY', 'D/M/YY', 'DD-MM-YYYY', 'DD-MM-YY', 'D-M-YYYY', 'D-M-YY', 'MM/DD/YYYY', 'M/D/YYYY', 'MM/DD/YY', 'M/D/YY'], true) : null;\n              const issueDate = parsedIssueDate?.isValid() ? parsedIssueDate.toDate() : new Date();\n              const rawDueDate = getColumn('dueDate');\n              const parsedDueDate = rawDueDate ? (0, _moment.default)(rawDueDate, [_moment.default.ISO_8601, 'YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YY', 'D/M/YYYY', 'D/M/YY', 'DD-MM-YYYY', 'DD-MM-YY', 'D-M-YYYY', 'D-M-YY', 'MM/DD/YYYY', 'M/D/YYYY', 'MM/DD/YY', 'M/D/YY'], true) : null;\n              const dueDate = parsedDueDate?.isValid() ? parsedDueDate.toDate() : contact?.getBillDueDate(issueDate) || issueDate;\n              if (!billsMap.has(invoiceNumber)) {\n                billsMap.set(invoiceNumber, {\n                  billNumber: invoiceNumber,\n                  entity: this.sessionData.entity,\n                  status: 'DRAFT',\n                  allocationType: contact?.defaultBillAllocationType || 'MATERIALS',\n                  issuer: contact?.name,\n                  issuerContact: contact,\n                  reference,\n                  source: 'web:generic-csv',\n                  issueDate,\n                  dueDate,\n                  items: []\n                });\n              }\n              billsMap.get(invoiceNumber).items.push(item);\n            });\n            if (noDescriptionIndexes.length && !skipNoneDescriptionRows) {\n              this.invalidProductRowIndexes = `${noDescriptionIndexes.join(', ')}`;\n              this.notifications.warning(this.intl.t('components.bills-uploader.rowsAreMissingADescriptionAndWereNotUploaded', {\n                rows: this.invalidProductRowIndexes\n              }));\n              return;\n            }\n            const bills = Array.from(billsMap.values());\n            const importedBills = yield this.findExistingBills(bills);\n            if (importedBills.existing.length) {\n              this.importedBills = importedBills;\n              return;\n            }\n            yield this.saveBills.perform(bills);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.Something went wrong while saving bills'),\n              error\n            });\n          }\n        }\n      }), null, \"uploadBills\", null));\n      _defineProperty(this, \"saveBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (bills) {\n          try {\n            const failedBills = [];\n            yield Promise.all(bills.map(async billData => {\n              try {\n                const {\n                  items,\n                  ...billAttrs\n                } = billData;\n                const subtotal = items.reduce((total, item) => total + item.quantity * item.unitPrice, 0);\n                const bill = await this.store.createRecord('bill', {\n                  ...billAttrs,\n                  ...(subtotal < 0 && {\n                    billType: 'CREDIT_NOTE'\n                  }),\n                  entity: this.sessionData.entity\n                }).save();\n                await Promise.all(items.map(async item => {\n                  await this.store.createRecord('bill-item', {\n                    ...item,\n                    entity: this.sessionData.entity,\n                    bill\n                  }).save();\n                }));\n              } catch (error) {\n                failedBills.push({\n                  bill: billData,\n                  error\n                });\n              }\n            }));\n            if (this.args.onUploadBillsCSV) {\n              yield this.args.onUploadBillsCSV();\n            }\n            const total = bills.length;\n            const failed = failedBills.length;\n            const success = total - failed;\n            if (!success && failed) {\n              this.notifications.error({\n                message: this.intl.t('components.bills-uploader.uploadFailedForCountFiles', {\n                  count: failed\n                }),\n                error: failedBills[0]?.error\n              });\n              return;\n            }\n            this.importedBills = null;\n            this.notifications.success({\n              message: this.intl.t('components.bills-uploader.uploadSummarySuccessSucceededFailed', {\n                success,\n                failed\n              }),\n              clearDuration: 5000\n            });\n            this.args.onClose();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.Something went wrong while saving bills'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBills\", null));\n    }\n    setContact(value) {\n      this.contactChangeSet.set('contact', value);\n    }\n    onClear() {\n      this.billFile = null;\n      this.billFileItems = null;\n      this.importedBills = null;\n      this.invalidProductRowIndexes = '';\n    }\n    skipNoneDescriptionRowsAndUpload() {\n      this.invalidProductRowIndexes = '';\n      this.uploadBills.perform(undefined, true);\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const parsedCsv = this.parseCsvFromAttachment(attachment);\n        let csv = parsedCsv;\n        if ((0, _placemakersBillCsvNormalizer.isPlaceMakersBillCsv)(csv)) csv = (0, _placemakersBillCsvNormalizer.default)(csv);else if ((0, _bunningsBillCsvNormalizer.isBunningsBillCsv)(csv)) csv = (0, _bunningsBillCsvNormalizer.default)(csv);\n        this.billFile = new BillsFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n    async findExistingBills(bills) {\n      const entityId = this.sessionData.entity.id;\n      const uniqueBillNumbers = Array.from(new Set((bills || []).map(bill => bill.billNumber).filter(Boolean)));\n      let existingBills = this.store.peekAll('bill').toArray().filter(bill => bill.belongsTo('entity').id() === entityId);\n      if (uniqueBillNumbers.length) {\n        try {\n          existingBills = await this.store.query('bill', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: entityId\n              }, {\n                field: 'billNumber',\n                op: 'IN',\n                value: uniqueBillNumbers\n              }]\n            },\n            sort: 'issuer',\n            fields: {\n              bills: '_meta.hasDuplicate'\n            }\n          }).then(res => res.toArray ? res.toArray() : res);\n        } catch (_e) {\n          // ignore and use anything already loaded in the store\n        }\n      }\n      return bills.reduce((grouped, bill) => {\n        const billNumber = TrimValue(bill.billNumber);\n        const issuer = TrimValue(bill.issuer);\n        const billIsExisting = existingBills.find(existingBill => TrimValue(existingBill.billNumber) === billNumber && TrimValue(existingBill.issuer) === issuer);\n        if (billIsExisting) grouped.existing.push(bill);else grouped.new.push(bill);\n        return grouped;\n      }, {\n        new: [],\n        existing: [],\n        bills\n      });\n    }\n    importNewBillsOnly() {\n      this.saveBills.perform(this.importedBills?.new || []);\n    }\n    importAllBills() {\n      this.saveBills.perform(this.importedBills?.bills || []);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"billFileItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"billFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"importedBills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"invalidProductRowIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"contactChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        contact: null\n      }, this.contactValidator.bind(this));\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"importNewBillsOnly\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"importNewBillsOnly\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"importAllBills\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"importAllBills\"), _class2.prototype), _class2));\n});","define(\"portal/components/c3-chart\", [\"exports\", \"ember-c3/components/c3-chart\"], function (_exports, _c3Chart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _c3Chart.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-c3/components/c3-chart\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/calculation-breakdown\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ul class='steps'>\n    {{#each this.steps as |step|}}\n      {{#if (eq step.type 'operator')}}\n        <li class='operator'>{{step.char}}</li>\n      {{/if}}\n  \n      {{#if (eq step.type 'input')}}\n        <li class='input'>\n          <div class='name'>{{step.name}}</div>\n          {{#if (or this.result (eq this.result 0))}}\n            <div class='value'>\n              {{number-format step.value maximumFractionDigits=2 dashZero=false}}\n            </div>\n          {{/if}}\n        </li>\n      {{/if}}\n  \n      {{#if (eq step.type 'number')}}\n        <li class='number'>{{step.value}}</li>\n      {{/if}}\n    {{/each}}\n  \n    <li class='operator'>=</li>\n  \n    <li class='input'>\n      <div class='name'>{{t 'common.Result'}}</div>\n      {{#if (or this.result (eq this.result 0))}}\n        <div class='value'>\n          {{number-format\n            this.result\n            style=this.format\n            dashZero=true\n            maximumFractionDigits=2\n          }}\n        </div>\n      {{/if}}\n    </li>\n  </ul>\n  */\n  {\n    \"id\": \"EuvKld4J\",\n    \"block\": \"[[[10,\\\"ul\\\"],[14,0,\\\"steps\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"steps\\\"]]],null]],null],null,[[[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"operator\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"operator\\\"],[12],[1,[30,1,[\\\"char\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"input\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"input\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"name\\\"],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"result\\\"]],[28,[37,4],[[30,0,[\\\"result\\\"]],0],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[30,1,[\\\"value\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"number\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"number\\\"],[12],[1,[30,1,[\\\"value\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\"\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"operator\\\"],[12],[1,\\\"=\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"input\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"name\\\"],[12],[1,[28,[35,9],[\\\"common.Result\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"result\\\"]],[28,[37,4],[[30,0,[\\\"result\\\"]],0],null]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,0,[\\\"result\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[30,0,[\\\"format\\\"]],true,2]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"step\\\"],false,[\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"eq\\\",\\\"li\\\",\\\"div\\\",\\\"or\\\",\\\"number-format\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/calculation-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['calculation-breakdown'],\n    steps: (0, _object.computed)('calc', 'data', 'inputs', function () {\n      const calc = (0, _object.get)(this, 'calc');\n      const inputs = (0, _object.get)(this, 'inputs') || {};\n      const steps = [];\n      if (!calc) {\n        return [];\n      }\n\n      /* eslint-disable quote-props */\n      const chars = {\n        'LEFT-BRACKET': '(',\n        'RIGHT-BRACKET': ')',\n        PLUS: '+',\n        MINUS: '\\u2212',\n        MULTIPLY: '\\u00D7',\n        DIV: '/'\n      };\n      /* eslint-enable quote-props */\n\n      calc.forEach(step => {\n        if (step.operator) {\n          steps.pushObject({\n            type: 'operator',\n            char: (0, _object.get)(chars, step.operator)\n          });\n        } else if (step.name) {\n          steps.pushObject({\n            type: 'input',\n            name: step.name,\n            value: (0, _object.get)(inputs, step.input)\n          });\n        } else if (step.number) {\n          steps.pushObject({\n            type: 'number',\n            value: (0, _object.get)(step, 'number')\n          });\n        }\n      });\n      return steps;\n    })\n  }));\n});","define(\"portal/components/charts/data-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/helpers/format-number\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _object, _formatNumber, _moment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/helpers/format-number\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.data as |row|}}\n    <tr>\n      <td>{{get row 0}}</td>\n      <td class='text-right'>{{get row 1}}</td>\n    </tr>\n  {{/each}}\n  */\n  {\n    \"id\": \"BPUPrTnc\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,4],[[30,1],0],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[[30,1],1],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[\\\"row\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/components/charts/data-table.hbs\",\n    \"isStrictMode\": false\n  });\n\n  //import layout from '../../templates/components/charts/data-table';\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    // layout,\n\n    classNames: ['chart', 'chart--data-table', 'data-table'],\n    tagName: 'table',\n    data: (0, _object.computed)('metrics', 'period.{start,type}', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const date = (0, _moment.default)((0, _object.get)(this, 'period.start'), 'YYYY-MM').endOf('month').toDate();\n      const periodType = (0, _object.get)(this, 'period.type');\n      const table = [];\n      metrics.forEach(metric => {\n        const format = (0, _object.get)(metric, 'meta.format');\n        const series = (0, _object.get)(metric, 'series') || [];\n        const periods = (0, _object.get)(series.objectAt(0) || [], 'periods') || [];\n        const period = periods.find(p => p.date === date.toISOString());\n        let value = period ? (0, _object.get)(period, `periodTypes.${periodType}.value`) : null;\n        if (value != null) {\n          value = (0, _formatNumber.formatNumber)([format, value]);\n        } else if (typeof value === 'undefined') {\n          value = null; // null not undefined\n        }\n        table.push([(0, _object.get)(metric, 'meta.name'), value]);\n      });\n      return table;\n    })\n  }));\n});","define(\"portal/components/charts/gauge-chart\", [\"exports\", \"@ember/utils\", \"@ember/debug\", \"@ember/object\", \"ember-c3/components/c3-chart\", \"portal/helpers/format-number\"], function (_exports, _utils, _debug, _object, _c3Chart, _formatNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/debug\",0,\"@ember/object\",0,\"ember-c3/components/c3-chart\",0,\"portal/helpers/format-number\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _c3Chart.default.extend({\n    classNames: ['chart', 'chart--gauge'],\n    reverseColors: false,\n    min: 0,\n    max: 1,\n    label: '% of target',\n    data: (0, _object.computed)('metrics', 'period.type', 'target', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const target = (0, _object.get)(this, 'target');\n      const periodType = (0, _object.get)(this, 'period.type');\n      const columns = [];\n      if (!metrics || (0, _utils.isEmpty)(metrics)) {\n        (false && (0, _debug.warn)('No data provided to gauge chart component.'));\n        return;\n      }\n      const name = (0, _object.get)(metrics[0], 'meta.name');\n      const metric = (0, _object.get)(metrics[0], `series.0.periods.0.periodTypes.${periodType}.value`) || 0;\n      const value = metric / target;\n      columns.push([name, value]);\n      return {\n        type: 'gauge',\n        columns\n      };\n    }),\n    size: {\n      height: 180\n    },\n    gauge: (0, _object.computed)('label', 'max', 'min', 'units', function () {\n      return {\n        label: {\n          format: (value, _ratio) => (0, _formatNumber.formatNumber)(['percentage', value], {\n            places: 2,\n            dashZero: false\n          }),\n          show: true // to turn off the min/max labels\n        },\n        min: (0, _object.get)(this, 'min'),\n        max: (0, _object.get)(this, 'max'),\n        // 100 is default\n        units: (0, _object.get)(this, 'label'),\n        width: 60 // for adjusting arc thickness\n      };\n    }),\n    color: (0, _object.computed)('max', 'min', 'reverseColors', function () {\n      const min = (0, _object.get)(this, 'min');\n      const max = (0, _object.get)(this, 'max');\n      const reverseColors = (0, _object.get)(this, 'reverseColors');\n      const values = [];\n      let colors = ['#ca1528', '#d02329', '#db382b', '#e6502e', '#ef6931', '#f08033', '#f09136', '#d0973c', '#b0973e', '#8c9341', '#688c44', '#498646'];\n      if (reverseColors) {\n        colors = colors.reverse();\n      }\n      for (let i = 0; i < colors.length; i++) {\n        values.push(min + i / colors.length * (max - min));\n      }\n      return {\n        pattern: colors,\n        threshold: {\n          unit: 'value',\n          // percentage is default\n          max: (0, _object.get)(this, 'max'),\n          // 100 is default\n          values\n        }\n      };\n    }),\n    legend: {\n      position: 'right'\n    }\n  });\n});","define(\"portal/components/charts/line-chart\", [\"exports\", \"@ember/array\", \"@ember/object\", \"@ember/debug\", \"ember-c3/components/c3-chart\", \"portal/helpers/format-number\", \"moment\"], function (_exports, _array, _object, _debug, _c3Chart, _formatNumber, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/object\",0,\"@ember/debug\",0,\"ember-c3/components/c3-chart\",0,\"portal/helpers/format-number\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _c3Chart.default.extend({\n    classNames: ['chart', 'chart--line'],\n    data: (0, _object.computed)('metrics', 'period.{end,start,type}', 'series', function () {\n      const periodType = (0, _object.get)(this, 'period.type');\n      const dates = [];\n      const seriesMeta = (0, _object.get)(this, 'series');\n      const metrics = (0, _object.get)(this, 'metrics');\n      const series = (0, _array.isArray)(metrics) ? metrics[0].series : metrics.series;\n      const columns = [];\n      if (!series) {\n        (false && (0, _debug.warn)('No series provided to line chart component.'));\n        return;\n      }\n      const start = (0, _moment.default)((0, _object.get)(this, 'period.start'), 'YYYY-MM').endOf('month').toDate();\n      const end = (0, _moment.default)((0, _object.get)(this, 'period.end'), 'YYYY-MM').endOf('month').toDate();\n      let currentPeriod = start;\n      while (currentPeriod <= end) {\n        dates.push(currentPeriod);\n        currentPeriod = (0, _moment.default)(currentPeriod).add(1, 'month').endOf('month').toDate();\n      }\n      seriesMeta.forEach((meta, seriesIndex) => {\n        const thisSeries = series.find(s => s.entity === (0, _object.get)(meta, 'id') || s.group === (0, _object.get)(meta, 'id')) || {};\n        const periods = thisSeries.periods || [];\n        columns.pushObject([(0, _object.get)(meta, 'name')]);\n        dates.forEach((date, periodIndex) => {\n          const period = periods.find(p => p.date === date.toISOString());\n          const value = period ? (0, _object.get)(period, `periodTypes.${periodType}.value`) : null;\n          columns[seriesIndex][periodIndex + 1] = value == null ? null : value;\n          currentPeriod = (0, _moment.default)(currentPeriod).add(1, 'month').endOf('month').toDate();\n        });\n      });\n      columns.unshift(['Periods', ...dates]);\n      return {\n        x: 'Periods',\n        columns\n      };\n    }),\n    axis: (0, _object.computed)('metrics', 'period.type', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const meta = (0, _array.isArray)(metrics) ? metrics[0].meta : metrics.meta;\n      let label;\n      let reduction;\n      let yAxisPlaces = 0;\n      const periodType = (0, _object.get)(this, 'period.type');\n      if (meta.format === 'PERCENTAGE') {\n        label = meta.name;\n      } else {\n        const series = (0, _array.isArray)(metrics) ? metrics[0].series : metrics.series;\n        let longest = 0;\n        series.forEach(({\n          periods\n        }) => {\n          periods.forEach(period => {\n            const current = period ? (0, _object.get)(period, `periodTypes.${periodType}.value`) : null;\n            if (current > longest) {\n              longest = current;\n            }\n          });\n        });\n        const longestLength = Math.floor(longest).toString().length;\n        const setsOfThree = Math.ceil(longestLength / 3) - 1;\n        reduction = Math.pow(10, setsOfThree * 3);\n        let reductionText;\n        yAxisPlaces = longestLength % 3 === 1 ? 3 - longestLength : 0;\n        switch (setsOfThree) {\n          case 1:\n            reductionText = 'thousands';\n            break;\n          case 2:\n            reductionText = 'millions';\n            break;\n          case 3:\n            reductionText = 'billions';\n            break;\n          case 4:\n            reductionText = 'trillions';\n            break;\n          default:\n            if (setsOfThree) {\n              reductionText = '⨉ ' + reduction;\n            }\n            break;\n        }\n        if (reductionText) {\n          label = `${meta.name} (${reductionText})`;\n        } else {\n          label = meta.name;\n        }\n      }\n      return {\n        x: {\n          type: 'timeseries',\n          tick: {\n            format(tick) {\n              return (0, _moment.default)(tick).format('MMM-YY');\n            }\n          }\n        },\n        y: {\n          label: {\n            text: label,\n            position: 'outer-middle'\n          },\n          tick: {\n            format(tick) {\n              if (meta.format === 'PERCENTAGE') {\n                return (0, _formatNumber.formatNumber)(['percentage', tick], {\n                  places: 2,\n                  dashZero: false\n                });\n              } else {\n                return (0, _formatNumber.formatNumber)(tick / reduction, {\n                  places: yAxisPlaces,\n                  dashZero: false\n                });\n              }\n            }\n          }\n        }\n      };\n    }),\n    size: {\n      height: 220\n    },\n    grid: {\n      x: {\n        show: false\n      },\n      y: {\n        show: true\n      }\n    },\n    tooltip: (0, _object.computed)('metrics', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const meta = (0, _array.isArray)(metrics) ? metrics[0].meta : metrics.meta;\n      return {\n        show: true,\n        format: {\n          title: date => (0, _moment.default)(date).format('MMMM YYYY'),\n          value(value) {\n            if (meta.format === 'PERCENTAGE') {\n              return (0, _formatNumber.formatNumber)(['percentage', value], {\n                sigfigs: 4,\n                dashZero: false\n              });\n            } else if (meta.format === 'CURRENCY') {\n              return (0, _formatNumber.formatNumber)(['currency', value], {\n                places: value >= 100 ? 0 : 2,\n                dashZero: false\n              });\n            } else {\n              const numberLength = Math.floor(value).toString().length;\n              return (0, _formatNumber.formatNumber)(value, {\n                places: numberLength > 3 ? 0 : 3 - numberLength,\n                dashZero: false\n              });\n            }\n          }\n        }\n      };\n    }),\n    legend: {\n      position: 'bottom'\n    }\n  });\n});","define(\"portal/components/charts/pie-chart\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"@ember/debug\", \"ember-c3/components/c3-chart\"], function (_exports, _utils, _object, _debug, _c3Chart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/debug\",0,\"ember-c3/components/c3-chart\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _c3Chart.default.extend({\n    classNames: ['chart', 'chart--pie'],\n    markEmptySeries: true,\n    markNegativeSeries: true,\n    data: (0, _object.computed)('markEmptySeries', 'markNegativeSeries', 'metrics', 'period.type', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const periodType = (0, _object.get)(this, 'period.type');\n      const markEmpty = (0, _object.get)(this, 'markEmptySeries');\n      const markNegative = (0, _object.get)(this, 'markNegativeSeries');\n      const columns = [];\n      if (!metrics || (0, _utils.isEmpty)(metrics)) {\n        (false && (0, _debug.warn)('No data provided to pie chart component.'));\n        return;\n      }\n      metrics.forEach(metric => {\n        let name = (0, _object.get)(metric, 'meta.name');\n        const value = (0, _object.get)(metric, `series.0.periods.0.periodTypes.${periodType}.value`) || 0;\n        if (markEmpty && !value) {\n          name += ' (no data)';\n        }\n        if (markNegative && value != null && value < 0) {\n          name += ' (negative)';\n        }\n        columns.push([name, value]);\n      });\n\n      // Sort by value\n      columns.sort((a, b) => b[1] - a[1]);\n      return {\n        type: 'pie',\n        columns\n      };\n    }),\n    size: {\n      height: 220\n    },\n    legend: {\n      position: 'right'\n    }\n  });\n});","define(\"portal/components/checklist\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _service, _object, _emberChangeset, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'common.Checklist'}}\n      </h3>\n    </div>\n    <div class='modal-body' style='max-width: 768px'>\n      <p class='mt-0'>\n        {{t 'components.checklist.checklistExplanation'}}\n      </p>\n      <div class='bg-white border rounded checklist__container px-3'>\n        {{#each @checklist as |item|}}\n          <div class='d-flex align-items-center py-2'>\n            <label>\n              <Input\n                @type='checkbox'\n                class='form-check-input md-size-checkbox m-0'\n                disabled={{not @editable}}\n                @checked={{item.complete}}\n              />\n            </label>\n            <span\n              class='btn btn-link ms-3'\n              type='button'\n              {{on 'click' (fn this.editQuestion item)}}\n            >{{item.title}}</span>\n          </div>\n        {{else if (not @editable)}}\n          <div class='p-2'>{{t 'components.checklist.No checklist items'}}</div>\n        {{/each}}\n  \n        {{#if @editable}}\n          <div class='d-flex align-items-center py-2'>\n            <FaIcon @icon='plus' />\n            <Input\n              @type='text'\n              class='form-control ms-3 w-auto'\n              placeholder={{t 'common.Add'}}\n              @value={{this.newQuestionTitle}}\n              disabled={{not @editable}}\n              {{did-insert this.setFocus}}\n              {{on 'keypress' this.onChangeNewQuestionInput}}\n            />\n            {{#if this.newQuestionTitle.length}}\n              <button\n                type='button'\n                disabled={{not @editable}}\n                class='ms-2 text-light btn btn-secondary me-2'\n                {{on 'click' (perform this.addNewQuestion)}}\n              >{{t 'common.Add'}}</button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    </div>\n    <div class='modal-footer text-right'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' @onClose}}\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      {{#if @editable}}\n        <button\n          type='button'\n          disabled={{this.isSaving}}\n          class='btn btn-primary text-nowrap m-1'\n          {{on 'click' (perform this.saveChecklist)}}\n        >\n          {{#if this.isSaving}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Saving'\n            }}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      {{/if}}\n    </div>\n  </ModalDialog>\n  \n  {{#if this.showEditQuestion}}\n    <ModalDialog\n      @containerClass='modal-content  w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-body'>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Title'}}\n          @key='title'\n          @model={{this.question}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveQuestion.performCount 0}}\n          disabled={{or this.saveQuestion.isRunning (not @editable)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.question}}\n          @forceValidationVisible={{gt this.saveQuestion.performCount 0}}\n          disabled={{or this.saveQuestion.isRunning (not @editable)}}\n        />\n      </div>\n      <div\n        class='modal-footer d-flex align-items-center\n          {{if @editable \"justify-content-between\" \"justify-content-end\"}}'\n      >\n        {{#if @editable}}\n          <button\n            class='btn btn-link text-danger text-decoration-underline float-start'\n            type='button'\n            {{on 'click' (perform this.deleteQuestion)}}\n            disabled={{or\n              this.deleteQuestion.isRunning\n              this.saveQuestion.isRunning\n            }}\n          >\n            {{t 'common.Delete'}}\n          </button>\n        {{/if}}\n        <div>\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.showEditQuestion) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          {{#if @editable}}\n            <button\n              type='button'\n              disabled={{or\n                this.deleteQuestion.isRunning\n                this.saveQuestion.isRunning\n              }}\n              class='btn btn-primary text-nowrap m-1'\n              {{on 'click' (perform this.saveQuestion)}}\n            >\n              {{#if this.saveQuestion.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7KNJ7DpU\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Checklist\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,5,\\\"max-width: 768px\\\"],[12],[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.checklist.checklistExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bg-white border rounded checklist__container px-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,2]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,0,\\\"form-check-input md-size-checkbox m-0\\\"],[16,\\\"disabled\\\",[28,[37,9],[[30,4]],null]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3,[\\\"complete\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,1],[24,0,\\\"btn btn-link ms-3\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"editQuestion\\\"]],[30,3]],null]],null],[12],[1,[30,3,[\\\"title\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],[[[41,[28,[37,9],[[30,4]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,[28,[35,3],[\\\"components.checklist.No checklist items\\\"],null]],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,8],[[24,0,\\\"form-control ms-3 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,3],[\\\"common.Add\\\"],null]],[16,\\\"disabled\\\",[28,[37,9],[[30,4]],null]],[4,[38,15],[[30,0,[\\\"setFocus\\\"]]],null],[4,[38,11],[\\\"keypress\\\",[30,0,[\\\"onChangeNewQuestionInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"newQuestionTitle\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newQuestionTitle\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,9],[[30,4]],null]],[24,0,\\\"ms-2 text-light btn btn-secondary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"addNewQuestion\\\"]]],null]],null],[12],[1,[28,[35,3],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveChecklist\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSaving\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showEditQuestion\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[\\\"modal-content  w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,4]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,3],[\\\"common.Title\\\"],null],\\\"title\\\",[30,0,[\\\"question\\\"]],true,[28,[37,20],[[30,0,[\\\"saveQuestion\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,4]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,3],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"question\\\"]],[28,[37,20],[[30,0,[\\\"saveQuestion\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,0,[29,[\\\"modal-footer d-flex align-items-center\\\\n        \\\",[52,[30,4],\\\"justify-content-between\\\",\\\"justify-content-end\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"deleteQuestion\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteQuestion\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[28,[37,21],[[30,0,[\\\"showEditQuestion\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"deleteQuestion\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveQuestion\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,3],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"@checklist\\\",\\\"item\\\",\\\"@editable\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"input\\\",\\\"not\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"did-insert\\\",\\\"button\\\",\\\"perform\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/checklist.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showEditQuestion\", _descriptor6, this);\n      _initializerDefineProperty(this, \"question\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newQuestionTitle\", _descriptor8, this);\n      _defineProperty(this, \"validateTitle\", newValue => {\n        const title = newValue;\n        if (title.length > 255) {\n          return this.intl.t('validation.titleCannotBeLongerThan255Characters');\n        }\n        return title && title.length > 0 || this.intl.t('validation.Please provide a title');\n      });\n      _defineProperty(this, \"questionValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'title':\n            return this.validateTitle(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        title: this.validateTitle\n      });\n      _defineProperty(this, \"deleteQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const questionId = this.question.get('id');\n          yield this.args.deleteQuestion.perform(questionId);\n          this.showEditQuestion = false;\n        }\n      }), null, \"deleteQuestion\", null));\n      _defineProperty(this, \"addNewQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.addNewQuestion.perform(this.newQuestionTitle);\n          this.newQuestionTitle = '';\n        }\n      }), null, \"addNewQuestion\", null));\n      _defineProperty(this, \"saveQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.question.validate();\n          if (!this.question.isValid) return;\n          yield this.question.save();\n          this.showEditQuestion = false;\n        }\n      }), null, \"saveQuestion\", null));\n      _defineProperty(this, \"saveChecklist\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield Promise.all(this.args.checklist.map(question => {\n              if (question.hasDirtyAttributes) {\n                return question.save();\n              }\n              return undefined;\n            }));\n            this.args.onClose();\n            this.notifications.success(this.intl.t('components.checklist.Successfully saved checklist'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.checklist.somethingWentWrongWhileSavingTheChecklist'),\n              error\n            });\n          }\n        }\n      }), null, \"saveChecklist\", null));\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.args.checklist.forEach(question => {\n        if (question.hasDirtyAttributes) {\n          question.rollbackAttributes();\n        }\n      });\n    }\n    editQuestion(question) {\n      this.question = (0, _emberChangeset.Changeset)(question, this.questionValidator, this.validationMap);\n      this.showEditQuestion = true;\n    }\n    get isSaving() {\n      return this.saveChecklist.isRunning;\n    }\n    setFocus(e) {\n      (0, _runloop.next)(() => {\n        e.focus();\n      });\n    }\n    onChangeNewQuestionInput(e) {\n      if (e.key === 'Enter' && e.target.value.length) {\n        this.addNewQuestion.perform();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showEditQuestion\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"question\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"newQuestionTitle\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"editQuestion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"editQuestion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeNewQuestionInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeNewQuestionInput\"), _class.prototype), _class));\n});","define(\"portal/components/coa-editor-line\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/utils\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _utils, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/utils\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='line'>\n    {{#if this.account.children.length}}\n      <button\n        class='float-start children text-button'\n        type='button'\n        {{action 'toggleHidingChildren'}}\n      >\n        <FaIcon @icon={{if this.hidingChildren 'caret-right' 'caret-down'}} />\n      </button>\n    {{/if}}\n  \n    <span class='label'><Input\n        placeholder='Account Name'\n        @value={{this.account.name}}\n        class='text-input'\n      /></span>\n  \n    <div class='controls'>\n      <button\n        class='text-button'\n        type='button'\n        {{action 'toggleIsEditingDescription'}}\n      >Description</button>\n      <SelectInput\n        @value={{this.account.debitCredit}}\n        @action={{fn (mut this.account.debitCredit)}}\n        @class='select-box'\n        as |si|\n      >\n        <si.option @value='CREDIT'>Cr</si.option>\n        <si.option @value='DEBIT'>Dr</si.option>\n      </SelectInput>\n  \n      <SelectInput\n        @value={{this.account.format}}\n        @action={{fn (mut this.account.format)}}\n        @class='select-box'\n        as |si|\n      >\n        <si.option @value='CURRENCY'>$</si.option>\n        <si.option @value='INTEGER'>Int</si.option>\n        <si.option @value='NUMBER'>#</si.option>\n        <si.option @value='PERCENTAGE'>%</si.option>\n      </SelectInput>\n  \n      <button\n        class='text-button text-button--delete'\n        type='button'\n        {{action 'deleteAccount' this.account}}\n      ><FaIcon @icon='trash' /></button>\n      <div class='handle'><FaIcon @icon='bars' /></div>\n      <button\n        class='addChild text-button'\n        type='button'\n        {{action 'createChildAccount' this.account}}\n      ><FaIcon @icon='plus' /></button>\n    </div>\n  \n    <div class='settings'>\n      <span class='drcr'>{{if\n          (eq this.account.debitCredit 'DEBIT')\n          'Dr'\n          'Cr'\n        }}</span>\n      <span class='format'>\n        {{if (eq this.account.format 'CURRENCY') '$'}}\n        {{if (eq this.account.format 'INTEGER') 'Int'}}\n        {{if (eq this.account.format 'NUMBER') '#'}}\n        {{if (eq this.account.format 'PERCENTAGE') '%'}}\n      </span>\n      {{! This is just to keep the spacing consistent }}\n      <button class='text-button text-button--delete' type='button'><FaIcon\n          @icon='trash'\n        /></button>\n      <div class='handle'><FaIcon @icon='bars' /></div>\n      <button class='addChild text-button' type='button'>\n        <FaIcon @icon='plus' /></button>\n    </div>\n  </div>\n  \n  {{#if this.account.children.length}}\n    {{#if this.hidingChildren}}{{else}}\n      <ol>\n        {{#each this.account.children as |childAccount|}}\n          <CoaEditorLine\n            @account={{childAccount}}\n            @deleteAccount={{action 'deleteAccount'}}\n            @createChildAccount={{action 'createChildAccount'}}\n          />\n        {{/each}}\n      </ol>\n    {{/if}}\n  {{/if}}\n  \n  {{#if this.isEditingDescription}}\n    <ModalDialog\n      @onClose={{action 'toggleIsEditingDescription'}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <Textarea\n        @value={{this.account.description}}\n        class='account-description-editor'\n      />\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button button--spaced'\n          @isLoading={{this.isSavingDescription}}\n          @action={{action 'saveDescription'}}\n        >Save</LoadingButton>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action 'toggleIsEditingDescription'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"X13soPGj\",\n    \"block\": \"[[[10,0],[14,0,\\\"line\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"account\\\",\\\"children\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"float-start children text-button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"toggleHidingChildren\\\"],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"hidingChildren\\\"]],\\\"caret-right\\\",\\\"caret-down\\\"]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"label\\\"],[12],[8,[39,6],[[24,\\\"placeholder\\\",\\\"Account Name\\\"],[24,0,\\\"text-input\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"account\\\",\\\"name\\\"]]]],null],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"controls\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"toggleIsEditingDescription\\\"],null],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"account\\\",\\\"debitCredit\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"account\\\",\\\"debitCredit\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cr\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DEBIT\\\"]],[[\\\"default\\\"],[[[[1,\\\"Dr\\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"account\\\",\\\"format\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"account\\\",\\\"format\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CURRENCY\\\"]],[[\\\"default\\\"],[[[[1,\\\"$\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"INTEGER\\\"]],[[\\\"default\\\"],[[[[1,\\\"Int\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"NUMBER\\\"]],[[\\\"default\\\"],[[[[1,\\\"#\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PERCENTAGE\\\"]],[[\\\"default\\\"],[[[[1,\\\"%\\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"deleteAccount\\\",[30,0,[\\\"account\\\"]]],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"handle\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"bars\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"addChild text-button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"createChildAccount\\\",[30,0,[\\\"account\\\"]]],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"settings\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"drcr\\\"],[12],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"debitCredit\\\"]],\\\"DEBIT\\\"],null],\\\"Dr\\\",\\\"Cr\\\"]],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"format\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],\\\"$\\\"]],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"INTEGER\\\"],null],\\\"Int\\\"]],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"NUMBER\\\"],null],\\\"#\\\"]],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"PERCENTAGE\\\"],null],\\\"%\\\"]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"button\\\"],[14,0,\\\"text-button text-button--delete\\\"],[14,4,\\\"button\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"handle\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"bars\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,\\\"button\\\"],[14,0,\\\"addChild text-button\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"account\\\",\\\"children\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[41,[30,0,[\\\"hidingChildren\\\"]],[[],[]],[[[1,\\\"\\\\n    \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"account\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@account\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[[30,3],[28,[37,3],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,3],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditingDescription\\\"]],[[[1,\\\"  \\\"],[8,[39,15],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,3],[[30,0],\\\"toggleIsEditingDescription\\\"],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,16],[[24,0,\\\"account-description-editor\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"account\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\"],[\\\"float-end button button--spaced\\\",[30,0,[\\\"isSavingDescription\\\"]],[28,[37,3],[[30,0],\\\"saveDescription\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"toggleIsEditingDescription\\\"],null],[12],[1,[28,[35,19],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"si\\\",\\\"childAccount\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"button\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"input\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"eq\\\",\\\"ol\\\",\\\"each\\\",\\\"-track-array\\\",\\\"coa-editor-line\\\",\\\"modal-dialog\\\",\\\"textarea\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/coa-editor-line.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    notifications: (0, _service.inject)(),\n    hidingChildren: false,\n    tagName: 'li',\n    classNameBindings: ['account.children.length:heading'],\n    attributeBindings: ['id'],\n    id: (0, _object.computed)('account.tmpId', function () {\n      const tmpId = (0, _object.get)(this, 'account.tmpId');\n      return !(0, _utils.isEmpty)(tmpId) ? 'menuItem_' + tmpId : null;\n    }),\n    actions: {\n      deleteAccount(account) {\n        this.deleteAccount(account);\n      },\n      createChildAccount(account) {\n        this.createChildAccount(account);\n      },\n      toggleHidingChildren() {\n        this.toggleProperty('hidingChildren');\n      },\n      toggleIsEditingDescription() {\n        this.toggleProperty('isEditingDescription');\n      },\n      saveDescription() {\n        const account = (0, _object.get)(this, 'account');\n        const notifications = (0, _object.get)(this, 'notifications');\n        (0, _object.set)(this, 'isSavingDescription', true);\n        account.save().then(() => {\n          (0, _object.set)(this, 'isSavingDescription', false);\n          (0, _object.set)(this, 'isEditingDescription', false);\n          notifications.success('Account description was successfully saved.');\n        }, () => {\n          (0, _object.set)(this, 'isSavingDescription', false);\n          (0, _object.set)(this, 'isEditingDescription', false);\n          notifications.error(`Sorry, the account description failed to save.`);\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/coa-editor\", [\"exports\", \"@ember/component\", \"jquery\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _jquery, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.nestedAccounts as |account|}}\n    <CoaEditorLine\n      @account={{account}}\n      @deleteAccount={{action 'deleteAccount'}}\n      @createChildAccount={{action 'createChildAccount'}}\n    />\n  {{else}}\n    <p class='ptl-placeholder'>This company has no accounts of this type.</p>\n  {{/each}}\n  */\n  {\n    \"id\": \"yJ4DF8us\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"nestedAccounts\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@account\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[[30,1],[28,[37,3],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,3],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"This company has no accounts of this type.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"account\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"coa-editor-line\\\",\\\"action\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/coa-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'ol',\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _jquery.default)(this.element).find('.line').hover(event => (0, _jquery.default)(event.target).addClass('hover'), event => (0, _jquery.default)(event.target).removeClass('hover'));\n      (0, _jquery.default)(this.element).nestedSortable({\n        handle: '.handle',\n        helper: 'clone',\n        items: 'li',\n        excludeRoot: true,\n        toleranceElement: '> div',\n        placeholder: 'dropzone',\n        update: this.updateList.bind(this)\n      });\n    },\n    updateList() {\n      var accounts = (0, _object.get)(this, 'accounts');\n      var nestingData = (0, _jquery.default)(this.element).nestedSortable('toArray');\n      accounts.beginPropertyChanges();\n      nestingData.forEach(line => {\n        var account = accounts.findBy('tmpId', line.item_id);\n        var parent = accounts.findBy('tmpId', line.parent_id);\n        if (account) {\n          (0, _object.set)(account, 'sortIndex', line.left);\n          (0, _object.set)(account, 'parent', parent);\n          var oldParent = (0, _object.get)(account, 'parent.tmpId');\n          if (oldParent !== (0, _object.get)(line, 'parent_id')) {\n            account.send('becomeDirty');\n          }\n        } else {\n          this.send('error', new Error(`Could not find account with id ${line.item_id}`));\n        }\n      });\n      nestingData.forEach(line => {\n        var account = accounts.findBy('tmpId', line.item_id);\n        var children = accounts.filterBy('parent.tmpId', line.item_id);\n        (0, _object.set)(account, 'isHeading', children.length > 0);\n      });\n      accounts.endPropertyChanges();\n    },\n    actions: {\n      deleteAccount(account) {\n        this.deleteAccount(account);\n      },\n      createChildAccount(account) {\n        this.createChildAccount(account);\n      }\n    }\n  }));\n});","define(\"portal/components/combo-box\", [\"exports\", \"@ember/component\", \"@ember/object\", \"jquery\", \"portal/components/combo-box\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _object, _jquery, _comboBox, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"portal/components/combo-box\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{!-- {{input\n    class=(or @class 'text-input')\n    type='text'\n    value=@searchTerm\n    placeholder=(if\n      @finderVisible (or @searchPlaceholder 'Type to search…') @placeholder\n    )\n    keyDown=(action 'keyDown' bubbles=false)\n    keyUp=(action 'keyUp' bubbles=false)\n    click=(action 'setFinderVisible' true bubbles=false)\n    focusIn=(action 'setFinderVisible' true bubbles=false)\n    autocomplete='off'\n  }} --}}\n  \n  <Input\n    @type='text'\n    @value={{this.searchTerm}}\n    class={{or @class 'text-input'}}\n    placeholder={{if\n      this.finderVisible\n      (or @searchPlaceholder 'Type to search…')\n      @placeholder\n    }}\n    {{on 'keydown' (action 'keyDown' bubbles=false)}}\n    {{on 'keyup' (action 'keyUp' bubbles=false)}}\n    {{on 'click' (action 'setFinderVisible' true bubbles=false)}}\n    {{on 'focusin' (action 'setFinderVisible' true bubbles=false)}}\n    autocomplete='off'\n  />\n  \n  {{#if this.finderVisible}}\n    {{#unless @isLoading}}\n      {{#if this.filteredOptions.length}}\n        <div class='combo-box__drop-down'>\n          {{#each this.filteredOptions as |option index|}}\n            <div\n              class='combo-box__drop-down-row\n                {{if\n                  (eq index this.selectedRow)\n                  \"combo-box__drop-down-row--selected\"\n                }}\n                {{concat \"combo-box__drop-down-row--\" index}}'\n              onclick={{action 'setItem' index bubbles=false}}\n              onmouseover={{fn (mut this.selectedRow) index}}\n              onmouseout={{action 'unSetHighlight' index bubbles=false}}\n              data-test-combo-box-option={{index}}\n            >\n              {{or (get option @key) option}}\n            </div>\n          {{/each}}\n        </div>\n      {{else if (or @emptyText @emptyButtonAction)}}\n        <div class='combo-box__drop-down'>\n          <div class='combo-box__drop-down-row combo-box__drop-down-row--empty'>\n            {{#if @emptyText}}\n              <span class='text-button--spaced'>\n                {{@emptyText}}\n              </span>\n            {{/if}}\n  \n            {{#if @emptyButtonAction}}\n              <button\n                class='text-button text-button--spaced'\n                type='button'\n                {{action @emptyButtonAction bubbles=false}}\n              >\n                {{or @emptyButtonText 'Click to update'}}\n              </button>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='combo-box__drop-down'>\n        <div class='combo-box__drop-down-row combo-box__drop-down-row--loading'>\n          <LoadingIcon @type='spinner' />\n        </div>\n      </div>\n    {{/unless}}\n  {{/if}}\n  */\n  {\n    \"id\": \"4p+zbZ2l\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[8,[39,0],[[16,0,[28,[37,1],[[30,1],\\\"text-input\\\"],null]],[16,\\\"placeholder\\\",[52,[30,0,[\\\"finderVisible\\\"]],[28,[37,1],[[30,2],\\\"Type to search…\\\"],null],[30,3]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,3],[\\\"keydown\\\",[28,[37,4],[[30,0],\\\"keyDown\\\"],[[\\\"bubbles\\\"],[false]]]],null],[4,[38,3],[\\\"keyup\\\",[28,[37,4],[[30,0],\\\"keyUp\\\"],[[\\\"bubbles\\\"],[false]]]],null],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]]],null],[4,[38,3],[\\\"focusin\\\",[28,[37,4],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchTerm\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"finderVisible\\\"]],[[[41,[51,[30,4]],[[[41,[30,0,[\\\"filteredOptions\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"combo-box__drop-down\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"filteredOptions\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[15,0,[29,[\\\"combo-box__drop-down-row\\\\n              \\\",[52,[28,[37,9],[[30,6],[30,0,[\\\"selectedRow\\\"]]],null],\\\"combo-box__drop-down-row--selected\\\"],\\\"\\\\n              \\\",[28,[37,10],[\\\"combo-box__drop-down-row--\\\",[30,6]],null]]]],[15,\\\"onclick\\\",[28,[37,4],[[30,0],\\\"setItem\\\",[30,6]],[[\\\"bubbles\\\"],[false]]]],[15,\\\"onmouseover\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"selectedRow\\\"]]],null],[30,6]],null]],[15,\\\"onmouseout\\\",[28,[37,4],[[30,0],\\\"unSetHighlight\\\",[30,6]],[[\\\"bubbles\\\"],[false]]]],[15,\\\"data-test-combo-box-option\\\",[30,6]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[[28,[37,13],[[30,5],[30,7]],null],[30,5]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,8],[30,9]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"combo-box__drop-down\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"combo-box__drop-down-row combo-box__drop-down-row--empty\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,8],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"text-button--spaced\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,8]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,9],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,9]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[[30,10],\\\"Click to update\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"combo-box__drop-down\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"combo-box__drop-down-row combo-box__drop-down-row--loading\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[\\\"@class\\\",\\\"@searchPlaceholder\\\",\\\"@placeholder\\\",\\\"@isLoading\\\",\\\"option\\\",\\\"index\\\",\\\"@key\\\",\\\"@emptyText\\\",\\\"@emptyButtonAction\\\",\\\"@emptyButtonText\\\"],false,[\\\"input\\\",\\\"or\\\",\\\"if\\\",\\\"on\\\",\\\"action\\\",\\\"unless\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"concat\\\",\\\"fn\\\",\\\"mut\\\",\\\"get\\\",\\\"span\\\",\\\"button\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/combo-box.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // to lower case\n  function tlc(string) {\n    return String(string).toLowerCase();\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _comboBox.default,\n    classNames: ['combo-box'],\n    finderVisible: false,\n    selectedRow: 0,\n    searchTerm: '',\n    // Things that need to happen once, when the element is created\n    didInsertElement() {\n      this._super(...arguments);\n      // capture click events and check if they are for our component\n      // if they are not, we can close the drop down\n      const element = (0, _object.get)(this, 'elementId');\n      (0, _jquery.default)(window).on('click', event => {\n        if ((0, _object.get)(this, 'finderVisible') && (0, _jquery.default)(`#${element}`).has(event.target).length === 0 && !(0, _jquery.default)(`#${element}`).is(event.target)) {\n          this.send('setFinderVisible', false);\n        }\n      });\n\n      // we need to set the value on the initial render\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      (0, _object.set)(this, 'searchTerm', activeValue);\n    },\n    // Things that need to happen once, when the element is destroyed\n    willDestroyElement() {\n      this._super(...arguments);\n      // remove our listener\n      (0, _jquery.default)(window).off('click');\n    },\n    // Things that need to happen every time the element is re-rendered\n    willRender() {\n      this._super(...arguments);\n      // We only want to set the value when the search is not being used and the value has changed\n      const finderNotVisible = !(0, _object.get)(this, 'finderVisible');\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      if (finderNotVisible && activeValue !== searchTerm) {\n        (0, _object.set)(this, 'searchTerm', activeValue);\n      }\n    },\n    filteredOptions: (0, _object.computed)('key', 'options', 'searchTerm', function () {\n      const key = (0, _object.get)(this, 'key');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      const options = (0, _object.get)(this, 'options');\n      if (searchTerm) {\n        return options.filter(option => {\n          const searchableValue = typeof option === 'object' ? (0, _object.get)(option, key) : option;\n          return tlc(searchableValue).includes(tlc(searchTerm));\n        });\n      } else {\n        return options;\n      }\n    }),\n    activeDisplayName: (0, _object.computed)('key', 'options', 'value', function () {\n      const value = (0, _object.get)(this, 'value');\n      const key = (0, _object.get)(this, 'key');\n      if (typeof value !== 'object') {\n        // Verbatim if value is not an object\n        return value;\n      } else if (key && value) {\n        // value[key] if both key and value are truthy\n        return (0, _object.get)(value, key);\n      } else {\n        // Empty string if nothing else matches\n        return '';\n      }\n    }),\n    actions: {\n      setFinderVisible(visible) {\n        if ((0, _object.get)(this, 'finderVisible') !== visible && !this.isDestroyed && !this.isDestroying) (0, _object.set)(this, 'finderVisible', visible);\n      },\n      keyDown(event) {\n        const selectedRow = (0, _object.get)(this, 'selectedRow');\n        switch (event.keyCode) {\n          // down arrow\n          case 38:\n            this.send('setFinderVisible', true);\n            if (selectedRow > 0) {\n              const newSelectedRow = selectedRow - 1;\n              (0, _object.set)(this, 'selectedRow', newSelectedRow);\n              this.send('keepSelectedRowVisible', newSelectedRow);\n            }\n            break;\n          // up arrow\n          case 40:\n            this.send('setFinderVisible', true);\n            if (selectedRow + 1 < (0, _object.get)(this, 'filteredOptions.length')) {\n              const newSelectedRow = selectedRow + 1;\n              (0, _object.set)(this, 'selectedRow', newSelectedRow);\n              this.send('keepSelectedRowVisible', newSelectedRow);\n            }\n            break;\n          // enter\n          case 13:\n            if ((0, _object.get)(this, 'finderVisible')) this.send('setItem', selectedRow);\n            event.preventDefault();\n            break;\n          // tab\n          case 9:\n            this.send('setItem');\n            this.send('setFinderVisible', false);\n            break;\n          // escape\n          case 27:\n            this.send('setFinderVisible', false);\n            break;\n          // any other key\n          default:\n            (0, _object.set)(this, 'selectedRow', -1);\n            this.send('setItem', -1);\n            this.send('setFinderVisible', true);\n            break;\n        }\n      },\n      keyUp(event) {\n        if ([38, 40, 13, 9, 27].includes(event.keyCode)) return; // event has been handled\n\n        (0, _object.set)(this, 'selectedRow', -1);\n        this.send('setItem', -1);\n        this.send('setFinderVisible', true);\n      },\n      keepSelectedRowVisible(selectedRowIndex) {\n        const $row = (0, _jquery.default)(this.element).find('.combo-box__drop-down-row--' + selectedRowIndex);\n        const $container = (0, _jquery.default)(this.element).find('.combo-box__drop-down');\n        if ($row.position().top > $container.height()) {\n          $container.scrollTop($container.scrollTop() + $row.outerHeight());\n        } else if ($row.position().top < 0) {\n          $container.scrollTop($container.scrollTop() - $row.outerHeight());\n        }\n      },\n      unSetHighlight(index) {\n        if ((0, _object.get)(this, 'selectedRow') === index) (0, _object.set)(this, 'selectedRow', null);\n      },\n      setItem(index) {\n        (0, _runloop.next)(() => {\n          // when the index is negative, the new item value is in the searchTerm\n          const item = index >= 0 ? (0, _object.get)(this, 'filteredOptions').objectAt(index) : (0, _object.get)(this, 'searchTerm');\n          const key = (0, _object.get)(this, 'key');\n          if (typeof item === 'object') {\n            // this.args.onSet(key ? get(item, key) : item);\n            this.get('onSet')(key ? (0, _object.get)(item, key) : item);\n            // this.sendAction('onSet', key ? get(item, key) : item);\n          } else {\n            // this.args.onSet(item);\n            this.get('onSet')(item);\n            // this.sendAction('onSet', item);\n          }\n          if (index >= 0) this.send('setFinderVisible', false);\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/combo-button\", [\"exports\", \"@ember/component\", \"portal/components/combo-button\", \"@ember/object/computed\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _comboButton, _computed, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"portal/components/combo-button\",0,\"@ember/object/computed\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='combo-button__container' tabindex='0'>\n    <div class='combo-button__button-container'>\n      <LoadingButton\n        @isLoading={{@isLoading}}\n        class={{concat\n          'combo-button__button-main '\n          (if @buttonClass @buttonClass)\n        }}\n        @action={{action 'onButtonClick'}}\n        @buttonText={{@buttonText}}\n      />\n  \n      <button\n        class='combo-button__button-side {{if @buttonClass @buttonClass}}'\n        disabled={{@isLoading}}\n        type='button'\n        {{action this.toggleProperty 'focused'}}\n      >\n        <FaIcon @icon='caret-down' />\n      </button>\n    </div>\n  \n    {{#if (has-block)}}\n      {{#if this.showDropdown}}\n        {{! template-lint-disable no-pointer-down-event-binding }}\n        <div\n          class='combo-button__overlaid-dropdown-container'\n          onmousedown={{action 'holdFocus'}}\n          ontouchstart={{action 'holdFocus'}}\n        >\n          {{#if this.title}}\n            <div\n              class='combo-button__overlaid-dropdown-title'\n            >{{this.title}}</div>\n          {{/if}}\n  \n          {{yield}}\n        </div>\n      {{/if}}\n    {{else}}\n      You provided no options! Use a regular button.\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"MM+bez+M\",\n    \"block\": \"[[[10,0],[14,0,\\\"combo-button__container\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"combo-button__button-container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],[[16,0,[28,[37,2],[\\\"combo-button__button-main \\\",[52,[30,1],[30,1]]],null]]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[[30,2],[28,[37,4],[[30,0],\\\"onButtonClick\\\"],null],[30,3]]],null],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"combo-button__button-side \\\",[52,[30,1],[30,1]]]]],[16,\\\"disabled\\\",[30,2]],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"focused\\\"],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[48,[30,4]],[[[41,[30,0,[\\\"showDropdown\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"combo-button__overlaid-dropdown-container\\\"],[15,\\\"onmousedown\\\",[28,[37,4],[[30,0],\\\"holdFocus\\\"],null]],[15,\\\"ontouchstart\\\",[28,[37,4],[[30,0],\\\"holdFocus\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"combo-button__overlaid-dropdown-title\\\"],[12],[1,[30,0,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[18,4,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    You provided no options! Use a regular button.\\\\n\\\"]],[]]],[13]],[\\\"@buttonClass\\\",\\\"@isLoading\\\",\\\"@buttonText\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"loading-button\\\",\\\"concat\\\",\\\"if\\\",\\\"action\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/combo-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _comboButton.default,\n    showDropdown: (0, _computed.or)('holdFocus', 'focused'),\n    focusOut() {\n      (0, _object.set)(this, 'focused', false);\n    },\n    actions: {\n      onButtonClick() {\n        (0, _object.set)(this, 'focused', false);\n        this.action();\n      },\n      /*\n       * Makes sure that the dropdown doesn't disappear if user clicks inside the dropdown.\n       * Holds the dropdown, waits for the blur event on the button, then focuses the button\n       * again and releases the hold so that the blur event can happen again.\n       */\n      holdFocus() {\n        // Keep dropdown visible\n        (0, _object.set)(this, 'holdFocus', true);\n        // Wait for blur event to occur\n        (0, _runloop.next)(() => {\n          // Set focused back to true\n          (0, _object.set)(this, 'focused', true);\n          // Release the hold on the dropdown being open\n          (0, _object.set)(this, 'holdFocus', false);\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/confirm-delete\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @visible}}\n    <ModalDialog\n      @onClose={{perform this.onCancel}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{@title}}\n        </h5>\n      </div>\n  \n      <div class='modal-body' data-test-confirm-delete-dialog>\n  \n        {{#if @messages.length}}\n          <div class='d-flex flex-column gap-2 mb-3'>\n            {{#each @messages as |message|}}\n              <p class='m-0'>{{message}}</p>\n            {{/each}}\n          </div>\n        {{/if}}\n        {{#if @confirmText}}\n          <label for='confirmDelete' class='mb-1'>\n            {{t\n              'common.toConfirmTypeConfirmTextInTheBoxBelow'\n              confirmText=@confirmText\n            }}:\n          </label>\n          <Input\n            id='confirmDelete'\n            @value={{this.confirmText}}\n            class='form-control'\n            @type='text'\n            autocomplete='off'\n            data-test-confirm-delete-confirm-text-input\n          />\n        {{/if}}\n  \n        {{yield}}\n      </div>\n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.onDelete.isRunning}}\n            {{on 'click' (perform this.onCancel)}}\n            data-test-confirm-delete-cancel-button\n          >{{t 'common.Cancel'}}</button>\n          <button\n            class='btn btn-danger text-white ms-2'\n            type='button'\n            data-test-confirm-delete-delete-button\n            disabled={{or (not this.allowDelete) this.onDelete.isRunning}}\n            {{on 'click' (perform this.onDelete)}}\n          >\n            {{#if this.onDelete.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{@deletingButtonText}}\n            {{else}}\n              {{@deleteButtonText}}\n            {{/if}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"UE1kdEnO\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[28,[37,2],[[30,0,[\\\"onCancel\\\"]]],null],\\\"modal-content w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,2]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,\\\"data-test-confirm-delete-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3,[\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-column gap-2 mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,3]],null]],null],null,[[[1,\\\"            \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,5],[[[1,\\\"        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirmDelete\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.toConfirmTypeConfirmTextInTheBoxBelow\\\"],[[\\\"confirmText\\\"],[[30,5]]]]],[1,\\\":\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,1,\\\"confirmDelete\\\"],[24,0,\\\"form-control\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,\\\"data-test-confirm-delete-confirm-text-input\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"confirmText\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[18,8,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDelete\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-confirm-delete-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"onCancel\\\"]]],null]],null],[12],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[24,\\\"data-test-confirm-delete-delete-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"allowDelete\\\"]]],null],[30,0,[\\\"onDelete\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"onDelete\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDelete\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,6]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,7]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"message\\\",\\\"@confirmText\\\",\\\"@deletingButtonText\\\",\\\"@deleteButtonText\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"perform\\\",\\\"div\\\",\\\"h5\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"label\\\",\\\"t\\\",\\\"input\\\",\\\"yield\\\",\\\"footer\\\",\\\"button\\\",\\\"on\\\",\\\"or\\\",\\\"not\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/confirm-delete.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"confirmText\", _descriptor, this);\n      _defineProperty(this, \"onCancel\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.confirmText = '';\n          yield this.args.onCancel();\n        }\n      }), null, \"onCancel\", null));\n      _defineProperty(this, \"onDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.args.onDelete();\n          } finally {\n            this.confirmText = '';\n          }\n        }\n      }), null, \"onDelete\", null));\n    }\n    get allowDelete() {\n      if (this.args.confirmText) return this.confirmText.toLowerCase().replace(/\\s/g, '') === this.args.confirmText.toLowerCase().replace(/\\s/g, '');\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmText\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _class));\n});","define(\"portal/components/content-tabs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 d-flex align-items-center justify-content-start'>\n    {{#each @tabs as |tab|}}\n      <ContentTabs::Tab @tabName={{tab.name}} @route={{tab.route}} />\n    {{/each}}\n  </div>\n  {{yield}}\n  */\n  {\n    \"id\": \"tjo74Uni\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-start\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@tabName\\\",\\\"@route\\\"],[[30,2,[\\\"name\\\"]],[30,2,[\\\"route\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[13],[1,\\\"\\\\n\\\"],[18,3,null]],[\\\"@tabs\\\",\\\"tab\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"content-tabs/tab\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/content-tabs.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/content-tabs/tab\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LinkTo\n    @route={{@route}}\n    class='btn py-2 content-tab'\n    draggable={{false}}\n    data-test-content-tab-button\n  >\n    {{@tabName}}\n  </LinkTo>\n  */\n  {\n    \"id\": \"s1V9hxUG\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"btn py-2 content-tab\\\"],[16,\\\"draggable\\\",false],[24,\\\"data-test-content-tab-button\\\",\\\"\\\"]],[[\\\"@route\\\"],[[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@route\\\",\\\"@tabName\\\"],false,[\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/components/content-tabs/tab.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/context-menu\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield\n    (hash\n      containerId=this.containerId\n      buttonId=this.buttonId\n      Menu=(component\n        'context-menu/menu'\n        targetPosition=this.targetPosition\n        direction=@direction\n        containerId=this.containerId\n      )\n    )\n  }}\n  */\n  {\n    \"id\": \"uxa6o8sw\",\n    \"block\": \"[[[18,2,[[28,[37,1],null,[[\\\"containerId\\\",\\\"buttonId\\\",\\\"Menu\\\"],[[30,0,[\\\"containerId\\\"]],[30,0,[\\\"buttonId\\\"]],[50,\\\"context-menu/menu\\\",0,null,[[\\\"targetPosition\\\",\\\"direction\\\",\\\"containerId\\\"],[[30,0,[\\\"targetPosition\\\"]],[30,1],[30,0,[\\\"containerId\\\"]]]]]]]]]]],[\\\"@direction\\\",\\\"&default\\\"],false,[\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/context-menu.hbs\",\n    \"isStrictMode\": false\n  });\n  function getElement(id) {\n    return document.querySelector(`[context-menu=\"${id}\"]`);\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    clearTarget() {\n      this.longPressed = false;\n      this.targetPosition = null;\n    }\n    setTarget(x, y, withScroll = false) {\n      if (this.args.disabled) return;\n      this.targetPosition = {\n        x,\n        y,\n        withScroll\n      };\n    }\n    get menuVisible() {\n      return Boolean(this.targetPosition);\n    }\n    bindEvents() {\n      const container = getElement(this.containerId);\n      const button = getElement(this.buttonId);\n\n      // make sure the container is focusable\n      container.setAttribute('tabindex', '0');\n      this.containerContextMenuListener = this.onContainerContextMenu.bind(this);\n      container.addEventListener('contextmenu', this.containerContextMenuListener);\n      this.containerClickListener = this.onContainerClick.bind(this);\n      container.addEventListener('click', this.containerClickListener);\n      this.containerMouseDownListener = this.onContainerMouseDown.bind(this);\n      container.addEventListener('mousedown', this.containerMouseDownListener);\n      this.containerMouseUpListener = this.onContainerMouseUp.bind(this);\n      container.addEventListener('mouseup', this.containerMouseUpListener);\n      this.containerFocusOutListener = this.onContainerFocusOut.bind(this);\n      container.addEventListener('focusout', this.containerFocusOutListener);\n      if (button) {\n        this.buttonClickListener = this.onButtonClick.bind(this);\n        button.addEventListener('click', this.buttonClickListener);\n      }\n    }\n    removeEvents() {\n      const container = getElement(this.containerId);\n      const button = getElement(this.buttonId);\n      container.removeEventListener('contextmenu', this.containerContextMenuListener);\n      container.removeEventListener('click', this.containerClickListener);\n      container.removeEventListener('mousedown', this.containerMouseDownListener);\n      container.removeEventListener('mouseup', this.containerMouseUpListener);\n      container.removeEventListener('focusout', this.containerFocusOutListener);\n      if (button) {\n        button.removeEventListener('click', this.buttonClickListener);\n      }\n    }\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"containerId\", Math.random());\n      _defineProperty(this, \"buttonId\", Math.random());\n      _initializerDefineProperty(this, \"targetPosition\", _descriptor, this);\n      _initializerDefineProperty(this, \"longPressed\", _descriptor2, this);\n      _initializerDefineProperty(this, \"longPressTimeout\", _descriptor3, this);\n      _initializerDefineProperty(this, \"containerContextMenuListener\", _descriptor4, this);\n      _initializerDefineProperty(this, \"containerClickListener\", _descriptor5, this);\n      _initializerDefineProperty(this, \"containerMouseDownListener\", _descriptor6, this);\n      _initializerDefineProperty(this, \"containerMouseUpListener\", _descriptor7, this);\n      _initializerDefineProperty(this, \"containerFocusOutListener\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buttonClickListener\", _descriptor9, this);\n      (0, _runloop.next)(() => {\n        this.bindEvents();\n      });\n    }\n\n    // TODO replace with when upgraded import { registerDestructor } from '@ember/destroyable';\n    willDestroyElement() {\n      this.removeEvents();\n      super.willDestroyElement(...arguments);\n    }\n    onContainerContextMenu(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      if (this.menuVisible) {\n        this.clearTarget();\n        return;\n      }\n      this.setTarget(event.clientX, event.clientY);\n    }\n    onContainerClick(event) {\n      // if the menu is open, stop the click from propagating and close the menu\n      if (this.menuVisible) {\n        event.preventDefault();\n        event.stopPropagation();\n        if (!this.longPressed) {\n          this.clearTarget();\n        }\n        this.longPressed = false;\n      }\n    }\n    onContainerMouseDown(event) {\n      this.longPressTimeout = setTimeout(() => {\n        this.onContainerLongPress(event);\n      }, 1000);\n    }\n    onContainerMouseUp() {\n      clearTimeout(this.longPressTimeout);\n    }\n    onContainerLongPress(event) {\n      if (this.menuVisible) {\n        this.clearTarget();\n        return;\n      }\n      this.longPressed = true;\n      this.setTarget(event.clientX, event.clientY);\n    }\n    onButtonClick(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      if (this.menuVisible) {\n        this.clearTarget();\n        return;\n      }\n      const button = getElement(this.buttonId);\n      const buttonRect = button.getBoundingClientRect();\n      const bottomRightX = buttonRect.right + window.scrollX;\n      const bottomRightY = buttonRect.bottom + window.scrollY;\n      this.setTarget(bottomRightX, bottomRightY, true);\n\n      // ensure container gets focused when clicking the button\n      const container = getElement(this.containerId);\n      container.focus();\n    }\n    onContainerFocusOut(event) {\n      (0, _runloop.next)(() => {\n        const container = getElement(this.containerId);\n        const button = getElement(this.buttonId);\n        if (container && container.contains(event.relatedTarget)) return;\n        if (button && button.contains(event.relatedTarget)) return;\n        this.clearTarget();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"targetPosition\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"longPressed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"longPressTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"containerContextMenuListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"containerClickListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"containerMouseDownListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"containerMouseUpListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"containerFocusOutListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"buttonClickListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class));\n});","define(\"portal/components/context-menu/menu\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _runloop, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @targetPosition}}\n    <div\n      {{did-insert this.positionMenuFixed @targetPosition}}\n      class='context-menu__menu-container position-fixed card shadow d-flex flex-column py-2'\n    >\n      {{yield}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"d6ZmaSaS\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"context-menu__menu-container position-fixed card shadow d-flex flex-column py-2\\\"],[4,[38,2],[[30,0,[\\\"positionMenuFixed\\\"]],[30,1]],null],[12],[1,\\\"\\\\n    \\\"],[18,2,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@targetPosition\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"did-insert\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/context-menu/menu.hbs\",\n    \"isStrictMode\": false\n  });\n  function getElement(id) {\n    return document.querySelector(`[context-menu=\"${id}\"]`);\n  }\n  function px(number) {\n    return number + 'px';\n  }\n  function parsePx(pxValue) {\n    return pxValue ? parseInt(pxValue, 10) : 0;\n  }\n  function isVisible(width, height, {\n    top,\n    right,\n    bottom,\n    left\n  }) {\n    // check top\n    if (top !== undefined && (top < 0 || top + height > window.innerHeight)) {\n      return false;\n    }\n\n    // check right\n    if (right !== undefined && (right < 0 || right + width > window.innerWidth)) {\n      return false;\n    }\n\n    // check bottom\n    if (bottom !== undefined && (bottom < 0 || bottom + height > window.innerHeight)) {\n      return false;\n    }\n\n    // check left\n    if (left !== undefined && (left < 0 || left + width > window.innerWidth)) {\n      return false;\n    }\n    return true;\n  }\n  function findFirstScrollableParent(element) {\n    let parent = element.parentElement;\n    while (parent) {\n      // this handles all scroll styles i.e scroll: auto, scroll-y: auto\n      const overflowY = getComputedStyle(parent).getPropertyValue('overflow-y');\n      const hasScrollStyle = overflowY === 'auto' || overflowY === 'scroll';\n      if (hasScrollStyle) return parent;\n      parent = parent.parentElement;\n    }\n    return parent;\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"scrollParentScrollListener\", _descriptor, this);\n      _initializerDefineProperty(this, \"containerFocusOutListener\", _descriptor2, this);\n      _initializerDefineProperty(this, \"initialPosition\", _descriptor3, this);\n    }\n    onScroll(menuElement, parentElement) {\n      if (!this.initialPosition) {\n        const rect = menuElement.getBoundingClientRect();\n        const parentRect = parentElement.getBoundingClientRect();\n        this.initialPosition = {\n          top: rect.top - parentRect.top,\n          left: rect.left - parentRect.left\n        };\n      }\n      const parentRect = parentElement.getBoundingClientRect();\n      menuElement.style.top = px(parentRect.top + this.initialPosition.top - parentElement.scrollTop);\n      menuElement.style.left = px(parentRect.left + this.initialPosition.left - parentElement.scrollLeft);\n    }\n    onContainerFocusOut(scrollParent) {\n      scrollParent.removeEventListener('scroll', this.scrollParentScrollListener);\n    }\n    positionMenuFixed(menuElement, [targetPosition]) {\n      // don't give people direction options with the context menu\n      const direction = targetPosition.withScroll ? this.args.direction || 'bottom-right' : 'bottom-right';\n\n      // reset styles\n      this.initialPosition = null;\n      menuElement.style.removeProperty('top');\n      menuElement.style.removeProperty('right');\n      menuElement.style.removeProperty('bottom');\n      menuElement.style.removeProperty('left');\n      function positionMenuFixed(direction, originalDirection) {\n        const {\n          x,\n          y\n        } = targetPosition;\n        let checkedAllDirections = false;\n        if (!originalDirection) {\n          originalDirection = direction;\n        } else {\n          checkedAllDirections = direction === originalDirection;\n        }\n        const margin = 5;\n        const menuRect = menuElement.getBoundingClientRect();\n        const menuStyle = window.getComputedStyle(menuElement);\n        const menuOuterWidth = menuRect.width + parsePx(menuStyle.borderLeftWidth) + parsePx(menuStyle.paddingLeft) + parsePx(menuStyle.borderRightWidth) + parsePx(menuStyle.paddingRight);\n        const menuOuterHeight = menuRect.height + parsePx(menuStyle.borderTopWidth) + parsePx(menuStyle.paddingTop) + parsePx(menuStyle.borderBottomWidth) + parsePx(menuStyle.paddingBottom);\n        switch (direction) {\n          case 'top':\n            {\n              // position above the target, centered horizontally\n              const bottom = window.innerHeight - y + margin;\n              const left = x - menuOuterWidth / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                bottom,\n                left\n              })) {\n                return positionMenuFixed('top-right', originalDirection);\n              }\n              menuElement.style.bottom = px(bottom);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'top-right':\n            {\n              // position above the target, left edge aligned with target.x\n              const bottom = window.innerHeight - y;\n              const left = x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                bottom,\n                left\n              })) {\n                return positionMenuFixed('right', originalDirection);\n              }\n              menuElement.style.bottom = px(bottom);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'right':\n            {\n              // position to the right of the target, centered vertically\n              const left = x + margin;\n              const top = y - menuRect.height / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                left,\n                top\n              })) {\n                return positionMenuFixed('bottom-right', originalDirection);\n              }\n              menuElement.style.left = px(left);\n              menuElement.style.top = px(top);\n              break;\n            }\n          case 'bottom-right':\n            {\n              // position below the target, left edge aligned with target.x\n              const top = y;\n              const left = x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                top,\n                left\n              })) {\n                return positionMenuFixed('bottom', originalDirection);\n              }\n              menuElement.style.top = px(top);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'bottom':\n            {\n              // position below the target, centered horizontally\n              const top = y + margin;\n              const left = x - menuOuterWidth / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                top,\n                left\n              })) {\n                return positionMenuFixed('bottom-left', originalDirection);\n              }\n              menuElement.style.top = px(top);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'bottom-left':\n            {\n              // position below the target, right edge aligned with target.x\n              const top = y;\n              const right = window.innerWidth - x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                top,\n                right\n              })) {\n                return positionMenuFixed('left', originalDirection);\n              }\n              menuElement.style.top = px(top);\n              menuElement.style.right = px(right);\n              break;\n            }\n          case 'left':\n            {\n              // position to the left of the target, centered vertically\n              const right = window.innerWidth - x + margin;\n              const top = y - menuRect.height / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                right,\n                top\n              })) {\n                return positionMenuFixed('top-left', originalDirection);\n              }\n              menuElement.style.right = px(right);\n              menuElement.style.top = px(top);\n              break;\n            }\n          case 'top-left':\n            {\n              // position above the target, right edge aligned with target.x\n              const bottom = window.innerHeight - y;\n              const right = window.innerWidth - x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                bottom,\n                right\n              })) {\n                return positionMenuFixed('top', originalDirection);\n              }\n              menuElement.style.bottom = px(bottom);\n              menuElement.style.right = px(right);\n              break;\n            }\n          default:\n            return positionMenuFixed('bottom-right');\n        }\n      }\n      positionMenuFixed(direction);\n\n      // bind our position to the scroll\n      if (targetPosition.withScroll) {\n        (0, _runloop.next)(() => {\n          const container = getElement(this.args.containerId);\n          const scrollParent = findFirstScrollableParent(menuElement);\n          this.scrollParentScrollListener = this.onScroll.bind(this, menuElement, scrollParent);\n          scrollParent.addEventListener('scroll', this.scrollParentScrollListener, {\n            passive: true\n          });\n          this.containerFocusOutListener = this.onContainerFocusOut.bind(this, scrollParent);\n          container.addEventListener('focusout', this.containerFocusOutListener);\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"scrollParentScrollListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"containerFocusOutListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"initialPosition\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"positionMenuFixed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"positionMenuFixed\"), _class.prototype), _class));\n});","define(\"portal/components/dashboard-item\", [\"exports\", \"@ember/component\", \"@ember/service\"], function (_exports, _component, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/components/dashboard-item/card\", [\"exports\", \"@ember/component\", \"portal/components/dashboard-item\", \"@ember/template-factory\"], function (_exports, _component, _dashboardItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/dashboard-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.module.icon}}\n    <div class='dashboard-item-card__icon'>\n      <FaIcon @icon={{this.module.icon}} />\n    </div>\n  {{else if this.module.logo}}\n    <img src={{this.module.logo}} alt='Logo' class='dashboard-item-card__logo' />\n  {{/if}}\n  \n  <div class='dashboard-item-card__text'>\n    {{#if this.module.brand}}\n      <div class='dashboard-item-card__brand'>{{this.module.brand}}</div>\n    {{/if}}\n  \n    {{#if this.module.name}}\n      <div class='dashboard-item-card__title'>{{this.module.name}}</div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"xj9wqOaD\",\n    \"block\": \"[[[41,[30,0,[\\\"module\\\",\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"dashboard-item-card__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"module\\\",\\\"icon\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"module\\\",\\\"logo\\\"]],[[[1,\\\"  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"module\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[14,0,\\\"dashboard-item-card__logo\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard-item-card__text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"brand\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-card__brand\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"brand\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"name\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-card__title\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"if\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"img\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard-item/card.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _dashboardItem.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", ['dashboard-item-card__container']);\n    }\n  });\n});","define(\"portal/components/dashboard-item/icon\", [\"exports\", \"@ember/component\", \"portal/components/dashboard-item\", \"@ember/template-factory\"], function (_exports, _component, _dashboardItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/dashboard-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.module.icon}}\n    <div class='dashboard-item-icon__icon'>\n      <FaIcon @icon={{this.module.icon}} />\n    </div>\n  {{else if this.module.logo}}\n    <img src={{this.module.logo}} alt='Logo' class='dashboard-item-icon__logo' />\n  {{/if}}\n  \n  <div class='dashboard-item-icon__text'>\n    {{#if this.module.brand}}\n      <div class='dashboard-item-icon__brand'>{{this.module.brand}}</div>\n    {{/if}}\n  \n    {{#if this.module.name}}\n      <div class='dashboard-item-icon__title'>{{this.module.name}}</div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"gTjwCiTr\",\n    \"block\": \"[[[41,[30,0,[\\\"module\\\",\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"dashboard-item-icon__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"module\\\",\\\"icon\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"module\\\",\\\"logo\\\"]],[[[1,\\\"  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"module\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[14,0,\\\"dashboard-item-icon__logo\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard-item-icon__text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"brand\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-icon__brand\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"brand\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"name\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-icon__title\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"if\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"img\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard-item/icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _dashboardItem.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", ['dashboard-item-icon__container']);\n    }\n  });\n});","define(\"portal/components/dashboard-item/module\", [\"exports\", \"@ember/component\", \"portal/components/dashboard-item\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _dashboardItem, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/dashboard-item\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.module.badge}}\n    <div class='badge bg-info dashboard-item-module__badge'>\n      {{this.module.badge}}\n    </div>\n  {{/if}}\n  {{#if this.module.icon}}\n    <div class='dashboard-item-module__icon'>\n      <FaIcon @icon={{this.module.icon}} @size='2x' />\n    </div>\n  {{else if this.module.logo}}\n    <img\n      src={{this.module.logo}}\n      alt='Logo'\n      class='dashboard-item-module__logo'\n    />\n  {{/if}}\n  \n  <div class='dashboard-item-module__text'>\n    {{#if this.module.brand}}\n      <div class='dashboard-item-module__brand'>{{this.module.brand}}</div>\n    {{/if}}\n  \n    {{#if this.module.name}}\n      <div class='dashboard-item-module__title'>\n        {{#if this.active}}\n          {{this.module.name}}\n        {{else}}\n          {{ellipsis-characters this.module.name 20}}\n        {{/if}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"ydIjCLqd\",\n    \"block\": \"[[[41,[30,0,[\\\"module\\\",\\\"badge\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"badge bg-info dashboard-item-module__badge\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"module\\\",\\\"badge\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"module\\\",\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"dashboard-item-module__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\",\\\"@size\\\"],[[30,0,[\\\"module\\\",\\\"icon\\\"]],\\\"2x\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"module\\\",\\\"logo\\\"]],[[[1,\\\"  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"module\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[14,0,\\\"dashboard-item-module__logo\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard-item-module__text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"brand\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-module__brand\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"brand\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"name\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-module__title\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"active\\\"]],[[[1,\\\"        \\\"],[1,[30,0,[\\\"module\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,4],[[30,0,[\\\"module\\\",\\\"name\\\"]],20],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"if\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"img\\\",\\\"ellipsis-characters\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard-item/module.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _dashboardItem.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", ['dashboard-item-module__container']);\n      _defineProperty(this, \"active\", false);\n    }\n    mouseEnter() {\n      (0, _object.set)(this, 'active', true);\n    }\n    mouseLeave() {\n      (0, _object.set)(this, 'active', false);\n    }\n  });\n});","define(\"portal/components/dashboard/config-modal\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object/evented\", \"@ember/utils\", \"jquery\", \"@ember/object\", \"@ember/object/computed\", \"portal/models/account\", \"portal/models/kpi\", \"portal/models/entity\", \"portal/models/entity-group\", \"@ember/template-factory\"], function (_exports, _component, _service, _evented, _utils, _jquery, _object, _computed, _account, _kpi, _entity, _entityGroup, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@ember/utils\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/component\",0,\"portal/models/account\",0,\"portal/models/kpi\",0,\"portal/models/entity\",0,\"portal/models/entity-group\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{action 'back'}}\n    @containerClass='block-module dashboard-module-config'\n  >\n    <header class='block-module__header'>\n      <button\n        class='float-end button button--plain'\n        type='button'\n        {{action 'onClose'}}\n      ><FaIcon @icon='times' /></button>\n      <h1 class='h1'>Edit your module</h1>\n    </header>\n  \n    <div class='dashboard-module-config-steps'>\n  \n      <section class='active'>\n        <h3 class='h3 text-center'>Display settings</h3>\n  \n        <section class='config-modal__section'>\n          <label class='config-modal__section-heading' for='module-title'>Module\n            title</label>\n          <Input\n            class='text-input'\n            @value={{this.module.title}}\n            placeholder='Untitled'\n          />\n        </section>\n  \n        <section class='config-modal__section'>\n          <label class='config-modal__section-heading'>Module type</label>\n  \n          <div class='selector'>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.visualiser}}\n                @value='data-table'\n              />\n              Table\n            </label>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.visualiser}}\n                @value='line-chart'\n              />\n              Line chart\n            </label>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.visualiser}}\n                @value='pie-chart'\n              />\n              Pie chart\n            </label>\n          </div>\n        </section>\n  \n        <section class='config-modal__section'>\n          <label class='config-modal__section-heading'>Data period</label>\n  \n          <div class='selector'>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.periodType}}\n                @value='month'\n              />\n              Monthly\n            </label>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.periodType}}\n                @value='ytd'\n              />\n              Year to date\n            </label>\n          </div>\n        </section>\n      </section>\n  \n      <section>\n        <h3 class='h3 text-center'>Metrics</h3>\n  \n        <div class='selector'>\n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'kpis'}}>\n              <FaIcon\n                @icon={{if this.treeExpansion.kpis 'caret-down' 'caret-right'}}\n              />\n              KPIs\n            </a>\n          </h4>\n          {{#if this.treeExpansion.kpis}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.data.kpis}}\n                @labelProperty='name'\n                @selection={{this.selectedKpis}}\n                @onchange={{action 'updateKpis'}}\n              />\n            {{else}}\n              {{#each this.data.kpis as |kpi|}}\n                <label>\n                  <RadioButton\n                    @class='radio-button'\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{kpi}}\n                  />\n                  {{kpi.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No KPIs available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n  \n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'profitAndLoss'}}>\n              <FaIcon\n                @icon={{if\n                  this.treeExpansion.profitAndLoss\n                  'caret-down'\n                  'caret-right'\n                }}\n              />\n              Profit &amp; Loss\n            </a>\n          </h4>\n  \n          {{#if this.treeExpansion.profitAndLoss}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.accounts.profitAndLoss}}\n                @labelProperty='name'\n                @selection={{this.selectedAccounts}}\n                @onchange={{action 'updateAccounts'}}\n                as |account isSelected|\n              >\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <Input\n                    @type='checkbox'\n                    class='checkbox'\n                    @checked={{isSelected}}\n                  />\n                  {{account.name}}\n                </label>\n              </Multiselect-checkboxes>\n            {{else}}\n              {{#each this.accounts.profitAndLoss as |account|}}\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <RadioButton\n                    @class='radio-button'\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{account}}\n                  />\n                  {{account.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No profit and loss accounts available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n  \n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'balanceSheet'}}>\n              <FaIcon\n                @icon={{if\n                  this.treeExpansion.balanceSheet\n                  'caret-down'\n                  'caret-right'\n                }}\n              />\n              Balance Sheet\n            </a>\n          </h4>\n  \n          {{#if this.treeExpansion.balanceSheet}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.accounts.balanceSheet}}\n                @labelProperty='name'\n                @selection={{this.selectedAccounts}}\n                @onchange={{action 'updateAccounts'}}\n                as |account isSelected|\n              >\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <Input @type='checkbox' @checked={{isSelected}} />\n                  {{account.name}}\n                </label>\n              </Multiselect-checkboxes>\n            {{else}}\n              {{#each this.accounts.balanceSheet as |account|}}\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <RadioButton\n                    @class='radio-button'\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{account}}\n                  />\n                  {{account.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No balance sheet accounts available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n  \n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'otherData'}}>\n              <FaIcon\n                @icon={{if\n                  this.treeExpansion.otherData\n                  'caret-down'\n                  'caret-right'\n                }}\n              />\n              Other Data\n            </a>\n          </h4>\n  \n          {{#if this.treeExpansion.otherData}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.accounts.otherData}}\n                @labelProperty='name'\n                @selection={{this.selectedAccounts}}\n                @onchange={{action 'updateAccounts'}}\n                as |account isSelected|\n              >\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <Input @type='checkbox' @checked={{isSelected}} />\n                  {{account.name}}\n                </label>\n              </Multiselect-checkboxes>\n            {{else}}\n              {{#each this.accounts.otherData as |account|}}\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <RadioButton\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{account}}\n                  />\n                  {{account.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No other data accounts available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n        </div>\n      </section>\n  \n      <section>\n        <h3 class='h3 text-center'>Series</h3>\n  \n        <div class='selector'>\n          {{#if this.canAccessEntities}}\n            <h4 class='h4'>\n              <a class='tree-branch' {{action 'toggleTree' 'entities'}}>\n                <FaIcon\n                  @icon={{if\n                    this.treeExpansion.entities\n                    'caret-down'\n                    'caret-right'\n                  }}\n                />\n                Branches\n              </a>\n            </h4>\n            {{#if this.treeExpansion.entities}}\n              {{#if this.multipleSeries}}\n                <label class={{concat 'depth-' this.branch.depth}}>\n                  <Input\n                    @type='checkbox'\n                    @checked={{this.module.includeCurrentEntity}}\n                  />\n                  {{#if this.canAccessMultipleEntities}}\n                    Current branch<br />\n                    <span class='subtext'>The module will adapt to whichever\n                      branch you are currently viewing.</span>\n                  {{else}}\n                    {{this.sessionData.entity.name}}\n                  {{/if}}\n                </label>\n  \n                {{#if this.canAccessMultipleEntities}}\n                  <Multiselect-checkboxes\n                    tagName='div'\n                    @options={{this.data.entities}}\n                    @labelProperty='name'\n                    @selection={{this.selectedEntities}}\n                    @onchange={{action 'updateEntities'}}\n                  />\n                {{/if}}\n              {{else}}\n                <label class={{concat 'depth-' this.branch.depth}}>\n                  <RadioButton\n                    @name='metric'\n                    @checked={{this.selectedSeries}}\n                    @value='current'\n                  />\n                  {{#if this.canAccessMultipleEntities}}\n                    Current branch<br />\n                    <span class='subtext'>The module will adapt to whichever\n                      branch you are currently viewing.</span>\n                  {{else}}\n                    {{this.sessionData.entity.name}}\n                  {{/if}}\n                </label>\n                {{#if this.canAccessMultipleBranches}}\n                  data:\n                  {{this.data}}\n                  data.entities :\n                  {{this.data.entities}}\n                  {{#each this.data.entities as |entity|}}\n                    <label class={{concat 'depth-' entity.depth}}>\n                      <RadioButton\n                        @name='metric'\n                        @checked={{this.selectedSeries}}\n                        @value={{entity}}\n                      />\n                      {{entity.name}}\n                    </label>\n                  {{else}}\n                    <p class='ptl-placeholder'>No branches available</p>\n                  {{/each}}\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          {{#if this.canAccessEntityGroups}}\n            <h4 class='h4'>\n              <a class='tree-branch' {{action 'toggleTree' 'entityGroups'}}>\n                <FaIcon\n                  @icon={{if\n                    this.treeExpansion.entityGroups\n                    'caret-down'\n                    'caret-right'\n                  }}\n                />Groups\n              </a>\n            </h4>\n  \n            {{#if this.treeExpansion.entityGroups}}\n              {{#if this.multipleSeries}}\n                <Multiselect-checkboxes\n                  @options={{this.data.entityGroups}}\n                  @labelProperty='name'\n                  @selection={{this.selectedEntityGroups}}\n                  @onchange={{action 'updateEntityGroups'}}\n                />\n              {{else}}\n                {{#each this.data.entityGroups as |group|}}\n                  <label class={{concat 'depth-' group.depth}}>\n                    <RadioButton\n                      @name='metric'\n                      @checked={{this.selectedSeries}}\n                      @value={{group}}\n                    />\n                    {{group.name}}\n                  </label>\n                {{else}}\n                  <p class='ptl-placeholder'>No groups available</p>\n                {{/each}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n        </div>\n      </section>\n    </div>\n  \n    <footer class='block-module__footer'>\n      <button\n        class='text-button text-button--delete'\n        type='button'\n        {{action 'toggleIsDeleting'}}\n      >Delete module…</button>\n      <button\n        class='button button--spaced float-end'\n        type='button'\n        {{action 'advance'}}\n      >\n        {{#if this.isLastStep}}\n          Finish\n        {{else}}\n          Next &nbsp;\n          <FaIcon @icon='caret-right' />\n        {{/if}}</button>\n      <button\n        class='button button--spaced float-end'\n        disabled={{if this.isFirstStep 'disabled' null}}\n        type='button'\n        {{action 'back'}}\n      ><FaIcon @icon='caret-left' />&nbsp; Back</button>\n    </footer>\n  \n    {{#if this.isDeleting}}\n      <ModalDialog\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n        @onClose={{action 'toggleIsDeleting'}}\n      >\n        <p>Are you sure you want to delete this module? This action cannot be\n          undone.</p>\n        <button\n          class='float-end button button--spaced button--delete'\n          type='button'\n          {{action 'delete'}}\n        >Delete</button>\n        <button\n          class='float-end button button--spaced button--plain'\n          type='button'\n          {{action 'toggleIsDeleting'}}\n        >{{t 'common.Cancel'}}</button>\n      </ModalDialog>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"ICXBPHVy\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,\\\"modal\\\",[28,[37,1],[[30,0],\\\"back\\\"],null],\\\"block-module dashboard-module-config\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"onClose\\\"],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Edit your module\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"dashboard-module-config-steps\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[14,0,\\\"active\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 text-center\\\"],[12],[1,\\\"Display settings\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"config-modal__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"config-modal__section-heading\\\"],[14,\\\"for\\\",\\\"module-title\\\"],[12],[1,\\\"Module\\\\n          title\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"text-input\\\"],[24,\\\"placeholder\\\",\\\"Untitled\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"module\\\",\\\"title\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"config-modal__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"config-modal__section-heading\\\"],[12],[1,\\\"Module type\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"data-table\\\"]],null],[1,\\\"\\\\n            Table\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"line-chart\\\"]],null],[1,\\\"\\\\n            Line chart\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"pie-chart\\\"]],null],[1,\\\"\\\\n            Pie chart\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"config-modal__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"config-modal__section-heading\\\"],[12],[1,\\\"Data period\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"periodType\\\"]],\\\"month\\\"]],null],[1,\\\"\\\\n            Monthly\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"periodType\\\"]],\\\"ytd\\\"]],null],[1,\\\"\\\\n            Year to date\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 text-center\\\"],[12],[1,\\\"Metrics\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"kpis\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"kpis\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            KPIs\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"kpis\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"data\\\",\\\"kpis\\\"]],\\\"name\\\",[30,0,[\\\"selectedKpis\\\"]],[28,[37,1],[[30,0],\\\"updateKpis\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"data\\\",\\\"kpis\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,1]]],null],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No KPIs available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"profitAndLoss\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"profitAndLoss\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            Profit & Loss\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"profitAndLoss\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"accounts\\\",\\\"profitAndLoss\\\"]],\\\"name\\\",[30,0,[\\\"selectedAccounts\\\"]],[28,[37,1],[[30,0],\\\"updateAccounts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,2,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,2,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],[[24,0,\\\"checkbox\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3]]],null],[1,\\\"\\\\n                \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"accounts\\\",\\\"profitAndLoss\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,4,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,4,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,4]]],null],[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No profit and loss accounts available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"balanceSheet\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"balanceSheet\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            Balance Sheet\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"balanceSheet\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"accounts\\\",\\\"balanceSheet\\\"]],\\\"name\\\",[30,0,[\\\"selectedAccounts\\\"]],[28,[37,1],[[30,0],\\\"updateAccounts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,5,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,5,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,6]]],null],[1,\\\"\\\\n                \\\"],[1,[30,5,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[5,6]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"accounts\\\",\\\"balanceSheet\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,7,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,7,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,7]]],null],[1,\\\"\\\\n                \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No balance sheet accounts available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"otherData\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"otherData\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            Other Data\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"otherData\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"accounts\\\",\\\"otherData\\\"]],\\\"name\\\",[30,0,[\\\"selectedAccounts\\\"]],[28,[37,1],[[30,0],\\\"updateAccounts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,8,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,8,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,9]]],null],[1,\\\"\\\\n                \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[8,9]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"accounts\\\",\\\"otherData\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,10,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,10,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,10]]],null],[1,\\\"\\\\n                \\\"],[1,[30,10,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No other data accounts available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 text-center\\\"],[12],[1,\\\"Series\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessEntities\\\"]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"entities\\\"],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"entities\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n              Branches\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"entities\\\"]],[[[41,[30,0,[\\\"multipleSeries\\\"]],[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,0,[\\\"branch\\\",\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"module\\\",\\\"includeCurrentEntity\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleEntities\\\"]],[[[1,\\\"                  Current branch\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"subtext\\\"],[12],[1,\\\"The module will adapt to whichever\\\\n                    branch you are currently viewing.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleEntities\\\"]],[[[1,\\\"                \\\"],[8,[39,16],[[24,\\\"tagName\\\",\\\"div\\\"]],[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"data\\\",\\\"entities\\\"]],\\\"name\\\",[30,0,[\\\"selectedEntities\\\"]],[28,[37,1],[[30,0],\\\"updateEntities\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,0,[\\\"branch\\\",\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedSeries\\\"]],\\\"current\\\"]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleEntities\\\"]],[[[1,\\\"                  Current branch\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"subtext\\\"],[12],[1,\\\"The module will adapt to whichever\\\\n                    branch you are currently viewing.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleBranches\\\"]],[[[1,\\\"                data:\\\\n                \\\"],[1,[30,0,[\\\"data\\\"]]],[1,\\\"\\\\n                data.entities :\\\\n                \\\"],[1,[30,0,[\\\"data\\\",\\\"entities\\\"]]],[1,\\\"\\\\n\\\"],[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"data\\\",\\\"entities\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,11,[\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                    \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedSeries\\\"]],[30,11]]],null],[1,\\\"\\\\n                    \\\"],[1,[30,11,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No branches available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]]]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessEntityGroups\\\"]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"entityGroups\\\"],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"entityGroups\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"Groups\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"entityGroups\\\"]],[[[41,[30,0,[\\\"multipleSeries\\\"]],[[[1,\\\"              \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"data\\\",\\\"entityGroups\\\"]],\\\"name\\\",[30,0,[\\\"selectedEntityGroups\\\"]],[28,[37,1],[[30,0],\\\"updateEntityGroups\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"data\\\",\\\"entityGroups\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,12,[\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                  \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedSeries\\\"]],[30,12]]],null],[1,\\\"\\\\n                  \\\"],[1,[30,12,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],[[[1,\\\"                \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No groups available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"toggleIsDeleting\\\"],null],[12],[1,\\\"Delete module…\\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLastStep\\\"]],[[[1,\\\"        Finish\\\\n\\\"]],[]],[[[1,\\\"        Next  \\\\n        \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"caret-right\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[16,\\\"disabled\\\",[52,[30,0,[\\\"isFirstStep\\\"]],\\\"disabled\\\",null]],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"back\\\"],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"caret-left\\\"]],null],[1,\\\"  Back\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"    \\\"],[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,1],[[30,0],\\\"toggleIsDeleting\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete this module? This action cannot be\\\\n        undone.\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"delete\\\"],null],[12],[1,\\\"Delete\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"toggleIsDeleting\\\"],null],[12],[1,[28,[35,24],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]]]]],[\\\"kpi\\\",\\\"account\\\",\\\"isSelected\\\",\\\"account\\\",\\\"account\\\",\\\"isSelected\\\",\\\"account\\\",\\\"account\\\",\\\"isSelected\\\",\\\"account\\\",\\\"entity\\\",\\\"group\\\"],false,[\\\"modal-dialog\\\",\\\"action\\\",\\\"header\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"div\\\",\\\"section\\\",\\\"h3\\\",\\\"label\\\",\\\"input\\\",\\\"radio-button\\\",\\\"h4\\\",\\\"a\\\",\\\"if\\\",\\\"unless\\\",\\\"multiselect-checkboxes\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"concat\\\",\\\"br\\\",\\\"span\\\",\\\"footer\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard/config-modal.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // This renders its own <ModalDialog> in the template, so it never needed to be\n  // one: it subclassed the addon's component and then nulled out the inherited\n  // layout. ember-modal-dialog 5 is a Glimmer component with no `.extend`, so\n  // the vestigial subclassing is dropped here. `tagName: ''` preserves the\n  // wrapper-less DOM the addon's `@tagName('')` used to give it.\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    groups: [],\n    selectedKpis: [],\n    selectedAccounts: [],\n    selectedEntityGroups: [],\n    selectedEntities: [],\n    isMac: (0, _object.computed)(function () {\n      return window.navigator.platform.toLowerCase().indexOf('mac') > -1;\n    }),\n    canAccessEntities: true,\n    // todo\n\n    canAccessEntityGroups: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const parenEntityFilter = {\n        and: []\n      };\n      if (parentEntity) {\n        parenEntityFilter.and.push({\n          field: 'parentEntity',\n          op: 'EQ',\n          value: parentEntity\n        });\n      }\n      return (0, _object.get)(this, 'store').query('entity-group', {\n        filter: parenEntityFilter\n      }).then(groups => {\n        return groups.length;\n      });\n    }),\n    canAccessMultipleEntities: (0, _object.computed)('session.data.authenticated.user.{readableEntities,role}', 'sessionData.entities', 'sessionData.entity.parent', function () {\n      const role = (0, _object.get)(this, 'session.data.authenticated.user.role');\n      const parent = (0, _object.get)(this, 'sessionData.entity.parent');\n      const entities = (0, _object.get)(this, 'sessionData.entities');\n      const readableForCurrentOrganisation = (entities || []).filterBy('parent', parent);\n      return role === 'admin' || readableForCurrentOrganisation.length > 1;\n    }),\n    treeExpansion: {\n      kpis: false,\n      profitAndLoss: false,\n      balanceSheet: false,\n      otherData: false,\n      entities: true,\n      entityGroups: true\n    },\n    step: 0,\n    isFirstStep: (0, _computed.equal)('step', 0),\n    isLastStep: (0, _computed.equal)('step', 2),\n    singleMetric: (0, _computed.equal)('module.visualiser', 'line-chart'),\n    multipleSeries: (0, _computed.equal)('module.visualiser', 'line-chart'),\n    correctMetricCount: (0, _object.observer)('singleMetric', function () {\n      const single = (0, _object.get)(this, 'singleMetric');\n      if (single) {\n        const module = (0, _object.get)(this, 'module');\n        const {\n          kpis,\n          accounts\n        } = module.getProperties('kpis', 'accounts');\n        if (!(0, _utils.isEmpty)(kpis)) {\n          module.setProperties({\n            kpis: [kpis.objectAt(0)],\n            accounts: []\n          });\n        } else if (!(0, _utils.isEmpty)(accounts)) {\n          (0, _object.set)(module, 'accounts', [accounts.objectAt(0)]);\n        }\n      }\n    }),\n    correctSeriesCount: (0, _object.observer)('singleSeries', function () {\n      const single = !(0, _object.get)(this, 'multipleSeries');\n      if (single) {\n        const module = (0, _object.get)(this, 'module');\n        const {\n          entities,\n          entityGroups\n        } = module.getProperties('entities', 'entityGroups');\n        if (entities.length) {\n          module.setProperties({\n            entities: [entities.objectAt(0)],\n            entityGroups: []\n          });\n        } else if (entityGroups.length) {\n          (0, _object.set)(module, 'entityGroups', [entityGroups.objectAt(0)]);\n        }\n      }\n    }),\n    accounts: {\n      profitAndLoss: [],\n      balanceSheet: [],\n      otherData: []\n    },\n    setSelectedKpis: (0, _evented.on)('init', function () {\n      const linkDashboardToKpis = (0, _object.get)(this, 'module.kpis') || [];\n      const kpiIds = linkDashboardToKpis.content.map(item => (0, _object.get)(item, 'kpi.id'));\n      const allKpisInStore = this.store.peekAll('kpi').filter(item => kpiIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedKpis', allKpisInStore);\n    }),\n    setSelectedAccounts: (0, _evented.on)('init', function () {\n      const linkDashboardToAccounts = (0, _object.get)(this, 'module.accounts') || [];\n      const accountIds = linkDashboardToAccounts.content.map(item => (0, _object.get)(item, 'account.id'));\n      const allAccountsInStore = this.store.peekAll('account').filter(item => accountIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedAccounts', allAccountsInStore);\n    }),\n    setSelectedEntityGroups: (0, _evented.on)('init', function () {\n      const linkDashboardToEntityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n      const entityGroupIds = linkDashboardToEntityGroups.content.map(item => (0, _object.get)(item, 'entityGroup.id'));\n      const allEntityGroupsInStore = this.store.peekAll('entity-group').filter(item => entityGroupIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedEntityGroups', allEntityGroupsInStore);\n    }),\n    setSelectedEntities: (0, _evented.on)('init', function () {\n      const linkDashboardToEntities = (0, _object.get)(this, 'module.entities') || [];\n      const entityIds = linkDashboardToEntities.content.map(item => (0, _object.get)(item, 'entity.id'));\n      const allEntitiesInStore = this.store.peekAll('entity').filter(item => entityIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedEntities', allEntitiesInStore);\n    }),\n    setAccounts: (0, _evented.on)('init', (0, _object.observer)('data.accounts.[]', function () {\n      const accounts = (0, _object.get)(this, 'data.accounts');\n      if (!accounts) {\n        return;\n      }\n\n      // Set account depths\n      accounts.forEach(account => {\n        (0, _object.set)(account, 'depth', (0, _object.computed)(() => {\n          let parent = (0, _object.get)(account, 'parent');\n          let depth = 0;\n          while ((0, _object.get)(parent, 'id') && depth <= 5) {\n            parent = (0, _object.get)(parent, 'parent');\n            depth += 1;\n          }\n          return depth;\n        }));\n        const data = {\n          profitAndLoss: accounts.filterBy('category', 'profit-and-loss').sortBy('sortIndex'),\n          balanceSheet: accounts.filterBy('category', 'balance-sheet').sortBy('sortIndex'),\n          otherData: accounts.filterBy('category', 'other-data').sortBy('sortIndex')\n        };\n        (0, _object.set)(this, 'accounts', data);\n      });\n    })),\n    selectedMetric: (0, _object.computed)('module.kpis', 'module.accounts', {\n      get() {\n        const linkDashboardKpis = (0, _object.get)(this, 'module.kpis') || [];\n        const kpiIds = linkDashboardKpis.content.map(item => (0, _object.get)(item, 'kpi.id'));\n        const kpis = this.store.peekAll('kpi').filter(item => kpiIds.includes((0, _object.get)(item, 'id')));\n        const linkDashBoardToAccounts = (0, _object.get)(this, 'module.accounts') || [];\n        const accountIds = linkDashBoardToAccounts.content.map(item => (0, _object.get)(item, 'account.id'));\n        const accounts = this.store.peekAll('account').filter(item => accountIds.includes((0, _object.get)(item, 'id')));\n        return (kpis || []).concat(accounts || [])[0];\n      },\n      set(key, value) {\n        const linkDashboardToKpis = (0, _object.get)(this, 'module.kpis') || [];\n        linkDashboardToKpis.content.map(item => item.deleteRecord());\n        const linkDashboardToAccounts = (0, _object.get)(this, 'module.accounts') || [];\n        linkDashboardToAccounts.content.map(item => item.deleteRecord());\n        if (value instanceof _kpi.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-kpi', {\n            kpi: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        } else if (value instanceof _account.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-account', {\n            account: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n        return value;\n      }\n    }),\n    selectedSeries: (0, _object.computed)('module.{entities,entityGroups,includeCurrentEntity}', {\n      get() {\n        let includeCurrentEntity = (0, _object.get)(this, 'module.includeCurrentEntity');\n        const linkDashboardToEntities = (0, _object.get)(this, 'module.entities') || [];\n        const entityIds = linkDashboardToEntities.content.map(item => (0, _object.get)(item, 'entity.id'));\n        const entities = this.store.peekAll('entity').filter(item => entityIds.includes((0, _object.get)(item, 'id')));\n        const linkDashboardToEntityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n        const entityGroupIds = linkDashboardToEntityGroups.content.map(item => (0, _object.get)(item, 'entityGroup.id'));\n        const entityGroups = this.store.peekAll('entity-group').filter(item => entityGroupIds.includes((0, _object.get)(item, 'id')));\n        return includeCurrentEntity ? 'current' : (entities || []).concat(entityGroups || [])[0];\n      },\n      set(key, value) {\n        let includeCurrentEntity = false;\n        const linkDashboardToEntities = (0, _object.get)(this, 'module.entities') || [];\n        linkDashboardToEntities.content.map(item => item.deleteRecord());\n        const linkDashboardToEntityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n        linkDashboardToEntityGroups.content.map(item => item.deleteRecord());\n        if (value === 'current') {\n          includeCurrentEntity = true;\n        } else if (value instanceof _entity.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity', {\n            entity: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        } else if (value instanceof _entityGroup.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity-group', {\n            entityGroup: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n        (0, _object.get)(this, 'module').setProperties({\n          includeCurrentEntity\n        });\n        return value;\n      }\n    }),\n    actions: {\n      advance() {\n        const step = (0, _object.get)(this, 'step');\n        if (step < 2) {\n          (0, _object.set)(this, 'step', step + 1);\n          (0, _jquery.default)('.ember-modal-dialog section.active').removeClass('active').next().addClass('active');\n        } else {\n          this.send('onClose');\n        }\n      },\n      back() {\n        const step = (0, _object.get)(this, 'step');\n        if (step > 0) {\n          (0, _object.set)(this, 'step', step - 1);\n          (0, _jquery.default)('.ember-modal-dialog section.active').removeClass('active').prev().addClass('active');\n        }\n      },\n      async onClose(withoutSaving) {\n        if (!withoutSaving) {\n          await (0, _object.get)(this, 'module').save();\n        }\n        const savePromises = [];\n        const models = ['link-dashboard-module-entity-group', 'link-dashboard-module-entity', 'link-dashboard-module-kpi', 'link-dashboard-module-account'];\n        models.forEach(model => {\n          (0, _object.get)(this, 'store').peekAll(model).forEach(item => {\n            if ((0, _object.get)(item, 'isNew') || (0, _object.get)(item, 'isDeleted')) {\n              savePromises.push(item.save());\n            }\n          });\n        });\n        await Promise.all(savePromises);\n        this.close();\n      },\n      updateEntityGroups(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const entityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n          const linkRecord = entityGroups.find(item => (0, _object.get)(item, 'entityGroup.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity-group', {\n            entityGroup: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      updateEntities(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const entities = (0, _object.get)(this, 'module.entities') || [];\n          const linkRecord = entities.find(item => (0, _object.get)(item, 'entity.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity', {\n            entity: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      updateKpis(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const kpis = (0, _object.get)(this, 'module.kpis') || [];\n          const linkRecord = kpis.find(item => (0, _object.get)(item, 'kpi.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-kpi', {\n            kpi: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      updateAccounts(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const accounts = (0, _object.get)(this, 'module.accounts') || [];\n          const linkRecord = accounts.find(item => (0, _object.get)(item, 'account.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-account', {\n            account: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      toggleIsDeleting() {\n        this.toggleProperty('isDeleting');\n      },\n      delete() {\n        this.delete((0, _object.get)(this, 'module'));\n        this.send('onClose', true);\n      },\n      toggleTree(type) {\n        this.toggleProperty('treeExpansion.' + type);\n      }\n    }\n  }));\n});","define(\"portal/components/dashboard/draggable-module\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/object/evented\", \"rsvp\", \"@ember/utils\", \"@ember/array\", \"jquery\", \"moment\", \"portal/config/environment\", \"lodash\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _evented, _rsvp, _utils, _array, _jquery, _moment, _environment, _lodash, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/object/evented\",0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/array\",0,\"jquery\",0,\"moment\",0,\"portal/config/environment\",0,\"lodash\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isEditing}}\n    <Dashboard::ConfigModal\n      @close={{action 'toggleIsEditing'}}\n      @delete={{action 'delete'}}\n      @translucentOverlay={{true}}\n      @module={{this.module}}\n      @data={{this.data}}\n    />\n  {{else}}\n    <header class='dashboard-module__header block-module__header'>\n      {{#if (media 'isDesktop')}}\n        <button\n          class='dashboard-module__edit-button'\n          type='button'\n          {{action 'toggleIsEditing'}}\n        ><FaIcon @icon='edit' /></button>\n      {{/if}}\n  \n      {{#if this.module.title}}\n        <h1 class='text-center tuck-for-controls'>{{this.module.title}}</h1>\n      {{else}}\n        <h1 class='text-center tuck-for-controls placeholder'>Untitled</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' />\n    {{else}}\n      {{#if this.hasError}}\n        <div class='text-center error'>\n          <h2><FaIcon @icon='exclamation-circle' /></h2>\n          <h3>Error</h3>\n          <p>Sorry, the data for this module could not be loaded.</p>\n        </div>\n      {{else}}\n        {{#if this.metrics.length}}\n          {{#if this.hasData}}\n            {{component\n              (concat 'charts/' this.module.visualiser)\n              metrics=this.metrics\n              series=this.series\n              period=this.period\n              class=(if\n                (eq this.module.visualiser 'data-table') 'block-module__table'\n              )\n            }}\n          {{else}}\n            <div class='text-center error no-data'>\n              <h2><FaIcon @icon='exclamation-triangle' /></h2>\n              <h3>No data</h3>\n              <p>You could import data for\n                {{moment-format this.sessionData.period 'MMMM YYYY' 'YYYY-MM'}}\n                or configure this module to display different data.</p>\n            </div>\n          {{/if}}\n        {{else}}\n          <p class='text-center dashboard-module__explainer'>This module hasn’t\n            been configured yet.</p>\n          <p class='text-center'><button\n              class='text-button'\n              type='button'\n              {{action 'toggleIsEditing'}}\n            >Configure</button></p>\n        {{/if}}\n      {{/if}}\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Jk7t942s\",\n    \"block\": \"[[[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@close\\\",\\\"@delete\\\",\\\"@translucentOverlay\\\",\\\"@module\\\",\\\"@data\\\"],[[28,[37,2],[[30,0],\\\"toggleIsEditing\\\"],null],[28,[37,2],[[30,0],\\\"delete\\\"],null],true,[30,0,[\\\"module\\\"]],[30,0,[\\\"data\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"header\\\"],[14,0,\\\"dashboard-module__header block-module__header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"dashboard-module__edit-button\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"toggleIsEditing\\\"],null],[12],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"edit\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"title\\\"]],[[[1,\\\"      \\\"],[10,\\\"h1\\\"],[14,0,\\\"text-center tuck-for-controls\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"h1\\\"],[14,0,\\\"text-center tuck-for-controls placeholder\\\"],[12],[1,\\\"Untitled\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasError\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"text-center error\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[12],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Error\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"Sorry, the data for this module could not be loaded.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"metrics\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"hasData\\\"]],[[[1,\\\"          \\\"],[46,[28,[37,14],[\\\"charts/\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]]],null],null,[[\\\"metrics\\\",\\\"series\\\",\\\"period\\\",\\\"class\\\"],[[30,0,[\\\"metrics\\\"]],[30,0,[\\\"series\\\"]],[30,0,[\\\"period\\\"]],[52,[28,[37,15],[[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"data-table\\\"],null],\\\"block-module__table\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h2\\\"],[12],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h3\\\"],[12],[1,\\\"No data\\\"],[13],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,\\\"You could import data for\\\\n              \\\"],[1,[28,[35,16],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\",\\\"YYYY-MM\\\"],null]],[1,\\\"\\\\n              or configure this module to display different data.\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"text-center dashboard-module__explainer\\\"],[12],[1,\\\"This module hasn’t\\\\n          been configured yet.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"toggleIsEditing\\\"],null],[12],[1,\\\"Configure\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[]]]],[],false,[\\\"if\\\",\\\"dashboard/config-modal\\\",\\\"action\\\",\\\"header\\\",\\\"media\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"component\\\",\\\"concat\\\",\\\"eq\\\",\\\"moment-format\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard/draggable-module.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['dashboard-module', 'block-module'],\n    attributeBindings: ['module.tmpId:data-module-id'],\n    cache: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    isLoading: false,\n    isEditing: (0, _object.computed)('module.isNewModule', {\n      get() {\n        if ((0, _object.get)(this, 'module.isNewModule') === true) {\n          (0, _object.set)(this, 'module.isNewModule', false);\n          return true;\n        }\n        return false;\n      },\n      set(_key, value) {\n        return value;\n      }\n    }),\n    metrics: [],\n    series: [],\n    period: {},\n    updateMetrics: (0, _evented.on)('init', function () {\n      const visualiser = (0, _object.get)(this, 'module.visualiser');\n      (0, _object.set)(this, 'hasError', false);\n      (0, _object.set)(this, 'badConfig', false);\n      if (!visualiser) {\n        return;\n      }\n      const period = {\n        start: null,\n        end: (0, _object.get)(this, 'sessionData.period'),\n        type: (0, _object.get)(this, 'module.periodType') === 'ytd' ? 'ytd' : 'month'\n      };\n      if (visualiser === 'line-chart') {\n        (0, _object.set)(period, 'start', (0, _moment.default)((0, _object.get)(period, 'end'), 'YYYY-MM').subtract(11, 'months').format('YYYY-MM'));\n      } else {\n        (0, _object.set)(period, 'start', (0, _object.get)(period, 'end'));\n      }\n      (0, _object.set)(this, 'period', period);\n      const module = (0, _object.get)(this, 'module');\n      let linkDashboardModuleToAccounts = module.hasMany('accounts').value() || [];\n      let linkDashboardModuleToKpis = module.hasMany('kpis').value() || [];\n      let linkDashboardModuleToEntities = module.hasMany('entities').value() || [];\n      let linkDashboardModulesToEntityGroups = module.hasMany('entityGroups').value() || [];\n      const includeCurrent = (0, _object.get)(this, 'module.includeCurrentEntity');\n      let accounts = (linkDashboardModuleToAccounts || []).map(account => (0, _object.get)(account, 'account.id'));\n      let kpis = (linkDashboardModuleToKpis || []).map(item => (0, _object.get)(item, 'kpi.id'));\n      let entities = (linkDashboardModuleToEntities || []).map(item => (0, _object.get)(item, 'entity'));\n      let entityGroups = (linkDashboardModulesToEntityGroups || []).map(item => (0, _object.get)(item, 'entityGroup'));\n      const series = [...entities, ...entityGroups];\n      if (includeCurrent) {\n        series.unshift((0, _object.get)(this, 'sessionData.entity'));\n      }\n      (0, _object.set)(this, 'series', series);\n      if (includeCurrent) {\n        entities.push((0, _object.get)(this, 'sessionData.entity'));\n      }\n      if (!accounts.length && !kpis.length || !entities.length && !entityGroups.length) {\n        return;\n      }\n      (0, _object.set)(this, 'isLoading', true);\n      const entityIds = entities.map(entity => (0, _object.get)(entity, 'id')).filter(i => i);\n      const entityGroupIds = entityGroups.map(entityGroup => (0, _object.get)(entityGroup, 'id')).filter(i => i);\n      const loadBalances = this.getMetrics('balances', accounts, entityIds, entityGroupIds, period);\n      const loadKpiValues = this.getMetrics('kpis', kpis, entityIds, entityGroupIds, period);\n      return _rsvp.default.all([loadBalances, loadKpiValues]).then(data => {\n        // Make sure this module wasn't destroyed while its data was loading.\n        // This happens if you switch periods quickly.\n        if (this.isDestroying) {\n          return;\n        }\n        const metrics = data[0].concat(data[1]);\n        return this.setMetrics(metrics, entities.concat(entityGroups));\n      }).catch(err => {\n        // If there was a permissions error, attempt to fix it\n        if (err.status === 403 && err.responseJSON && err.responseJSON.errors[0].title === 'Group access denied.') {\n          this.attemptToCorrectPermissionsError(err);\n        } else {\n          (0, _object.set)(this, 'isLoading', false);\n          (0, _object.set)(this, 'hasError', true);\n        }\n      });\n    }),\n    setMetrics(metrics) {\n      const periodTypes = ['month', 'ytd'];\n      let hasData = false;\n      metrics.forEach(metric => {\n        if ((0, _utils.isEmpty)(metric.series)) {\n          return;\n        }\n        metric.series.forEach(entity => {\n          if ((0, _utils.isEmpty)(entity.periods)) {\n            return;\n          }\n          entity.periods.forEach(period => {\n            periodTypes.forEach(type => {\n              if (period.periodTypes[type] && period.periodTypes[type].value != null) {\n                hasData = true;\n              }\n            });\n          });\n        });\n      });\n      this.setProperties({\n        hasData,\n        metrics,\n        isLoading: false\n      });\n    },\n    getMetrics(type, metrics, entities, entityGroups, period) {\n      if (!metrics || !metrics.length) {\n        return _rsvp.default.resolve([]);\n      }\n      const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/reports/${type}`;\n      const payload = {\n        entities,\n        entityGroups,\n        periodStart: period.start,\n        periodEnd: period.end,\n        periodTypes: [period.type],\n        metrics\n      };\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const cacheKey = _lodash.default.merge(payload, {\n        type\n      });\n      const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n      if (cached) {\n        return cached;\n      }\n      return _jquery.default.ajax({\n        url,\n        data: JSON.stringify({\n          ...payload\n        }),\n        headers,\n        method: 'POST',\n        contentType: 'application/json'\n      }).then(res => {\n        (0, _object.get)(this, 'cache').store('reports', cacheKey, res.data);\n        return res.data;\n      });\n    },\n    attemptToCorrectPermissionsError(err) {\n      const error = err.responseJSON.errors[0];\n      const loadGroups = (0, _object.get)(this, 'module.entityGroups');\n      const disallowedGroups = error.detail.match(/: ([0-9a-f]{24})(?:, ([0-9a-f]{24}))?/).slice(1);\n      loadGroups.then(groups => {\n        if ((0, _array.isArray)(groups) && (0, _array.isArray)(disallowedGroups)) {\n          const startingLength = (0, _object.get)(this, 'module.entityGroups.length');\n          (0, _object.set)(this, 'module.entityGroups', groups.reject(group => {\n            return disallowedGroups.indexOf((0, _object.get)(group, 'id')) > -1;\n          }));\n          if ((0, _object.get)(this, 'module.entityGroups.length') < startingLength) {\n            (0, _object.get)(this, 'module').save().then(this.updateMetrics.bind(this)).catch(this.send.bind(this));\n          } else {\n            (0, _object.set)(this, 'isLoading', false);\n            (0, _object.set)(this, 'hasError', true);\n          }\n        }\n      });\n    },\n    actions: {\n      toggleIsEditing() {\n        const isEditing = this.toggleProperty('isEditing');\n        const isDestroying = (0, _object.get)(this, 'module.isDestroying');\n        if (!isEditing && !isDestroying) {\n          this.updateMetrics();\n        }\n      },\n      delete() {\n        this.delete((0, _object.get)(this, 'module'));\n      }\n    }\n  }));\n});","define(\"portal/components/dashboard/module-rows\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object/evented\", \"@ember/object\", \"jquery\", \"rsvp\", \"@ember/runloop\", \"portal/utils/make-temp-id\", \"@ember/template-factory\"], function (_exports, _component, _service, _evented, _object, _jquery, _rsvp, _runloop, _makeTempId, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@ember/object\",0,\"jquery\",0,\"rsvp\",0,\"@ember/runloop\",0,\"portal/utils/make-temp-id\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.rows as |row|}}\n    <section class='dashboard__row'>\n      {{#each row as |module|}}\n        <Dashboard::DraggableModule\n          @module={{module}}\n          @data={{this.data}}\n          @delete={{action 'deleteModule'}}\n        />\n      {{/each}}\n    </section>\n  {{else}}\n    <header class='spaced-header'>\n      <h2 class='text-center'>It looks like you don’t have any modules yet</h2>\n      <h3 class='text-center subtitle'>Click the button below to get started</h3>\n    </header>\n  {{/each}}\n  \n  {{#if (media 'isDesktop')}}\n    <p class='dashboard__actions'>\n      <button\n        class='button button--add'\n        type='button'\n        {{action 'createModule'}}\n      >Add new module</button>\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"4M1h7n6a\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"rows\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"section\\\"],[14,0,\\\"dashboard__row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,3],null,[[\\\"@module\\\",\\\"@data\\\",\\\"@delete\\\"],[[30,2],[30,0,[\\\"data\\\"]],[28,[37,4],[[30,0],\\\"deleteModule\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"  \\\"],[10,\\\"header\\\"],[14,0,\\\"spaced-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"It looks like you don’t have any modules yet\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-center subtitle\\\"],[12],[1,\\\"Click the button below to get started\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"dashboard__actions\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"createModule\\\"],null],[12],[1,\\\"Add new module\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"row\\\",\\\"module\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"section\\\",\\\"dashboard/draggable-module\\\",\\\"action\\\",\\\"header\\\",\\\"h2\\\",\\\"h3\\\",\\\"if\\\",\\\"media\\\",\\\"p\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard/module-rows.hbs\",\n    \"isStrictMode\": false\n  });\n  const ANIMATION_DURATION = 250;\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    store: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    media: (0, _service.inject)(),\n    rows: (0, _object.computed)('modules.[]', function () {\n      const modules = (0, _object.get)(this, 'modules');\n      const tree = [];\n      const spare = [];\n      modules.forEach(module => {\n        const x = (0, _object.get)(module, 'positionX');\n        const y = (0, _object.get)(module, 'positionY');\n        const tmpId = (0, _object.get)(module, 'id') || (0, _makeTempId.default)();\n        (0, _object.set)(module, 'tmpId', tmpId);\n        if (typeof x === 'number' && typeof y === 'number' && x >= 0 && y >= 0) {\n          if (!Array.isArray(tree[y])) {\n            tree[y] = [];\n          }\n          tree[y][x] = module;\n        } else {\n          spare.pushObject(module);\n        }\n      });\n      return tree;\n    }),\n    saveModulePositions() {\n      const modules = (0, _object.get)(this, 'modules');\n\n      // Hack to make the charts resize\n      const resizeEvent = document.createEvent('Event');\n      resizeEvent.initEvent('resize', true, true);\n      window.dispatchEvent(resizeEvent);\n      const $dashboardModules = (0, _jquery.default)('.dashboard-module');\n      $dashboardModules.addClass('dashboard-module--transitioning');\n      (0, _runloop.later)(() => $dashboardModules.removeClass('dashboard-module--transitioning'), ANIMATION_DURATION);\n      (0, _jquery.default)(this.element).children('section').each((y, section) => {\n        (0, _jquery.default)(section).children('.dashboard-module').each((x, module) => {\n          module = modules.findBy('tmpId', module.dataset.moduleId);\n          module.setProperties({\n            positionX: x,\n            positionY: y\n          });\n          if ((0, _object.get)(module, 'hasDirtyAttributes')) {\n            module.save();\n          }\n        });\n      });\n    },\n    checkRowCount($section) {\n      const sortable = $section.data('sortable');\n      sortable.options.group.put = $section.children().length < 3;\n      $section.data('sortable', sortable);\n    },\n    makeNewRowsSortable: (0, _evented.on)('didRender', function () {\n      const component = this;\n      if ((0, _object.get)(this, 'media.isDesktop')) {\n        (0, _jquery.default)('section').each(function () {\n          (0, _jquery.default)(this).nativeSortable({\n            handle: 'header',\n            animation: ANIMATION_DURATION,\n            group: {\n              name: 'dashboard',\n              put: (0, _jquery.default)(this).children().length < 3,\n              pull: true\n            },\n            onSort: () => component.saveModulePositions(),\n            onAdd: () => component.checkRowCount((0, _jquery.default)(this)),\n            onRemove: () => component.checkRowCount((0, _jquery.default)(this))\n          });\n        });\n      }\n    }),\n    actions: {\n      createModule() {\n        // If the user somehow manages to create two at once, don't\n        if ((0, _object.get)(this, 'isCreatingModule')) {\n          return;\n        }\n        const userId = (0, _object.get)(this, 'sessionData.user.id');\n        const getUser = (0, _object.get)(this, 'store').findRecord('user', userId);\n        const getEntity = (0, _object.get)(this, 'sessionData.entity.parent');\n        (0, _object.set)(this, 'isCreatingModule', true);\n        _rsvp.default.all([getUser, getEntity]).then(([user, entity]) => {\n          const module = (0, _object.get)(this, 'store').createRecord('dashboard-module', {\n            user,\n            entity,\n            positionX: 0,\n            positionY: (0, _object.get)(this, 'rows.length'),\n            periodType: 'month',\n            includeCurrentBranch: true\n          });\n          module.setProperties({\n            tmpId: (0, _makeTempId.default)(),\n            isNewModule: true\n          });\n          (0, _object.get)(this, 'modules').pushObject(module);\n        }).finally(() => {\n          (0, _object.set)(this, 'isCreatingModule', false);\n        });\n      },\n      deleteModule(module) {\n        module.destroyRecord().then(() => {\n          const modules = (0, _object.get)(this, 'modules');\n          const row = (0, _object.get)(module, 'positionY');\n          const col = (0, _object.get)(module, 'positionX');\n          const modulesToRight = modules.filter(m => (0, _object.get)(m, 'positionY') === row && (0, _object.get)(m, 'positionX') > col);\n          const saveModsToRight = modulesToRight.map(m => {\n            (0, _object.set)(m, 'positionX', (0, _object.get)(m, 'positionX') - 1);\n            return m.save();\n          });\n          return _rsvp.default.all(saveModsToRight).then(() => modules.removeObject(module));\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/data-withheld-notice\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='notification-message'>\n    <div class='notification-message__icon'>\n      <FaIcon @icon='info' />\n    </div>\n  \n    <div class='notification-message__content'>\n      Your data is being withheld from group reports for this period\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"tBZ8/b17\",\n    \"block\": \"[[[10,0],[14,0,\\\"notification-message\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@icon\\\"],[\\\"info\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__content\\\"],[12],[1,\\\"\\\\n    Your data is being withheld from group reports for this period\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/data-withheld-notice.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({}));\n});","define(\"portal/components/date-input\", [\"exports\", \"@ember/component\", \"@ember/runloop\", \"jquery\", \"moment\", \"@ember/object\", \"portal/components/date-input\", \"@ember/template-factory\"], function (_exports, _component, _runloop, _jquery, _moment, _object, _dateInput, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/runloop\",0,\"jquery\",0,\"moment\",0,\"@ember/object\",0,\"portal/components/date-input\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isActive}}\n    <Input\n      @type='date'\n      @value={{moment-format @date 'YYYY-MM-DD'}}\n      class='select-box-replacement select-box-replacement--stretched date-input__display select-box-replacement--date-input'\n      {{on 'keyup' (action 'handleDateInput')}}\n    />\n  \n    <DatePicker\n      @date={{@date}}\n      @select={{action 'selectAndDeactivate'}}\n      class='date-input__picker date-picker--stretched'\n    />\n  \n  {{else}}\n    <div\n      class='select-box-replacement select-box-replacement--stretched date-input__display'\n      onfocus={{action 'toggle'}}\n      tabindex='0'\n      {{action 'toggle'}}\n    >\n      {{if @date (moment-format @date @format) this.placeholder}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"HipDbn+b\",\n    \"block\": \"[[[41,[30,0,[\\\"isActive\\\"]],[[[1,\\\"  \\\"],[8,[39,1],[[24,0,\\\"select-box-replacement select-box-replacement--stretched date-input__display select-box-replacement--date-input\\\"],[4,[38,3],[\\\"keyup\\\",[28,[37,4],[[30,0],\\\"handleDateInput\\\"],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"date\\\",[28,[37,2],[[30,1],\\\"YYYY-MM-DD\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],[[24,0,\\\"date-input__picker date-picker--stretched\\\"]],[[\\\"@date\\\",\\\"@select\\\"],[[30,1],[28,[37,4],[[30,0],\\\"selectAndDeactivate\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"select-box-replacement select-box-replacement--stretched date-input__display\\\"],[16,\\\"onfocus\\\",[28,[37,4],[[30,0],\\\"toggle\\\"],null]],[24,\\\"tabindex\\\",\\\"0\\\"],[4,[38,4],[[30,0],\\\"toggle\\\"],null],[12],[1,\\\"\\\\n    \\\"],[1,[52,[30,1],[28,[37,2],[[30,1],[30,2]],null],[30,0,[\\\"placeholder\\\"]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@date\\\",\\\"@format\\\"],false,[\\\"if\\\",\\\"input\\\",\\\"moment-format\\\",\\\"on\\\",\\\"action\\\",\\\"date-picker\\\",\\\"div\\\"]]\",\n    \"moduleName\": \"portal/components/date-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _dateInput.default,\n    placeholder: 'Please select a Date',\n    classNames: ['date-input'],\n    isActive: false,\n    format: 'dddd, D MMMM YYYY',\n    didInsertElement() {\n      this._super(...arguments);\n      const element = this.elementId;\n      (0, _jquery.default)(window).on('keydown keyup click blur', event => {\n        const {\n          target,\n          key\n        } = event;\n        const isTarget = (0, _jquery.default)(`#${element}`).is(target);\n        const hasTarget = (0, _jquery.default)(`#${element}`).has(target).length !== 0;\n        if (isTarget || hasTarget) {\n          if (['Enter', 'Escape'].includes(key)) {\n            (0, _object.set)(this, 'isActive', false);\n            event.preventDefault();\n          }\n        } else if (this.isActive) {\n          (0, _object.set)(this, 'isActive', false);\n        }\n      });\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      // remove our listener\n      (0, _jquery.default)(window).off('keydown keyup click blur');\n    },\n    focusDateInput: (0, _object.observer)('isActive', function () {\n      if (this.isActive) (0, _runloop.next)(() => this.element.querySelector('input').focus());\n    }),\n    actions: {\n      selectAndDeactivate(date) {\n        this.toggleProperty('isActive');\n        this.select(date);\n      },\n      handleDateInput(value) {\n        const date = (0, _moment.default)(value.target.value, 'YYYY-MM-DD').toDate();\n        if (date.getTime()) this.select(date);\n      },\n      toggle() {\n        this.toggleProperty('isActive');\n      }\n    }\n  }));\n});","define(\"portal/components/date-range-selector\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/runloop\", \"moment\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _runloop, _moment, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"moment\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <OverlaidDropdown\n    @disabled={{this.disabled}}\n    @buttonText={{this.dateString}}\n    @buttonClasses='date-range-selector__button'\n    @buttonIcon='calendar'\n    data-test-date-range-selector\n    as |closeDropdown|\n  >\n    <div\n      class='date-range-selector__dropdown'\n      {{did-insert (action 'didOpen')}}\n      {{will-destroy (action 'willClose')}}\n    >\n      <PowerCalendarRange\n        class='date-range-selector__dropdown-section flex-md-row flex-column'\n        @center={{this.center}}\n        @maxRange={{if this.maxRange this.maxRange null}}\n        @selected={{this.selectedRange}}\n        @onCenterChange={{action (mut this.center) value='date'}}\n        @onSelect={{action (mut this.selectedRange) value='date'}}\n        as |calendar|\n      >\n        <div class='date-range-selector__quick-actions'>\n          <div class='date-range-selector__quick-actions-title'>\n            {{t 'common.Shortcuts'}}\n          </div>\n          <button\n            class='text-button'\n            data-test-this-week-button=''\n            type='button'\n            {{action 'thisWeek' calendar}}\n          >\n            {{t 'common.This week'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-last-week-button=''\n            type='button'\n            {{action 'lastWeek' calendar}}\n          >\n            {{t 'common.Last week'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-this-fortnight-button=''\n            type='button'\n            {{action 'thisFortnight' calendar}}\n          >\n            {{t 'common.This fortnight'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-last-fortnight-button=''\n            type='button'\n            {{action 'lastFortnight' calendar}}\n          >\n            {{t 'common.Last fortnight'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-this-month-button=''\n            type='button'\n            {{action 'thisMonth' calendar}}\n          >\n            {{t 'common.This month'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-last-month-button=''\n            type='button'\n            {{action 'lastMonth' calendar}}\n          >\n            {{t 'common.Last month'}}\n          </button>\n        </div>\n        <div class='date-range-selector__calendar'>\n          <calendar.Nav />\n          <calendar.Days />\n        </div>\n      </PowerCalendarRange>\n      <div class='date-range-selector__dropdown-section'>\n        <div class='date-range-selector__footer'>\n          <button\n            class='button button--plain button--spaced float-end'\n            type='button'\n            {{action 'cancel' closeDropdown}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='button button--spaced float-end'\n            disabled={{not (and this.selectedRange.start this.selectedRange.end)}}\n            data-test-date-range-selector-apply-button=''\n            type='button'\n            {{action 'applyFilter' closeDropdown}}\n          >\n            {{t 'common.Apply'}}\n          </button>\n        </div>\n      </div>\n    </div>\n  </OverlaidDropdown>\n  */\n  {\n    \"id\": \"Wi0zwFhC\",\n    \"block\": \"[[[8,[39,0],[[24,\\\"data-test-date-range-selector\\\",\\\"\\\"]],[[\\\"@disabled\\\",\\\"@buttonText\\\",\\\"@buttonClasses\\\",\\\"@buttonIcon\\\"],[[30,0,[\\\"disabled\\\"]],[30,0,[\\\"dateString\\\"]],\\\"date-range-selector__button\\\",\\\"calendar\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"date-range-selector__dropdown\\\"],[4,[38,2],[[28,[37,3],[[30,0],\\\"didOpen\\\"],null]],null],[4,[38,4],[[28,[37,3],[[30,0],\\\"willClose\\\"],null]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],[[24,0,\\\"date-range-selector__dropdown-section flex-md-row flex-column\\\"]],[[\\\"@center\\\",\\\"@maxRange\\\",\\\"@selected\\\",\\\"@onCenterChange\\\",\\\"@onSelect\\\"],[[30,0,[\\\"center\\\"]],[52,[30,0,[\\\"maxRange\\\"]],[30,0,[\\\"maxRange\\\"]],null],[30,0,[\\\"selectedRange\\\"]],[28,[37,3],[[30,0],[28,[37,7],[[30,0,[\\\"center\\\"]]],null]],[[\\\"value\\\"],[\\\"date\\\"]]],[28,[37,3],[[30,0],[28,[37,7],[[30,0,[\\\"selectedRange\\\"]]],null]],[[\\\"value\\\"],[\\\"date\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"date-range-selector__quick-actions\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"date-range-selector__quick-actions-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Shortcuts\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-this-week-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"thisWeek\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.This week\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-last-week-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"lastWeek\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Last week\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-this-fortnight-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"thisFortnight\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.This fortnight\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-last-fortnight-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"lastFortnight\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Last fortnight\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-this-month-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"thisMonth\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.This month\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-last-month-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"lastMonth\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Last month\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"date-range-selector__calendar\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Nav\\\"]],null,null,null],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Days\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"date-range-selector__dropdown-section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"date-range-selector__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"cancel\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[16,\\\"disabled\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"selectedRange\\\",\\\"start\\\"]],[30,0,[\\\"selectedRange\\\",\\\"end\\\"]]],null]],null]],[24,\\\"data-test-date-range-selector-apply-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"applyFilter\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"closeDropdown\\\",\\\"calendar\\\"],false,[\\\"overlaid-dropdown\\\",\\\"div\\\",\\\"did-insert\\\",\\\"action\\\",\\\"will-destroy\\\",\\\"power-calendar-range\\\",\\\"if\\\",\\\"mut\\\",\\\"t\\\",\\\"button\\\",\\\"not\\\",\\\"and\\\"]]\",\n    \"moduleName\": \"portal/components/date-range-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['date-range-selector'],\n    today: new Date(),\n    isOpen: false,\n    intl: (0, _service.inject)(),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this.setupAttrs();\n    },\n    setupAttrs() {\n      const {\n        startDate,\n        endDate\n      } = this;\n      const daysFromCenter = Math.round((0, _moment.default)(endDate).diff(startDate, 'days') / 2);\n      const center = (0, _moment.default)(startDate).add(daysFromCenter, 'days');\n      // PowerCalendar asserts on an invalid center, which breaks rendering app-wide.\n      (0, _object.set)(this, 'center', center.isValid() ? center : (0, _moment.default)(this.today));\n      (0, _object.set)(this, 'selectedRange', {\n        start: startDate,\n        end: endDate\n      });\n    },\n    dateString: (0, _object.computed)('endDate', 'isOpen', 'selectedRange.{end,start}', 'startDate', 'today', function () {\n      const isOpen = (0, _object.get)(this, 'isOpen');\n      const isPicking = !(0, _object.get)(this, 'selectedRange.end');\n      let startDate = isOpen ? (0, _object.get)(this, 'selectedRange.start') : (0, _object.get)(this, 'startDate');\n      let endDate = isOpen ? (0, _object.get)(this, 'selectedRange.end') : (0, _object.get)(this, 'endDate');\n      if (isOpen && isPicking) {\n        startDate = (0, _moment.default)(startDate);\n        return `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}&nbsp;&nbsp;&mdash;`;\n      }\n      startDate = (0, _moment.default)(startDate);\n      endDate = (0, _moment.default)(endDate);\n      let dateString = '';\n      const isThisYear = startDate.isSame(this.today, 'year') && endDate.isSame(this.today, 'year');\n      const isSameYear = startDate.isSame(endDate, 'year');\n      if (isThisYear) {\n        dateString = `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWeekdayMonth'))}&nbsp;&nbsp;&mdash;&nbsp;&nbsp;${endDate.format((0, _object.get)(this, 'intl').t('date.shortWeekdayMonth'))}`;\n      } else if (isSameYear) {\n        dateString = `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWeekdayMonth'))}&nbsp;&nbsp;&mdash;&nbsp;&nbsp;${endDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}`;\n      } else {\n        dateString = `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}&nbsp;&nbsp;&mdash;&nbsp;&nbsp;${endDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}`;\n      }\n      return dateString;\n    }),\n    actions: {\n      applyFilter(closeDropdown) {\n        const {\n          start,\n          end\n        } = (0, _object.get)(this, 'selectedRange');\n        if (!start || !end) return;\n\n        // If onApply has been provided, use it. Otherwise mutate the start and end values directly.\n        if (this.onApply && typeof this.onApply === 'function') {\n          this.onApply({\n            startDate: start,\n            endDate: end\n          });\n        } else {\n          (0, _object.set)(this, 'startDate', (0, _moment.default)(start));\n          (0, _object.set)(this, 'endDate', (0, _moment.default)(end));\n        }\n\n        // Close the box after filter is applied.\n        closeDropdown();\n      },\n      cancel(closeDropdown) {\n        this.setupAttrs();\n        closeDropdown();\n      },\n      thisWeek(calendar) {\n        const start = (0, _moment.default)(this.today).startOf('isoWeek');\n        const end = (0, _moment.default)(start).endOf('isoWeek');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      lastWeek(calendar) {\n        const start = (0, _moment.default)(this.today).subtract(1, 'weeks').startOf('isoWeek');\n        const end = (0, _moment.default)(start).endOf('isoWeek');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      thisFortnight(calendar) {\n        const end = (0, _moment.default)(this.today).endOf('isoWeek');\n        const start = (0, _moment.default)(end).subtract(13, 'days');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      lastFortnight(calendar) {\n        const end = (0, _moment.default)(this.today).endOf('isoWeek').subtract(14, 'days');\n        const start = (0, _moment.default)(end).subtract(13, 'days');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      thisMonth(calendar) {\n        const start = (0, _moment.default)(this.today).startOf('month');\n        const end = (0, _moment.default)(start).endOf('month');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      lastMonth(calendar) {\n        const start = (0, _moment.default)(this.today).subtract(1, 'months').startOf('month');\n        const end = (0, _moment.default)(start).endOf('month');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      didOpen() {\n        (0, _object.set)(this, 'isOpen', true);\n      },\n      willClose() {\n        (0, _runloop.next)(() => {\n          if ((0, _object.get)(this, 'isDestroying') || (0, _object.get)(this, 'isDestroyed')) return;\n          (0, _object.set)(this, 'isOpen', false);\n          this.setupAttrs();\n        });\n      }\n    }\n  }));\n  function calendarSelect(calendar, range) {\n    const {\n      start,\n      end\n    } = range;\n    const center = (0, _moment.default)(start).add(end.diff(start, 'days'), 'days');\n    calendar.actions.changeCenter(center);\n    calendar.actions.select({\n      date: {\n        start,\n        end\n      }\n    });\n  }\n});","define(\"portal/components/documents-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <table\n    class='table table-bordered position-report__remove-border-bottom'\n    data-test-documents-table\n  >\n    <thead class='table-light'>\n      <tr>\n        <th>{{t 'common.Name'}}</th>\n        {{#if @searchString}}\n          <th class='text-right'>{{t 'common.Path'}}</th>\n        {{/if}}\n        <th class='text-left'>{{t 'common.Type'}}</th>\n        <th class='text-left d-none d-md-table-cell'>{{t\n            'common.Created date'\n          }}</th>\n        <th class='text-left d-none d-md-table-cell'>{{t 'common.Size'}}</th>\n        <th class='text-center'>{{t 'common.Action'}}</th>\n      </tr>\n    </thead>\n    {{#if @goToContainer.isRunning}}\n      <tbody>\n        <tr>\n          <td colspan='5' class='text-center'>\n            <LoadingIcon @type='ripple' @class='p-2' /></td>\n        </tr>\n      </tbody>\n    {{else}}\n      <tbody>\n        <LazyEach\n          @items={{this.filteredFiles}}\n          @automatic={{true}}\n          @initialNumberOfItemsVisible='30'\n          @increment='30'\n          @itemDisplayName={{t 'common.documents'}}\n          @emptyContent={{this.emptyContent}}\n          as |file identifier|\n        >\n          <tr class={{identifier}}>\n            <td>\n              {{#if (eq file.type 'project')}}\n                <div class='d-flex align-items-center'>\n                  <FaIcon class='me-1 flex-shrink-0' @icon='folder' @size='md' />\n                  <LinkTo\n                    @route={{file.route}}\n                    @model={{file.projectLinkModel}}\n                    class='fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break'\n                    data-test-documents-project-name\n                  >{{file.name}}\n                  </LinkTo>\n                </div>\n              {{else if (eq file.type 'task')}}\n                <div class='d-flex align-items-center'>\n                  <FaIcon class='me-1 flex-shrink-0' @icon='folder' @size='md' />\n                  <LinkTo\n                    @route={{file.route}}\n                    @models={{array file.projectLinkModel file.taskLinkModel}}\n                    class='fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break'\n                    data-test-documents-task-name\n                  >{{file.name}}</LinkTo>\n                </div>\n              {{else}}\n                <div class='d-flex align-items-center'>\n                  <FileTypeIcon\n                    class='me-1 flex-shrink-0'\n                    @mime={{file.type}}\n                    @size='md'\n                  />\n                  <button\n                    type='button'\n                    class='fs-5 btn m-0 p-0 btn-link flex-grow-1 text-start text-break'\n                    data-test-documents-attachment-name\n                    {{on 'click' (fn this.setAttachmentToUpdate file)}}\n                  >{{file.name}}</button>\n                </div>\n              {{/if}}\n            </td>\n            {{#if @searchString}}\n              <td\n                class='text-right'\n                data-test-documents-file-breadcrumbs\n              >{{file.breadcrumbs}}</td>\n            {{/if}}\n            <td\n              class='text-left'\n              data-test-documents-file-type\n            >{{file.humanType}}</td>\n            <td\n              class='text-left d-none d-md-table-cell'\n              data-test-documents-file-dateCreated\n            >\n              {{moment-format file.dateCreated (t 'date.shortWithWeekday')}}\n            </td>\n            <td\n              class='text-left d-none d-md-table-cell'\n              data-test-documents-file-size\n            >\n              {{#if file.size}}\n                {{file-size-to-string file.size true}}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </td>\n            <td class='text-center'>\n              {{#if file.size}}\n                <button\n                  class='btn btn-link p-0 m-0'\n                  type='button'\n                  data-test-documents-file-download-btn\n                  {{on 'click' (fn @downloadAttachments file)}}\n                >\n                  <FaIcon @icon='download' @size='md' />\n                </button>\n              {{else}}\n                &mdash;\n              {{/if}}\n            </td>\n          </tr>\n        </LazyEach>\n      </tbody>\n    {{/if}}\n  </table>\n  \n  {{#if @uploadModalVisible}}\n    <ModalDialog\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @onClose={{fn (mut @uploadModalVisible) false}}\n      @containerClass='block-module attachment-settings-modal__container'\n    >\n      <div class='card'>\n        <DragAndDropContainer\n          @parent={{@parent}}\n          @onUploadComplete={{@onUploadComplete}}\n          @isDragAndDropVisible={{this.isDragAndDropVisible}}\n        />\n      </div>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            {{on 'click' (fn (mut @uploadModalVisible) false)}}\n            data-test-documents-upload-close-button\n          >{{t 'common.Close'}}</button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.currentFile}}\n    <AttachmentSettingsModal\n      @parent={{@parent}}\n      @project={{@project}}\n      @attachment={{this.currentFile.value}}\n      @users={{@users}}\n      @onCloseAction={{this.onClose}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"7p6HYodI\",\n    \"block\": \"[[[10,\\\"table\\\"],[14,0,\\\"table table-bordered position-report__remove-border-bottom\\\"],[14,\\\"data-test-documents-table\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[14,0,\\\"table-light\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Name\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"        \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.Path\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-left\\\"],[12],[1,[28,[35,4],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Created date\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Size\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"p-2\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyContent\\\"],[[30,0,[\\\"filteredFiles\\\"]],true,\\\"30\\\",\\\"30\\\",[28,[37,4],[\\\"common.documents\\\"],null],[30,0,[\\\"emptyContent\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[15,0,[30,4]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,3,[\\\"type\\\"]],\\\"project\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],[[24,0,\\\"me-1 flex-shrink-0\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"folder\\\",\\\"md\\\"]],null],[1,\\\"\\\\n                \\\"],[8,[39,13],[[24,0,\\\"fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break\\\"],[24,\\\"data-test-documents-project-name\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,3,[\\\"route\\\"]],[30,3,[\\\"projectLinkModel\\\"]]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,3,[\\\"type\\\"]],\\\"task\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],[[24,0,\\\"me-1 flex-shrink-0\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"folder\\\",\\\"md\\\"]],null],[1,\\\"\\\\n                \\\"],[8,[39,13],[[24,0,\\\"fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break\\\"],[24,\\\"data-test-documents-task-name\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@models\\\"],[[30,3,[\\\"route\\\"]],[28,[37,14],[[30,3,[\\\"projectLinkModel\\\"]],[30,3,[\\\"taskLinkModel\\\"]]],null]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,0,\\\"me-1 flex-shrink-0\\\"]],[[\\\"@mime\\\",\\\"@size\\\"],[[30,3,[\\\"type\\\"]],\\\"md\\\"]],null],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"fs-5 btn m-0 p-0 btn-link flex-grow-1 text-start text-break\\\"],[24,\\\"data-test-documents-attachment-name\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"setAttachmentToUpdate\\\"]],[30,3]],null]],null],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[14,\\\"data-test-documents-file-breadcrumbs\\\",\\\"\\\"],[12],[1,[30,3,[\\\"breadcrumbs\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left\\\"],[14,\\\"data-test-documents-file-type\\\",\\\"\\\"],[12],[1,[30,3,[\\\"humanType\\\"]]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[14,\\\"data-test-documents-file-dateCreated\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,19],[[30,3,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[14,\\\"data-test-documents-file-size\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"size\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,20],[[30,3,[\\\"size\\\"]],true],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"size\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 m-0\\\"],[24,\\\"data-test-documents-file-download-btn\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,5],[30,3]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"download\\\",\\\"md\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[3,4]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,6],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,\\\"modal\\\",[28,[37,18],[[28,[37,22],[[30,6]],null],false],null],\\\"block-module attachment-settings-modal__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,7],[30,8],[30,0,[\\\"isDragAndDropVisible\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-documents-upload-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[28,[37,22],[[30,6]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentFile\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@parent\\\",\\\"@project\\\",\\\"@attachment\\\",\\\"@users\\\",\\\"@onCloseAction\\\"],[[30,7],[30,9],[30,0,[\\\"currentFile\\\",\\\"value\\\"]],[30,10],[30,0,[\\\"onClose\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@searchString\\\",\\\"@goToContainer\\\",\\\"file\\\",\\\"identifier\\\",\\\"@downloadAttachments\\\",\\\"@uploadModalVisible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@project\\\",\\\"@users\\\"],false,[\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"t\\\",\\\"if\\\",\\\"tbody\\\",\\\"td\\\",\\\"loading-icon\\\",\\\"lazy-each\\\",\\\"eq\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"link-to\\\",\\\"array\\\",\\\"file-type-icon\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"moment-format\\\",\\\"file-size-to-string\\\",\\\"modal-dialog\\\",\\\"mut\\\",\\\"drag-and-drop-container\\\",\\\"footer\\\",\\\"attachment-settings-modal\\\"]]\",\n    \"moduleName\": \"portal/components/documents-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"currentFile\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n    }\n    setAttachmentToUpdate(file, event) {\n      event.preventDefault();\n      this.currentFile = file;\n    }\n    get isDragAndDropVisible() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.parent, 'canManageFileStorage');\n    }\n    get emptyContent() {\n      const colspan = this.args.searchString ? 6 : 5;\n      return `<tr class='text-center'><td colspan='${colspan}'>No documents</td></tr>`;\n    }\n    onClose(isDelete) {\n      if (isDelete === true) this.args.tableData.removeAttachment(this.currentFile);\n      this.currentFile = null;\n    }\n    get filteredFiles() {\n      const visibleFiles = this.args.tableData.files.filter(f => f.isVisible);\n      return visibleFiles;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setAttachmentToUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setAttachmentToUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _class));\n});","define(\"portal/components/drag-and-drop-container\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/models/attachment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _tracking, _attachment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/models/attachment\",0,\"ember-concurrency\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='p-3 {{if this.isDropHover \"drag-and-drop-hovered\"}} d-flex flex-column'\n    ...attributes\n    {{on 'dragleave' this.onDragLeave}}\n    {{on 'dragover' this.onDragOver}}\n    {{on 'drop' this.onDropZoneDrop}}\n  >\n    {{yield}}\n  \n    {{#if this.processAttachments.isRunning}}\n      <span class='align-self-center d-flex align-items-center m-2 fs-5'>\n        {{t 'common.Uploading files'}}\n        <FaIcon @icon='circle-notch' @spin={{true}} class='ms-2 text-primary' />\n      </span>\n    {{/if}}\n  \n    {{#if @isDragAndDropVisible}}\n      <div class='align-self-center d-flex align-items-center m-2'>\n        {{t 'shared.bill.Drag files here or'}}\n        <button\n          type='button'\n          class='btn btn-success text-white ms-2'\n          {{on 'click' this.onManualUploadClick}}\n        >\n          <FaIcon @icon='upload' />&nbsp;&nbsp;{{t 'shared.bill.Browse files'}}\n        </button>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"/rA5HhdH\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"p-3 \\\",[52,[30,0,[\\\"isDropHover\\\"]],\\\"drag-and-drop-hovered\\\"],\\\" d-flex flex-column\\\"]]],[17,1],[4,[38,2],[\\\"dragleave\\\",[30,0,[\\\"onDragLeave\\\"]]],null],[4,[38,2],[\\\"dragover\\\",[30,0,[\\\"onDragOver\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDropZoneDrop\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,3,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"processAttachments\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"align-self-center d-flex align-items-center m-2 fs-5\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"common.Uploading files\\\"],null]],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"ms-2 text-primary\\\"]],[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"align-self-center d-flex align-items-center m-2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"shared.bill.Drag files here or\\\"],null]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onManualUploadClick\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"shared.bill.Browse files\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@isDragAndDropVisible\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"yield\\\",\\\"span\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/drag-and-drop-container.hbs\",\n    \"isStrictMode\": false\n  });\n  const acceptedMimeTypes = [..._attachment.shortcutsToMime.image, ..._attachment.shortcutsToMime.text, ..._attachment.shortcutsToMime.document, ..._attachment.shortcutsToMime.archive];\n  function fileIsTooLarge(size) {\n    // 30MB is current server limit\n    // Base64 encoding increases size by ~33% https://developer.mozilla.org/en-US/docs/Glossary/Base64\n    return size > 2e7; // 20MB\n  }\n  class FileContainer {\n    constructor({\n      file,\n      store,\n      entity,\n      intl\n    }) {\n      _defineProperty(this, \"file\", void 0);\n      _defineProperty(this, \"store\", void 0);\n      _defineProperty(this, \"entity\", void 0);\n      _defineProperty(this, \"intl\", void 0);\n      this.file = file;\n      this.store = store;\n      this.entity = entity;\n      this.intl = intl;\n    }\n    get validationError() {\n      // directories and files without types are not allowed\n      if (!this.file.type) return this.intl.t('validation.xIsNotAValidFile', {\n        fileName: this.file.name\n      });\n\n      // check the mime type\n      if (!acceptedMimeTypes.some(acceptedMime => (0, _attachment.isMimeSame)(acceptedMime, this.file.type))) return this.intl.t('validation.xIsNotAValidFile', {\n        fileName: this.file.name\n      });\n\n      // check if the file is too large\n      if (fileIsTooLarge(this.file.size)) return this.intl.t('validation.xIsLargerThan20mbAndWillNotBeUploaded', {\n        fileName: this.file.name\n      });\n      return false;\n    }\n    get isValid() {\n      return this.validationError === false;\n    }\n    async create() {\n      return _attachment.default.fromFileInput(this.file, this.store, this.entity);\n    }\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDropHover\", _descriptor4, this);\n      _defineProperty(this, \"processAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (files) {\n          let fileContainers = [];\n          try {\n            fileContainers = files.map(file => new FileContainer({\n              file,\n              store: this.store,\n              entity: this.sessionData.entity,\n              intl: this.intl\n            }));\n            const fileContainersForUpload = fileContainers.filter(fc => fc.isValid);\n            const invalidFiles = fileContainers.filter(fc => !fc.isValid);\n            const attachments = yield Promise.all(fileContainersForUpload.map(fc => fc.create()));\n            yield this.args.onUploadComplete({\n              error: undefined,\n              validationErrors: invalidFiles.map(fc => fc.validationError),\n              attachments\n            });\n          } catch (error) {\n            this.args.onUploadComplete({\n              error,\n              validationErrors: [this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments')],\n              attachments: []\n            });\n          }\n        }\n      }), null, \"processAttachments\", null));\n    }\n    onDragLeave(event) {\n      event.preventDefault();\n      this.isDropHover = false;\n    }\n    onDragOver(event) {\n      event.preventDefault();\n      this.isDropHover = true;\n    }\n    onDropZoneDrop(event) {\n      event.preventDefault();\n      let files = [...event.dataTransfer.files];\n      this.isDropHover = false;\n      this.processAttachments.perform(files);\n    }\n    onManualUploadClick() {\n      const input = document.createElement('input');\n      input.type = 'file';\n      input.accept = acceptedMimeTypes.join(', ');\n      input.multiple = true;\n      input.onchange = this.onManualFileUpload;\n      input.click();\n    }\n    onManualFileUpload(event) {\n      const files = [...event.target.files];\n      this.processAttachments.perform(files);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDropHover\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDragLeave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDropZoneDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDropZoneDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onManualUploadClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualUploadClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onManualFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualFileUpload\"), _class.prototype), _class));\n});","define(\"portal/components/drag-sort-list\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _class2, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <DragSortList::Children\n    ...attributes\n    @containers={{this.containers}}\n    @itemComponent={{@itemComponent}}\n    @sort={{this.sort}}\n    @setDraggedContainer={{this.setDraggedContainer}}\n    @draggedContainer={{this.draggedContainer}}\n    @eachKey={{this.eachKey}}\n    @disableDragging={{@disableDragging}}\n  />\n  */\n  {\n    \"id\": \"N1+FBMvt\",\n    \"block\": \"[[[8,[39,0],[[17,1]],[[\\\"@containers\\\",\\\"@itemComponent\\\",\\\"@sort\\\",\\\"@setDraggedContainer\\\",\\\"@draggedContainer\\\",\\\"@eachKey\\\",\\\"@disableDragging\\\"],[[30,0,[\\\"containers\\\"]],[30,2],[30,0,[\\\"sort\\\"]],[30,0,[\\\"setDraggedContainer\\\"]],[30,0,[\\\"draggedContainer\\\"]],[30,0,[\\\"eachKey\\\"]],[30,3]]],null]],[\\\"&attrs\\\",\\\"@itemComponent\\\",\\\"@disableDragging\\\"],false,[\\\"drag-sort-list/children\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list.hbs\",\n    \"isStrictMode\": false\n  });\n  let DragSortListComponent = _exports.default = (_class2 = class DragSortListComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"draggedContainer\", _descriptor5, this);\n    }\n    get eachKey() {\n      let key = 'item';\n      if (this.args.eachKey) key += '.' + this.args.eachKey;\n      return key;\n    }\n    get containers() {\n      return DSLContainer.buildContainers(this.args.list);\n    }\n    setDraggedContainer(container) {\n      this.draggedContainer = container;\n    }\n    sort(sourceId, targetId, sortAction) {\n      const onUpdate = this.args.onUpdate;\n      if (!onUpdate) return;\n      const newContainerList = DSLContainer.sort(this.containers, sourceId,\n      // these are \"dslIds\"\n      targetId,\n      // these are \"dslIds\"\n      sortAction // ['above', 'into', 'below']\n      );\n\n      // Map containers back to originals\n      const newList = DSLContainer.unwrap(newContainerList);\n      onUpdate(newList);\n    }\n  }, _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"draggedContainer\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setDraggedContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDraggedContainer\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sort\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sort\"), _class2.prototype), _class2);\n  function getElement(list, coordinates) {\n    if (coordinates.length === 1) return list[coordinates[0]];else return getElement(list[coordinates[0]].children, coordinates.slice(1));\n  }\n\n  /*\n  Turns a self similar, nested list in the form:\n  Item extends { ..., children: Item[] }\n  into another self similar list in the form:\n  DSLContainer: { ...extraProps, item: Item, children: DSLContainer[] }\n  This is to be able to pass around properties without exposing them\n  or mutating the items passed in.\n  */\n  let DSLContainer = (_class = class DSLContainer {\n    static sort(containerList, sourceId, targetId, sortAction) {\n      const newContainerList = DSLContainer.clone(containerList);\n      const sourceCoordinates = sourceId.split('.').map(c => Number.parseInt(c));\n      const targetCoordinates = targetId.split('.').map(c => Number.parseInt(c));\n      const sourceContainer = getElement(newContainerList, sourceCoordinates);\n      const targetContainer = getElement(newContainerList, targetCoordinates);\n\n      // Remove from old location\n      const sourceList = sourceContainer.parent?.children ?? newContainerList;\n      const sourceIndex = sourceCoordinates[sourceCoordinates.length - 1];\n      sourceList.splice(sourceIndex, 1);\n      if (['above', 'below'].includes(sortAction)) {\n        // Reassign parent pointer\n        sourceContainer.parent = targetContainer.parent;\n\n        // Insert into new location\n        const targetList = targetContainer.parent?.children ?? newContainerList;\n        let targetIndex = targetCoordinates[targetCoordinates.length - 1];\n\n        // if the element was removed from above the target in the same list\n        // we need to account for the removed element in the targetIndex\n        const isSameList = sourceList === targetList;\n        if (isSameList && targetIndex > sourceIndex) targetIndex--;\n        if (sortAction === 'below') targetIndex++; // If placing below target, add 1 to index\n\n        targetList.splice(targetIndex, 0, sourceContainer);\n      } else if (sortAction === 'into') {\n        // Reassign parent pointer\n        sourceContainer.parent = targetContainer;\n\n        // Insert into new location\n        targetContainer.children.splice(0, 0, sourceContainer);\n      } else {\n        throw new Error('Unknown sort action provided');\n      }\n      return newContainerList;\n    }\n    static unwrap(containers) {\n      // we are directly modifying the \"children\" array so we can return the newly sorted array\n      // we should encourage mutable data to be passed to this component\n      // directly modifying ember data isn't ideal\n      return containers.map(c => {\n        c.item.children = DSLContainer.unwrap(c.children);\n        return c.item;\n      });\n    }\n    static clone(containers, parent) {\n      return containers.map(c => {\n        const newContainer = {\n          ...c,\n          parent\n        };\n        newContainer.children = DSLContainer.clone(c.children, newContainer);\n        return newContainer;\n      });\n    }\n    static buildContainers(list) {\n      // It is wrapped to prevent anyone being tempted to pass in the parent, or\n      return DSLContainer._buildContainers(list);\n    }\n    static _buildContainers(list, parent, prefix = '') {\n      return list.map((item, index) => {\n        const container = new DSLContainer(item, prefix + index);\n        container.parent = parent;\n        if (item.children?.length) {\n          container.children = DSLContainer._buildContainers(item.children, container, prefix + index + '.');\n        }\n        return container;\n      });\n    }\n    constructor(item, id) {\n      _defineProperty(this, \"dslId\", void 0);\n      _defineProperty(this, \"item\", void 0);\n      _defineProperty(this, \"parent\", void 0);\n      _defineProperty(this, \"children\", []);\n      _initializerDefineProperty(this, \"isDragging\", _descriptor, this);\n      _initializerDefineProperty(this, \"isDroppingAbove\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isDroppingBelow\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDroppingInto\", _descriptor4, this);\n      this.item = item;\n      this.dslId = id;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDragging\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isDroppingAbove\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDroppingBelow\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDroppingInto\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListComponent);\n});","define(\"portal/components/drag-sort-list/children\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div ...attributes>\n    {{#each @containers key=@eachKey as |container|}}\n      {{component\n        @itemComponent\n        item=container.item\n        dsl=(hash\n          isDroppingAbove=container.isDroppingAbove\n          isDroppingInto=container.isDroppingInto\n          isDroppingBelow=container.isDroppingBelow\n          isDragging=(eq @draggedContainer.dslId container.dslId)\n          Separator=(component 'drag-sort-list/separator')\n          Draggable=(component\n            'drag-sort-list/draggable'\n            container=container\n            sort=@sort\n            setDraggedContainer=@setDraggedContainer\n            draggedContainer=@draggedContainer\n            disableDragging=@disableDragging\n          )\n          DragHandle=(component\n            'drag-sort-list/drag-handle'\n            container=container\n            setDraggedContainer=@setDraggedContainer\n            draggedContainer=@draggedContainer\n            disableDragging=@disableDragging\n          )\n          Children=(component\n            'drag-sort-list/children'\n            containers=container.children\n            itemComponent=@itemComponent\n            sort=@sort\n            setDraggedContainer=@setDraggedContainer\n            draggedContainer=@draggedContainer\n            eachKey=@eachKey\n            disableDragging=@disableDragging\n          )\n        )\n      }}\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"+Z71i6LR\",\n    \"block\": \"[[[11,0],[17,1],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,2]],null]],null],[30,3],[[[1,\\\"    \\\"],[46,[30,5],null,[[\\\"item\\\",\\\"dsl\\\"],[[30,4,[\\\"item\\\"]],[28,[37,4],null,[[\\\"isDroppingAbove\\\",\\\"isDroppingInto\\\",\\\"isDroppingBelow\\\",\\\"isDragging\\\",\\\"Separator\\\",\\\"Draggable\\\",\\\"DragHandle\\\",\\\"Children\\\"],[[30,4,[\\\"isDroppingAbove\\\"]],[30,4,[\\\"isDroppingInto\\\"]],[30,4,[\\\"isDroppingBelow\\\"]],[28,[37,5],[[30,6,[\\\"dslId\\\"]],[30,4,[\\\"dslId\\\"]]],null],[50,\\\"drag-sort-list/separator\\\",0,null,null],[50,\\\"drag-sort-list/draggable\\\",0,null,[[\\\"container\\\",\\\"sort\\\",\\\"setDraggedContainer\\\",\\\"draggedContainer\\\",\\\"disableDragging\\\"],[[30,4],[30,7],[30,8],[30,6],[30,9]]]],[50,\\\"drag-sort-list/drag-handle\\\",0,null,[[\\\"container\\\",\\\"setDraggedContainer\\\",\\\"draggedContainer\\\",\\\"disableDragging\\\"],[[30,4],[30,8],[30,6],[30,9]]]],[50,\\\"drag-sort-list/children\\\",0,null,[[\\\"containers\\\",\\\"itemComponent\\\",\\\"sort\\\",\\\"setDraggedContainer\\\",\\\"draggedContainer\\\",\\\"eachKey\\\",\\\"disableDragging\\\"],[[30,4,[\\\"children\\\"]],[30,5],[30,7],[30,8],[30,6],[30,3],[30,9]]]]]]]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[13]],[\\\"&attrs\\\",\\\"@containers\\\",\\\"@eachKey\\\",\\\"container\\\",\\\"@itemComponent\\\",\\\"@draggedContainer\\\",\\\"@sort\\\",\\\"@setDraggedContainer\\\",\\\"@disableDragging\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"component\\\",\\\"hash\\\",\\\"eq\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/children.hbs\",\n    \"isStrictMode\": false\n  });\n  class DragSortListChildrenComponent extends _component2.default {}\n  _exports.default = DragSortListChildrenComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListChildrenComponent);\n});","define(\"portal/components/drag-sort-list/drag-handle\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-invalid-interactive }}\n  {{! template-lint-disable no-pointer-down-event-binding }}\n  <div\n    class={{this.cursorClass}}\n    {{on 'mousedown' (fn (mut @container.isDragging) true)}}\n    {{on 'mouseup' (fn (mut @container.isDragging) false)}}\n    {{on 'touchstart' (fn (mut @container.isDragging) true)}}\n    {{on 'touchend' (fn (mut @container.isDragging) false)}}\n    ...attributes\n  >{{yield}}</div>\n  */\n  {\n    \"id\": \"jR2x78p8\",\n    \"block\": \"[[[11,0],[16,0,[30,0,[\\\"cursorClass\\\"]]],[17,1],[4,[38,1],[\\\"mousedown\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],true],null]],null],[4,[38,1],[\\\"mouseup\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],false],null]],null],[4,[38,1],[\\\"touchstart\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],true],null]],null],[4,[38,1],[\\\"touchend\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],false],null]],null],[12],[18,3,null],[13]],[\\\"&attrs\\\",\\\"@container\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/drag-handle.hbs\",\n    \"isStrictMode\": false\n  });\n  class DragSortListDragHandleComponent extends _component2.default {\n    get cursorClass() {\n      if (this.args.disableDragging) return null;\n      if (this.args.container.isDragging) {\n        return 'grabbing-cursor';\n      }\n      return 'grab-cursor';\n    }\n  }\n  _exports.default = DragSortListDragHandleComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListDragHandleComponent);\n});","define(\"portal/components/drag-sort-list/draggable\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    draggable={{if @disableDragging false @container.isDragging}}\n    {{on 'dragstart' this.onDragStart}}\n    {{on 'dragenter' this.onDragEnter}}\n    {{on 'dragover' this.onDragOver}}\n    {{on 'dragleave' this.onDragLeave}}\n    {{on 'drop' this.onDrop}}\n    {{on 'dragend' this.onDragEnd}}\n    ...attributes\n  >{{yield}}</div>\n  */\n  {\n    \"id\": \"j6Dc3wl7\",\n    \"block\": \"[[[11,0],[16,\\\"draggable\\\",[52,[30,1],false,[30,2,[\\\"isDragging\\\"]]]],[17,3],[4,[38,2],[\\\"dragstart\\\",[30,0,[\\\"onDragStart\\\"]]],null],[4,[38,2],[\\\"dragenter\\\",[30,0,[\\\"onDragEnter\\\"]]],null],[4,[38,2],[\\\"dragover\\\",[30,0,[\\\"onDragOver\\\"]]],null],[4,[38,2],[\\\"dragleave\\\",[30,0,[\\\"onDragLeave\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null],[4,[38,2],[\\\"dragend\\\",[30,0,[\\\"onDragEnd\\\"]]],null],[12],[18,4,null],[13]],[\\\"@disableDragging\\\",\\\"@container\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/draggable.hbs\",\n    \"isStrictMode\": false\n  });\n  let DragSortListDraggableComponent = _exports.default = (_class = class DragSortListDraggableComponent extends _component2.default {\n    // you cannot become a child of yourself\n    // this relies on the path-ish type ids (dslId) to check if the currently dragged\n    // item can be dropped onto this item\n    // e.g:\n    // \"0\" is dragged onto \"0.0\"\n    // result: not droppable because the dragged item is the parent of the dropped item\n    //         you can not become a child of yourself\n    // \"0\" is dragged onto \"0\"\n    // result: not droppable because you can not drop onto yourself\n    // \"0\" is dragged onto \"1\"\n    // result: droppable because there is no relationship between them\n    get isDraggingOntoSelf() {\n      if (!this.args.draggedContainer) return false;\n      return this.args.container.dslId === this.args.draggedContainer.dslId;\n    }\n    get isDraggingInsideSelf() {\n      if (!this.args.draggedContainer) return false;\n      return this.args.draggedContainer.dslId !== this.args.container.dslId && this.args.container.dslId.startsWith(this.args.draggedContainer.dslId);\n    }\n    onDragStart(event) {\n      event.dataTransfer.setData('text/plain', this.args.container.dslId);\n      event.stopPropagation();\n      this.args.setDraggedContainer(this.args.container);\n    }\n    onDragEnter(event) {\n      event.preventDefault();\n    }\n    onDragOver(event) {\n      if (this.isDraggingInsideSelf) {\n        event.stopPropagation();\n        event.preventDefault();\n        return;\n      }\n      const cursorYPos = event.originalEvent ? event.originalEvent.pageY : event.pageY;\n      const elementTop = event.currentTarget.getBoundingClientRect().top + document.documentElement.scrollTop;\n      const elementHeight = event.currentTarget.offsetHeight;\n\n      // note: comments assume element is 45px tall\n      // basically the pixel position of cursor from the top of the element (0px is on the top, 45px is the bottom)\n      const heightOffset = cursorYPos - elementTop;\n      const third = 1 / 3;\n      // 0px until 14px\n      const inTopThird = heightOffset < elementHeight * third;\n      // 31px until 45px\n      const inBottomThird = heightOffset > elementHeight * (third * 2);\n      // 15px until 30px\n      const inMiddleThird = !inTopThird && !inBottomThird;\n      if (this.args.container.isDroppingAbove !== inTopThird) this.args.container.isDroppingAbove = inTopThird;\n      const isDroppingInto = this.isDraggingOntoSelf ? false : inMiddleThird;\n      if (this.args.container.isDroppingInto !== isDroppingInto) this.args.container.isDroppingInto = isDroppingInto;\n      if (this.args.container.isDroppingBelow !== inBottomThird) this.args.container.isDroppingBelow = inBottomThird;\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onDrop(event) {\n      event.stopPropagation();\n      this.args.container.isDragging = false;\n      const sourceId = event.dataTransfer.getData('text/plain');\n      const targetId = this.args.container.dslId;\n      // sorting is required when the dragged element is not equal to the drop target\n      // e.g the element has not been dropped onto itself\n      const sortingRequired = sourceId !== targetId;\n      if (sortingRequired) {\n        let direction;\n        if (this.args.container.isDroppingAbove) direction = 'above';\n        if (this.args.container.isDroppingInto) direction = 'into';\n        if (this.args.container.isDroppingBelow) direction = 'below';\n        this.args.sort(sourceId, targetId, direction);\n      }\n      this.args.container.isDroppingAbove = false;\n      this.args.container.isDroppingInto = false;\n      this.args.container.isDroppingBelow = false;\n    }\n    onDragLeave() {\n      this.args.container.isDroppingAbove = false;\n      this.args.container.isDroppingInto = false;\n      this.args.container.isDroppingBelow = false;\n    }\n    onDragEnd() {\n      this.args.container.isDragging = false;\n      this.args.setDraggedContainer(undefined);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onDragStart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragEnter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragLeave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragEnd\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragEnd\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListDraggableComponent);\n});","define(\"portal/components/drag-sort-list/separator\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='dsl-separator'></div>\n  */\n  {\n    \"id\": \"vpmGMpmy\",\n    \"block\": \"[[[10,0],[14,0,\\\"dsl-separator\\\"],[12],[13]],[],false,[\\\"div\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/separator.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // eslint-disable-next-line ember/no-empty-glimmer-component-classes\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/draggable-task\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n  */\n  {\n    \"id\": \"PdluFg5Z\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"portal/components/draggable-task.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/dropdown-button\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex' ...attributes>\n    {{#if @route}}\n      <LinkTo\n        @route={{@route}}\n        @model={{@model}}\n        class='{{or @btnClass \"btn btn-primary\"}}\n          rounded-0 rounded-start text-white'\n      >\n        {{#if @icon}}<FaIcon @icon={{@icon}} />&nbsp;&nbsp;{{/if}}{{@buttonText}}\n      </LinkTo>\n    {{else}}\n      <button\n        type='button'\n        class='{{or @btnClass \"btn btn-primary\"}}\n          rounded-0 rounded-start text-white'\n        {{on 'click' @onPrimaryClick}}\n        disabled={{@disabled}}\n        data-test-dropdown-button-primary-button={{@buttonText}}\n      >\n        {{#if @icon}}<FaIcon @icon={{@icon}} />&nbsp;&nbsp;{{/if}}{{@buttonText}}\n      </button>\n    {{/if}}\n  \n    <PopOver\n      @fixed={{@popOverFixed}}\n      @direction={{or @direction 'bottom-left'}}\n      as |po|\n    >\n      <button\n        type='button'\n        class='{{or @btnClass \"btn btn-primary\"}}\n          dropdown-button__divider rounded-0 rounded-end text-white'\n        disabled={{@disabled}}\n        data-test-dropdown-button-dropdown-button={{@buttonText}}\n      >\n        <FaIcon @icon='caret-down' />\n      </button>\n      <po.Content>\n        {{yield}}\n      </po.Content>\n    </PopOver>\n  </div>\n  */\n  {\n    \"id\": \"slxDqnHX\",\n    \"block\": \"[[[11,0],[24,0,\\\"d-flex\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"    \\\"],[8,[39,2],[[16,0,[29,[[28,[37,3],[[30,3],\\\"btn btn-primary\\\"],null],\\\"\\\\n        rounded-0 rounded-start text-white\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[[30,2],[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[41,[30,5],[[[8,[39,4],null,[[\\\"@icon\\\"],[[30,5]]],null],[1,\\\"  \\\"]],[]],null],[1,[30,6]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[16,0,[29,[[28,[37,3],[[30,3],\\\"btn btn-primary\\\"],null],\\\"\\\\n        rounded-0 rounded-start text-white\\\"]]],[16,\\\"disabled\\\",[30,7]],[16,\\\"data-test-dropdown-button-primary-button\\\",[30,6]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,8]],null],[12],[1,\\\"\\\\n      \\\"],[41,[30,5],[[[8,[39,4],null,[[\\\"@icon\\\"],[[30,5]]],null],[1,\\\"  \\\"]],[]],null],[1,[30,6]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[8,[39,7],null,[[\\\"@fixed\\\",\\\"@direction\\\"],[[30,9],[28,[37,3],[[30,10],\\\"bottom-left\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"button\\\"],[15,0,[29,[[28,[37,3],[[30,3],\\\"btn btn-primary\\\"],null],\\\"\\\\n        dropdown-button__divider rounded-0 rounded-end text-white\\\"]]],[15,\\\"disabled\\\",[30,7]],[15,\\\"data-test-dropdown-button-dropdown-button\\\",[30,6]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[30,11,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[18,12,null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[11]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@route\\\",\\\"@btnClass\\\",\\\"@model\\\",\\\"@icon\\\",\\\"@buttonText\\\",\\\"@disabled\\\",\\\"@onPrimaryClick\\\",\\\"@popOverFixed\\\",\\\"@direction\\\",\\\"po\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"link-to\\\",\\\"or\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"pop-over\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/dropdown-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/duration-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/duration-input\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _durationInput, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/duration-input\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <input\n    value={{this.value}}\n    placeholder={{or @placeholder '0:00'}}\n    {{on 'focus' this.handleFocus}}\n    {{on 'blur' this.handleBlur}}\n    disabled={{@disabled}}\n    class={{@class}}\n    type='text'\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"CMvFX7/b\",\n    \"block\": \"[[[11,\\\"input\\\"],[16,2,[30,0,[\\\"value\\\"]]],[16,\\\"placeholder\\\",[28,[37,1],[[30,1],\\\"0:00\\\"],null]],[16,\\\"disabled\\\",[30,2]],[16,0,[30,3]],[24,4,\\\"text\\\"],[17,4],[4,[38,2],[\\\"focus\\\",[30,0,[\\\"handleFocus\\\"]]],null],[4,[38,2],[\\\"blur\\\",[30,0,[\\\"handleBlur\\\"]]],null],[12],[13]],[\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@class\\\",\\\"&attrs\\\"],false,[\\\"input\\\",\\\"or\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/duration-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      this.value = (0, _durationInput.formatDuration)([this.args.duration ?? 0]);\n    }\n    handleFocus(event) {\n      if (this.args.selectOnFocus) {\n        requestAnimationFrame(() => {\n          event.target.select();\n        });\n      }\n    }\n    handleBlur(event) {\n      const rawValue = event.target.value;\n      const duration = (0, _durationInput.parseDuration)(rawValue);\n      this.value = (0, _durationInput.formatDuration)([duration]);\n      if (this.args.onDurationChange) {\n        this.args.onDurationChange(duration);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"value\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBlur\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBlur\"), _class.prototype), _class));\n});","define(\"portal/components/education-promotion-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (and (includes-feature-flags 'entityIsCalStudent') this.couponCode)}}\n    <a\n      href='https://au.buildaprice.app/plans'\n      target='_blank'\n      rel='noopener noreferrer'\n      class='btn btn-info p-3 rounded-4 animate-flip-down text-white text-center fs-5'\n      data-test-button\n      ...attributes\n    >\n      {{t\n        'components.education-promotion-button.promotionMessage'\n        couponCode=this.couponCode\n      }}\n    </a>\n  {{/if}}\n  */\n  {\n    \"id\": \"gJ+mO3FJ\",\n    \"block\": \"[[[41,[28,[37,1],[[28,[37,2],[\\\"entityIsCalStudent\\\"],null],[30,0,[\\\"couponCode\\\"]]],null],[[[1,\\\"  \\\"],[11,3],[24,6,\\\"https://au.buildaprice.app/plans\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[24,0,\\\"btn btn-info p-3 rounded-4 animate-flip-down text-white text-center fs-5\\\"],[24,\\\"data-test-button\\\",\\\"\\\"],[17,1],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"components.education-promotion-button.promotionMessage\\\"],[[\\\"couponCode\\\"],[[30,0,[\\\"couponCode\\\"]]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"&attrs\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/education-promotion-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get couponCode() {\n      return this.sessionData.entity?.calEducationCouponCode;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/ember-modal-dialog-positioned-container\", [\"exports\", \"ember-modal-dialog/components/positioned-container\"], function (_exports, _positionedContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _positionedContainer.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/positioned-container\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-basic-dialog\", [\"exports\", \"ember-modal-dialog/components/basic-dialog\"], function (_exports, _basicDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/basic-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-in-place-dialog\", [\"exports\", \"ember-modal-dialog/components/in-place-dialog\"], function (_exports, _inPlaceDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inPlaceDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/in-place-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-liquid-dialog\", [\"exports\", \"ember-modal-dialog/components/liquid-dialog\"], function (_exports, _liquidDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _liquidDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/liquid-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-liquid-tether-dialog\", [\"exports\", \"ember-modal-dialog/components/liquid-tether-dialog\"], function (_exports, _liquidTetherDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _liquidTetherDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/liquid-tether-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-tether-dialog\", [\"exports\", \"ember-modal-dialog/components/tether-dialog\"], function (_exports, _tetherDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _tetherDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/tether-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/overlay\", [\"exports\", \"ember-modal-dialog/components/overlay\"], function (_exports, _overlay) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _overlay.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/overlay\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-wormhole\", [\"exports\", \"ember-wormhole/components/ember-wormhole\"], function (_exports, _emberWormhole) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberWormhole.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-wormhole/components/ember-wormhole\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/entity-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @containerClass='modal-content w-auto'\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-body d-flex flex-column align-items-start overflow-hidden'>\n      <Input\n        class='mb-3 form-control'\n        aria-label={{t 'common.Find company by name'}}\n        @type='text'\n        placeholder={{t 'common.Find company by name'}}\n        autofocus={{true}}\n        @value={{this.searchString}}\n        {{did-insert this.focus}}\n      />\n  \n      <div class='overflow-auto w-100 d-flex flex-column'>\n        <LazyEach\n          @items={{this.filteredEntities}}\n          @automatic={{true}}\n          @initialNumberOfItemsVisible='20'\n          @increment='20'\n          @itemDisplayName={{t 'common.companies'}}\n          @emptyText={{t 'common.No companies'}}\n          as |entity id|\n        >\n          <span class='mb-2 {{id}}'>\n            <button\n              type='button'\n              class='btn btn-link px-0 py-1'\n              {{on 'click' (fn this.changeEntity entity.id)}}\n            >\n              {{entity.name}}\n            </button>\n  \n            {{#if entity.parent.name}}\n              <span class='badge bg-secondary text-white'>\n                {{entity.parent.name}}\n              </span>\n            {{/if}}\n          </span>\n        </LazyEach>\n      </div>\n    </div>\n  \n    <footer class='modal-footer'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white ms-2'\n        {{on 'click' @onClose}}\n      >{{t 'common.Cancel'}}</button>\n    </footer>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"slwH942l\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[true,\\\"modal-content w-auto\\\",\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-body d-flex flex-column align-items-start overflow-hidden\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],[[24,0,\\\"mb-3 form-control\\\"],[16,\\\"aria-label\\\",[28,[37,3],[\\\"common.Find company by name\\\"],null]],[16,\\\"placeholder\\\",[28,[37,3],[\\\"common.Find company by name\\\"],null]],[16,\\\"autofocus\\\",true],[4,[38,4],[[30,0,[\\\"focus\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"overflow-auto w-100 d-flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyText\\\"],[[30,0,[\\\"filteredEntities\\\"]],true,\\\"20\\\",\\\"20\\\",[28,[37,3],[\\\"common.companies\\\"],null],[28,[37,3],[\\\"common.No companies\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"mb-2 \\\",[30,3]]]],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link px-0 py-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"changeEntity\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"parent\\\",\\\"name\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"badge bg-secondary text-white\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"parent\\\",\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[2,3]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"entity\\\",\\\"id\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"input\\\",\\\"t\\\",\\\"did-insert\\\",\\\"lazy-each\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"if\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/components/entity-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _defineProperty(this, \"hasParentColumn\", false);\n      _defineProperty(this, \"entities\", []);\n      const parentNames = new Set();\n      this.entities = this.sessionData.allowedEntities.sort((a, b) => {\n        parentNames.add(a.belongsTo('parent').value()?.name);\n        const aString = (a.belongsTo('parent').value()?.name || '') + a.name;\n        const bString = (b.belongsTo('parent').value()?.name || '') + b.name;\n        return aString.localeCompare(bString);\n      });\n      this.hasParentColumn = parentNames.size > 1;\n    }\n    get filteredEntities() {\n      if (!this.searchString) return this.entities;\n      const searchString = this.searchString.replace(/\\s/g, '').toLowerCase();\n      const filteredEntities = this.entities.filter(e => {\n        const matchString = String((e.belongsTo('parent').value()?.name || '') + e.name).replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString);\n      });\n      return filteredEntities;\n    }\n    changeEntity(entityId) {\n      this.sessionData.changeEntity(entityId);\n      this.args.onClose();\n    }\n    focus(element) {\n      (0, _runloop.next)(() => element.focus());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeEntity\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focus\"), _class.prototype), _class));\n});","define(\"portal/components/entity-table-contents\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{entity-list model=this.model}}\n  */\n  {\n    \"id\": \"wNGDAS+/\",\n    \"block\": \"[[[1,[28,[35,0],null,[[\\\"model\\\"],[[30,0,[\\\"model\\\"]]]]]]],[],false,[\\\"entity-list\\\"]]\",\n    \"moduleName\": \"portal/components/entity-table-contents.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/estimate/item\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _component, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"open\", _descriptor, this);\n    }\n    setProjectedRemaining(item, hours) {\n      const costCenter = item.belongsTo('costCenter').value();\n      const manHoursProjectedTotal = hours + costCenter.manHoursActual;\n      item.manHoursProjectedTotal = manHoursProjectedTotal || 0;\n    }\n    setProjectedRemainingTotal(item, hours) {\n      const costCenter = item.belongsTo('costCenter').value();\n      const manHoursProjectedTotal = costCenter.manHoursActual > hours ? costCenter.manHoursActual : hours;\n      item.manHoursProjectedTotal = manHoursProjectedTotal || 0;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"open\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setProjectedRemaining\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setProjectedRemaining\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setProjectedRemainingTotal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setProjectedRemainingTotal\"), _class2.prototype), _class2);\n});","define(\"portal/components/fa-icon\", [\"exports\", \"@fortawesome/ember-fontawesome/components/fa-icon\"], function (_exports, _faIcon) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _faIcon.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@fortawesome/ember-fontawesome/components/fa-icon\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/file-field\", [\"exports\", \"@ember/utils\", \"@ember/object/evented\", \"@ember/component\"], function (_exports, _utils, _evented, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object/evented\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _component.default.extend(_evented.default, {\n    tagName: 'input',\n    classNames: ['d-none'],\n    type: 'file',\n    attributeBindings: ['name', 'disabled', 'form', 'type', 'accept', 'autofocus', 'required', 'multiple'],\n    multiple: false,\n    change(event) {\n      const input = event.target;\n      if (!(0, _utils.isEmpty)(input.files)) {\n        this.trigger('filesDidChange', input.files);\n      }\n    }\n  });\n});","define(\"portal/components/file-importer\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/basic-importer\", \"@ember/template-factory\"], function (_exports, _component, _object, _basicImporter, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/components/basic-importer\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield}}\n  \n  {{component\n    this.baseParserComponent\n    file=this.importData\n    class='file-input-button__input'\n    accept='.csv,.txt'\n    data-test-bill-input=this.parser.name\n  }}\n  */\n  {\n    \"id\": \"evUW1U+L\",\n    \"block\": \"[[[18,1,null],[1,\\\"\\\\n\\\\n\\\"],[46,[30,0,[\\\"baseParserComponent\\\"]],null,[[\\\"file\\\",\\\"class\\\",\\\"accept\\\",\\\"data-test-bill-input\\\"],[[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\",[30,0,[\\\"parser\\\",\\\"name\\\"]]]],null]],[\\\"&default\\\"],false,[\\\"yield\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/file-importer.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    tagName: 'label',\n    parser: null,\n    baseParser: 'csv',\n    accept: '.csv,.txt,.CSV,.TXT',\n    baseParserComponent: (0, _object.computed)('baseParser', function () {\n      return 'file-inputs/' + (0, _object.get)(this, 'baseParser');\n    }),\n    importObserver: (0, _object.observer)('importData', function () {\n      const importData = (0, _object.get)(this, 'importData');\n      if (importData) {\n        this.send('import', importData);\n      }\n    }),\n    actions: {\n      importing() {\n        (0, _object.set)(this, 'importing', true);\n      }\n    }\n  }));\n});","define(\"portal/components/file-inputs/csv\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"@ember/runloop\", \"ember\", \"portal/components/file-field\"], function (_exports, _utils, _object, _runloop, _ember, _fileField) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"ember\",0,\"portal/components/file-field\"eaimeta@70e063a35619d71f\n  /* global Papa */\n  var _default = _exports.default = _fileField.default.extend({\n    attributeBindings: ['accept'],\n    change(event) {\n      const files = (0, _object.get)(event, 'target.files');\n      if ((0, _utils.isEmpty)(files) || files[0] == null) {\n        (0, _object.set)(this, 'file', null);\n        event.target.value = '';\n        return;\n      }\n      const reader = new FileReader();\n      reader.addEventListener('loadend', () => {\n        const sanitizedText = reader.result.replace(/[\\r\\n]+/g, '\\n');\n        Papa.parse(sanitizedText, {\n          skipEmptyLines: true,\n          newline: '\\n',\n          complete: results => (0, _runloop.run)(() => (0, _object.set)(this, 'file', results))\n        });\n      });\n      reader.readAsText(files[0]);\n      if (!_ember.default.testing) {\n        event.target.value = '';\n      }\n    }\n  });\n});","define(\"portal/components/file-inputs/general\", [\"exports\", \"portal/components/file-field\"], function (_exports, _fileField) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/file-field\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _fileField.default.extend();\n});","define(\"portal/components/file-inputs/text\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"ember\", \"portal/components/file-field\"], function (_exports, _utils, _object, _ember, _fileField) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"ember\",0,\"portal/components/file-field\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _fileField.default.extend({\n    attributeBindings: ['accept'],\n    change(event) {\n      /*\n      TODO There is currently no modules friendly approach to this.\n      Apparently its being worked on but I can't find where.\n      It should be reviseted at a later date.\n      */\n      const files = (0, _object.get)(event, _ember.default.testing ? 'testFiles' : 'target.files');\n      const reader = new FileReader();\n      reader.onload = () => (0, _object.set)(this, 'file', reader.result);\n      if (!(0, _utils.isEmpty)(files)) {\n        reader.readAsText(files[0]);\n      }\n    }\n  });\n});","define(\"portal/components/file-type-icon\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/models/attachment\", \"@ember/template-factory\"], function (_exports, _component, _object, _attachment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/models/attachment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <FaIcon @icon={{this.icon}} @size={{this.defaultSize}} ...attributes />\n  */\n  {\n    \"id\": \"tUVr4JUI\",\n    \"block\": \"[[[8,[39,0],[[17,1]],[[\\\"@icon\\\",\\\"@size\\\"],[[30,0,[\\\"icon\\\"]],[30,0,[\\\"defaultSize\\\"]]]],null]],[\\\"&attrs\\\"],false,[\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/file-type-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('mime'), _class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n    }\n    testMimes(testMimes) {\n      return testMimes.some(tm => (0, _attachment.isMimeSame)(tm, this.mime));\n    }\n    get icon() {\n      // eslint-disable-line complexity\n      const {\n        csv,\n        doc,\n        docx,\n        pdf,\n        ppt,\n        pptx,\n        rtf,\n        xls,\n        xlsx\n      } = _attachment.extensionToMime;\n      const {\n        audio,\n        image,\n        video,\n        text,\n        document,\n        archive\n      } = _attachment.shortcutsToMime;\n      let icon = 'file';\n      if (!this.mime) {\n        icon = 'file';\n      } else if (this.testMimes([csv, xls, xlsx])) {\n        icon = 'file-excel';\n      } else if (this.testMimes([pdf])) {\n        icon = 'file-pdf';\n      } else if (this.testMimes([doc, docx, rtf])) {\n        icon = 'file-word';\n      } else if (this.testMimes([ppt, pptx])) {\n        icon = 'file-powerpoint';\n      } else if (this.testMimes(audio)) {\n        icon = 'file-audio';\n      } else if (this.testMimes(image)) {\n        icon = 'file-image';\n      } else if (this.testMimes(video)) {\n        icon = 'file-video';\n      } else if (this.testMimes(text)) {\n        icon = 'file-text';\n      } else if (this.testMimes(document)) {\n        icon = 'file-text';\n      } else if (this.testMimes(archive)) {\n        icon = 'file-archive';\n      }\n      return icon;\n    }\n    get defaultSize() {\n      return this.size || 'lg';\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"icon\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"icon\"), _class.prototype), _class));\n});","define(\"portal/components/filter-pill\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    role='button'\n    class='px-2 py-1 fw-bold rounded bg-info text-white m-1 fs-7 text-nowrap'\n    ...attributes\n  >\n    {{yield}}&nbsp;&nbsp;<FaIcon @icon='times' @size='sm' />\n  </div>\n  */\n  {\n    \"id\": \"KPKbuQxC\",\n    \"block\": \"[[[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"px-2 py-1 fw-bold rounded bg-info text-white m-1 fs-7 text-nowrap\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"times\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/filter-pill.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/financial-data-importer\", [\"exports\", \"@ember/component\", \"@ember/object/evented\", \"@ember/utils\", \"@ember/object\", \"jquery\", \"@ember/object/computed\", \"@ember/template-factory\"], function (_exports, _component, _evented, _utils, _object, _jquery, _computed, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object/evented\",0,\"@ember/utils\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/object/computed\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless this.hasImported}}\n    <section>\n      {{#if this.selectedSystem}}\n        {{component\n          this.optionsTemplate\n          branch=this.branch\n          organisation=this.organisation\n          periodTo=this.period\n          maps=this.maps\n          hasImported=this.hasImported\n          import=(action 'import')\n          remap=this.remap\n        }}\n  \n        {{#if this.canChangeSystem}}\n          <p class='text-center subtext'>\n            <a {{action 'setSelectedSystemValue' null}} class='link'>\n              Import from another system…</a></p>\n        {{/if}}\n      {{else}}\n        <p>To begin an automatic import, please first select which accounting\n          package you use. If your accounting package is not listed, please\n          contact support.</p>\n        <SelectInput\n          @id='import-system'\n          @value={{this.selectedSystem}}\n          @action={{action 'setSelectedSystemValue'}}\n          @class='select-box'\n          as |si|\n        >\n          <si.option>Please select a package…</si.option>\n          {{#each this.systems as |system|}}\n            <si.option @value={{system.key}}>{{system.label}}</si.option>\n          {{/each}}\n        </SelectInput>\n      {{/if}}\n    </section>\n  \n    {{#if this.hasBackgroundImports}}\n      <section class='map-list-section'>\n        <Mapping::MapList\n          @system={{this.selectedSystem}}\n          @maps={{this.maps}}\n          @importData={{this.importData}}\n          @remap={{action 'remap'}}\n          @invertMap={{action 'invertMap'}}\n        >\n          <p class='ptl-placeholder'>If you had any accounts in eAccounts that\n            needed to be mapped to accounts in the master general ledger, they\n            would be shown here.</p>\n        </Mapping::MapList>\n      </section>\n    {{/if}}\n  \n    <footer class='block-module__footer block-module__footer--centered'>\n      <button\n        class='button button--secondary'\n        type='button'\n        {{action 'advance'}}\n      >Skip</button>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isImporting}}\n      >Save &amp; Continue</LoadingButton>\n    </footer>\n  {{else}}\n    <section>\n      <h3>Unmapped accounts</h3>\n      <p>These are the accounts we found in the file you imported. Click and drag\n        these accounts onto the links (<FaIcon @icon='link' />) column to the left\n        to make connections. Your connections will be saved, so your next import\n        will be much quicker.</p>\n    </section>\n  \n    <section class='map-list-section'>\n      <Mapping::MapList\n        @canInvertValues={{false}}\n        @system={{this.selectedSystem}}\n        @maps={{this.maps}}\n        @remap={{action 'remap'}}\n        @invertMap={{action 'invertMap'}}\n      >\n        <p class='ptl-placeholder'>\n          If you had any accounts in your system that needed to be mapped to\n          accounts in the master general ledger, they would be shown here.\n        </p>\n      </Mapping::MapList>\n    </section>\n  \n    <footer class='block-module__footer block-module__footer--centered'>\n      <p class='subtext'>\n        <a {{action 'resetImport'}} class='link'>\n          {{if\n            this.selectedSystem.multipleFiles\n            'Import an additional file…'\n            'Import a different file…'\n          }}\n        </a>\n      </p>\n      <button\n        class='button button--secondary'\n        type='button'\n        {{action 'advance'}}\n      >Skip</button>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isImporting}}\n      >Save &amp; Continue</LoadingButton>\n    </footer>\n  {{/unless}}\n  */\n  {\n    \"id\": \"2N3VK6EG\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"hasImported\\\"]]],[[[1,\\\"  \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedSystem\\\"]],[[[1,\\\"      \\\"],[46,[30,0,[\\\"optionsTemplate\\\"]],null,[[\\\"branch\\\",\\\"organisation\\\",\\\"periodTo\\\",\\\"maps\\\",\\\"hasImported\\\",\\\"import\\\",\\\"remap\\\"],[[30,0,[\\\"branch\\\"]],[30,0,[\\\"organisation\\\"]],[30,0,[\\\"period\\\"]],[30,0,[\\\"maps\\\"]],[30,0,[\\\"hasImported\\\"]],[28,[37,4],[[30,0],\\\"import\\\"],null],[30,0,[\\\"remap\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canChangeSystem\\\"]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"text-center subtext\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],\\\"setSelectedSystemValue\\\",null],null],[12],[1,\\\"\\\\n            Import from another system…\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"      \\\"],[10,2],[12],[1,\\\"To begin an automatic import, please first select which accounting\\\\n        package you use. If your accounting package is not listed, please\\\\n        contact support.\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@id\\\",\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[\\\"import-system\\\",[30,0,[\\\"selectedSystem\\\"]],[28,[37,4],[[30,0],\\\"setSelectedSystemValue\\\"],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"Please select a package…\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"systems\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"key\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"label\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"      \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasBackgroundImports\\\"]],[[[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"map-list-section\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@system\\\",\\\"@maps\\\",\\\"@importData\\\",\\\"@remap\\\",\\\"@invertMap\\\"],[[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"maps\\\"]],[30,0,[\\\"importData\\\"]],[28,[37,4],[[30,0],\\\"remap\\\"],null],[28,[37,4],[[30,0],\\\"invertMap\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"If you had any accounts in eAccounts that\\\\n          needed to be mapped to accounts in the master general ledger, they\\\\n          would be shown here.\\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer block-module__footer--centered\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Skip\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,4],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isImporting\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save & Continue\\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Unmapped accounts\\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"These are the accounts we found in the file you imported. Click and drag\\\\n      these accounts onto the links (\\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"link\\\"]],null],[1,\\\") column to the left\\\\n      to make connections. Your connections will be saved, so your next import\\\\n      will be much quicker.\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"map-list-section\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@canInvertValues\\\",\\\"@system\\\",\\\"@maps\\\",\\\"@remap\\\",\\\"@invertMap\\\"],[false,[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"maps\\\"]],[28,[37,4],[[30,0],\\\"remap\\\"],null],[28,[37,4],[[30,0],\\\"invertMap\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"\\\\n        If you had any accounts in your system that needed to be mapped to\\\\n        accounts in the master general ledger, they would be shown here.\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer block-module__footer--centered\\\"],[12],[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"subtext\\\"],[12],[1,\\\"\\\\n      \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],\\\"resetImport\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[52,[30,0,[\\\"selectedSystem\\\",\\\"multipleFiles\\\"]],\\\"Import an additional file…\\\",\\\"Import a different file…\\\"]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Skip\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,4],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isImporting\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save & Continue\\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"si\\\",\\\"system\\\"],false,[\\\"unless\\\",\\\"section\\\",\\\"if\\\",\\\"component\\\",\\\"action\\\",\\\"p\\\",\\\"a\\\",\\\"select-input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"mapping/map-list\\\",\\\"footer\\\",\\\"button\\\",\\\"loading-button\\\",\\\"h3\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/financial-data-importer.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'aside',\n    classNames: ['controls'],\n    hasImported: false,\n    hasBackgroundImports: (0, _computed.equal)('selectedSystem', 'eaccounts'),\n    canMap: (0, _computed.or)('hasImported', 'hasBackgroundImports'),\n    setHasImported: (0, _evented.on)('init', function () {\n      (0, _object.set)(this, 'hasImported', (0, _object.get)(this, 'importData.externalBalances.length') > 0);\n    }),\n    // For some reason, notEmpty doesn't work but the observer does\n    // hasSelectedSystem: computed.notEmpty('selectedSystem'),\n    selectedSystemDidChange: (0, _evented.on)('init', (0, _object.observer)('selectedSystem', function () {\n      (0, _object.set)(this, 'hasSelectedSystem', !(0, _utils.isEmpty)((0, _object.get)(this, 'selectedSystem')));\n    })),\n    didInsertElement() {\n      this._super(...arguments);\n      if ((0, _jquery.default)('html').hasClass('ie-11')) {\n        (0, _jquery.default)(this.element).height((0, _jquery.default)(window).height() - 40);\n      }\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n    },\n    optionsTemplate: (0, _object.computed)('selectedSystem.key', function () {\n      var system = (0, _object.get)(this, 'selectedSystem.key');\n      if (system) {\n        return 'gl-importers/' + system;\n      } else {\n        return null;\n      }\n    }),\n    unmapped: (0, _computed.filter)('maps.@each.account', function (map) {\n      return (0, _utils.isEmpty)((0, _object.get)(map, 'account.id'));\n    }),\n    actions: {\n      resetImport() {\n        (0, _object.set)(this, 'hasImported', false);\n      },\n      import() {\n        (0, _object.set)(this, 'hasImported', true);\n        this.import(...arguments);\n      },\n      remap() {\n        this.remap(...arguments);\n      },\n      // Inversions shouldn't bubble form here\n      invertMap() {},\n      // eslint-disable-line no-empty-function\n\n      save() {\n        this.save(...arguments);\n      },\n      advance() {\n        this.advance(...arguments);\n      },\n      setSelectedSystemValue(value) {\n        const matchedSystem = this.systems.find(sys => sys.key === value);\n        this.selectSystem(matchedSystem ? matchedSystem.key : null);\n      }\n    }\n  }));\n});","define(\"portal/components/financial-data-table\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    <tr>\n      <th>Account name</th>\n      <th width='120px'>Amount</th>\n      <th width='35px'><FaIcon @icon='link' /></th>\n    </tr>\n  </thead>\n  <tbody>\n    {{#each this.accountList as |line|}}\n      {{#if line.isHeading}}\n  \n        <tr>\n          <td class='depth-{{line.depth}} heading' colspan='4'>\n            {{line.name}}\n  \n            {{#if line.description}}\n              <span class='float-end'>\n                <InfoPopup @text={{line.description}} />\n              </span>\n            {{/if}}\n          </td>\n        </tr>\n  \n      {{else}}\n  \n        <tr>\n          <td class='depth-{{line.depth}} financial-data-table__account-name'>\n            <a\n              class='link data-table__cell-cover'\n              {{action 'toggleConfigPane' line}}\n            >{{line.name}}</a>\n  \n            {{#if line.description}}\n              <span class='float-end'>\n                <InfoPopup @text={{line.description}} />\n              </span>\n            {{/if}}\n          </td>\n          <td>\n            <FormattedInput\n              @format={{line.format}}\n              @formatterOptions={{hash currencySymbol=''}}\n              @number={{line.balance.value}}\n              @update={{action 'manualUpdate' line}}\n              @class='data-table__cell-cover text-input text-right'\n            />\n          </td>\n          <Mapping::MapStatus\n            @system={{this.selectedSystem}}\n            @account={{line}}\n            @maps={{line.balance.maps}}\n            @isManual={{line.balance.isManual}}\n            @makeAuto={{action 'revertToAuto'}}\n            @toggle={{this.toggleConfigPane}}\n            @remap={{this.remap}}\n          />\n        </tr>\n  \n        <tr data-account-id={{line.id}} class='config-pane closed'>\n          <td colspan='4'>\n            <Mapping::MapList\n              @system={{this.selectedSystem}}\n              @account={{line}}\n              @maps={{line.balance.maps}}\n              @importData={{this.importData.externalBalances}}\n              @remap={{action this.remap}}\n              @invertMap={{action this.invertMap}}\n            />\n          </td>\n        </tr>\n  \n      {{/if}}\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"cNB3z1S7\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Account name\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"120px\\\"],[12],[1,\\\"Amount\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"35px\\\"],[12],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"link\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"accountList\\\"]]],null]],null],null,[[[41,[30,1,[\\\"isHeading\\\"]],[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"depth-\\\",[30,1,[\\\"depth\\\"]],\\\" heading\\\"]]],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@text\\\"],[[30,1,[\\\"description\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"depth-\\\",[30,1,[\\\"depth\\\"]],\\\" financial-data-table__account-name\\\"]]],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link data-table__cell-cover\\\"],[4,[38,12],[[30,0],\\\"toggleConfigPane\\\",[30,1]],null],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@text\\\"],[[30,1,[\\\"description\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@update\\\",\\\"@class\\\"],[[30,1,[\\\"format\\\"]],[28,[37,14],null,[[\\\"currencySymbol\\\"],[\\\"\\\"]]],[30,1,[\\\"balance\\\",\\\"value\\\"]],[28,[37,12],[[30,0],\\\"manualUpdate\\\",[30,1]],null],\\\"data-table__cell-cover text-input text-right\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@system\\\",\\\"@account\\\",\\\"@maps\\\",\\\"@isManual\\\",\\\"@makeAuto\\\",\\\"@toggle\\\",\\\"@remap\\\"],[[30,0,[\\\"selectedSystem\\\"]],[30,1],[30,1,[\\\"balance\\\",\\\"maps\\\"]],[30,1,[\\\"balance\\\",\\\"isManual\\\"]],[28,[37,12],[[30,0],\\\"revertToAuto\\\"],null],[30,0,[\\\"toggleConfigPane\\\"]],[30,0,[\\\"remap\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tr\\\"],[15,\\\"data-account-id\\\",[30,1,[\\\"id\\\"]]],[14,0,\\\"config-pane closed\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@system\\\",\\\"@account\\\",\\\"@maps\\\",\\\"@importData\\\",\\\"@remap\\\",\\\"@invertMap\\\"],[[30,0,[\\\"selectedSystem\\\"]],[30,1],[30,1,[\\\"balance\\\",\\\"maps\\\"]],[30,0,[\\\"importData\\\",\\\"externalBalances\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"remap\\\"]]],null],[28,[37,12],[[30,0],[30,0,[\\\"invertMap\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]]],[1]],null],[13]],[\\\"line\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"fa-icon\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"td\\\",\\\"span\\\",\\\"info-popup\\\",\\\"a\\\",\\\"action\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"mapping/map-status\\\",\\\"mapping/map-list\\\"]]\",\n    \"moduleName\": \"portal/components/financial-data-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    sessionData: (0, _service.inject)(),\n    tagName: 'table',\n    classNames: ['data-table', 'financial-data-table'],\n    actions: {\n      manualUpdate(line, value) {\n        // If an input is changed to blank (as opposed to 0) then it is no longer manual.\n        if (value == null) return this.send('revertToAuto', line);\n        const account = (0, _object.get)(line, 'id');\n        const balance = (0, _object.get)(line, 'balance.manualBalance');\n        if (balance) {\n          (0, _object.set)(balance, 'value', value);\n        } else {\n          (0, _object.set)(line, 'balance.manualBalance', _object.default.create({\n            account,\n            value\n          }));\n        }\n      },\n      revertToAuto(line) {\n        (0, _object.set)(line, 'balance.manualBalance', null);\n      },\n      toggleConfigPane() {\n        this.toggleConfigPane(...arguments);\n      }\n    }\n  }));\n});","define(\"portal/components/financials-table-section\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.accounts as |account|}}\n    <tr class='{{if (or this.doNotPrint (not account.print)) \"do-not-print\"}}'>\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-{{account.depth}}'\n      >\n        {{#if (and this.filterHeaders account.children)}}\n          <a\n            class='financials-table__print-toggle link do-not-print'\n            {{action 'toggleFilter' account}}\n          >\n            <FaIcon @icon={{if account.print 'eye' 'eye-slash'}} />\n          </a>\n        {{/if}}\n  \n        {{#if account.children}}\n          <a\n            class='financials-table__section-expansion-toggle link'\n            {{action 'toggleShowChildren' account}}\n          >\n            <FaIcon\n              @icon={{if account.hideChildren 'angle-right' 'angle-down'}}\n            />{{~! ~}}\n            {{#if\n              (and\n                account.parent\n                (not (eq account.debitCredit this.parent.debitCredit))\n              )\n            }}\n              <span class='debitCredit debitCredit--debit'><InfoPopup\n                  @text={{concat\n                    account.name\n                    ' subtracts from '\n                    this.parent.name\n                  }}\n                  @iconName='minus'\n                /></span>\n            {{/if}}\n            {{account.name}}\n          </a>\n        {{else}}\n          <FaIcon @icon='angle-right' class='invisible' />{{~! ~}}\n          {{! Just to fill the space }}\n          {{#if\n            (and\n              account.parent\n              (not (eq account.debitCredit this.parent.debitCredit))\n            )\n          }}\n            <span class='debitCredit debitCredit--debit'><InfoPopup\n                @text={{concat account.name ' subtracts from ' this.parent.name}}\n                @iconName='minus'\n              /></span>\n          {{/if}}\n          {{account.name}}\n        {{/if}}\n  \n        {{#if account.description}}\n          <span\n            class='financials-table__inspectable-cell__account-description'\n          ><InfoPopup @text={{account.description}} @class='description' /></span>\n        {{/if}}\n      </td>\n  \n      {{! If we can't see all of the children and the total row, show just the totals here instead. }}\n      {{#if account.hideChildren}}\n        {{#each account.data as |value index|}}\n          {{#if this.showMonth}}\n            {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n              <td\n                {{action 'toggleShowBreakdown' account index 'month'}}\n                colspan={{if (and this.showYTD (not account.periodic)) '2' '1'}}\n                class='financials-table__inspectable-cell text-right\n                  {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format\n                  value.month\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n              </td>\n            {{else}}\n              <td\n                colspan={{if (and this.showYTD (not account.periodic)) '2' '1'}}\n                class='text-right\n                  {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format\n                  value.month\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n              </td>\n            {{/if}}\n          {{/if}}\n  \n          {{#if (and this.showYTD account.periodic)}}\n            {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n              <td\n                {{action 'toggleShowBreakdown' account index 'ytd'}}\n                class='financials-table__inspectable-cell text-right\n                  {{if (lt value.ytd 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format value.ytd maximumFractionDigits=0 dashZero=true}}\n              </td>\n            {{else}}\n              <td\n                class='text-right\n                  {{if (lt value.ytd 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format value.ytd maximumFractionDigits=0 dashZero=true}}\n              </td>\n            {{/if}}\n          {{/if}}\n  \n          {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n          {{#if (not (or this.showMonth this.showYTD))}}\n            <td></td>\n          {{/if}}\n        {{/each}}\n      {{else}}\n        <td colspan={{this.columnCount}}></td>\n      {{/if}}\n    </tr>\n  \n    {{#if (and account.children (not account.hideChildren))}}\n      <FinancialsTableSection\n        @canSeeBreakdown={{this.canSeeBreakdown}}\n        @toggleShowChildren={{action 'toggleShowChildren'}}\n        @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n        @accounts={{account.children}}\n        @parent={{account}}\n        @showMonth={{this.showMonth}}\n        @showYTD={{this.showYTD}}\n        @filterHeaders={{this.filterHeaders}}\n        @doNotPrint={{not account.print}}\n        @hasGroups={{this.hasGroups}}\n      />\n  \n      <tr class='data-table__total-row {{unless account.print \"do-not-print\"}}'>\n        <td\n          class='financials-table__indented-cell financials-table__indented-cell--depth-{{account.depth}}'\n        >\n          <FaIcon @icon='angle-right' class='invisible' />\n          {{#if this.hasGroups}}\n            {{!Add a star to the end of the name to denote that it requires explanation}}\n            {{account.name}}*\n          {{else}}\n            Total\n            {{account.name}}\n          {{/if}}\n        </td>\n  \n        {{#each account.data as |value|}}\n          {{#if this.showMonth}}\n            <td\n              colspan={{if (and this.showYTD (not account.periodic)) '2' '1'}}\n              class='text-right\n                {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n            >\n              {{number-format value.month maximumFractionDigits=0 dashZero=true}}\n            </td>\n          {{/if}}\n  \n          {{#if (and this.showYTD account.periodic)}}\n            <td\n              class='text-right\n                {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n            >\n              {{number-format value.ytd maximumFractionDigits=0 dashZero=true}}\n            </td>\n          {{/if}}\n  \n          {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n          {{#if (not (or this.showMonth this.showYTD))}}\n            <td></td>\n          {{/if}}\n        {{/each}}\n      </tr>\n    {{/if}}\n  {{/each}}\n  \n  {{#if this.totalsRow}}\n    <tr class='data-table__total-row {{unless this.totals.print \"do-not-print\"}}'>\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0'\n      >\n        {{#if this.filterHeaders}}\n          <a\n            class='financials-table__print-toggle do-not-print'\n            {{action 'toggleFilter' this.totals}}\n          >\n            <FaIcon @icon={{if this.totals.print 'eye' 'eye-slash'}} />\n          </a>\n        {{/if}}\n        {{this.totalsRow}}\n      </td>\n  \n      {{#each this.totals as |total|}}\n        {{#if (and this.showMonth (not-eq total.month null))}}\n          <td\n            class='text-right\n              {{if (lt total.month 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format total.month maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showYTD (not-eq total.ytd null))}}\n          <td\n            class='text-right\n              {{if (lt total.ytd 0) \"financials-table__negative-value\"}}\n              '\n          >\n            {{number-format total.ytd maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showMonth (not-eq total.continuous null))}}\n          <td\n            class='text-right\n              {{if (lt total.continuous 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format\n              total.continuous\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          </td>\n        {{/if}}\n  \n        {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n        {{#if (not (or this.showMonth this.showYTD))}}\n          <td></td>\n        {{/if}}\n      {{/each}}\n    </tr>\n  {{/if}}\n  */\n  {\n    \"id\": \"NvHaoju2\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"accounts\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[[52,[28,[37,4],[[30,0,[\\\"doNotPrint\\\"]],[28,[37,5],[[30,1,[\\\"print\\\"]]],null]],null],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,1,[\\\"depth\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"filterHeaders\\\"]],[30,1,[\\\"children\\\"]]],null],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle link do-not-print\\\"],[4,[38,9],[[30,0],\\\"toggleFilter\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"print\\\"]],\\\"eye\\\",\\\"eye-slash\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\"]],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__section-expansion-toggle link\\\"],[4,[38,9],[[30,0],\\\"toggleShowChildren\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"hideChildren\\\"]],\\\"angle-right\\\",\\\"angle-down\\\"]]],null],[41,[28,[37,7],[[30,1,[\\\"parent\\\"]],[28,[37,5],[[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,10],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[41,[28,[37,7],[[30,1,[\\\"parent\\\"]],[28,[37,5],[[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"financials-table__inspectable-cell__account-description\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@class\\\"],[[30,1,[\\\"description\\\"]],\\\"description\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"hideChildren\\\"]],[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"showMonth\\\"]],[[[41,[28,[37,7],[[28,[37,15],[[30,3],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"td\\\"],[16,\\\"colspan\\\",[52,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,5],[[30,1,[\\\"periodic\\\"]]],null]],null],\\\"2\\\",\\\"1\\\"]],[16,0,[29,[\\\"financials-table__inspectable-cell text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[4,[38,9],[[30,0],\\\"toggleShowBreakdown\\\",[30,1],[30,3],\\\"month\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,5],[[30,1,[\\\"periodic\\\"]]],null]],null],\\\"2\\\",\\\"1\\\"]],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"periodic\\\"]]],null],[[[41,[28,[37,7],[[28,[37,15],[[30,3],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"td\\\"],[16,0,[29,[\\\"financials-table__inspectable-cell text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[4,[38,9],[[30,0],\\\"toggleShowBreakdown\\\",[30,1],[30,3],\\\"ytd\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2,3]],null]],[]],[[[1,\\\"      \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnCount\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,1,[\\\"children\\\"]],[28,[37,5],[[30,1,[\\\"hideChildren\\\"]]],null]],null],[[[1,\\\"    \\\"],[8,[39,18],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@parent\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@filterHeaders\\\",\\\"@doNotPrint\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,9],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,9],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,1,[\\\"children\\\"]],[30,1],[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]],[30,0,[\\\"filterHeaders\\\"]],[28,[37,5],[[30,1,[\\\"print\\\"]]],null],[30,0,[\\\"hasGroups\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"data-table__total-row \\\",[52,[51,[30,1,[\\\"print\\\"]]],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,1,[\\\"depth\\\"]]]]],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasGroups\\\"]],[[[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"*\\\\n\\\"]],[]],[[[1,\\\"          Total\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"showMonth\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,5],[[30,1,[\\\"periodic\\\"]]],null]],null],\\\"2\\\",\\\"1\\\"]],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,16],[[30,4,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,4,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"periodic\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,16],[[30,4,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,4,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalsRow\\\"]],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"data-table__total-row \\\",[52,[51,[30,0,[\\\"totals\\\",\\\"print\\\"]]],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filterHeaders\\\"]],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle do-not-print\\\"],[4,[38,9],[[30,0],\\\"toggleFilter\\\",[30,0,[\\\"totals\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"totals\\\",\\\"print\\\"]],\\\"eye\\\",\\\"eye-slash\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[1,[30,0,[\\\"totalsRow\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"totals\\\"]]],null]],null],null,[[[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,15],[[30,5,[\\\"month\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,16],[[30,5,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,5,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,15],[[30,5,[\\\"ytd\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,16],[[30,5,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,5,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,15],[[30,5,[\\\"continuous\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,16],[[30,5,[\\\"continuous\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,5,[\\\"continuous\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[5]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"account\\\",\\\"value\\\",\\\"index\\\",\\\"value\\\",\\\"total\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"if\\\",\\\"or\\\",\\\"not\\\",\\\"td\\\",\\\"and\\\",\\\"a\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"eq\\\",\\\"span\\\",\\\"info-popup\\\",\\\"concat\\\",\\\"not-eq\\\",\\\"lt\\\",\\\"number-format\\\",\\\"financials-table-section\\\",\\\"unless\\\"]]\",\n    \"moduleName\": \"portal/components/financials-table-section.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    columnCount: (0, _object.computed)('accounts.0.data.length', 'accounts.@each.data', 'showMonth', 'showYTD', function () {\n      const colsPerGroup = (0, _object.get)(this, 'showMonth') + (0, _object.get)(this, 'showYTD'); // boolean addition\n      return (0, _object.get)(this, 'accounts.0.data.length') * colsPerGroup;\n    }),\n    totals: (0, _object.computed)('accounts.@each.data', 'totalsRow', function () {\n      const accounts = (0, _object.get)(this, 'accounts');\n      const totals = [];\n\n      // If the user doesn't want a totals row, don't bother computing it\n      if (!(0, _object.get)(this, 'totalsRow')) {\n        return;\n      }\n      accounts.forEach(account => {\n        // The sum of the P+L is Cr - Dr. The sum of the BS is Dr - Cr. We need to invert\n        // the values of BS accounts to get the correct totals.\n        const plBs = (0, _object.get)(account, 'category') === 'balance-sheet' ? -1 : 1;\n        (0, _object.get)(account, 'data').forEach((value, i) => {\n          const drCr = (0, _object.get)(account, 'debitCredit') === 'DEBIT' ? -1 : 1;\n          if (!totals[i]) {\n            totals[i] = {\n              month: null,\n              ytd: null,\n              continuous: null\n            };\n          }\n          if ((0, _object.get)(account, 'periodic')) {\n            totals[i].month = totals[i].month || 0;\n            totals[i].month += value.month * drCr * plBs || 0;\n            totals[i].ytd = totals[i].ytd || 0;\n            totals[i].ytd += value.ytd * drCr * plBs || 0;\n          } else {\n            totals[i].continuous = totals[i].continuous || 0;\n            totals[i].continuous += value.month * drCr * plBs || 0;\n          }\n          (0, _object.set)(totals, 'print', true);\n        });\n      });\n      return totals;\n    }),\n    actions: {\n      toggleShowChildren(account) {\n        this.toggleShowChildren(account);\n      },\n      toggleShowBreakdown(...args) {\n        this.toggleShowBreakdown(...args);\n      },\n      toggleFilter(account) {\n        (0, _object.set)(account, 'print', !(0, _object.get)(account, 'print'));\n      }\n    }\n  }));\n});","define(\"portal/components/format-duration-with-unit\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"portal/utils/duration-input\", \"@ember/template-factory\"], function (_exports, _component, _component2, _durationInput, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"portal/utils/duration-input\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <span data-test-format-duration-with-unit>\n    {{this.valueWithUnit}}\n  </span>\n  */\n  {\n    \"id\": \"L4/YhYEz\",\n    \"block\": \"[[[10,1],[14,\\\"data-test-format-duration-with-unit\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"valueWithUnit\\\"]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/format-duration-with-unit.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get value() {\n      return this.args.value || 0;\n    }\n    get valueWithUnit() {\n      var suffix = this.args.suffix || '';\n      var prefix = this.args.prefix || '';\n      return this.value ? `${prefix}${(0, _durationInput.formatDuration)([this.value])}${suffix}` : this.args.emptyPlaceholder;\n    }\n  });\n});","define(\"portal/components/formatted-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/helpers/format-number\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _formatNumber, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/helpers/format-number\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Input\n    @type='text'\n    disabled={{@disabled}}\n    class='{{@class}}\n      formatted-input\n      {{this.formatClassName}}\n      {{if this.doWarnForZero \"formatted-input--zero\"}}\n      {{if this.wasUpdated \"formatted-input--updated\"}}'\n    @value={{this.currencyValue}}\n    {{on 'focusin' this.handleFocusIn}}\n    {{on 'focusout' this.handleFocusOut}}\n    {{on 'input' this.handleInput}}\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"3oTgj74t\",\n    \"block\": \"[[[8,[39,0],[[16,\\\"disabled\\\",[30,1]],[16,0,[29,[[30,2],\\\"\\\\n    formatted-input\\\\n    \\\",[30,0,[\\\"formatClassName\\\"]],\\\"\\\\n    \\\",[52,[30,0,[\\\"doWarnForZero\\\"]],\\\"formatted-input--zero\\\"],\\\"\\\\n    \\\",[52,[30,0,[\\\"wasUpdated\\\"]],\\\"formatted-input--updated\\\"]]]],[17,3],[4,[38,2],[\\\"focusin\\\",[30,0,[\\\"handleFocusIn\\\"]]],null],[4,[38,2],[\\\"focusout\\\",[30,0,[\\\"handleFocusOut\\\"]]],null],[4,[38,2],[\\\"input\\\",[30,0,[\\\"handleInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"currencyValue\\\"]]]],null]],[\\\"@disabled\\\",\\\"@class\\\",\\\"&attrs\\\"],false,[\\\"input\\\",\\\"if\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/formatted-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    get currencyValue() {\n      const {\n        number,\n        formatterOptions\n      } = this.args;\n      if (!this.isUpdating) return this.formatter(number, formatterOptions);\n      return this.value;\n    }\n    set currencyValue(val) {\n      this.value = val;\n      return this.value;\n    }\n    get format() {\n      return this.args.format ?? 'number';\n    }\n    get formatter() {\n      return (value, options) => (0, _formatNumber.formatNumber)([this.format, value], options);\n    }\n    get parser() {\n      return this.args.parser ?? _formatNumber.parseNumber;\n    }\n    get editRawValue() {\n      return ['number', 'currency'].includes(this.format.toLowerCase());\n    }\n    get formatClassName() {\n      return `formatted-input--${this.format.toLowerCase()}`;\n    }\n    get isZero() {\n      return this.args.number === 0;\n    }\n    get doWarnForZero() {\n      return this.args.warnOnZero && this.isZero;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"wasUpdated\", _descriptor, this);\n      _initializerDefineProperty(this, \"value\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isUpdating\", _descriptor3, this);\n      this.displayFormattedValue();\n    }\n    handleInput(event) {\n      this.value = event.target.value;\n    }\n    displayFormattedValue() {\n      const {\n        number,\n        formatterOptions\n      } = this.args;\n      (0, _runloop.next)(() => {\n        if (!this.isDestroying) {\n          this.value = this.formatter(number, formatterOptions);\n        }\n      });\n    }\n    handleFocusIn(event) {\n      this.isUpdating = true;\n      if (this.editRawValue) {\n        this.value = this.args.number;\n      }\n      if (this.editRawValue || this.args.selectOnFocus) {\n        (0, _runloop.next)(() => {\n          const input = event.target;\n          input.select();\n        });\n      }\n    }\n    handleFocusOut() {\n      let value = this.value;\n      if (this.format === 'percentage' && !String(value).includes('%') && !Number.isNaN(Number(value))) {\n        value = value / 100;\n      }\n      const current = this.args.number;\n      const parsed = this.parser(value, this.args.parserOptions);\n      const number = isNaN(parsed) ? this.args.defaultValue : parsed;\n      if (number === current) {\n        this.displayFormattedValue();\n      } else if (typeof this.args.update === 'function') {\n        this.args.update(number);\n      } else {\n        this.value = this.formatter(number, this.args.formatterOptions);\n      }\n      this.wasUpdated = true;\n      this.isUpdating = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"wasUpdated\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isUpdating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayFormattedValue\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"displayFormattedValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocusIn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocusIn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocusOut\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocusOut\"), _class.prototype), _class));\n});","define(\"portal/components/from-elsewhere\", [\"exports\", \"ember-elsewhere/components/from-elsewhere\"], function (_exports, _fromElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _fromElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/components/from-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/gl-importers/api\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>\n    Connected Applications will upload data into the financial portal\n    automatically.\n  </p>\n  */\n  {\n    \"id\": \"vLpGMut9\",\n    \"block\": \"[[[10,2],[12],[1,\\\"\\\\n  Connected Applications will upload data into the financial portal\\\\n  automatically.\\\\n\\\"],[13]],[],false,[\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/api.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // for this stack to work you need to extend ember component, not glimmer\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component.default {});\n});","define(\"portal/components/gl-importers/banklink\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/banklink\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _banklink, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/banklink\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from BankLink, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"1lVlj5wF\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from BankLink, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/banklink.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _banklink.default\n  }));\n});","define(\"portal/components/gl-importers/eaccounts\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>As an eAccounts user, you don’t have to worry about manual imports. All of\n    your data is automatically imported and updated for you each night.</p>\n  */\n  {\n    \"id\": \"UwmlXasn\",\n    \"block\": \"[[[10,2],[12],[1,\\\"As an eAccounts user, you don’t have to worry about manual imports. All of\\\\n  your data is automatically imported and updated for you each night.\\\"],[13]],[],false,[\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/eaccounts.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend());\n});","define(\"portal/components/gl-importers/empower\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/empower\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _empower, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/empower\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Empower, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"CPwRen/R\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Empower, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/empower.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _empower.default\n  }));\n});","define(\"portal/components/gl-importers/frameworks\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/frameworks\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _frameworks, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/frameworks\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Frameworks, please export your data in CSV format and upload\n    it here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"fM9gs4gA\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Frameworks, please export your data in CSV format and upload\\\\n  it here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/frameworks.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _frameworks.default\n  }));\n});","define(\"portal/components/gl-importers/gj-gardner\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/gj-gardner\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _gjGardner, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/gj-gardner\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex align-items-center justify-content-center'>\n    <p>Please select a P+L or Balance Sheet report to import.</p>\n  \n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"guiBvNvF\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Please select a P+L or Balance Sheet report to import.\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/gj-gardner.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _gjGardner.default\n  }));\n});","define(\"portal/components/gl-importers/itm-manual\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/itm-manual\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _itmManual, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/itm-manual\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from ITM Manual, please export your data in CSV format and upload\n    it here.</p>\n  \n  <div class='text-center d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >\n      Import\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"KxvsQhU/\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from ITM Manual, please export your data in CSV format and upload\\\\n  it here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"text-center d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"\\\\n    Import\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/itm-manual.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _itmManual.default\n  }));\n});","define(\"portal/components/gl-importers/maxim\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/maxim\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _maxim, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/maxim\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Maxim, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"lT+Bc8Hw\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Maxim, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/maxim.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _maxim.default\n  }));\n});","define(\"portal/components/gl-importers/myob-ao\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/myob-ao\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _myobAo, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/myob-ao\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from MYOB AO, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"0ZnVvfW0\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from MYOB AO, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/myob-ao.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _myobAo.default\n  }));\n});","define(\"portal/components/gl-importers/myob\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/myob\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _myob, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/myob\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from MYOB, please export a General Ledger Summary in CSV format and\n    upload it here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"vm2q6+03\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from MYOB, please export a General Ledger Summary in CSV format and\\\\n  upload it here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/myob.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _myob.default\n  }));\n});","define(\"portal/components/gl-importers/prostix\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/prostix\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _prostix, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/prostix\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from ProStix, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"ZeSSC3yf\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from ProStix, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/prostix.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _prostix.default\n  }));\n});","define(\"portal/components/gl-importers/rees\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/service\", \"@ember/object\", \"portal/utils/gl-import-parsers/rees\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _service, _object, _rees, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/utils/gl-import-parsers/rees\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Rees, please export a Statement of Financial Position (report\n    7.11.6) in CSV or text format and upload it here.</p>\n  <p>If your report includes data relating to multiple businesses, you will be\n    able to filter it down to just the codes that you need after importing.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Text\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add button--spaced'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"IwWbsLeq\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Rees, please export a Statement of Financial Position (report\\\\n  7.11.6) in CSV or text format and upload it here.\\\"],[13],[1,\\\"\\\\n\\\"],[10,2],[12],[1,\\\"If your report includes data relating to multiple businesses, you will be\\\\n  able to filter it down to just the codes that you need after importing.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add button--spaced\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/text\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/rees.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    notifications: (0, _service.inject)(),\n    hasSelectedFile: (0, _computed.notEmpty)('importData'),\n    hasNotSelectedFile: (0, _computed.not)('hasSelectedFile'),\n    hasImported: false,\n    actions: {\n      import(importData) {\n        const oldError = (0, _object.get)(this, 'error');\n        if (oldError) {\n          (0, _object.get)(this, 'notifications').clear(oldError);\n        }\n\n        // Parse the response\n        const report = (0, _rees.default)(importData);\n        if ((0, _object.get)(report, 'errors.length')) {\n          this.send('parsingError', report);\n          return;\n        }\n\n        // All is well, import\n        this.import(report);\n        (0, _object.set)(this, 'hasImported', true);\n        const $fileInput = (0, _jquery.default)(this.element).find('input[type=file]');\n        const $fileInputClone = $fileInput.val('').clone(true);\n        $fileInput.replaceWith($fileInputClone);\n        (0, _object.set)(this, 'importData', null);\n      },\n      parsingError: function () {\n        const error = (0, _object.get)(this, 'notifications').error(\"The file you selected didn't have the structure we were expecting. Please check the guides and try again.\");\n        (0, _object.set)(this, 'error', error);\n      }\n    }\n  }));\n});","define(\"portal/components/gl-importers/xero-api\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/component\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.xeroIntegration.ready}}\n    <p>\n      Xero balance data is automatically brought in regularly. You can also choose\n      to bring it in yourself by clicking the import button.\n    </p>\n    <button\n      type='button'\n      class='btn btn-primary'\n      disabled={{this.getXeroBalances.isRunning}}\n      {{on 'click' (perform this.getXeroBalances)}}\n    >\n      {{#if this.getXeroBalances.isRunning}}\n        Importing&hellip;\n      {{else}}\n        Import balances from Xero\n      {{/if}}\n    </button>\n  {{else}}\n    To import balances using Xero, first\n    <LinkTo @route='entity.settings.integrations'>connect your Xero account</LinkTo>.\n  {{/if}}\n  */\n  {\n    \"id\": \"NNOxMJSz\",\n    \"block\": \"[[[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"\\\\n    Xero balance data is automatically brought in regularly. You can also choose\\\\n    to bring it in yourself by clicking the import button.\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"getXeroBalances\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"getXeroBalances\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"getXeroBalances\\\",\\\"isRunning\\\"]],[[[1,\\\"      Importing…\\\\n\\\"]],[]],[[[1,\\\"      Import balances from Xero\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  To import balances using Xero, first\\\\n  \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.settings.integrations\\\"]],[[\\\"default\\\"],[[[[1,\\\"connect your Xero account\\\"]],[]]]]],[1,\\\".\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"p\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/xero-api.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // for this stack to work you need to extend ember component, not glimmer\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      _initializerDefineProperty(this, \"financialPortalPeriodSelector\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getXeroBalances\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.getXeroBalances({\n              entityId: this.sessionData.entity.id,\n              period: this.financialPortalPeriodSelector.period\n            });\n            yield Promise.all([this.store.simpleQuery('account-map', {\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('import', {\n              entity: this.sessionData.entity.id,\n              date: this.financialPortalPeriodSelector.date.toISOString()\n            })]);\n\n            // don't ever do this again\n            (0, _object.set)(this, 'hasImported', true);\n            (0, _object.set)(this, 'importData', null);\n            this.notifications.success('Imported balances from Xero');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong getting balances'\n            });\n          }\n        }\n      }), null, \"getXeroBalances\", null));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"financialPortalPeriodSelector\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/gl-importers/xero-csv\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/xero-csv\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _xeroCsv, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/xero-csv\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Xero, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"x1T2zC+l\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Xero, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/xero-csv.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _xeroCsv.default\n  }));\n});","define(\"portal/components/google-map\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='google-map' ...attributes>\n    {{#if (has-block)}}\n      <div\n        class='google-map__control google-map__control--pending'\n        {{did-insert this.registerControl 'TOP_LEFT'}}\n      >\n        {{yield}}\n      </div>\n    {{/if}}\n  \n    <div\n      class='google-map-container'\n      style='width: 100%; height: 400px;'\n      {{did-insert this.setupMap}}\n      {{did-update this.updateMap @lat @lng @radius}}\n    >\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"Hc1fI6li\",\n    \"block\": \"[[[11,0],[24,0,\\\"google-map\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,5]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"google-map__control google-map__control--pending\\\"],[4,[38,3],[[30,0,[\\\"registerControl\\\"]],\\\"TOP_LEFT\\\"],null],[12],[1,\\\"\\\\n      \\\"],[18,5,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"google-map-container\\\"],[24,5,\\\"width: 100%; height: 400px;\\\"],[4,[38,3],[[30,0,[\\\"setupMap\\\"]]],null],[4,[38,5],[[30,0,[\\\"updateMap\\\"]],[30,2],[30,3],[30,4]],null],[12],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@lat\\\",\\\"@lng\\\",\\\"@radius\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"has-block\\\",\\\"did-insert\\\",\\\"yield\\\",\\\"did-update\\\"]]\",\n    \"moduleName\": \"portal/components/google-map.hbs\",\n    \"isStrictMode\": false\n  });\n  /* global google */\n  let GoogleMapComponent = _exports.default = (_class = class GoogleMapComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"map\", null);\n      _defineProperty(this, \"marker\", null);\n      _defineProperty(this, \"circle\", null);\n      _defineProperty(this, \"mapListeners\", []);\n      _defineProperty(this, \"isProgrammaticUpdate\", false);\n      _defineProperty(this, \"pendingControls\", []);\n      _defineProperty(this, \"controlObservers\", []);\n    }\n    registerControl(element, position) {\n      this.pendingControls.push({\n        element,\n        position\n      });\n      this.attachControls();\n    }\n    attachControls() {\n      if (!this.map || !this.pendingControls.length) return;\n      const pending = this.pendingControls;\n      this.pendingControls = [];\n      pending.forEach(({\n        element,\n        position\n      }) => {\n        const wrapper = element.parentElement;\n        this.map.controls[google.maps.ControlPosition[position]].push(element);\n        const observer = new MutationObserver(() => {\n          if (element.parentElement === wrapper) return;\n          element.classList.remove('google-map__control--pending');\n          observer.disconnect();\n        });\n        observer.observe(wrapper, {\n          childList: true\n        });\n        this.controlObservers.push(observer);\n      });\n    }\n    disconnectControlObservers() {\n      this.controlObservers.forEach(observer => observer.disconnect());\n      this.controlObservers = [];\n    }\n    setupMap(element) {\n      if (typeof google === 'undefined') return;\n      const lat = this.args.lat ?? 0;\n      const lng = this.args.lng ?? 0;\n      const radius = this.args.radius ?? 0;\n      const minRadius = this.args.minRadius ?? 100;\n      const maxRadius = this.args.maxRadius ?? 250;\n      const hasLocation = this.args.lat != null && this.args.lng != null;\n      const position = {\n        lat,\n        lng\n      };\n      this.map = new google.maps.Map(element, {\n        center: position,\n        zoom: hasLocation ? 18 : 2,\n        clickableIcons: false,\n        mapTypeId: google.maps.MapTypeId.HYBRID,\n        mapId: _environment.default.googleMaps?.mapId,\n        mapTypeControl: true,\n        // the search control owns the top left corner\n        mapTypeControlOptions: {\n          position: google.maps.ControlPosition.TOP_RIGHT\n        }\n      });\n      this.attachControls();\n      const clickListener = this.map.addListener('click', event => {\n        this.handleMapClick(event);\n      });\n      this.mapListeners.push(clickListener);\n      this.marker = new google.maps.marker.AdvancedMarkerElement({\n        position: position,\n        map: hasLocation ? this.map : null\n      });\n      this.circle = new google.maps.Circle({\n        strokeColor: '#FF0000',\n        strokeOpacity: 0.8,\n        strokeWeight: 2,\n        fillColor: '#FF0000',\n        fillOpacity: 0.35,\n        map: hasLocation && radius > 0 ? this.map : null,\n        center: position,\n        radius: radius,\n        clickable: false,\n        editable: true\n      });\n\n      // radius listener\n      const radiusListener = this.circle.addListener('radius_changed', () => {\n        if (this.isProgrammaticUpdate) return;\n        let newRadius = Math.round(this.circle.getRadius()); // round to int\n        let isClamped = false;\n        if (newRadius < minRadius) {\n          newRadius = minRadius;\n          isClamped = true;\n        } else if (newRadius > maxRadius) {\n          newRadius = maxRadius;\n          isClamped = true;\n        }\n        if (isClamped) {\n          this.isProgrammaticUpdate = true;\n          this.circle.setRadius(newRadius);\n          this.isProgrammaticUpdate = false;\n        }\n        if (this.args.onRadiusChange) {\n          this.args.onRadiusChange(newRadius);\n        }\n      });\n      this.mapListeners.push(radiusListener);\n\n      // center listener\n      const centerListener = this.circle.addListener('center_changed', () => {\n        if (this.isProgrammaticUpdate) return;\n        const newCenter = this.circle.getCenter();\n        if (this.args.onClick) {\n          this.args.onClick(newCenter.lat(), newCenter.lng());\n        }\n      });\n      this.mapListeners.push(centerListener);\n    }\n    handleMapClick(event) {\n      const newLat = event.latLng.lat();\n      const newLng = event.latLng.lng();\n      if (this.args.onClick) {\n        this.args.onClick(newLat, newLng);\n      }\n    }\n    updateMap() {\n      if (!this.map) return;\n      const hasLocation = this.args.lat != null && this.args.lng != null;\n      const lat = this.args.lat ?? 0;\n      const lng = this.args.lng ?? 0;\n      const radius = this.args.radius ?? 0;\n      const position = {\n        lat,\n        lng\n      };\n      if (hasLocation) {\n        // 1. move map view\n        this.map.panTo(position);\n\n        // 2. move marker\n        this.marker.position = position;\n        this.marker.map = this.map;\n\n        // 3. update circle center\n        const currentCenter = this.circle.getCenter();\n        const latDiff = Math.abs(currentCenter.lat() - lat);\n        const lngDiff = Math.abs(currentCenter.lng() - lng);\n        if (latDiff > 0.000001 || lngDiff > 0.000001) {\n          this.isProgrammaticUpdate = true;\n          this.circle.setCenter(position);\n          this.isProgrammaticUpdate = false;\n        }\n\n        // 4. update circle radius\n        const currentMapRadius = this.circle.getRadius();\n        if (Math.abs(currentMapRadius - radius) > 0.1) {\n          this.circle.setRadius(radius);\n        }\n\n        // 5. visibility and dynamic zoom\n        if (radius > 0) {\n          this.circle.setMap(this.map);\n          this.fitMapToCircle(); // dynamic zoom adjustment //\n        } else {\n          this.circle.setMap(null);\n          this.map.setZoom(18); // fallback zoom if no radius //\n        }\n      } else {\n        this.marker.map = null;\n        this.circle.setMap(null);\n      }\n    }\n    fitMapToCircle() {\n      if (!this.map || !this.circle || !this.circle.getMap()) return;\n      const bounds = this.circle.getBounds();\n      if (bounds) {\n        this.map.fitBounds(bounds);\n      }\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.disconnectControlObservers();\n      this.mapListeners.forEach(listener => {\n        google.maps.event.removeListener(listener);\n      });\n      this.mapListeners = [];\n      if (this.map) {\n        this.marker.map = null;\n        this.circle.setMap(null);\n        this.map = null;\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"registerControl\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerControl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupMap\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateMap\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, GoogleMapComponent);\n});","define(\"portal/components/grouping-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getAxes = getAxes;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield this.gs}}\n  */\n  {\n    \"id\": \"Ktb51HvO\",\n    \"block\": \"[[[18,1,[[30,0,[\\\"gs\\\"]]]]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/grouping-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  class GroupingSelectorComponent extends _component2.default {\n    get gs() {\n      return {\n        axes: getAxes(this.args.groups ?? [], this.args.value ?? [], this.args.onChange)\n      };\n    }\n  }\n\n  /**\n   * @param {{ key: string }[]} groups All properties will be passed through\n   * @param {string[]} value To match groups[].key\n   * @param {(newValue: string[]) => void} onChange To match groups[].key\n   * @returns {\n   *   value: null | string,\n   *   update: (depth: number) => void,\n   *   options: { key: string, isSelected: boolean }[]\n   * }\n   */\n  _exports.default = GroupingSelectorComponent;\n  function getAxes(groups, value, onChange) {\n    const axes = [];\n    const noneOption = {\n      key: '__none__',\n      name: 'None'\n    };\n    const update = level => updatedValue => {\n      if (!onChange || value[level] === updatedValue) return;\n      onChange([...value.slice(0, level), ...(updatedValue === '__none__' ? [] : [updatedValue])]);\n    };\n    const getOptions = (remainingGroups, key) => [noneOption, ...groups].map(opt => ({\n      ...opt,\n      isSelected: opt.key === key\n    }));\n    let depth = 0;\n    do {\n      if (!value[depth]) {\n        axes.push({\n          value: null,\n          update: update(depth),\n          options: getOptions(groups, null)\n        });\n        groups = [];\n      } else {\n        const key = value[depth];\n        axes.push({\n          value: key,\n          update: update(depth),\n          options: getOptions(groups, key)\n        });\n        groups = groups.filter(g => g.key !== key);\n      }\n      depth++;\n    } while (groups.length > 0);\n    return axes;\n  }\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, GroupingSelectorComponent);\n});","define(\"portal/components/groups-redacted-notice\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='notification-message'>\n    <div class='notification-message__icon'>\n      <FaIcon @icon='info' />\n    </div>\n  \n    <div class='notification-message__content'>\n      Group data has not yet been released for this period\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"g06We6pA\",\n    \"block\": \"[[[10,0],[14,0,\\\"notification-message\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@icon\\\"],[\\\"info\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__content\\\"],[12],[1,\\\"\\\\n    Group data has not yet been released for this period\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/groups-redacted-notice.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/icon-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div role='button' class='icon-button {{this.sizeClass}}' ...attributes>\n    <FaIcon @icon={{@icon}} />\n  </div>\n  */\n  {\n    \"id\": \"qCMknlbF\",\n    \"block\": \"[[[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"icon-button \\\",[30,0,[\\\"sizeClass\\\"]]]]],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@icon\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@icon\\\"],false,[\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/icon-button.hbs\",\n    \"isStrictMode\": false\n  });\n  class IconButtonComponent extends _component2.default {\n    get sizeClass() {\n      const validSizes = ['xs', 'sm', 'md', 'lg', 'xl', '2xl'];\n      if (this.args.size && validSizes.includes(this.args.size)) {\n        return `icon-button--${this.args.size}`;\n      }\n      return 'icon-button--md';\n    }\n  }\n  _exports.default = IconButtonComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, IconButtonComponent);\n});","define(\"portal/components/indeterminate-checkbox\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Input\n    @type='checkbox'\n    class='form-check-input {{@class}}'\n    @checked={{@checked}}\n    ...attributes\n    {{on 'click' this.onClick}}\n    {{did-update this.onChangeIndeterminate @indeterminate}}\n    {{did-insert this.onChangeIndeterminate}}\n  />\n  */\n  {\n    \"id\": \"1rJ5toB/\",\n    \"block\": \"[[[8,[39,0],[[16,0,[29,[\\\"form-check-input \\\",[30,1]]]],[17,2],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onClick\\\"]]],null],[4,[38,2],[[30,0,[\\\"onChangeIndeterminate\\\"]],[30,4]],null],[4,[38,3],[[30,0,[\\\"onChangeIndeterminate\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3]]],null]],[\\\"@class\\\",\\\"&attrs\\\",\\\"@checked\\\",\\\"@indeterminate\\\"],false,[\\\"input\\\",\\\"on\\\",\\\"did-update\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"portal/components/indeterminate-checkbox.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    onChangeIndeterminate(element) {\n      element.indeterminate = this.args.indeterminate;\n    }\n    onClick(event) {\n      if (this.args.onChange) this.args.onChange(event);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onChangeIndeterminate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeIndeterminate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _class));\n});","define(\"portal/components/infinity-scroll\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield this.didInsert}}\n  */\n  {\n    \"id\": \"+pD1FRch\",\n    \"block\": \"[[[18,1,[[30,0,[\\\"didInsert\\\"]]]]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/infinity-scroll.hbs\",\n    \"isStrictMode\": false\n  });\n  const DEFAULT_BUFFER = 35;\n  function findFirstScrollableParent(el) {\n    let parent = el;\n    while (parent) {\n      // this handles all scroll styles i.e scroll: auto, scroll-y: auto\n      const overflowY = window.getComputedStyle(parent).getPropertyValue('overflow-y');\n      const hasScrollStyle = overflowY === 'auto' || overflowY === 'scroll';\n      if (hasScrollStyle) return parent;\n      parent = parent.parentElement;\n    }\n    return undefined;\n  }\n  function isNearScrollBottom(el, buffer = DEFAULT_BUFFER) {\n    if (el.scrollTop + el.clientHeight >= el.scrollHeight - buffer) {\n      return true;\n    }\n    return false;\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"scrollableParent\", void 0);\n      _defineProperty(this, \"onScrollEventListener\", void 0);\n      _defineProperty(this, \"lastTriggerPosition\", 0);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      if (this.onScrollEventListener) {\n        this.scrollableParent.removeEventListener('scroll', this.onScrollEventListener);\n      }\n    }\n    onScroll(element) {\n      return () => {\n        if (!isNearScrollBottom(element, this.args.buffer)) return;\n        const currentPosition = element.scrollTop + element.clientHeight;\n        const positionDiff = Math.abs(this.lastTriggerPosition - currentPosition);\n\n        // if we are within the margin of the last trigger, don't trigger again\n        if (positionDiff <= (this.args.buffer || DEFAULT_BUFFER)) return;\n        this.args.onLoadMore();\n        this.lastTriggerPosition = currentPosition;\n      };\n    }\n    didInsert(element) {\n      const scrollableParent = findFirstScrollableParent(element);\n      if (!scrollableParent) return;\n      this.scrollableParent = scrollableParent;\n      this.maybeLoadOnInsert();\n      this.onScrollEventListener = this.onScroll(scrollableParent).bind(this);\n      scrollableParent.addEventListener('scroll', this.onScrollEventListener);\n    }\n    async maybeLoadOnInsert() {\n      if (!this.scrollableParent) return;\n\n      // record initial scroll height\n      let prevHeight = this.scrollableParent.scrollHeight;\n      let max = 10;\n      let i = 0;\n      while (max > i) {\n        i++;\n        // if content overflows container, stop loading\n        if (prevHeight > this.scrollableParent.clientHeight) break;\n        // load more items\n        try {\n          await this.args.onLoadMore();\n        } catch (_) {\n          // I don't mind if it drops\n        }\n        // wait for next frame\n        await new Promise(resolve => requestAnimationFrame(resolve));\n        // get updated scroll height\n        const newHeight = this.scrollableParent.scrollHeight;\n        // if no new items loaded, stop\n        if (newHeight === prevHeight) break;\n        // update for next iteration\n        prevHeight = newHeight;\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class));\n});","define(\"portal/components/info-popup\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='info-popup' ...attributes>\n    <FaIcon\n      @icon={{or @iconName 'info-circle'}}\n      @prefix={{or @iconPrefix 'fas'}}\n      class='info-popup__icon'\n    />\n  \n    <div\n      class='info-popup__text\n        {{if\n          (eq @align \"right\")\n          \"info-popup__text--right\"\n          \"info-popup__text--left\"\n        }}'\n    >\n      {{html-safe @text}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"BLYXQAm/\",\n    \"block\": \"[[[11,0],[24,0,\\\"info-popup\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"info-popup__icon\\\"]],[[\\\"@icon\\\",\\\"@prefix\\\"],[[28,[37,2],[[30,2],\\\"info-circle\\\"],null],[28,[37,2],[[30,3],\\\"fas\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[15,0,[29,[\\\"info-popup__text\\\\n      \\\",[52,[28,[37,4],[[30,4],\\\"right\\\"],null],\\\"info-popup__text--right\\\",\\\"info-popup__text--left\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],[[30,5]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@iconName\\\",\\\"@iconPrefix\\\",\\\"@align\\\",\\\"@text\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"if\\\",\\\"eq\\\",\\\"html-safe\\\"]]\",\n    \"moduleName\": \"portal/components/info-popup.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/info-wrapper\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='info-wrapper'>\n    {{yield}}\n  \n    <div class='info-wrapper__text'>\n      {{this.text}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"fUfg2oz4\",\n    \"block\": \"[[[10,0],[14,0,\\\"info-wrapper\\\"],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"info-wrapper__text\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"text\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/info-wrapper.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: ''\n  }));\n});","define(\"portal/components/integration-icon\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.icon}}\n    {{#if (eq this.icon 'cloud-sync')}}\n      <FaIcon\n        @icon='cloud'\n        @title={{this.title}}\n        class='integration-icon__cloud-sync-cloud'\n      />\n      <FaIcon\n        @icon='sync-alt'\n        @title={{this.title}}\n        class='integration-icon__cloud-sync-refresh'\n      />\n    {{else}}\n      <FaIcon @icon={{this.icon}} @title={{this.title}} />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"bVIQ3dt7\",\n    \"block\": \"[[[41,[30,0,[\\\"icon\\\"]],[[[41,[28,[37,1],[[30,0,[\\\"icon\\\"]],\\\"cloud-sync\\\"],null],[[[1,\\\"    \\\"],[8,[39,2],[[24,0,\\\"integration-icon__cloud-sync-cloud\\\"]],[[\\\"@icon\\\",\\\"@title\\\"],[\\\"cloud\\\",[30,0,[\\\"title\\\"]]]],null],[1,\\\"\\\\n    \\\"],[8,[39,2],[[24,0,\\\"integration-icon__cloud-sync-refresh\\\"]],[[\\\"@icon\\\",\\\"@title\\\"],[\\\"sync-alt\\\",[30,0,[\\\"title\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@icon\\\",\\\"@title\\\"],[[30,0,[\\\"icon\\\"]],[30,0,[\\\"title\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[],false,[\\\"if\\\",\\\"eq\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/integration-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['integration-icon'],\n    classNameBindings: ['small:integration-icon--small'],\n    icon: (0, _object.computed)('synced', 'exported', 'imported', 'autoMapped', function () {\n      const synced = (0, _object.get)(this, 'synced');\n      const exported = (0, _object.get)(this, 'exported');\n      const imported = (0, _object.get)(this, 'imported');\n      const autoMapped = (0, _object.get)(this, 'autoMapped');\n      if (autoMapped) return 'magic';\n      if (synced || exported && imported) {\n        return 'cloud-sync';\n      } else if (exported) {\n        return 'cloud-upload-alt';\n      } else if (imported) {\n        return 'cloud-download-alt';\n      } else {\n        return false;\n      }\n    })\n  }));\n});","define(\"portal/components/invoice-item-editor-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"moment\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/array\", \"@ember/runloop\", \"portal/helpers/round-number\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _moment, _object, _tracking, _service, _array, _runloop, _roundNumber, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _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        (false && !(!isNaN(this.initialNumberOfItemsVisible)) && (0, _debug.assert)('Must provide number to `initialNumberOfItemsVisible`', !isNaN(this.initialNumberOfItemsVisible)));\n        if (typeof this.initialNumberOfItemsVisible === 'string') this.set('numberOfItemsVisible', Number(this.initialNumberOfItemsVisible));\n      }\n\n      // Generate a identifier so we can find our elements (our component is tagless)\n      (0, _object.set)(this, 'elementIdentifier', 'lazy-each__' + Math.floor(Math.random() * 1e5));\n    },\n    didReceiveAttrs() {\n      this._super(...arguments);\n      (false && !(!isNaN(this.increment)) && (0, _debug.assert)('Must provide number to `increment`', !isNaN(this.increment)));\n      if (typeof this.increment === 'string') this.set('increment', Number(this.increment));\n\n      // If the items array changes update the component\n      if (this.items) {\n        // The items have changed so we need to check our position again\n        if (this.automatic) (0, _runloop.next)(() => this.checkVisible());\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.automatic) {\n        const scrollableParent = findFirstScrollableParent(this.elementIdentifier, this.windowSelector);\n        this.findLastElement(true);\n        (0, _object.set)(this, 'scrollHandler', this.checkVisible.bind(this));\n        scrollableParent.addEventListener('scroll', this.scrollHandler);\n      }\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      if (this.automatic) {\n        const scrollableParent = findFirstScrollableParent(this.elementIdentifier, this.windowSelector);\n        scrollableParent.removeEventListener('scroll', this.scrollHandler);\n        (0, _object.set)(this, 'scrollHandler', null);\n      }\n    },\n    allItemsAreDisplayed: (0, _object.computed)('items.[]', 'numberOfItemsVisible', function () {\n      return this.items.length <= this.numberOfItemsVisible;\n    }),\n    nextIncrement: (0, _object.computed)('items.[]', 'increment', 'numberOfItemsVisible', function () {\n      const itemsRemaining = this.items.length - this.numberOfItemsVisible;\n\n      // Don't increment past the length of the items array\n      return this.increment > itemsRemaining ? itemsRemaining : this.increment;\n    }),\n    lazyLoadedItems: (0, _object.computed)('items.[]', 'numberOfItemsVisible', function () {\n      return this.items.slice(0, this.numberOfItemsVisible);\n    }),\n    actions: {\n      renderMore() {\n        (0, _object.set)(this, 'numberOfItemsVisible', this.numberOfItemsVisible + this.nextIncrement);\n      }\n    },\n    findLastElement: function (shouldWarn) {\n      if (this.allItemsAreDisplayed) return;\n      const element = Array.from(document.querySelectorAll(`.${this.elementIdentifier}`)).pop();\n      (false && (0, _debug.warn)('No elements with identifier class found. Please use the second contextual variable from the loop as a class name in the last element of each iteration', !shouldWarn || element, {\n        id: 'lazy-each.no-identifier-class-found'\n      }));\n      return element;\n    },\n    checkVisible: function () {\n      if (this.allItemsAreDisplayed) return;\n      const element = this.findLastElement();\n      if (!element) return;\n      const scrollableParent = findFirstScrollableParent(this.elementIdentifier, this.windowSelector);\n      const placeholderHeight = 40;\n      const screenHeight = scrollableParent.clientHeight;\n      const topOfElement = element.offsetTop;\n      const bottomOfElement = topOfElement + element.offsetHeight;\n      const topOfScreen = scrollableParent.scrollTop;\n      const bottomOfScreen = topOfScreen + screenHeight;\n      const renderAhead = screenHeight;\n\n      // If the bottom of the screen (plus margins) is larger than the bottom of the element\n      if (bottomOfScreen + placeholderHeight + renderAhead > bottomOfElement) {\n        this.send('renderMore');\n        // Check again if we have rendered enough elements for our scroll position\n        (0, _runloop.next)(() => this.checkVisible());\n      }\n    }\n  }));\n});","define(\"portal/components/link-to-external\", [\"exports\", \"ember-engines/components/link-to-external\"], function (_exports, _linkToExternal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _linkToExternal.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-engines/components/link-to-external\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/loading-button\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"portal/components/loading-button\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _loadingButton, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"portal/components/loading-button\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isLoading}}\n    <FaIcon @icon='circle-notch' @spin='true' />\n  {{else}}\n    {{#if (has-block)}}\n      {{yield}}\n    {{else}}\n      {{@buttonText}}\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"+9hid45e\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",\\\"true\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[48,[30,3]],[[[1,\\\"    \\\"],[18,3,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"@isLoading\\\",\\\"@buttonText\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"fa-icon\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/loading-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _loadingButton.default,\n    tagName: 'button',\n    classNames: ['loading-button'],\n    classNameBindings: ['isLoading:loading'],\n    attributeBindings: ['isDisabledComputed:disabled'],\n    buttonText: 'Submit',\n    isLoading: false,\n    isDisabled: false,\n    isDisabledComputed: (0, _computed.or)('isLoading', 'isDisabled'),\n    click(event) {\n      event.preventDefault();\n      if (!this.isLoading) {\n        // Maintain current width\n        var el = (0, _jquery.default)(this.element)[0];\n        el.style.minWidth = getComputedStyle(el).width;\n        el.style.minHeight = getComputedStyle(el).height;\n        if (this.action) {\n          this.action();\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/loading-icon\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='loading-icon\n      {{if @type (concat \"loading-icon--\" @type)}}\n      {{if @class @class}}'\n  >\n    {{#if (eq @type 'ripple')}}\n      <svg\n        xmlns='http://www.w3.org/2000/svg'\n        viewBox='0 0 100 100'\n        preserveAspectRatio='xMidYMid'\n        class='uil-ripple'\n      >\n        <circle\n          cx='50'\n          cy='50'\n          r='0'\n          stroke='#8ca7c3'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n        <circle\n          cx='50'\n          cy='50'\n          r='14.7'\n          stroke='#eee'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n        <circle\n          cx='50'\n          cy='50'\n          r='29.3'\n          stroke='#8ca7c3'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n        <circle\n          cx='50'\n          cy='50'\n          r='44'\n          stroke='#eee'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n      </svg>\n    {{/if}}\n  \n    {{#if (eq @type 'spinner')}}\n      <svg\n        xmlns='http://www.w3.org/2000/svg'\n        viewBox='0 0 100 100'\n        preserveAspectRatio='xMidYMid'\n        class='uil-ring'\n      >\n        <circle cx='50' cy='50' r='40'></circle>\n      </svg>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"/GcN80Vs\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"loading-icon\\\\n    \\\",[52,[30,1],[28,[37,2],[\\\"loading-icon--\\\",[30,1]],null]],\\\"\\\\n    \\\",[52,[30,2],[30,2]]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1],\\\"ripple\\\"],null],[[[1,\\\"    \\\"],[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"viewBox\\\",\\\"0 0 100 100\\\"],[14,\\\"preserveAspectRatio\\\",\\\"xMidYMid\\\"],[14,0,\\\"uil-ripple\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"0\\\"],[14,\\\"stroke\\\",\\\"#8ca7c3\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"14.7\\\"],[14,\\\"stroke\\\",\\\"#eee\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"29.3\\\"],[14,\\\"stroke\\\",\\\"#8ca7c3\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"44\\\"],[14,\\\"stroke\\\",\\\"#eee\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1],\\\"spinner\\\"],null],[[[1,\\\"    \\\"],[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"viewBox\\\",\\\"0 0 100 100\\\"],[14,\\\"preserveAspectRatio\\\",\\\"xMidYMid\\\"],[14,0,\\\"uil-ring\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"40\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@type\\\",\\\"@class\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"concat\\\",\\\"eq\\\",\\\"svg\\\",\\\"circle\\\"]]\",\n    \"moduleName\": \"portal/components/loading-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/logged-in-as\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='logged-in-as'>\n    <div class='logged-in-as__marquee'>\n      <div class='marquee'>\n        <p>You're logged in as\n          {{this.sessionData.user.firstName}}\n          {{this.sessionData.user.lastName}}\n          ({{this.sessionData.user.email}})\n          <FaIcon @icon='exclamation-circle' style='margin-left: 5px' /></p>\n      </div>\n    </div>\n    <button\n      class='logged-in-as__return text-button'\n      type='button'\n      {{action 'exitLoginAs'}}\n    >\n      Return\n      <FaIcon @icon='sign-out-alt' style='margin-left: 5px' />\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"tSxiu5cc\",\n    \"block\": \"[[[10,0],[14,0,\\\"logged-in-as\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"logged-in-as__marquee\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"marquee\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"You're logged in as\\\\n        \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"user\\\",\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,0,[\\\"sessionData\\\",\\\"user\\\",\\\"email\\\"]]],[1,\\\")\\\\n        \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"logged-in-as__return text-button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"exitLoginAs\\\"],null],[12],[1,\\\"\\\\n    Return\\\\n    \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"sign-out-alt\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/logged-in-as.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    sessionData: (0, _service.inject)(),\n    actions: {\n      exitLoginAs() {\n        (0, _object.get)(this, 'sessionData').exitLoginAs();\n      }\n    }\n  }));\n});","define(\"portal/components/mapping/draggable-map\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <td class='code'>{{this.map.code}}</td>\n  <td class='name' title={{this.map.name}}>{{this.map.name}}</td>\n  <td class='value'>\n    {{number-format\n      this.map.value\n      style='currency'\n      dashZero=true\n      maximumFractionDigits=0\n    }}\n  </td>\n  {{#if this.canInvert}}\n    <td class='inversion'><label><Input\n          @type='checkbox'\n          @checked={{this.map.inverted}}\n        />\n        +/&minus;</label></td>\n  {{/if}}\n  */\n  {\n    \"id\": \"0cBmoDFW\",\n    \"block\": \"[[[10,\\\"td\\\"],[14,0,\\\"code\\\"],[12],[1,[30,0,[\\\"map\\\",\\\"code\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"name\\\"],[15,\\\"title\\\",[30,0,[\\\"map\\\",\\\"name\\\"]]],[12],[1,[30,0,[\\\"map\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[[30,0,[\\\"map\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[\\\"currency\\\",true,0]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canInvert\\\"]],[[[1,\\\"  \\\"],[10,\\\"td\\\"],[14,0,\\\"inversion\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,4],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"map\\\",\\\"inverted\\\"]]]],null],[1,\\\"\\\\n      +/−\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"td\\\",\\\"number-format\\\",\\\"if\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/components/mapping/draggable-map.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'tr',\n    attributeBindings: ['map.externalId:data-map-external-id', 'map.system:data-map-system'],\n    classNames: ['draggable-map'],\n    classNameBindings: ['map.system'],\n    unmapped: (0, _computed.empty)('map.account.id'),\n    didInsertElement() {\n      this._super(...arguments);\n      const appendTo = (0, _object.get)(this, 'unmapped') ? 'parent' : 'body';\n      (0, _jquery.default)(this.element).draggable({\n        cursor: 'grabbing',\n        revert: 'invalid',\n        scope: 'accounts',\n        handle: '.code, .name, .value',\n        helper: 'clone',\n        appendTo,\n        opacity: 0.8\n      });\n    }\n  }));\n});","define(\"portal/components/mapping/map-list\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/utils/sort-by-account-code\", \"jquery\", \"@ember/object/computed\", \"@ember/template-factory\"], function (_exports, _component, _object, _sortByAccountCode, _jquery, _computed, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/utils/sort-by-account-code\",0,\"jquery\",0,\"@ember/object/computed\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.mapList.length}}\n    <table>\n      {{#each this.mapList as |map|}}\n        <Mapping::DraggableMap\n          @map={{map}}\n          @canInvert={{this.shouldShowInvert}}\n        />\n      {{/each}}\n    </table>\n  {{else}}\n    {{#if (has-block)}}\n      {{yield}}\n    {{else}}\n      <span class='ptl-placeholder'>No accounts have been set to map to this one</span>\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"eZBYFoio\",\n    \"block\": \"[[[41,[30,0,[\\\"mapList\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"mapList\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@map\\\",\\\"@canInvert\\\"],[[30,1],[30,0,[\\\"shouldShowInvert\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[48,[30,2]],[[[1,\\\"    \\\"],[18,2,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No accounts have been set to map to this one\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"map\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"mapping/draggable-map\\\",\\\"has-block\\\",\\\"yield\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/mapping/map-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['map-list'],\n    canInvertValues: true,\n    shouldShowInvert: (0, _computed.and)('canInvertValues', 'hasImported'),\n    hasSelectedSystem: (0, _computed.notEmpty)('system'),\n    mapList: (0, _object.computed)('maps.[]', function () {\n      const maps = (0, _object.get)(this, 'maps') || [];\n      let hasImported = false;\n      for (let i = 0; i < (0, _object.get)(maps, 'length'); i++) {\n        if (maps.objectAt(i).value != null) {\n          hasImported = true;\n          break;\n        }\n      }\n      (0, _object.set)(this, 'hasImported', hasImported);\n      return maps.sort(_sortByAccountCode.default);\n    }),\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _jquery.default)(this.element).droppable({\n        hoverClass: 'hover',\n        scope: 'accounts',\n        tolerance: 'pointer',\n        drop: (event, ui) => {\n          const mapId = ui.draggable.attr('data-map-external-id');\n          const balance = (0, _object.get)(this, 'account.balance');\n          const system = ui.draggable.attr('data-map-system');\n          this.remap(mapId, balance, system || null);\n        }\n      });\n    }\n  }));\n});","define(\"portal/components/mapping/map-status\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/mapping/map-list\", \"@ember/template-factory\"], function (_exports, _component, _object, _mapList, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/components/mapping/map-list\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <a {{action 'wasClicked' this.account}}></a>\n  \n  {{!\n    This sits outside of the <a> so it remains vertically centered when\n    the <a> is position: absolute;\n  }}\n  \n  <span>\n    {{#if this.isManual}}\n      M\n    {{else}}\n      {{#if this.hasSelectedSystem}}\n        {{this.mapList.length}}\n      {{else}}\n        –\n      {{/if}}\n    {{/if}}\n  </span>\n  */\n  {\n    \"id\": \"XHGC5aDx\",\n    \"block\": \"[[[11,3],[4,[38,1],[[30,0],\\\"wasClicked\\\",[30,0,[\\\"account\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"\\\\n\\\"],[10,1],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isManual\\\"]],[[[1,\\\"    M\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasSelectedSystem\\\"]],[[[1,\\\"      \\\"],[1,[30,0,[\\\"mapList\\\",\\\"length\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      –\\\\n\\\"]],[]]]],[]]],[13]],[],false,[\\\"a\\\",\\\"action\\\",\\\"span\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/components/mapping/map-status.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _mapList.default.extend({\n    tagName: 'td',\n    classNames: ['map-status'],\n    classNameBindings: ['ok', 'isManual:manual'],\n    ok: (0, _object.computed)('mapList.length', 'hasSelectedSystem', function () {\n      return (0, _object.get)(this, 'mapList.length') > 0 && (0, _object.get)(this, 'hasSelectedSystem');\n    }),\n    actions: {\n      wasClicked() {\n        if ((0, _object.get)(this, 'isManual')) {\n          this.makeAuto(...arguments);\n        } else {\n          this.toggle(...arguments);\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/markdown-to-html\", [\"exports\", \"ember-cli-showdown/components/markdown-to-html\"], function (_exports, _markdownToHtml) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _markdownToHtml.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-showdown/components/markdown-to-html\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/metric-breakdown\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object/evented\", \"jquery\", \"@ember/object\", \"@ember/service\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _computed, _evented, _jquery, _object, _service, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object/evented\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @clickOutsideToClose={{true}}\n    @overlayClass='modal breakdown'\n    @containerClass='block-module'\n    @onClose={{action this.close}}\n  >\n    <header class='block-module__header'>\n      <button\n        class='text-button float-end close'\n        type='button'\n        {{action this.close}}\n      >&times;</button>\n      <h1 class='h1'>Breakdown of {{this.selectedGroup.name}} Group</h1>\n      <h2 class='h2'>{{this.selectedMetric.name}}\n        —\n        {{if (eq this.periodType 'ytd') 'Year to'}}\n        {{moment-format this.sessionData.period 'MMMM YYYY'}}</h2>\n    </header>\n  \n    <section class='chart'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' />\n      {{else if (gt (get this.chartData.columns '0.length') 3)}}\n        <h3>Variation from the average, by store</h3>\n        <C3Chart\n          @data={{this.chartData}}\n          @size={{this.size}}\n          @legend={{this.legend}}\n          @grid={{this.grid}}\n          @axis={{this.axis}}\n          @tooltip={{this.tooltip}}\n          @padding={{this.padding}}\n          @point={{this.point}}\n          @regions={{this.regions}}\n        />\n      {{else if (gt (get this.chartData.columns '0.length') 1)}}\n        <p class='ptl-placeholder no-data'>There must be at least three values for\n          a chart to be shown.</p>\n      {{else}}\n        <p class='ptl-placeholder no-data'>There is no data for\n          {{moment-format this.sessionData.period 'MMMM YYYY'}}.</p>\n      {{/if}}\n    </section>\n  \n    <section class='stats'>\n      {{! &nbsp; around values prevents collapse when values are null }}\n  \n      <div class='metric'>\n        <div class='number'>\n          {{#if this.isLoading}}\n            <FaIcon @icon='circle-notch' @spin={{true}} />\n          {{else}}\n            &nbsp;\n            {{number-format\n              this.average\n              style=(get this.formattedStyle this.selectedMetric.format)\n              maximumFractionDigits=2\n              dashZero=true\n            }}\n            &nbsp;\n          {{/if}}\n        </div>\n        <div class='label'>Average</div>\n      </div>\n  \n      <div class='metric'>\n        <div class='number'>\n          {{#if this.isLoading}}\n            <FaIcon @icon='circle-notch' @spin={{true}} />\n          {{else}}\n            &nbsp;\n            {{number-format\n              this.standardDeviation\n              style=(get this.formattedStyle this.selectedMetric.format)\n              maximumFractionDigits=2\n              dashZero=true\n            }}\n            &nbsp;\n          {{/if}}\n        </div>\n        <div class='label'>Standard Deviation</div>\n      </div>\n    </section>\n  \n    <section class='breakdown-table'>\n      {{#unless this.isLoading}}\n        <ActiveTable @columns={{this.tableColumns}} @sortedBy={{this.sort}}>\n          {{#each this.sortedValues as |value|}}\n            <tr class={{unless value.included 'disabled'}}>\n              <td>\n                <Input @type='checkbox' @checked={{value.included}} />\n                {{value.entity.name}}\n              </td>\n  \n              <td class='text-right'>\n                {{number-format\n                  (get value this.periodType)\n                  style=(get this.formattedStyle this.selectedMetric.format)\n                  maximumFractionDigits=2\n                  dashZero=true\n                }}\n              </td>\n  \n              <td\n                class='text-right\n                  {{if this.kpi.warnings.length \"warning\" \"no-warning\"}}'\n              >\n                {{#if (and (get value this.periodType) this.average)}}\n                  {{number-format\n                    (math (get value this.periodType) '-' this.average)\n                    style=(get this.formattedStyle this.selectedMetric.format)\n                    maximumFractionDigits=2\n                    dashZero=true\n                  }}\n                {{/if}}\n              </td>\n            </tr>\n          {{/each}}\n        </ActiveTable>\n      {{/unless}}\n    </section>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"Bu0zYU3o\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@clickOutsideToClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[true,true,\\\"modal breakdown\\\",\\\"block-module\\\",[28,[37,1],[[30,0],[30,0,[\\\"close\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button float-end close\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,0,[\\\"close\\\"]]],null],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Breakdown of \\\"],[1,[30,0,[\\\"selectedGroup\\\",\\\"name\\\"]]],[1,\\\" Group\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[30,0,[\\\"selectedMetric\\\",\\\"name\\\"]]],[1,\\\"\\\\n      —\\\\n      \\\"],[1,[52,[28,[37,7],[[30,0,[\\\"periodType\\\"]],\\\"ytd\\\"],null],\\\"Year to\\\"]],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"chart\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[[30,0,[\\\"chartData\\\",\\\"columns\\\"]],\\\"0.length\\\"],null],3],null],[[[1,\\\"      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Variation from the average, by store\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@data\\\",\\\"@size\\\",\\\"@legend\\\",\\\"@grid\\\",\\\"@axis\\\",\\\"@tooltip\\\",\\\"@padding\\\",\\\"@point\\\",\\\"@regions\\\"],[[30,0,[\\\"chartData\\\"]],[30,0,[\\\"size\\\"]],[30,0,[\\\"legend\\\"]],[30,0,[\\\"grid\\\"]],[30,0,[\\\"axis\\\"]],[30,0,[\\\"tooltip\\\"]],[30,0,[\\\"padding\\\"]],[30,0,[\\\"point\\\"]],[30,0,[\\\"regions\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[[30,0,[\\\"chartData\\\",\\\"columns\\\"]],\\\"0.length\\\"],null],1],null],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"ptl-placeholder no-data\\\"],[12],[1,\\\"There must be at least three values for\\\\n        a chart to be shown.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"ptl-placeholder no-data\\\"],[12],[1,\\\"There is no data for\\\\n        \\\"],[1,[28,[35,8],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\"],null]],[1,\\\".\\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"stats\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"           \\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"average\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n           \\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Average\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"           \\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"standardDeviation\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n           \\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Standard Deviation\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown-table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@columns\\\",\\\"@sortedBy\\\"],[[30,0,[\\\"tableColumns\\\"]],[30,0,[\\\"sort\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"sortedValues\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[15,0,[52,[51,[30,1,[\\\"included\\\"]]],\\\"disabled\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"included\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,18],[[28,[37,12],[[30,1],[30,0,[\\\"periodType\\\"]]],null]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[30,0,[\\\"kpi\\\",\\\"warnings\\\",\\\"length\\\"]],\\\"warning\\\",\\\"no-warning\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[[28,[37,12],[[30,1],[30,0,[\\\"periodType\\\"]]],null],[30,0,[\\\"average\\\"]]],null],[[[1,\\\"                \\\"],[1,[28,[35,18],[[28,[37,27],[[28,[37,12],[[30,1],[30,0,[\\\"periodType\\\"]]],null],\\\"-\\\",[30,0,[\\\"average\\\"]]],null]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"value\\\"],false,[\\\"modal-dialog\\\",\\\"action\\\",\\\"header\\\",\\\"button\\\",\\\"h1\\\",\\\"h2\\\",\\\"if\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"section\\\",\\\"loading-icon\\\",\\\"gt\\\",\\\"get\\\",\\\"h3\\\",\\\"c3-chart\\\",\\\"p\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"number-format\\\",\\\"unless\\\",\\\"active-table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"input\\\",\\\"and\\\",\\\"math\\\"]]\",\n    \"moduleName\": \"portal/components/metric-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    store: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    numberFormat: (0, _service.inject)(),\n    // To be passed in\n    accountType: null,\n    // 'balances' or 'kpis'\n    selectedGroup: null,\n    // record\n    selectedMetric: null,\n    // record\n    periodType: 'month',\n    // or 'ytd'\n\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    /**\n     * A collection of month, ytd, and entity values. Populated by loadData().\n     * @type {Array}\n     * @property {[Number]} [].month\n     * @property {[Number]} [].ytd\n     * @property {Entity} [].entity\n     * @property {boolean} [].included\n     */\n    values: [],\n    isLoading: false,\n    periodTypeOptions: [{\n      value: 'month',\n      label: 'Monthly'\n    }, {\n      value: 'ytd',\n      label: 'YTD'\n    }],\n    entities: (0, _object.computed)('selectedGroup.members', 'session.data.authenticated.user.role', 'sessionData.user', async function () {\n      const members = await (0, _object.get)(this, 'selectedGroup.members');\n      const memberEntities = await Promise.all(members.map(member => (0, _object.get)(member, 'entity')));\n      if ((0, _object.get)(this, 'session.data.authenticated.user.role') === 'admin') return memberEntities;\n      return memberEntities.filter(e => {\n        if ((0, _object.get)(this, 'sessionData.user')?.includesSomeClaimsAboutEntity(e.id, 'canAdminFinancialReporting', 'canManageFinancialReporting', 'canViewFinancialReporting')) return true;\n      });\n    }),\n    tableColumns: (0, _object.computed)('periodType', function () {\n      return [{\n        name: 'Entity',\n        key: 'entity.name',\n        width: 3\n      }, {\n        name: 'Value',\n        key: (0, _object.get)(this, 'periodType'),\n        width: 2\n      }, {\n        name: 'Difference',\n        key: '',\n        width: 2\n      }];\n    }),\n    sort: ['month:asc'],\n    sortedValues: (0, _computed.sort)('values', 'sort'),\n    maintainSortOrder: (0, _object.observer)('periodType', function () {\n      const sort = (0, _object.get)(this, 'sort').objectAt(0);\n      const periodType = (0, _object.get)(this, 'periodType');\n\n      // Swap month or YTD for the new periodType. Does nothing if sorted by something else.\n      (0, _object.set)(this, 'sort', [sort.replace(/month|ytd/, periodType)]);\n    }),\n    /**\n     * Populates the values field.\n     * @returns {Promise<void>} - Promise that resolves once the values field has been set.\n     */\n    loadData: (0, _evented.on)('init', async function () {\n      const reportType = (0, _object.get)(this, 'accountType');\n      const metricId = (0, _object.get)(this, 'selectedMetric.id');\n      const entities = await (0, _object.get)(this, 'entities');\n      const entityIds = entities.map(entity => (0, _object.get)(entity, 'id'));\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      const periodType = (0, _object.get)(this, 'periodType');\n      (0, _object.set)(this, 'isLoading', true);\n      return this.loadReport(reportType, metricId, entityIds, token, period, periodType).then(report => {\n        const values = this.prepareReport(report, entities);\n        (0, _object.set)(this, 'values', values);\n        (0, _object.set)(this, 'isLoading', false);\n      });\n    }),\n    /**\n     * Retrieves a full report from the API.\n     * @param {string} reportType - Either 'balances' or 'kpis'.\n     * @param {string} metricId\n     * @param {string[]} entityIds\n     * @param {string} token - Bearer token for authentication with the API.\n     * @param {string} period - Date string in YYYY-MM format.\n     * @param {string} periodType - 'month' or 'ytd'.\n     * @returns {Promise<Object>} - Full response from the server.\n     */\n    loadReport(reportType, metricId, entityIds, token, period, periodType) {\n      const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/reports/${reportType}`;\n      const payload = {\n        periodStart: period,\n        periodEnd: period,\n        periodTypes: [periodType],\n        entities: entityIds,\n        metrics: [metricId],\n        type: reportType\n      };\n      const headers = {\n        Authorization: `Bearer ${token}`\n      };\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: JSON.stringify(payload),\n        method: 'POST',\n        contentType: 'application/json'\n      });\n    },\n    /**\n     * Coverts a plain report from the API into an array of values for each entity.\n     * @param {Object} report - API /reports response.\n     * @param {Entity[]} entities - Array of entities to be mapped to values.\n     * @returns {Object[]} - A collection of values holding month, ytd, and entity keys.\n     *   Month and YTD values could be null. The entity key will hold the hold entity record.\n     */\n    prepareReport(report, entities) {\n      const periodType = (0, _object.get)(this, 'periodType');\n      return entities.map(entity => {\n        // Find the entry in the report for this entity\n        const series = (0, _object.get)(report, 'data.0.series').findBy('entity', (0, _object.get)(entity, 'id'));\n\n        // Extract month and YTD values for the first period\n        const period = this.extractFigures(series);\n        const periodValue = (0, _object.get)(period, periodType);\n\n        // Attach the entity as extra metadata for display\n        (0, _object.set)(period, 'entity', entity);\n        (0, _object.set)(period, 'included', periodValue != null);\n        return period;\n      });\n    },\n    extractFigures(entity) {\n      return {\n        month: (0, _object.get)(entity || {}, 'periods.0.periodTypes.month.value'),\n        ytd: (0, _object.get)(entity || {}, 'periods.0.periodTypes.ytd.value')\n      };\n    },\n    /**\n     * Stats\n     */\n\n    average: (0, _object.computed)('values.@each.{month,ytd,included}', 'periodType', function () {\n      const values = (0, _object.get)(this, 'values').filterBy('included');\n      const periodType = (0, _object.get)(this, 'periodType');\n      let total = 0;\n      let count = 0;\n\n      // We're counting all included values, even if they're null\n      values.forEach(value => {\n        const periodValue = Number((0, _object.get)(value, periodType));\n        total += periodValue || 0;\n        count++;\n      });\n\n      // Avoid dividing by zero if there's no data\n      return total / (count || 1);\n    }),\n    standardDeviation: (0, _object.computed)('values.@each.{month,ytd,included}', 'periodType', 'average', function () {\n      const values = (0, _object.get)(this, 'values').filterBy('included');\n      const average = (0, _object.get)(this, 'average');\n      const periodType = (0, _object.get)(this, 'periodType');\n      let total = 0;\n      let count = 0;\n      values.forEach(value => {\n        const periodValue = (0, _object.get)(value, periodType);\n        if (periodValue != null) {\n          total += (periodValue - average) ** 2;\n          count++;\n        }\n      });\n\n      // Avoid dividing by zero if there's no data\n      return Math.sqrt(total / (count - 1 || 1));\n    }),\n    /**\n     * Chart Config\n     */\n\n    size: {\n      height: 200,\n      width: 506\n    },\n    legend: {\n      show: false\n    },\n    tooltip: (0, _object.computed)('selectedMetric.format', function () {\n      const format = (0, _object.get)(this, 'selectedMetric.format');\n      return {\n        show: true,\n        format: {\n          value(value) {\n            if (format === 'PERCENTAGE') {\n              return (0, _object.get)(this, 'numberFormat').format(value, {\n                style: 'percent',\n                dashZero: true,\n                maximumSignificantDigits: 4\n              });\n            } else if (format === 'CURRENCY') {\n              return (0, _object.get)(this, 'numberFormat').format(value, {\n                style: 'currency',\n                maximumFractionDigits: 0\n              });\n            }\n          }\n        }\n      };\n    }),\n    regions: [{\n      axis: 'y',\n      end: 0,\n      class: 'regionNegative'\n    }, {\n      axis: 'y',\n      start: 0,\n      class: 'regionPositive'\n    }],\n    grid: {\n      x: {\n        show: false\n      },\n      y: {\n        show: true\n      }\n    },\n    axis: (0, _object.computed)('average', 'periodType', 'values.@each.{included,month,ytd}', function () {\n      const values = (0, _object.get)(this, 'values').filterBy('included');\n      const average = (0, _object.get)(this, 'average');\n      const periodType = (0, _object.get)(this, 'periodType');\n      let min = Infinity;\n      let max = -Infinity;\n      values.forEach(value => {\n        const periodValue = (0, _object.get)(value, periodType);\n        if (periodValue == null) return;\n        const deviation = periodValue - average;\n        if (deviation < min) min = deviation;\n        if (deviation > max) max = deviation;\n      });\n      return {\n        x: {\n          type: 'category' // this needed to load string x value\n        },\n        y: {\n          min,\n          max\n        }\n      };\n    }),\n    padding: {\n      top: 0,\n      right: 0,\n      bottom: 0,\n      left: 0\n    },\n    point: {\n      show: false\n    },\n    chartData: (0, _object.computed)('sortedValues.@each.{month,ytd,included,entity}', 'selectedMetric.format', 'average', 'periodType', function () {\n      const columns = [['Entity Name'], ['Difference'], ['Actual']];\n      const values = (0, _object.get)(this, 'sortedValues').filterBy('included');\n      values.forEach(value => {\n        const entityName = (0, _object.get)(value, 'entity.name');\n        const periodType = (0, _object.get)(this, 'periodType');\n        const periodValue = (0, _object.get)(value, periodType);\n        const average = (0, _object.get)(this, 'average');\n        if (periodValue != null) {\n          columns[0].push(entityName);\n          columns[1].push(periodValue - average);\n          columns[2].push(periodValue);\n        }\n      });\n      const x = 'Entity Name';\n      const types = {\n        Difference: 'bar',\n        Actual: 'none'\n      };\n      return {\n        columns,\n        x,\n        types\n      };\n    }),\n    actions: {\n      modalToggle() {\n        this.toggleProperty('modalToggle');\n      }\n    }\n  }));\n});","define(\"portal/components/mobile-side-bar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n  \n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#each @tabs as |tab|}}\n      {{#unless tab.sections}}\n        <sidebar.Item\n          @route={{tab.route}}\n          @icon={{tab.icon}}\n          @title={{tab.name}}\n          @model={{tab.model}}\n          @sup={{this.item.sup}}\n        />\n      {{/unless}}\n    {{/each}}\n  \n    {{#if this.operationsSection.items.length}}\n      <sidebar.Section @title={{t 'common.Operations'}}>\n        {{#each this.operationsSection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n            @sup={{item.sup}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  \n    {{#if this.reportsSection.items.length}}\n      <sidebar.Section\n        @title={{t 'common.Reports'}}\n        @content={{this.reportsSection}}\n      >\n        {{#each this.reportsSection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n            @sup={{item.sup}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"pk6bOEem\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,2]],null]],null],null,[[[41,[51,[30,3,[\\\"sections\\\"]]],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\",\\\"@sup\\\"],[[30,3,[\\\"route\\\"]],[30,3,[\\\"icon\\\"]],[30,3,[\\\"name\\\"]],[30,3,[\\\"model\\\"]],[30,0,[\\\"item\\\",\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"operationsSection\\\",\\\"items\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Operations\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"operationsSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\",\\\"@sup\\\"],[[30,4,[\\\"route\\\"]],[30,4,[\\\"icon\\\"]],[30,4,[\\\"name\\\"]],[30,4,[\\\"model\\\"]],[30,4,[\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsSection\\\",\\\"items\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\",\\\"@content\\\"],[[28,[37,3],[\\\"common.Reports\\\"],null],[30,0,[\\\"reportsSection\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"reportsSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\",\\\"@sup\\\"],[[30,5,[\\\"route\\\"]],[30,5,[\\\"icon\\\"]],[30,5,[\\\"name\\\"]],[30,5,[\\\"model\\\"]],[30,5,[\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"@tabs\\\",\\\"tab\\\",\\\"item\\\",\\\"item\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-side-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"media\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n    }\n    get operationsSection() {\n      const operationsTab = this.args.tabs.find(ot => ot.name === 'Operations') || {\n        sections: []\n      };\n      const operationsSection = {\n        name: this.intl.t('common.Operations'),\n        items: (operationsTab.sections || []).flatMap(section => {\n          return (section.routes || []).map(({\n            route,\n            icon,\n            name,\n            sup\n          }) => ({\n            route,\n            icon,\n            name,\n            sup\n          }));\n        })\n      };\n      return operationsSection;\n    }\n    get reportsSection() {\n      const reportsTab = this.args.tabs.find(ot => ot.name === 'Reports') || {\n        sections: []\n      };\n      const reportsSection = {\n        name: this.intl.t('common.Reports'),\n        items: (reportsTab.sections || []).flatMap(section => {\n          return (section.routes || []).map(({\n            route,\n            icon,\n            name,\n            sup\n          }) => ({\n            route,\n            icon,\n            name,\n            sup\n          }));\n        })\n      };\n      return reportsSection;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/mobile-side-menu\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='bg-light mobile-side-menu' id='mobile-side-menu'>\n    {{yield}}\n  </div>\n  \n  <div\n    class='mobile-side-menu__overlay'\n    tabindex='-1'\n    id='mobile-side-menu__overlay'\n    {{on 'focus' this.mobileMenu.closeMenu}}\n  >\n  \n  </div>\n  */\n  {\n    \"id\": \"HdCVM266\",\n    \"block\": \"[[[10,0],[14,0,\\\"bg-light mobile-side-menu\\\"],[14,1,\\\"mobile-side-menu\\\"],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[11,0],[24,0,\\\"mobile-side-menu__overlay\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[24,1,\\\"mobile-side-menu__overlay\\\"],[4,[38,2],[\\\"focus\\\",[30,0,[\\\"mobileMenu\\\",\\\"closeMenu\\\"]]],null],[12],[1,\\\"\\\\n\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-side-menu.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/mobile-title-bar\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='mobile-title-bar__container px-4 d-flex align-items-center justify-content-between link-light'\n  >\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"27XRVCnI\",\n    \"block\": \"[[[10,0],[14,0,\\\"mobile-title-bar__container px-4 d-flex align-items-center justify-content-between link-light\\\"],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/mobile-title-bar/avatar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='ms-auto' data-test-mobile-title-popover>\n    <div class='d-flex align-items-center'>\n      <a\n        href='https://buildaprice.zendesk.com/hc/en-us'\n        target='_blank'\n        class='d-flex align-items-center link-light title-bar__icon me-2'\n        rel='noopener noreferrer'\n      >\n        <FaIcon @icon='question-circle' />\n      </a>\n  \n      <PopOver @direction='bottom-left' as |po|>\n        <FaIcon\n          @icon='user-circle'\n          class='link-light title-bar__icon title-bar__icon--lg'\n          role='button'\n        />\n        <po.Content style='min-width: 150px;'>\n          {{#unless this.adminConsoleIsActive}}\n            {{#unless (includes-feature-flags 'userIsWorker')}}\n              <LinkTo\n                @route='entity.settings.profile'\n                @model={{this.sessionData.entity.id}}\n                class='dropdown-item text-nowrap fs-4 py-2'\n                data-test-settings-link\n              >{{t 'common.Settings'}}</LinkTo>\n  \n              <div class='dropdown-divider'></div>\n            {{/unless}}\n          {{/unless}}\n  \n          {{yield}}\n  \n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-4 py-2'\n            {{on 'click' this.logout}}\n            data-test-title-bar-logout-button\n          >{{t 'common.Sign out'}}</button>\n        </po.Content>\n      </PopOver>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"qWjCMqbF\",\n    \"block\": \"[[[10,0],[14,0,\\\"ms-auto\\\"],[14,\\\"data-test-mobile-title-popover\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,3],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon me-2\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,3],null,[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,2],[[24,0,\\\"link-light title-bar__icon title-bar__icon--lg\\\"],[24,\\\"role\\\",\\\"button\\\"]],[[\\\"@icon\\\"],[\\\"user-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Content\\\"]],[[24,5,\\\"min-width: 150px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"adminConsoleIsActive\\\"]]],[[[41,[51,[28,[37,5],[\\\"userIsWorker\\\"],null]],[[[1,\\\"            \\\"],[8,[39,6],[[24,0,\\\"dropdown-item text-nowrap fs-4 py-2\\\"],[24,\\\"data-test-settings-link\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.profile\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Settings\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"dropdown-divider\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[18,2,null],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-4 py-2\\\"],[24,\\\"data-test-title-bar-logout-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,[28,[35,7],[\\\"common.Sign out\\\"],null]],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[1]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"po\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"pop-over\\\",\\\"unless\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"t\\\",\\\"yield\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/avatar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n    }\n    get adminConsoleIsActive() {\n      return this.router.currentRouteName.includes('admin');\n    }\n    goBack(backRoute) {\n      this.router.transitionTo(backRoute);\n    }\n    logout() {\n      // TODO dunno if this is the right approach, hard to bubble\n      // an action from here to application Route as was done before.\n      this.session.invalidate();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"goBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBack\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"logout\"), _class.prototype), _class));\n});","define(\"portal/components/mobile-title-bar/avatar/avatar-link\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <a\n    href={{@link}}\n    target='_blank'\n    class='dropdown-item text-nowrap fs-4 py-2'\n    rel='noopener noreferrer'\n  >\n    {{@label}}\n  </a>\n  */\n  {\n    \"id\": \"8sz97OSx\",\n    \"block\": \"[[[10,3],[15,6,[30,1]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"dropdown-item text-nowrap fs-4 py-2\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"],[13]],[\\\"@link\\\",\\\"@label\\\"],false,[\\\"a\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/avatar/avatar-link.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/mobile-title-bar/back-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <FaIcon\n    @icon='arrow-left'\n    class='mobile-title-bar__icon'\n    @size='lg'\n    role='button'\n    {{on 'click' (fn this.goBack @titleBarBack)}}\n    data-test-mobile-title-bar-back-button\n  />\n  */\n  {\n    \"id\": \"crPxpKve\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"mobile-title-bar__icon\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-mobile-title-bar-back-button\\\",\\\"\\\"],[4,[38,1],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"goBack\\\"]],[30,1]],null]],null]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"arrow-left\\\",\\\"lg\\\"]],null]],[\\\"@titleBarBack\\\"],false,[\\\"fa-icon\\\",\\\"on\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/back-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    goBack(backRoute) {\n      this.router.transitionTo(backRoute);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"goBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBack\"), _class.prototype), _class));\n});","define(\"portal/components/mobile-title-bar/burger-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <FaIcon\n    @icon='bars'\n    class='mobile-title-bar__icon'\n    @size='lg'\n    role='button'\n    {{on 'click' this.mobileMenu.toggleMenu}}\n    data-test-mobile-title-bar-side-menu-button\n  />\n  */\n  {\n    \"id\": \"WB21bS5b\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"mobile-title-bar__icon\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-mobile-title-bar-side-menu-button\\\",\\\"\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"mobileMenu\\\",\\\"toggleMenu\\\"]]],null]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"bars\\\",\\\"lg\\\"]],null]],[],false,[\\\"fa-icon\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/burger-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/mobile-title-bar/page-title\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='fs-3 fw-bold overflow-auto mobile-title-bar__title-text'\n  >{{@title}}</div>\n  */\n  {\n    \"id\": \"t2HYUDUA\",\n    \"block\": \"[[[10,0],[14,0,\\\"fs-3 fw-bold overflow-auto mobile-title-bar__title-text\\\"],[12],[1,[30,1]],[13]],[\\\"@title\\\"],false,[\\\"div\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/page-title.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/modal-dialog\", [\"exports\", \"@ember/runloop\", \"ember-modal-dialog/components/modal-dialog\"], function (_exports, _runloop, _modalDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\",0,\"ember-modal-dialog/components/modal-dialog\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const ESC_KEY = 27;\n  const defaultModalDialogClass = 'ember-modal-dialog';\n\n  // ember-modal-dialog's own ModalDialog converted to a Glimmer component at\n  // 4.1.5 (portal was pinned at 4.1.4, the last classic version), which dropped\n  // didInsertElement/willDestroyElement and the flattened `this.onClose`. This\n  // subclass still inherits the addon's own template through the prototype\n  // chain - Ember resolves a Glimmer component's associated template by\n  // walking up from the constructor, so there's no need for a template of our\n  // own here, and none of the addon's ~20 args need re-forwarding.\n  //\n  // Lifecycle: `constructor` runs before this component's element exists in\n  // the DOM, so the element/stacking capture that used to happen in\n  // didInsertElement is deferred to the same 'afterRender' queue this app\n  // already uses elsewhere (see app/mixins/scroll-route.js) - still flushed\n  // synchronously within the same runloop, well before a user could press a\n  // key, so the timing is equivalent. `willDestroy` (unlike\n  // willDestroyElement) is a real Glimmer lifecycle hook, so teardown needs no\n  // such deferral.\n  class ModalDialog extends _modalDialog.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"modalIndex\", null);\n      _defineProperty(this, \"modalElement\", null);\n      this._initEscListener();\n      (0, _runloop.scheduleOnce)('afterRender', this, this._captureModalPosition);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      document.body.removeEventListener('keyup', this._boundCloseOnEscapeKey);\n    }\n    _captureModalPosition() {\n      if (this.isDestroying || this.isDestroyed) return;\n      const modalElements = document.getElementsByClassName(defaultModalDialogClass);\n      this.modalIndex = modalElements.length;\n      this.modalElement = modalElements[modalElements.length - 1];\n    }\n    _initEscListener() {\n      this._boundCloseOnEscapeKey = this.closeOnEscapeKey.bind(this);\n      document.body.addEventListener('keyup', this._boundCloseOnEscapeKey);\n    }\n    closeOnEscapeKey(event) {\n      // The listener is removed in willDestroy, but that hook runs in the\n      // runloop's destroy queue - a later phase than the one that invalidates\n      // `this.args`. A keyup landing in that gap would otherwise throw here\n      // instead of the classic version's `this.onClose`, which stayed a plain\n      // property and didn't go stale early.\n      if (this.isDestroying || this.isDestroyed) return;\n      if (event.keyCode === ESC_KEY && this.args.onClose) {\n        const openModals = document.getElementsByClassName(defaultModalDialogClass).length;\n        // if we are not the top modal, don't do anything\n        if (openModals !== this.modalIndex) return;\n        // is the event target inside the modal?\n        if (this.modalElement.contains(event.target)) {\n          // if it is, focus outside the modal\n          event.target.blur();\n        } else {\n          // otherwise, close the modal\n          this.args.onClose();\n        }\n      }\n    }\n  }\n  _exports.default = ModalDialog;\n});","define(\"portal/components/module-navigation/admin\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.BackButton @buttonText='Back to home' @route='index' />\n  \n    <sidebar.Item @route='admin.entities' @icon='building' @title='Entities' />\n    <sidebar.Item @route='admin.demo-entity' @icon='video' @title='Demo entity' />\n  \n    <sidebar.Item @route='admin.licensees' @icon='users' @title='Licensees' />\n    <sidebar.Item\n      @route='admin.announcements'\n      @icon='bell'\n      @title='Announcements'\n    />\n    <sidebar.Item\n      @route='admin.billing-report'\n      @icon='file-invoice-dollar'\n      @title='Billing report'\n    />\n  </Sidebar>\n  */\n  {\n    \"id\": \"cOj9pGxr\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[\\\"Back to home\\\",\\\"index\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.entities\\\",\\\"building\\\",\\\"Entities\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.demo-entity\\\",\\\"video\\\",\\\"Demo entity\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.licensees\\\",\\\"users\\\",\\\"Licensees\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.announcements\\\",\\\"bell\\\",\\\"Announcements\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.billing-report\\\",\\\"file-invoice-dollar\\\",\\\"Billing report\\\"]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/admin.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/dashboard\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='index'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"jPQbP6iD\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"index\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/financials\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton @buttonText='Back to modules' @route='entity' />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseFPDashboard'\n        'canUseFPKpis'\n        'canUseFPItmCustomerPAndL'\n        'canUseFPProfitAndLoss'\n        'canUseFPBalanceSheet'\n        'canUseFPOtherData'\n        'canUseFPPersonalData'\n        'canUseFPDataAvailability'\n      )\n    }}\n      <sidebar.Title @title={{t 'common.Reports'}} />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPDashboard')}}\n      <sidebar.Item\n        @route='entity.financials.dashboard'\n        @icon='tachometer-alt'\n        @title='Dashboard'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPKpis')}}\n      <sidebar.Item\n        @route='entity.financials.reports.kpis'\n        @icon='key'\n        @title='KPIs'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPItmCustomerPAndL')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.itm-profit-and-loss'\n        @icon='columns'\n        @title='ITM custom P&L'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPProfitAndLoss')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.profit-and-loss'\n        @icon='money-bill'\n        @title='Profit and loss'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPBalanceSheet')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.balance-sheet'\n        @icon='balance-scale'\n        @title='Balance sheet'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPOtherData')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.other-data'\n        @icon='database'\n        @title='Other data'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPPersonalData')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.personal-data'\n        @icon='user'\n        @title='Personal data'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPDataAvailability')}}\n      <sidebar.Item\n        @route='entity.financials.reports.imports'\n        @icon='table'\n        @title='Data availability'\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseFPImportManager')}}\n      <sidebar.Title @title='Data' />\n      <sidebar.Item\n        @route='entity.financials.import'\n        @icon='database'\n        @title='Import manager'\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseFPStrategies')}}\n      <sidebar.Title @title='Planning' />\n      <sidebar.Item\n        @route='entity.financials.planning.strategies'\n        @icon='map'\n        @title='Strategies'\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseFPReportingPeriod'\n        'canUseFPChartOfAccounts'\n        'canUseFPKpisConfig'\n        'canUseFPGroups'\n      )\n    }}\n      <sidebar.Title @title='Configuration' />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPReportingPeriod')}}\n      <sidebar.Item\n        @route='entity.financials.general'\n        @title='Reporting period'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPChartOfAccounts')}}\n      <sidebar.Item\n        @route='entity.financials.chart-of-accounts'\n        @title='Chart of accounts'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPKpisConfig')}}\n      <sidebar.Item @route='entity.financials.kpis' @title='KPIs' />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPGroups')}}\n      <sidebar.Item @route='entity.financials.groups' @title='Groups' />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"Q6RaWv5/\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[\\\"Back to modules\\\",\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,3],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,4],[[28,[37,5],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canUseFPDashboard\\\",\\\"canUseFPKpis\\\",\\\"canUseFPItmCustomerPAndL\\\",\\\"canUseFPProfitAndLoss\\\",\\\"canUseFPBalanceSheet\\\",\\\"canUseFPOtherData\\\",\\\"canUseFPPersonalData\\\",\\\"canUseFPDataAvailability\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,7],[\\\"common.Reports\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPDashboard\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.dashboard\\\",\\\"tachometer-alt\\\",\\\"Dashboard\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPKpis\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.kpis\\\",\\\"key\\\",\\\"KPIs\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPItmCustomerPAndL\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.itm-profit-and-loss\\\",\\\"columns\\\",\\\"ITM custom P&L\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPProfitAndLoss\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.profit-and-loss\\\",\\\"money-bill\\\",\\\"Profit and loss\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPBalanceSheet\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.balance-sheet\\\",\\\"balance-scale\\\",\\\"Balance sheet\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPOtherData\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.other-data\\\",\\\"database\\\",\\\"Other data\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPPersonalData\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.personal-data\\\",\\\"user\\\",\\\"Personal data\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPDataAvailability\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.imports\\\",\\\"table\\\",\\\"Data availability\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseFPImportManager\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Data\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.import\\\",\\\"database\\\",\\\"Import manager\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseFPStrategies\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Planning\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.planning.strategies\\\",\\\"map\\\",\\\"Strategies\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canUseFPReportingPeriod\\\",\\\"canUseFPChartOfAccounts\\\",\\\"canUseFPKpisConfig\\\",\\\"canUseFPGroups\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Configuration\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPReportingPeriod\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.general\\\",\\\"Reporting period\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPChartOfAccounts\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.chart-of-accounts\\\",\\\"Chart of accounts\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPKpisConfig\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.kpis\\\",\\\"KPIs\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPGroups\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.groups\\\",\\\"Groups\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-some-feature-flags\\\",\\\"t\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/financials.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/module-dashboard\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.EntitySelector />\n  </Sidebar>\n  */\n  {\n    \"id\": \"DmjVH+aq\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/module-dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/module-navigation/operations/incoming\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseBills')}}\n      <sidebar.Item\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Bills'}}\n        @route='entity.builda-price.operations.incoming.bills'\n      />\n      {{#if (includes-feature-flags 'canUseLegacyBills')}}\n        <sidebar.Item\n          @icon='file-invoice-dollar'\n          @title={{t 'common.Bills'}}\n          @sup='LEGACY'\n          @route='entity.builda-price.operations.incoming.bills-legacy'\n        />\n      {{/if}}\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseStatements')}}\n      <sidebar.Item\n        @icon='file-lines'\n        @title={{t 'common.Statements'}}\n        @route='entity.builda-price.operations.incoming.statements'\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseTimesheets')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.incoming.timesheets'\n        @icon='clock'\n        @title={{t 'common.Timesheets'}}\n      />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"okZi701D\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseBills\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@route\\\"],[\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Bills\\\"],null],\\\"entity.builda-price.operations.incoming.bills\\\"]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseLegacyBills\\\"],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@sup\\\",\\\"@route\\\"],[\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Bills\\\"],null],\\\"LEGACY\\\",\\\"entity.builda-price.operations.incoming.bills-legacy\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseStatements\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@route\\\"],[\\\"file-lines\\\",[28,[37,3],[\\\"common.Statements\\\"],null],\\\"entity.builda-price.operations.incoming.statements\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.incoming.timesheets\\\",\\\"clock\\\",[28,[37,3],[\\\"common.Timesheets\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/operations/incoming.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/operations/outgoing\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseInvoices')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.invoices'\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Invoices'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePayroll')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.payroll'\n        @icon='money-bill'\n        @title={{t 'common.Payroll'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePurchaseOrders')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.purchase-orders'\n        @icon='shopping-cart'\n        @title={{t 'common.Purchase orders'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseReportBuilder')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.report-builder'\n        @icon='file-invoice'\n        @title={{t 'common.Report builder'}}\n      />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"3tzbhJKA\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseInvoices\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.invoices\\\",\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Invoices\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUsePayroll\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.payroll\\\",\\\"money-bill\\\",[28,[37,3],[\\\"common.Payroll\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUsePurchaseOrders\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders\\\",\\\"shopping-cart\\\",[28,[37,3],[\\\"common.Purchase orders\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseReportBuilder\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\",\\\"file-invoice\\\",[28,[37,3],[\\\"common.Report builder\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/operations/outgoing.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/pricing\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton @buttonText='Back to modules' @route='entity' />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    <sidebar.Title @title='Job management' />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='jobList'\n      @title={{t 'shared.estimates.Job list'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='ownTakeoff'\n      @title={{t 'shared.estimates.Own takeoff'}}\n    />\n  \n    <sidebar.Title @title='Configuration' />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='materialRate'\n      @title={{t 'shared.estimates.Material rate'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='flatRateResource'\n      @title={{t 'shared.estimates.Flat rate resource'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='miscTemplate'\n      @title={{t 'shared.estimates.Misc template'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='labourFactor'\n      @title={{t 'shared.estimates.Labour factor'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='overheadTemplates'\n      @title={{t 'shared.estimates.Overhead templates'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='workgangPositions'\n      @title={{t 'shared.estimates.Workgang positions'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='workgangs'\n      @title={{t 'shared.estimates.Workgangs'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='subcontractorList'\n      @title={{t 'shared.estimates.Subcontractor list'}}\n    />\n  </Sidebar>\n  */\n  {\n    \"id\": \"JgyOobKr\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[\\\"Back to modules\\\",\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,3],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,4],[[28,[37,5],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Job management\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"jobList\\\",[28,[37,6],[\\\"shared.estimates.Job list\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"ownTakeoff\\\",[28,[37,6],[\\\"shared.estimates.Own takeoff\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Configuration\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"materialRate\\\",[28,[37,6],[\\\"shared.estimates.Material rate\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"flatRateResource\\\",[28,[37,6],[\\\"shared.estimates.Flat rate resource\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"miscTemplate\\\",[28,[37,6],[\\\"shared.estimates.Misc template\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"labourFactor\\\",[28,[37,6],[\\\"shared.estimates.Labour factor\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"overheadTemplates\\\",[28,[37,6],[\\\"shared.estimates.Overhead templates\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"workgangPositions\\\",[28,[37,6],[\\\"shared.estimates.Workgang positions\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"workgangs\\\",[28,[37,6],[\\\"shared.estimates.Workgangs\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"subcontractorList\\\",[28,[37,6],[\\\"shared.estimates.Subcontractor list\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/pricing.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/project\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n  \n    <sidebar.BackButton\n      @buttonText={{t 'common.Back to projects'}}\n      @route='entity.builda-price.projects'\n    />\n  \n    {{#unless sidebar.isCollapsed}}\n      <ProjectSelector\n        @selectedProject={{@selectedProject}}\n        @openProjects={{@openProjects}}\n        @selectedProjectIsLoading={{@selectedProjectIsLoading}}\n        @openProjectsIsLoading={{@openProjectsIsLoading}}\n        @backToProjectsRoute={{'entity.builda-price.projects'}}\n      />\n    {{/unless}}\n  \n    {{#if (includes-some-feature-flags @selectedProject 'canUseTasks')}}\n      <sidebar.Item\n        @route='entity.builda-price.projects.project.tasks'\n        @icon='tasks'\n        @title={{t 'common.Tasks'}}\n        {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        @selectedProject 'canUseQuoteVersions' 'canUseBudgetVersions'\n      )\n    }}\n      <sidebar.Item\n        @route='entity.builda-price.projects.project.financials'\n        @icon='dollar-sign'\n        @title={{t 'common.Financials'}}\n        {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags @selectedProject 'canUseEstimates')}}\n      <sidebar.Item\n        @route='entity.builda-price.projects.project.estimates'\n        @icon='tag'\n        @title={{t 'common.Estimates'}}\n        {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        @selectedProject\n        'canUseDocumentsPage'\n        'canUseProgressPage'\n        'canUseHealthAndSafety'\n      )\n    }}\n      <sidebar.Section @title={{t 'common.Operations'}}>\n        {{#if (includes-feature-flags @selectedProject 'canUseDocumentsPage')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.documents'\n            @icon='paperclip'\n            @title={{t 'common.Documents'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if (includes-feature-flags @selectedProject 'canUseProgressPage')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.progress'\n            @icon='percent'\n            @title={{t 'shared.progress.Labour progress'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if (includes-feature-flags @selectedProject 'canUseHealthAndSafety')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.health-and-safety'\n            @icon='notes-medical'\n            @title={{t 'common.healthAndSafety'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n      </sidebar.Section>\n  \n      {{#if (includes-feature-flags @selectedProject 'canUseStagePayments')}}\n        <sidebar.Item\n          @route='entity.builda-price.projects.project.stage-payments'\n          @icon='coins'\n          @title={{t 'shared.stage-payments.Stage payments'}}\n          {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n          @model={{@model}}\n        />\n      {{/if}}\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseProjects'\n        'canUseProducts'\n        'canUseUsers'\n        'canUseWorkers'\n        'canUseSubcontractors'\n      )\n    }}\n      <sidebar.Section @title={{t 'common.Configuration'}}>\n        {{#if (includes-feature-flags @selectedProject 'canUseProducts')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.products'\n            @icon='cubes'\n            @title={{t 'common.Products'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if\n          (includes-some-feature-flags\n            'canUseUsers' 'canUseWorkers' 'canUseSubcontractors'\n          )\n        }}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.people'\n            @icon='users'\n            @title={{t 'common.People'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if (includes-feature-flags @selectedProject 'canUseProjects')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.settings'\n            @icon='cog'\n            @title={{t 'common.Settings'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n      </sidebar.Section>\n  \n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"2uMzQ1dG\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,1],[\\\"common.Back to projects\\\"],null],\\\"entity.builda-price.projects\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,1,[\\\"isCollapsed\\\"]]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@backToProjectsRoute\\\"],[[30,2],[30,3],[30,4],[30,5],\\\"entity.builda-price.projects\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,2],\\\"canUseTasks\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",\\\"tasks\\\",[28,[37,1],[\\\"common.Tasks\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,2],\\\"canUseQuoteVersions\\\",\\\"canUseBudgetVersions\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.financials\\\",\\\"dollar-sign\\\",[28,[37,1],[\\\"common.Financials\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseEstimates\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.estimates\\\",\\\"tag\\\",[28,[37,1],[\\\"common.Estimates\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,2],\\\"canUseDocumentsPage\\\",\\\"canUseProgressPage\\\",\\\"canUseHealthAndSafety\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Operations\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseDocumentsPage\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.documents\\\",\\\"paperclip\\\",[28,[37,1],[\\\"common.Documents\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseProgressPage\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.progress\\\",\\\"percent\\\",[28,[37,1],[\\\"shared.progress.Labour progress\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseHealthAndSafety\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.health-and-safety\\\",\\\"notes-medical\\\",[28,[37,1],[\\\"common.healthAndSafety\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseStagePayments\\\"],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.stage-payments\\\",\\\"coins\\\",[28,[37,1],[\\\"shared.stage-payments.Stage payments\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"canUseProjects\\\",\\\"canUseProducts\\\",\\\"canUseUsers\\\",\\\"canUseWorkers\\\",\\\"canUseSubcontractors\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Configuration\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseProducts\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.products\\\",\\\"cubes\\\",[28,[37,1],[\\\"common.Products\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"canUseUsers\\\",\\\"canUseWorkers\\\",\\\"canUseSubcontractors\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people\\\",\\\"users\\\",[28,[37,1],[\\\"common.People\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseProjects\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.settings\\\",\\\"cog\\\",[28,[37,1],[\\\"common.Settings\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@model\\\"],false,[\\\"sidebar\\\",\\\"t\\\",\\\"unless\\\",\\\"project-selector\\\",\\\"if\\\",\\\"includes-some-feature-flags\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/project.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/projects\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='index'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n  </Sidebar>\n  */\n  {\n    \"id\": \"WHXOZG7T\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"index\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/projects.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/reports\", [\"exports\", \"@glimmer/component\", \"@ember/service\"], function (_exports, _component, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/components/module-navigation/reports/company-reports\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'userIsClient' 'canUseEntityPositionReport' 'canUseEntityLabourHourReport'\n      )\n    }}\n      <sidebar.Title @title={{t 'common.Summary'}} />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityPositionReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.position'\n        @icon='tasks'\n        @title={{t 'common.Position'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityLabourHourReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.labour-hours'\n        @icon='user-clock'\n        @title={{t 'common.Labour hours'}}\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseEntityForecastReport'\n        'canUseEntityProfitMarginReport'\n        'canUseEntityInvoicingReport'\n        'canUseTimesheets'\n      )\n    }}\n      <sidebar.Title @title={{t 'common.Breakdown'}} />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityForecastReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.forecast-breakdown'\n        @icon='chart-line'\n        @title={{t\n          'components.module-navigation.reports.company-reports.Financial breakdown'\n        }}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityProfitMarginReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.profit-margins'\n        @icon='hand-holding-usd'\n        @title={{t 'common.Profit margins'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityInvoicingReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.invoicing'\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Invoicing'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseTimesheets')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.notes'\n        @icon='sticky-note'\n        @title={{t 'common.Notes'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityWIPReport')}}\n      <sidebar.Title @title={{t 'common.Financial'}} />\n      {{#if (includes-feature-flags 'canUseEntityWIPReport')}}\n        <sidebar.Item\n          @route='entity.builda-price.reports.company.wip'\n          @icon='balance-scale'\n          @title={{t 'shared.report.Work in progress'}}\n        />\n      {{/if}}\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"gsBvq8U1\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"userIsClient\\\",\\\"canUseEntityPositionReport\\\",\\\"canUseEntityLabourHourReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Summary\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityPositionReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.position\\\",\\\"tasks\\\",[28,[37,3],[\\\"common.Position\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityLabourHourReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.labour-hours\\\",\\\"user-clock\\\",[28,[37,3],[\\\"common.Labour hours\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseEntityForecastReport\\\",\\\"canUseEntityProfitMarginReport\\\",\\\"canUseEntityInvoicingReport\\\",\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Breakdown\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityForecastReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.forecast-breakdown\\\",\\\"chart-line\\\",[28,[37,3],[\\\"components.module-navigation.reports.company-reports.Financial breakdown\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityProfitMarginReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.profit-margins\\\",\\\"hand-holding-usd\\\",[28,[37,3],[\\\"common.Profit margins\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityInvoicingReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.invoicing\\\",\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Invoicing\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.notes\\\",\\\"sticky-note\\\",[28,[37,3],[\\\"common.Notes\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityWIPReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Financial\\\"],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityWIPReport\\\"],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.wip\\\",\\\"balance-scale\\\",[28,[37,3],[\\\"shared.report.Work in progress\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-some-feature-flags\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/reports/company-reports.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/reports/project\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.BackButton\n      @buttonText={{t 'common.Back to projects'}}\n      @route='entity.builda-price.reports.projects'\n    />\n    {{#unless sidebar.isCollapsed}}\n      <ProjectSelector\n        @selectedProject={{@selectedProject}}\n        @openProjects={{@openProjects}}\n        @selectedProjectIsLoading={{@selectedProjectIsLoading}}\n        @openProjectsIsLoading={{@openProjectsIsLoading}}\n        @backToProjectsRoute={{'entity.builda-price.reports.projects'}}\n      />\n    {{/unless}}\n  \n    {{#if this.showSummaryTitle}}\n      <sidebar.Title @title={{t 'common.Summary'}} />\n    {{/if}}\n  \n    {{#if this.canUsePositionReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.position'\n        @icon='tasks'\n        @title={{t 'common.Position'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseLabourHourReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.labour-hours'\n        @icon='user-clock'\n        @title={{t 'common.Labour hours'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.showBreakdownTitle}}\n      <sidebar.Title @title={{t 'common.Breakdown'}} />\n    {{/if}}\n  \n    {{#if this.canUseBudgetReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.budget'\n        @icon='money-check-alt'\n        @title={{t 'common.Budget'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseQuoteReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.quote'\n        @icon='handshake'\n        @title={{t 'common.Quote'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseCostReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.cost'\n        @icon='search-dollar'\n        @title={{t 'common.Costs'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseTimesheets')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.notes'\n        @icon='sticky-note'\n        @title={{t 'common.Notes'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseForecastReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.forecast-breakdown'\n        @icon='chart-line'\n        @title={{t 'shared.report.Forecast breakdown'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseProfitMarginReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.profit-margins'\n        @icon='hand-holding-usd'\n        @title={{t 'common.Profit margins'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseChargeupReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.chargeup'\n        @icon='poll'\n        @title={{t 'common.Chargeup'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseInvoicingReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.invoicing'\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Invoicing'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseClientReports}}\n      <sidebar.Title @title={{t 'common.Client'}} />\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.cost-to-complete'\n        @icon='user-tie'\n        @title={{t\n          'entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete'\n        }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseAccessReports}}\n      <sidebar.Title @title='Access' />\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.access'\n        @icon='map-pin'\n        @title='Access'\n        @model={{@model}}\n      />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"/MURR/ZC\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,1],[\\\"common.Back to projects\\\"],null],\\\"entity.builda-price.reports.projects\\\"]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isCollapsed\\\"]]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@backToProjectsRoute\\\"],[[30,2],[30,3],[30,4],[30,5],\\\"entity.builda-price.reports.projects\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showSummaryTitle\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Summary\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUsePositionReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.position\\\",\\\"tasks\\\",[28,[37,1],[\\\"common.Position\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseLabourHourReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.labour-hours\\\",\\\"user-clock\\\",[28,[37,1],[\\\"common.Labour hours\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdownTitle\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Breakdown\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseBudgetReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.budget\\\",\\\"money-check-alt\\\",[28,[37,1],[\\\"common.Budget\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseQuoteReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.quote\\\",\\\"handshake\\\",[28,[37,1],[\\\"common.Quote\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseCostReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.cost\\\",\\\"search-dollar\\\",[28,[37,1],[\\\"common.Costs\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.notes\\\",\\\"sticky-note\\\",[28,[37,1],[\\\"common.Notes\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseForecastReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.forecast-breakdown\\\",\\\"chart-line\\\",[28,[37,1],[\\\"shared.report.Forecast breakdown\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseProfitMarginReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.profit-margins\\\",\\\"hand-holding-usd\\\",[28,[37,1],[\\\"common.Profit margins\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseChargeupReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.chargeup\\\",\\\"poll\\\",[28,[37,1],[\\\"common.Chargeup\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseInvoicingReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.invoicing\\\",\\\"file-invoice-dollar\\\",[28,[37,1],[\\\"common.Invoicing\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseClientReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Client\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.cost-to-complete\\\",\\\"user-tie\\\",[28,[37,1],[\\\"entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseAccessReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Access\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.access\\\",\\\"map-pin\\\",\\\"Access\\\",[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@model\\\"],false,[\\\"sidebar\\\",\\\"t\\\",\\\"unless\\\",\\\"project-selector\\\",\\\"if\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/reports/project.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n    }\n    get canUsePositionReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectPositionReport');\n    }\n    get canUseLabourHourReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectLabourHourReport');\n    }\n    get canUseClientReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectClientReport');\n    }\n    get showSummaryTitle() {\n      return this.canUsePositionReports || this.canUseLabourHourReports;\n    }\n    get canUseQuoteReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectQuoteReport');\n    }\n    get canUseCostReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectCostReport');\n    }\n    get canUseBudgetReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectBudgetReport');\n    }\n    get canUseForecastReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectForecastReport');\n    }\n    get canUseProfitMarginReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectProfitMarginReport');\n    }\n    get canUseChargeupReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectChargeupReport');\n    }\n    get canUseInvoicingReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectInvoicingReport');\n    }\n    get canUseAccessReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canViewAccessReports');\n    }\n    get showBreakdownTitle() {\n      return this.canUseChargeupReports || this.canUseProfitMarginReports || this.canUseForecastReports || this.canUseBudgetReports || this.canUseCostReports || this.canUseQuoteReports || this.canUseInvoicingReports;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/scheduling\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO implement this once we have more than one page }}\n  <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"Cs4LF5jP\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/scheduling.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/settings\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.BackButton\n      @buttonText={{t 'common.Back to modules'}}\n      @route='entity'\n    />\n  \n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    <sidebar.Section @title={{t 'common.People'}}>\n      {{#each this.peopleSection.items as |item|}}\n        <sidebar.Item\n          @route={{item.route}}\n          @icon={{item.icon}}\n          @title={{item.name}}\n          @model={{item.model}}\n        />\n      {{/each}}\n    </sidebar.Section>\n  \n    {{#if\n      (or\n        (includes-some-feature-flags 'userIsEntityAdmin' 'canManageBills')\n        this.canViewIntegrationsTab\n      )\n    }}\n      <sidebar.Section\n        @title={{t 'common.Company'}}\n        @content={{this.companySection}}\n      >\n        {{#each this.companySection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canManageEstimatesSettings')}}\n      <sidebar.Section @title={{t 'common.Estimates'}}>\n        {{#each this.estimateSection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"IfSl+Qeh\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,1],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[28,[37,4],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.People\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"peopleSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[[30,2,[\\\"route\\\"]],[30,2,[\\\"icon\\\"]],[30,2,[\\\"name\\\"]],[30,2,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[28,[37,10],[\\\"userIsEntityAdmin\\\",\\\"canManageBills\\\"],null],[30,0,[\\\"canViewIntegrationsTab\\\"]]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\",\\\"@content\\\"],[[28,[37,1],[\\\"common.Company\\\"],null],[30,0,[\\\"companySection\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"companySection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[[30,3,[\\\"route\\\"]],[30,3,[\\\"icon\\\"]],[30,3,[\\\"name\\\"]],[30,3,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"canManageEstimatesSettings\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Estimates\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"estimateSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[[30,4,[\\\"route\\\"]],[30,4,[\\\"icon\\\"]],[30,4,[\\\"name\\\"]],[30,4,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"item\\\",\\\"item\\\",\\\"item\\\"],false,[\\\"sidebar\\\",\\\"t\\\",\\\"if\\\",\\\"and\\\",\\\"gt\\\",\\\"not\\\",\\\"media\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"includes-some-feature-flags\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/settings.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n    }\n    // the \"integrations\" route was prematurely migrated from the building route\n    // we need to keep it in both old and new versions of the software\n    // this should only be visible to people who have building, pricing, or buildaPrice modules\n    get canViewIntegrationsTab() {\n      const newBpCanSee = this.newFeatureFlags.includesFeatureFlags('canUseIntegrations');\n      return newBpCanSee;\n    }\n    get peopleSection() {\n      const peopleSection = {\n        name: this.intl.t('common.People'),\n        items: []\n      };\n      if (this.newFeatureFlags.excludesFeatureFlags('userIsWorker')) peopleSection.items.push({\n        route: 'entity.settings.profile',\n        icon: 'user-circle',\n        name: this.intl.t('components.module-navigation.settings.My profile')\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseUsers', 'canUseWorkers', 'canUseClientPortal', 'canUseSubcontractors')) peopleSection.items.push({\n        route: 'entity.settings.people',\n        icon: 'users',\n        name: this.intl.t('common.People')\n      });\n      if (this.newFeatureFlags.includesFeatureFlags('canUseSuppliers')) peopleSection.items.push({\n        route: 'entity.settings.contacts',\n        icon: 'warehouse',\n        name: this.intl.t('common.contacts')\n      });\n      return peopleSection;\n    }\n    get companySection() {\n      const companySection = {\n        name: this.intl.t('common.Company'),\n        items: []\n      };\n      if (this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin')) companySection.items.push({\n        route: 'entity.settings.company',\n        icon: 'building',\n        name: this.intl.t('common.Settings')\n      });\n      if (this.newFeatureFlags.includesFeatureFlags('canManageBills')) companySection.items.push({\n        route: 'entity.settings.auto-mapping',\n        icon: 'magic',\n        name: this.intl.t('common.Auto mapping')\n      });\n      if (this.canViewIntegrationsTab) companySection.items.push({\n        route: 'entity.settings.integrations',\n        icon: 'plug',\n        name: this.intl.t('common.Integrations')\n      });\n      if (this.newFeatureFlags.includesFeatureFlags('canManageBills') || this.newFeatureFlags.includesFeatureFlags('canManageInvoices')) companySection.items.push({\n        route: 'entity.settings.chart-of-accounts',\n        icon: 'piggy-bank',\n        name: this.intl.t('entity.settings.chart-of-accounts.Chart of accounts')\n      });\n      return companySection;\n    }\n    get estimateSection() {\n      const estimateSection = {\n        name: this.intl.t('components.module-navigation.settings.Estimate settings'),\n        items: []\n      };\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'plane-departure',\n        model: 'ownTakeoff',\n        name: this.intl.t('shared.estimates.Own takeoff')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'truck',\n        model: 'materialRate',\n        name: this.intl.t('shared.estimates.Material rate')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'file-invoice-dollar',\n        model: 'flatRateResource',\n        name: this.intl.t('shared.estimates.Flat rate resource')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'copy',\n        model: 'miscTemplate',\n        name: this.intl.t('shared.estimates.Misc template')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'user-clock',\n        model: 'labourFactor',\n        name: this.intl.t('shared.estimates.Labour factor')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'copy',\n        model: 'overheadTemplates',\n        name: this.intl.t('shared.estimates.Overhead templates')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'users',\n        model: 'workgangPositions',\n        name: this.intl.t('shared.estimates.Workgang positions')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'people-carry',\n        model: 'workgangs',\n        name: this.intl.t('shared.estimates.Workgangs')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'wrench',\n        model: 'subcontractorList',\n        name: this.intl.t('shared.estimates.Subcontractor list')\n      });\n      return estimateSection;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/month-picker\", [\"exports\", \"@ember/component\", \"@ember/object\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _object, _moment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless this.compact}}\n    <button type='button' class='subdued' {{action 'prevYear'}}>\n      <FaIcon @icon='angles-left' @size='lg' />\n    </button>\n    <button type='button' class='subdued' {{action 'prevMonth'}}>\n      <FaIcon @icon='angle-left' @size='lg' />\n    </button>\n  \n    <div class='inputs'>\n      <select\n        class={{if\n          this.dark\n          'select-box select-box--dark month'\n          'select-box month'\n        }}\n        onchange={{action (mut this.selectedMonth) value='target.value'}}\n      >\n        <option\n          value='01'\n          selected={{eq this.selectedMonth '01'}}\n        >January</option>\n        <option\n          value='02'\n          selected={{eq this.selectedMonth '02'}}\n        >February</option>\n        <option value='03' selected={{eq this.selectedMonth '03'}}>March</option>\n        <option value='04' selected={{eq this.selectedMonth '04'}}>April</option>\n        <option value='05' selected={{eq this.selectedMonth '05'}}>May</option>\n        <option value='06' selected={{eq this.selectedMonth '06'}}>June</option>\n        <option value='07' selected={{eq this.selectedMonth '07'}}>July</option>\n        <option value='08' selected={{eq this.selectedMonth '08'}}>August</option>\n        <option\n          value='09'\n          selected={{eq this.selectedMonth '09'}}\n        >September</option>\n        <option\n          value='10'\n          selected={{eq this.selectedMonth '10'}}\n        >October</option>\n        <option\n          value='11'\n          selected={{eq this.selectedMonth '11'}}\n        >November</option>\n        <option\n          value='12'\n          selected={{eq this.selectedMonth '12'}}\n        >December</option>\n      </select>\n  \n      <select\n        class={{if\n          this.dark\n          'select-box select-box--dark year'\n          'select-box year'\n        }}\n        onchange={{action (mut this.selectedYear) value='target.value'}}\n      >\n        {{#each this.yearList as |year|}}\n          <option\n            value={{year}}\n            selected={{eq this.selectedYear year}}\n          >{{year}}</option>\n        {{/each}}\n      </select>\n    </div>\n  \n    <button type='button' class='subdued' {{action 'nextMonth'}}>\n      <FaIcon @icon='angle-right' @size='lg' />\n    </button>\n    <button type='button' class='subdued' {{action 'nextYear'}}>\n      <FaIcon @icon='angles-right' @size='lg' />\n    </button>\n  {{else}}\n    <label class='month-picker__input-label' for='month-picker__input'>\n      <span class='month-picker__display'>\n        <span class='month-picker__month'>{{moment-format\n            this.period\n            'MMM'\n            'YYYY-MM'\n          }}</span>\n        <span class='month-picker__year'>{{moment-format\n            this.period\n            'YYYY'\n            'YYYY-MM'\n          }}</span>\n      </span>\n      <FaIcon @icon='calendar-alt' @size='lg' />\n    </label>\n  \n    <input\n      type='month'\n      value={{this.period}}\n      class='month-picker__input'\n      id='month-picker__input'\n    />\n  {{/unless}}\n  */\n  {\n    \"id\": \"y9uhXhpp\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"compact\\\"]]],[[[1,\\\"  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"prevYear\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angles-left\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"prevMonth\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angle-left\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"inputs\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"select\\\"],[15,0,[52,[30,0,[\\\"dark\\\"]],\\\"select-box select-box--dark month\\\",\\\"select-box month\\\"]],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,7],[[30,0,[\\\"selectedMonth\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"01\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"01\\\"],null]],[12],[1,\\\"January\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"02\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"02\\\"],null]],[12],[1,\\\"February\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"03\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"03\\\"],null]],[12],[1,\\\"March\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"04\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"04\\\"],null]],[12],[1,\\\"April\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"05\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"05\\\"],null]],[12],[1,\\\"May\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"06\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"06\\\"],null]],[12],[1,\\\"June\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"07\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"07\\\"],null]],[12],[1,\\\"July\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"08\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"08\\\"],null]],[12],[1,\\\"August\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"09\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"09\\\"],null]],[12],[1,\\\"September\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"10\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"10\\\"],null]],[12],[1,\\\"October\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"11\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"11\\\"],null]],[12],[1,\\\"November\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"12\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"12\\\"],null]],[12],[1,\\\"December\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"select\\\"],[15,0,[52,[30,0,[\\\"dark\\\"]],\\\"select-box select-box--dark year\\\",\\\"select-box year\\\"]],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,7],[[30,0,[\\\"selectedYear\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"yearList\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"option\\\"],[15,2,[30,1]],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedYear\\\"]],[30,1]],null]],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"nextMonth\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angle-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"nextYear\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angles-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"label\\\"],[14,0,\\\"month-picker__input-label\\\"],[14,\\\"for\\\",\\\"month-picker__input\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"month-picker__display\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"month-picker__month\\\"],[12],[1,[28,[35,14],[[30,0,[\\\"period\\\"]],\\\"MMM\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"month-picker__year\\\"],[12],[1,[28,[35,14],[[30,0,[\\\"period\\\"]],\\\"YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"calendar-alt\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"input\\\"],[15,2,[30,0,[\\\"period\\\"]]],[14,0,\\\"month-picker__input\\\"],[14,1,\\\"month-picker__input\\\"],[14,4,\\\"month\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"year\\\"],false,[\\\"unless\\\",\\\"button\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"select\\\",\\\"if\\\",\\\"mut\\\",\\\"option\\\",\\\"eq\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"span\\\",\\\"moment-format\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/components/month-picker.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    // Default only. Bind your YYYY-MM string to this.\n    period: (0, _moment.default)().format('YYYY-MM'),\n    classNames: ['month-picker'],\n    classNameBindings: ['closedPeriod', 'dark:month-picker--dark'],\n    selectedMonth: (0, _object.computed)('period', {\n      get() {\n        return (0, _object.get)(this, 'period').substr(5);\n      },\n      set(key, value) {\n        const current = (0, _object.get)(this, 'period');\n        (0, _object.set)(this, 'period', current.substr(0, 5) + value);\n        return value;\n      }\n    }),\n    selectedYear: (0, _object.computed)('period', {\n      get() {\n        const period = (0, _object.get)(this, 'period');\n        return typeof period === 'string' ? period.substr(0, 4) : String((0, _moment.default)().year());\n      },\n      set(key, year) {\n        const current = (0, _moment.default)((0, _object.get)(this, 'period'), 'YYYY-MM');\n        const month = current.isValid() ? current.format('MM') : (0, _moment.default)().format('MM');\n        year = (0, _moment.default)(year, 'YYYY').isValid() ? String(year) : (0, _moment.default)().format('YYYY');\n        (0, _object.set)(this, 'period', `${year}-${month}`);\n        return year;\n      }\n    }),\n    yearList: (0, _object.computed)('period', function () {\n      const selected = (0, _moment.default)((0, _object.get)(this, 'period').substr(0, 4), 'YYYY');\n      let start = (0, _moment.default)([(0, _moment.default)().year() - 8]);\n      let end = (0, _moment.default)([(0, _moment.default)().year() + 2]);\n      if (selected.diff(start, 'years', true) < 2) {\n        start = selected.subtract(2, 'years');\n      } else if (selected.diff(end, 'years', true) > -2) {\n        end = selected.add(2, 'years');\n      }\n      const list = [];\n      let current = start;\n      do {\n        list.push(current.format('YYYY'));\n        current = current.add(1, 'year');\n      } while (current.isBefore(end) || current.isSame(end));\n      return list;\n    }),\n    changePeriod(diff, type) {\n      const current = (0, _object.get)(this, 'period');\n      const updated = (0, _moment.default)(current, 'YYYY-MM').add(diff, type).format('YYYY-MM');\n      (0, _object.set)(this, 'period', updated);\n    },\n    actions: {\n      prevYear() {\n        this.changePeriod(-1, 'year');\n      },\n      prevMonth() {\n        this.changePeriod(-1, 'month');\n      },\n      nextMonth() {\n        this.changePeriod(1, 'month');\n      },\n      nextYear() {\n        this.changePeriod(1, 'year');\n      }\n    }\n  }));\n});","define(\"portal/components/multi-item-selector-paginated\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='d-flex align-items-center px-3 text-nowrap overflow-auto'\n    style='min-height: 3em;'\n  >\n    {{#each this.firstScopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn @onSelectContainer container}}\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  \n    {{#if (gt @scope.length 3)}}\n      <div class='mx-2 fw-bolder'>&hellip;</div>\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n  \n    {{#each this.lastScopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn @onSelectContainer container}}\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n    <LabelPopup\n      class='ms-auto'\n      @text={{t\n        'components.multi-item-selector-paginated.billableRemainingTooltip'\n      }}\n    >\n      {{t 'components.multi-item-selector-paginated.Billable remaining'}}\n    </LabelPopup>\n  </div>\n  \n  {{#if @onSearch}}\n    <div class='px-3 pb-3'>\n      <Input\n        class='form-control rounded'\n        placeholder={{or @searchPlaceholder (t 'common.Search for a item')}}\n        aria-label={{or @searchPlaceholder (t 'common.Search for a item')}}\n        @value={{@searchString}}\n        {{on 'keyup' this.onSearchInputKeyUp}}\n        disabled={{@disabled}}\n        @type='text'\n      />\n    </div>\n  {{/if}}\n  \n  <InfinityScroll @onLoadMore={{@onLoadMore}} as |didInsert|>\n    <div class='overflow-auto border-top' {{did-insert didInsert}}>\n      {{#if @isLoading}}\n        <div class='d-block text-center p-3'>\n          {{or @loadingMessage (t 'common.Loading')}}\n          <LoadingIcon @type='spinner' />\n        </div>\n      {{else}}\n        {{#each @item.children as |container|}}\n          {{! 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    actions: {\n      shiftDays(n) {\n        const newStartDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).add(n, 'd').format('YYYY-MM-DD');\n        const newEndDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).add(n, 'd').format('YYYY-MM-DD');\n        (0, _object.set)(this, 'startDate', newStartDate);\n        (0, _object.set)(this, 'endDate', newEndDate);\n      },\n      setDateRange(dates) {\n        const {\n          startDate,\n          endDate\n        } = dates;\n        if (startDate) (0, _object.set)(this, 'jsStartDate', startDate);\n        if (endDate) (0, _object.set)(this, 'jsEndDate', endDate);\n      },\n      async exportAsCSV(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsCSV');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const userName = (0, _object.get)(this, 'sessionData.user.email');\n        const days = (0, _object.get)(this, 'reportDays').map(d => (0, _moment.default)(d).format((0, _object.get)(this, 'intl').t('date.dashDayFirst')));\n        // TODO change permissions when new permission is implemented\n        const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n\n        // Create a 2d array that represents a spreadsheet\n        const headings = [(0, _object.get)(this, 'intl').t('common.Name')];\n        if (canSeePayRate) headings.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Pay rate'));\n        headings.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Total hours'));\n        if (canSeePayRate) headings.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Total pay'));\n        headings.push((0, _object.get)(this, 'intl').t('common.project'), (0, _object.get)(this, 'intl').t('common.task'), ...days);\n        const table = [\n        // Report metadata\n        [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Payroll report')], [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Report for')}:`, entityName], [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Generated by')}:`, userName], [`${(0, _object.get)(this, 'intl').t('common.From')}:`, startDate, `${(0, _object.get)(this, 'intl').t('common.to')}:`, endDate], ['', ''],\n        // Table Headings\n        headings,\n        // Table data\n        ...(0, _object.get)(this, 'report').map(row => {\n          const rowArray = [(0, _object.get)(row, 'worker.fullName')];\n          if (canSeePayRate) rowArray.push((0, _object.get)(row, 'worker.payRate'));\n          rowArray.push((0, _object.get)(row, 'totalHours'));\n          if (canSeePayRate) rowArray.push((0, _object.get)(row, 'totalPay'));\n          rowArray.push((0, _object.get)(row, 'project.name'), (0, _object.get)(row, 'task.name'), ...(0, _object.get)(row, 'dayTotals').mapBy('totalHours'));\n          return rowArray;\n        })];\n        if ((0, _object.get)(this, 'payRateClashNote')) table.splice(4, 0, [(0, _object.get)(this, 'payRateClashNote')]);\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n        const fileName = `payroll-${startDate}-to-${endDate}.csv`;\n        (0, _csvBuilder.downloadCSV)(table, fileName);\n      },\n      async exportAsCrystalCSV(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsCrystalCSV');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        const canUseCrystalPayroll = this.newFeatureFlags.includesFeatureFlags('entityCanUseCrystalPayroll');\n        const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n        if (!canSeePayRate || !canUseCrystalPayroll) throw new Error('You do not have the correct permissions to export payroll information');\n\n        /* eslint-disable max-len */\n        if (!confirm((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.crystalPayrollExpectWorkerNamesToMatchExactlyAsIsInTheirSystemWouldYouLikeToContinue'))) return; // eslint-disable-line no-alert\n\n        const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const workers = (0, _object.get)(this, 'model.workers');\n        const reportDays = (0, _object.get)(this, 'reportDays');\n        const workerQuery = {\n          start: (0, _object.get)(this, 'startDate'),\n          end: (0, _object.get)(this, 'endDate')\n        };\n        const workersWithComputedHours = workers.map(worker => {\n          return {\n            fullName: `${(0, _object.get)(worker, 'firstName')} ${(0, _object.get)(worker, 'lastName')}`,\n            totals: getHoursByDay({\n              worker,\n              query: workerQuery,\n              days: reportDays\n            }),\n            payRate: (0, _object.get)(worker, 'payRate')\n          };\n        });\n        const crystalCSV = (0, _crystalCsvGenerator.generateCrystalCSV)(workersWithComputedHours, reportDays);\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n        const fileName = `crystal-payroll-${startDate}-to-${endDate}.csv`;\n        (0, _csvBuilder.downloadCSVCrystal)(crystalCSV, fileName);\n      },\n      async exportAsSmartPayrollCSV(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsSmartPayrollCSV');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        const canUseSmartPayroll = this.newFeatureFlags.includesFeatureFlags('entityCanUseSmartPayroll');\n        const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n        if (!canSeePayRate || !canUseSmartPayroll) throw new Error('You do not have the correct permissions to export payroll information');\n        const workerQuery = {\n          start: (0, _object.get)(this, 'startDate'),\n          end: (0, _object.get)(this, 'endDate')\n        };\n        const workerReportData = (0, _object.get)(this, 'model.workers').map(worker => ({\n          smartPayrollEmployeeCode: worker.smartPayrollEmployeeCode,\n          smartPayrollEmployeeDepartmentCode: worker.smartPayrollEmployeeDepartmentCode,\n          dayTotals: getHoursByDay({\n            worker,\n            query: workerQuery,\n            days: (0, _object.get)(this, 'reportDays')\n          })\n        })).filter(({\n          dayTotals\n        }) => dayTotals.find(({\n          totalHours\n        }) => totalHours));\n        const workerReportDataWithCodes = workerReportData.filter(({\n          smartPayrollEmployeeCode\n        }) => smartPayrollEmployeeCode);\n        if (workerReportDataWithCodes.length !== workerReportData.length && !confirm((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.xOfYWorkersDoNotHaveEmployeeCodesAndWillNotBeExportedDoYouWishToContinue', {\n          x: workerReportData.length - workerReportDataWithCodes.length,\n          y: workerReportData.length\n        })) // eslint-disable-line no-alert\n        ) return;\n        const table = (0, _smartPayrollCsvGenerator.generateSmartPayrollCSV)(workerReportDataWithCodes);\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        const fileName = `payroll-${(0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'))}-to-${(0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'))}.csv`;\n        (0, _csvBuilder.downloadCSV)(table, fileName, {\n          includeBOM: false,\n          quoteValues: false\n        });\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n      },\n      // eslint-disable-next-line complexity\n      async exportForXero(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportForXero');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        (0, _object.set)(this, 'isSyncingToXero', true);\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n        const startDate = (0, _object.get)(this, 'startDate');\n        const endDate = (0, _object.get)(this, 'endDate');\n        const selectedProjectId = (0, _object.get)(this, 'selectedProject.id');\n        const selectedWorkerId = (0, _object.get)(this, 'selectedWorker.id');\n        const workers = (0, _object.get)(this, 'model.workers');\n        try {\n          const query = {\n            startDate,\n            endDate,\n            entityId,\n            projectId: selectedProjectId,\n            workerId: selectedWorkerId\n          };\n          const responseData = await xero.createXeroTimesheets(query);\n          const {\n            message,\n            completed,\n            failures,\n            success\n          } = responseData;\n          if (completed && !failures.length) {\n            return (0, _object.get)(this, 'notifications').success(message);\n          }\n          const failuresByWorker = _lodash.default.groupBy(failures, 'worker');\n          const successByWorker = _lodash.default.groupBy(success, 'worker');\n          const workerIds = [...new Set([...Object.keys(failuresByWorker), ...Object.keys(successByWorker)])];\n          const workerSummaries = workerIds.map(workerId => ({\n            worker: workers.findBy('id', workerId),\n            success: successByWorker[workerId] || [],\n            failures: failuresByWorker[workerId] || []\n          }));\n          if (!(0, _object.get)(this, 'skipDayLocking')) {\n            await this.acceptAndLockDays();\n          }\n          if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n          if (completed) (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Timesheets synced with Xero'));else (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Timesheets were not synced with Xero'));\n          (0, _object.set)(this, 'xeroTimesheetsResponseData', {\n            ...responseData,\n            workerSummaries\n          });\n        } catch (error) {\n          if (error.status === 429) return; // error is handled\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'isSyncingToXero', false);\n        }\n      },\n      async exportForQuickbooks(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportForQuickbooks');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        (0, _object.set)(this, 'isSyncingToQuickbooks', true);\n        const quickbooks = (0, _object.get)(this, 'quickbooks');\n        const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n        const startDate = (0, _object.get)(this, 'startDate');\n        const endDate = (0, _object.get)(this, 'endDate');\n        const selectedProjectId = (0, _object.get)(this, 'selectedProject.id');\n        const selectedWorkerId = (0, _object.get)(this, 'selectedWorker.id');\n        const workers = (0, _object.get)(this, 'model.workers');\n        try {\n          const query = {\n            startDate,\n            endDate,\n            entityId,\n            projectId: selectedProjectId,\n            workerId: selectedWorkerId\n          };\n          const responseData = await quickbooks.createTimesheets(query);\n          const {\n            message,\n            completed,\n            failures,\n            success\n          } = responseData;\n          if (completed && !failures.length) {\n            return (0, _object.get)(this, 'notifications').success(message);\n          }\n          const failuresByWorker = _lodash.default.groupBy(failures, 'worker');\n          const successByWorker = _lodash.default.groupBy(success, 'worker');\n          const workerIds = [...new Set([...Object.keys(failuresByWorker), ...Object.keys(successByWorker)])];\n          const workerSummaries = workerIds.map(workerId => ({\n            worker: workers.findBy('id', workerId),\n            success: successByWorker[workerId] || [],\n            failures: failuresByWorker[workerId] || []\n          }));\n          if (!(0, _object.get)(this, 'skipDayLocking')) {\n            await this.acceptAndLockDays();\n          }\n          if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n          if (completed) (0, _object.get)(this, 'notifications').success('Timesheets synced with QuickBooks');else (0, _object.get)(this, 'notifications').error('Timesheets were not synced with QuickBooks');\n          (0, _object.set)(this, 'quickbooksTimesheetsResponseData', {\n            ...responseData,\n            workerSummaries\n          });\n        } catch (error) {\n          if (error.status === 429) return; // error is handled\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'isSyncingToQuickbooks', false);\n        }\n      },\n      async exportAsExcel(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsExcel');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        const report = [];\n        const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const userName = (0, _object.get)(this, 'sessionData.user.email');\n        const days = (0, _object.get)(this, 'reportDays').map(d => (0, _moment.default)(d).format((0, _object.get)(this, 'intl').t('date.dashDayFirst')));\n        const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n        report.push({\n          lineType: 'title',\n          data: [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Payroll report')]\n        });\n        report.push({\n          lineType: 'subtitle',\n          data: [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Report for')}:`, entityName]\n        });\n        report.push({\n          lineType: 'subtitle',\n          data: [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Generated by')}:`, userName]\n        });\n        report.push({\n          lineType: 'subtitle',\n          data: [`${(0, _object.get)(this, 'intl').t('common.Date range')}:`, `${(0, _object.get)(this, 'intl').t('common.From')} ${startDate} ${(0, _object.get)(this, 'intl').t('common.to')} ${endDate}`]\n        });\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        if ((0, _object.get)(this, 'payRateClashNote')) {\n          report.push({\n            lineType: 'subtitle',\n            data: [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Please note')}:`, (0, _object.get)(this, 'payRateClashNote')]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n        }\n        const payRollData = [`${(0, _object.get)(this, 'intl').t('common.Worker')}`, (0, _object.get)(this, 'intl').t('common.Hours')];\n        if (canSeePayRate) {\n          payRollData.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Pay rate'));\n          payRollData.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Total pay'));\n        }\n        payRollData.push((0, _object.get)(this, 'intl').t('common.Project'), (0, _object.get)(this, 'intl').t('common.Task'), ...days);\n        report.push({\n          lineType: 'payrollHeading',\n          data: payRollData\n        });\n        (0, _object.get)(this, 'report').forEach(row => {\n          const rowArray = [(0, _object.get)(row, 'worker.fullName'), (0, _object.get)(row, 'totalHours')];\n          if (canSeePayRate) {\n            rowArray.push((0, _object.get)(row, 'worker.payRate'));\n            rowArray.push((0, _object.get)(row, 'totalPay'));\n          }\n          rowArray.push((0, _object.get)(row, 'project.name'), (0, _object.get)(row, 'task.name'), ...(0, _object.get)(row, 'dayTotals').mapBy('totalHours'));\n          if ((0, _object.get)(row, 'project.name') === 'All Projects') {\n            report.push({\n              lineType: 'payrollTotalRow',\n              data: rowArray\n            });\n          } else if ((0, _object.get)(row, 'project.name')) {\n            report.push({\n              lineType: 'payrollJobTotalRow',\n              data: rowArray\n            });\n          } else {\n            report.push({\n              lineType: 'payrollCostCenterRow',\n              data: rowArray\n            });\n          }\n        });\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        return new Promise((resolve, reject) => {\n          _jquery.default.ajax({\n            url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-xlsx',\n            method: 'POST',\n            xhr() {\n              // This seems to be the only way to set the response type to blob.\n              // This will allow js to leave the file as a bytestream rather than trying to parse it.\n              const xhr = new XMLHttpRequest();\n              xhr.responseType = 'blob';\n              return xhr;\n            },\n            headers: {\n              Authorization: `Bearer ${(0, _object.get)(this, 'portalApiToken')}`\n            },\n            data: JSON.stringify({\n              data: report,\n              reportType: 'payroll'\n            }),\n            contentType: 'application/json',\n            accept: 'application/vnd.ms-excel'\n          }).then(resolve, reject);\n        }).then(response => {\n          if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n          const fileName = `payroll-${startDate}-to-${endDate}.xlsx`;\n          return (0, _csvBuilder.downloadXlsx)(response, fileName);\n        });\n      },\n      async exportAsKeypay(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsKeypay');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n\n        // https://support.yourpayroll.com.au/hc/en-nz/articles/211012203-Importing-a-Pay-Run\n        // about half way \"Pay run import file\"\n        const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const workers = (0, _object.get)(this, 'model.workers');\n        const csv = [];\n        csv.push(['Employee Name',\n        // the name\n        'EmployeeId',\n        // should be on the worker\n        'LocationId',\n        // either leave blank OR add it to the project/task model and group lines by worker and location\n        'PayCategoryId',\n        // leave blank OR save on worker if worker specific. Otherwise it could be saved to the project or task.\n        'Units',\n        // the hours\n        'Rate',\n        // the pay rate\n        'StartDateTime',\n        // start date of the period\n        'EndDateTime' // end date of the period\n        ]);\n\n        // filter workers that are only keypayEmployeeCode and active\n        const filteredWorkers = workers.filter(worker => worker.keypayEmployeeCode && worker.isActive);\n        for (const worker of filteredWorkers) {\n          const {\n            hours,\n            pay\n          } = worker.calculateWorkForProject({\n            start: (0, _object.get)(this, 'startDate'),\n            end: (0, _object.get)(this, 'endDate')\n          });\n          // due to the inaccuracy of this report we average the rate\n          const rate = hours / (pay || Infinity);\n          const startDateTime = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.slashDayFirst'));\n          const endDateTime = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.slashDayFirst'));\n          csv.push([worker.fullName, worker.keypayEmployeeCode, '', '', hours, rate, startDateTime, endDateTime]);\n        }\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        const fileName = `payroll-${startDate}-to-${endDate}.csv`;\n        (0, _csvBuilder.downloadCSV)(csv, fileName);\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n      }\n    },\n    acceptAndLockDays: async function () {\n      const startDate = (0, _object.get)(this, 'startDate');\n      const endDate = (0, _object.get)(this, 'endDate');\n      const selectedWorker = (0, _object.get)(this, 'selectedWorker');\n      const workers = selectedWorker ? [selectedWorker] : (0, _object.get)(this, 'activeWorkers');\n      const workerIds = workers.map(x => x.id);\n      await this.portalApiV2.authPost('/timesheets/accept', {\n        startDate,\n        endDate,\n        workerIds\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canManageEntity', 'canManageTimesheets', 'canManageNotes')) {\n        await this.portalApiV2.authPost('/timesheets/lock', {\n          startDate,\n          endDate,\n          workerIds\n        });\n      }\n    }\n  });\n  function buildReportRow({\n    worker,\n    query,\n    days,\n    workerStatuses\n  }) {\n    const totals = worker.calculateWorkForProject(query);\n    const project = (0, _object.get)(query, 'project');\n    let projectStatuses = {};\n    if (project && workerStatuses) {\n      projectStatuses = workerStatuses[(0, _object.get)(project, 'id')] || {};\n    }\n    let taskBreadcrumbs = '';\n    if ((0, _object.get)(query, 'task.breadcrumbs')) {\n      taskBreadcrumbs += (0, _object.get)(query, 'task.breadcrumbs') + ' > ' + (0, _object.get)(query, 'task.name');\n    }\n    return {\n      project,\n      task: (0, _object.get)(query, 'task'),\n      taskBreadcrumbs,\n      totalHours: (0, _object.get)(totals, 'hours'),\n      totalPay: (0, _object.get)(totals, 'pay'),\n      dayTotals: getHoursByDay({\n        worker,\n        query,\n        days,\n        projectStatuses\n      })\n    };\n  }\n  function getHoursByDay({\n    worker,\n    query,\n    days,\n    projectStatuses = {}\n  }) {\n    return days.map(day => {\n      query.start = day;\n      query.end = day;\n      const dayTotals = worker.calculateWorkForProject(query);\n      const dayInfo = {\n        totalHours: (0, _object.get)(dayTotals, 'hours')\n      };\n      const projectStatus = projectStatuses[day];\n      if (projectStatus) dayInfo.status = projectStatus;\n      return dayInfo;\n    });\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"moment\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"portal/config/environment\", \"ember-changeset\", \"@ember/runloop\", \"ember-concurrency\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _moment, _tracking, _object, _service, _environment, _emberChangeset, _runloop, _emberConcurrency, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"ember-changeset\",0,\"@ember/runloop\",0,\"ember-concurrency\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"purchaseOrderChangeSet\", _descriptor9, this);\n      _initializerDefineProperty(this, \"purchaseOrderForm\", _descriptor0, this);\n      _initializerDefineProperty(this, \"addressList\", _descriptor1, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor10, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor11, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor12, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor13, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor15, this);\n      _defineProperty(this, \"queryParams\", ['searchTerm', 'startDate', 'endDate', 'status']);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersPage\", void 0);\n      _defineProperty(this, \"suppliersSearchTerm\", void 0);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"loadSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.suppliersSearchTerm) {\n              this.suppliersPage = undefined;\n              this.suppliers = [];\n              this.suppliersSearchTerm = searchTerm;\n            }\n            const supplierFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) supplierFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: supplierFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.suppliersPage = nextPage.meta;\n            this.suppliers = [...this.suppliers, ...nextPage.toArray()];\n            return this.suppliers;\n          } catch (e) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              e\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadSuppliers\", null));\n      _defineProperty(this, \"onSearchAddress\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.addressList = this.model.projects.last.value.filter(u => {\n            if (u.address) {\n              const matchString = `${u.address}`.replace(/\\s/g, '').toLowerCase();\n              return matchString.includes(searchTerm.replace(/\\s/g, '').toLowerCase());\n            }\n          });\n        }\n      }), null, \"onSearchAddress\", null));\n      _defineProperty(this, \"onSavePurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          yield changeSet.validate();\n          if (!changeSet.isValid) return;\n          const purchaseOrder = yield changeSet.save();\n          this.onClose();\n          this.router.transitionTo(`entity.builda-price.operations.outgoing.purchase-orders.purchase-order`, purchaseOrder.id);\n        }\n      }), null, \"onSavePurchaseOrder\", null));\n      _defineProperty(this, \"_validatePurchaseOrderNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validatePurchaseOrderNumber({\n            entity: this.sessionData.entity.id,\n            purchaseOrderNumber\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"_validatePurchaseOrderNumber\", null));\n      _defineProperty(this, \"purchaseOrderValidateMap\", {\n        purchaseOrderNumber: this.purchaseOrderNumberValidator,\n        supplier: this.supplierNameValidator\n      });\n      _defineProperty(this, \"purchaseOrderValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        switch (key) {\n          case 'purchaseOrderNumber':\n            return await this.purchaseOrderNumberValidator(value, newValue);\n          case 'supplier':\n            return this.supplierNameValidator(value);\n          default:\n            return true;\n        }\n      });\n    }\n    get isLoading() {\n      return this.model.purchaseOrders.lastSuccessful === null && this.model.purchaseOrders.isRunning || this.model.projects.lastSuccessful === null && this.model.projects.isRunning || this.model.purchaseOrderOptions.lastSuccessful === null && this.model.purchaseOrderOptions.isRunning;\n    }\n    get jsStartDate() {\n      const start = this.startDate || (0, _moment.default)().startOf('isoWeek').subtract(1, 'months');\n      return (0, _moment.default)(start).toDate();\n    }\n    set jsStartDate(value) {\n      this.startDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    get jsEndDate() {\n      const end = this.endDate || (0, _moment.default)().endOf('isoWeek');\n      return (0, _moment.default)(end).toDate();\n    }\n    set jsEndDate(value) {\n      this.endDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    updateSearchTerm(value) {\n      this.searchTerm = value;\n    }\n    sortColumn(columnName) {\n      if (this.sortBy !== columnName) {\n        this.sortBy = columnName;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = columnName;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    setSupplier(supplier) {\n      this.purchaseOrderChangeSet.set('supplier', supplier);\n    }\n    get filteredPurchaseOrders() {\n      if (this.sortDirection === 'desc') return this.model.purchaseOrders.last.value.sortBy(this.sortBy).reverse();\n      if (this.sortDirection === 'asc') return this.model.purchaseOrders.last.value.sortBy(this.sortBy);\n      return this.model.purchaseOrders.last.value;\n    }\n    get purchaseOrderNumberIconName() {\n      return this.sortBy === 'purchaseOrderNumber' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get supplierIconName() {\n      return this.sortBy === 'supplier.name' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get dateOrderPlacedIconName() {\n      return this.sortBy === 'dateOrderPlaced' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get dateCreatedIconName() {\n      return this.sortBy === 'dateCreated' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get statusIconName() {\n      return this.sortBy === 'status' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get deliveryStatusIconName() {\n      return this.sortBy === 'deliveryStatus' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.jsStartDate = startDate;\n      if (endDate) this.jsEndDate = endDate;\n    }\n    get nextPurchaseOrderNumber() {\n      const purchaseOrderOptions = this.model.purchaseOrderOptions.last.value;\n      const purchaseOrderNumber = purchaseOrderOptions.prefix ? `${purchaseOrderOptions.prefix}${purchaseOrderOptions.nextPurchaseOrderNumber}` : purchaseOrderOptions.nextPurchaseOrderNumber;\n      return purchaseOrderNumber;\n    }\n    openNewPOForm() {\n      const purchaseOrderNumber = this.nextPurchaseOrderNumber;\n      const purchaseOrder = this.store.createRecord('purchase-order', {\n        entity: this.sessionData.entity,\n        purchaseOrderNumber\n      });\n      this.purchaseOrderChangeSet = (0, _emberChangeset.Changeset)(purchaseOrder, this.purchaseOrderValidator, this.purchaseOrderValidateMap);\n    }\n    setAddress(value) {\n      this.purchaseOrderChangeSet.set('address', value.address);\n    }\n    onClose() {\n      this.purchaseOrderChangeSet = null;\n      this.suppliersCurrentPage = 1;\n    }\n    async purchaseOrderNumberValidator(value, newValue) {\n      try {\n        const {\n          isUnique,\n          nextPoNumber\n        } = await this._validatePurchaseOrderNumber.perform(value);\n        if (!isUnique) return `${this.intl.t('validation.purchaseOrderNumberAlreadyExists')} ${nextPoNumber ? nextPoNumber : this.intl.t('shared.purchase-order.a different one')}`;\n        return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a purchase order number');\n      } catch (e) {\n        if (!(0, _emberConcurrency.didCancel)(e)) {\n          throw Error('Error validating purchase order number');\n        }\n      }\n      return;\n    }\n    supplierNameValidator(supplierValue) {\n      return supplierValue.name && supplierValue.name.length > 0 || this.intl.t('validation.Please select a supplier');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'ALL';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"addressList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'months').toDate();\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').toDate();\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'dateCreated';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'desc';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openNewPOForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openNewPOForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/purchase-order\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/models/attachment\", \"portal/utils/csv-builder\", \"moment\", \"@ember/runloop\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _attachment, _csvBuilder, _moment, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"portal/models/attachment\",0,\"portal/utils/csv-builder\",0,\"moment\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedItemIndexes\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isAddingProducts\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isDeletingPurchaseOrder\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isCreatingProducts\", _descriptor13, this);\n      _initializerDefineProperty(this, \"itemCreatorSelectedProject\", _descriptor14, this);\n      _initializerDefineProperty(this, \"itemCreatorSelectedTasks\", _descriptor15, this);\n      _initializerDefineProperty(this, \"itemSelectorSelectedProject\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isApproveAndSendEmail\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isSendEmail\", _descriptor18, this);\n      _initializerDefineProperty(this, \"includeAllAttachmentsInSubmissionEmail\", _descriptor19, this);\n      _initializerDefineProperty(this, \"deletedPurchaseOrderItems\", _descriptor20, this);\n      _initializerDefineProperty(this, \"addressList\", _descriptor21, this);\n      _defineProperty(this, \"acceptedMimeTypes\", [..._attachment.shortcutsToMime.image, ..._attachment.shortcutsToMime.text, ..._attachment.shortcutsToMime.document, ..._attachment.shortcutsToMime.archive]);\n      _initializerDefineProperty(this, \"_purchaseOrderItems\", _descriptor22, this);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.purchase-orders.index',\n        pageTitle: this.intl.t('common.Purchase orders')\n      }, {\n        pageTitle: this.intl.t('common.Purchase order')\n      }]);\n      _defineProperty(this, \"onSearchAddress\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.addressList = this.model.projects.last.value.filter(p => {\n            if (p.address) {\n              const matchString = `${p.address}`.replace(/\\s/g, '').toLowerCase();\n              return matchString.includes(searchTerm.replace(/\\s/g, '').toLowerCase());\n            }\n          });\n        }\n      }), null, \"onSearchAddress\", null));\n      _defineProperty(this, \"onSavePurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.purchaseOrderChangeSet.validate('purchaseOrderNumber');\n            if (!this.purchaseOrderChangeSet.isValid) return;\n            this.purchaseOrderChangeSet.taxFreightCharges = (1 + this.gst) * (this.purchaseOrderChangeSet.freightCharges ?? 0); // set gst tax value\n\n            yield this.purchaseOrderChangeSet.save();\n            yield Promise.all([...this.purchaseOrderItems.map(i => {\n              if (i.isDeleted) return;\n              i.taxTotal = (1 + this.gst) * (i.unitPrice ?? 0) * (i.quantity ?? 0); // set gst taxTotal column value\n\n              i.save();\n            }), ...this.deletedPurchaseOrderItems.map(item => item.save())]);\n            this.deletedPurchaseOrderItems = [];\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Successfully saved purchase order'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.somethingWentWrongWhileSavingPurchaseOrder'),\n              error\n            });\n          }\n        }\n      }), null, \"onSavePurchaseOrder\", null));\n      _defineProperty(this, \"onDeletePurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.purchaseOrder.last.value.destroyRecord();\n            this._purchaseOrderItems = null;\n            this.isDeletingPurchaseOrder = false;\n            this.router.transitionTo(`entity.builda-price.operations.outgoing.purchase-orders`);\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Successfully deleted purchase order'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.somethingWentWrongWhileDeletingPurchaseOrder'),\n              error\n            });\n          }\n        }\n      }), null, \"onDeletePurchaseOrder\", null));\n      _defineProperty(this, \"onSavePurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (data) {\n          const lastSortIndex = this.purchaseOrderItems.length;\n          const newPurchaseOrderItems = [];\n          data.forEach((row, index) => {\n            const taskProduct = row.rowData[0].taskProduct;\n            const orderQty = row.rowData[7].value;\n            if (orderQty) {\n              newPurchaseOrderItems.push(this.store.createRecord('purchase-order-item', {\n                entity: this.sessionData.entity,\n                task: taskProduct.belongsTo('task').value(),\n                purchaseOrder: this.model.purchaseOrder.last.value,\n                taskProduct: taskProduct,\n                sku: taskProduct.sku,\n                description: taskProduct.description,\n                unitPrice: taskProduct.unitPrice,\n                unit: taskProduct.unit,\n                quantity: orderQty,\n                sortIndex: index + lastSortIndex\n              }));\n            }\n          });\n          this.purchaseOrderItems = [...this.purchaseOrderItems, ...newPurchaseOrderItems];\n          (0, _runloop.next)(() => {\n            this.isAddingProducts = false;\n          });\n        }\n      }), null, \"onSavePurchaseOrderItems\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          [...this.selectedItemIndexes].forEach(index => {\n            this.purchaseOrderItems[index].deleteRecord();\n          });\n          this.deletedPurchaseOrderItems = this.purchaseOrderItems.filter(p => p.isDeleted);\n          this.purchaseOrderItems = this.purchaseOrderItems.filter(p => !p.isDeleted);\n          this.selectedItemIndexes = new Set();\n        }\n      }), null, \"deleteProducts\", null));\n      _defineProperty(this, \"updateProductPrices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          [...this.selectedItemIndexes].forEach(index => {\n            if (this.purchaseOrderItems[index].latestUnitPrice) this.purchaseOrderItems[index].unitPrice = this.purchaseOrderItems[index].latestUnitPrice;\n          });\n          this.selectedItemIndexes = new Set();\n        }\n      }), null, \"updateProductPrices\", null));\n      _defineProperty(this, \"updateDeliveryStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          [...this.selectedItemIndexes].forEach(index => {\n            this.purchaseOrderItems[index].deliveredQuantity = this.purchaseOrderItems[index].quantity;\n          });\n          this.selectedItemIndexes = new Set();\n        }\n      }), null, \"updateDeliveryStatus\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const exportedItemsData = this.exportedData.items.map(item => {\n            return [`${this.purchaseOrder.purchaseOrderNumber}`, `${this.exportedData.status}`, `${this.exportedData.buyer}`, `${this.exportedData.seller}`, `${this.exportedData.orderSubmittedDate}`, `${this.exportedData.orderNote}`, `${this.exportedData.requestedDeliveryDate}`, `${this.exportedData.deliveryNote}`, `${this.exportedData.deliveryAddress}`, `${item.sku}`, `${item.description}`, `${item.unit}`, `${item.quantity}`, `${this.numberFormat.format(item.unitPrice, {\n              style: 'currency',\n              dashZero: true\n            })}`, `${this.numberFormat.format(item.unitPrice * item.quantity, {\n              style: 'currency',\n              dashZero: true\n            })}`];\n          });\n          const table = [[this.intl.t('shared.purchase-order.Purchase order number'), this.intl.t('common.Status'), this.intl.t('common.Buyer'), this.intl.t('common.Seller'), this.intl.t('shared.purchase-order.Order submitted date'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery address'), this.intl.t('common.SKU'), this.intl.t('shared.task.Product description'), this.intl.t('common.Unit'), this.intl.t('common.Quantity'), this.intl.t('common.Unit price'), this.intl.t('common.Line total'), this.intl.t('common.Subtotal'), this.intl.t('common.Freight'), this.intl.t('common.Tax'), this.intl.t('common.Total')], ...exportedItemsData, ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', this.numberFormat.format(this.exportedData.subtotal, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.freightCharges, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.taxValue, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.totalWithTax, {\n            style: 'currency',\n            dashZero: true\n          })]];\n          (0, _csvBuilder.downloadCSV)(table, this.filename);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"downloadAsExcel\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const report = [];\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('shared.purchase-order.Purchase order number'), this.purchaseOrder.purchaseOrderNumber]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Status'), this.exportedData.status]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('shared.purchase-order.Order submitted date'), this.exportedData.orderSubmittedDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date'), this.exportedData.requestedDeliveryDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Buyer'), this.exportedData.buyer]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Seller'), this.exportedData.seller]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery address'), this.purchaseOrder.address]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note'), this.exportedData.deliveryNote]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note'), this.exportedData.orderNote]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'purchaseOrderHeading',\n            data: [this.intl.t('common.SKU'), this.intl.t('shared.task.Product description'), this.intl.t('common.Unit'), this.intl.t('common.Quantity'), this.intl.t('common.Unit price'), this.intl.t('common.Total')]\n          });\n          this.exportedData.items.map(item => {\n            report.push({\n              lineType: 'purchaseOrderItemRow',\n              data: [item.sku, item.description, item.unit, item.quantity, Number(item.unitPrice), item.unitPrice * item.quantity]\n            });\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'purchaseOrderItemTotalRow',\n            data: ['', '', '', '', this.intl.t('common.Subtotal'), this.exportedData.subtotal]\n          });\n          report.push({\n            lineType: 'purchaseOrderItemTotalRow',\n            data: ['', '', '', '', this.intl.t('common.Freight'), this.exportedData.freightCharges]\n          });\n          report.push({\n            lineType: 'purchaseOrderTaxRow',\n            data: ['', '', '', '', this.intl.t('common.Tax'), this.exportedData.taxValue]\n          });\n          report.push({\n            lineType: 'purchaseOrderItemTotalRow',\n            data: ['', '', '', '', this.intl.t('common.Total'), this.exportedData.totalWithTax]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'purchaseOrderFooterRow',\n            data: [this.model.purchaseOrderOption.last.value.footerNotes]\n          });\n          yield this.buildaPrice.downloadExcel(this.filename, {\n            data: report,\n            reportType: 'purchaseOrder'\n          });\n        }\n      }), null, \"downloadAsExcel\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadPurchaseOrderPDF(this.filename, {\n              entity: this.sessionData.entity.id,\n              purchaseOrder: this.model.purchaseOrder.last.value.id\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"approveAndSend\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.onSavePurchaseOrder.perform();\n            yield this.buildaPrice.sendPurchaseOrder({\n              entity: this.sessionData.entity.id,\n              purchaseOrder: this.model.purchaseOrder.last.value.id,\n              includeAllAttachments: this.includeAllAttachmentsInSubmissionEmail\n            });\n\n            // change status and set order submitted date\n            this.purchaseOrderChangeSet.status = 'SENT';\n            this.purchaseOrderChangeSet.dateOrderPlaced = new Date();\n            yield this.purchaseOrderChangeSet.save();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.successfullyApprovedAndSubmittedToSupplier'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.somethingWentWrongWhileApprovingAndSending'),\n              error\n            });\n          } finally {\n            this.isApproveAndSendEmail = false;\n          }\n        }\n      }), null, \"approveAndSend\", null));\n      _defineProperty(this, \"sendEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.onSavePurchaseOrder.perform();\n            yield this.buildaPrice.sendPurchaseOrder({\n              entity: this.sessionData.entity.id,\n              purchaseOrder: this.model.purchaseOrder.last.value.id,\n              includeAllAttachments: this.includeAllAttachmentsInSubmissionEmail\n            });\n\n            // change status and set order submitted date\n            this.purchaseOrderChangeSet.status = 'SENT';\n            this.purchaseOrderChangeSet.dateOrderPlaced = new Date();\n            yield this.purchaseOrderChangeSet.save();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Successfully sent to supplier'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Something went wrong while sending'),\n              error\n            });\n          } finally {\n            this.isSendEmail = false;\n          }\n        }\n      }), null, \"sendEmail\", null));\n      _defineProperty(this, \"changeStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status) {\n          try {\n            this.purchaseOrderChangeSet.status = status;\n            if (status === 'SENT') {\n              this.purchaseOrderChangeSet.dateOrderPlaced = new Date();\n            }\n            yield new Promise(resolve => setTimeout(resolve, 1000));\n            yield this.onSavePurchaseOrder.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatus\", null));\n      _defineProperty(this, \"openApproveAndSendModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.isApproveAndSendEmail = true;\n        }\n      }), null, \"openApproveAndSendModal\", null));\n      _defineProperty(this, \"openSendModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.isSendEmail = true;\n        }\n      }), null, \"openSendModal\", null));\n    }\n    get canManagePurchaseOrders() {\n      return this.model.purchaseOrderPermissions.last.value?.canManagePurchaseOrders;\n    }\n    get canApprovePurchaseOrders() {\n      return this.model.purchaseOrderPermissions.last.value?.canApprovePurchaseOrders;\n    }\n    get canUseFileStorage() {\n      return this.model.purchaseOrderPermissions.last.value?.canUseFileStorage;\n    }\n    get canManageFileStorage() {\n      return this.model.purchaseOrderPermissions.last.value?.canUseFileStorage;\n    }\n    get poActions() {\n      const actions = {};\n      actions.secondaryActions = [];\n      if (this.status === 'DRAFT') {\n        if (this.canManagePurchaseOrders && this.purchaseOrderItems.length) actions.primaryAction = {\n          name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Submit for approval'),\n          action: this.changeStatus,\n          targetStatus: 'AWAITING_APPROVAL'\n        };\n        if (this.canApprovePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.approveAndSubmit'),\n            action: this.openApproveAndSendModal\n          }, {\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Approve only'),\n            action: this.changeStatus,\n            targetStatus: 'APPROVED'\n          });\n        }\n      } else if (this.status === 'AWAITING_APPROVAL') {\n        if (this.canApprovePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.primaryAction = {\n            name: this.intl.t('common.Approve'),\n            action: this.changeStatus,\n            targetStatus: 'APPROVED'\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.approveSend'),\n            action: this.openApproveAndSendModal\n          });\n        }\n      } else if (this.status === 'APPROVED') {\n        if (this.canManagePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.primaryAction = {\n            name: this.intl.t('common.Send'),\n            action: this.openSendModal\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Mark as sent'),\n            action: this.changeStatus,\n            targetStatus: 'SENT'\n          });\n        }\n      } else if (this.status === 'SENT') {\n        if (this.canManagePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.primaryAction = {\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Resend'),\n            action: this.openSendModal\n          };\n        }\n      }\n      return actions;\n    }\n    get purchaseOrder() {\n      return this.model.purchaseOrder.last.value;\n    }\n    get purchaseOrderChangeSet() {\n      return this.model.purchaseOrderChangeSet.last.value;\n    }\n    get purchaseOrderItems() {\n      if (this._purchaseOrderItems) return this._purchaseOrderItems;\n      return this.model.purchaseOrderItems.last.value || [];\n    }\n    set purchaseOrderItems(value) {\n      this._purchaseOrderItems = value;\n    }\n    get isActionsRunning() {\n      return this.poActions.secondaryActions.some(action => action.action.isRunning) || this.poActions.primaryAction.action.isRunning;\n    }\n    get status() {\n      return this.model.purchaseOrder.last.value.status;\n    }\n    get isLoading() {\n      return this.model.purchaseOrder.isRunning || this.model.purchaseOrderItems.isRunning || this.model.tasks.isRunning || this.model.projects.isRunning || this.model.purchaseOrderChangeSet.isRunning || this.model.purchaseOrderPermissions.isRunning;\n    }\n    get attachmentsCount() {\n      return this.model.purchaseOrder.last.value.attachments.length;\n    }\n    setAddress(value) {\n      this.purchaseOrderChangeSet.set('address', value.address);\n    }\n    get showUpdatePriceButton() {\n      return this.purchaseOrderItems.some(item => {\n        if (item.latestUnitPrice) return item.unitPrice !== item.latestUnitPrice;\n      });\n    }\n    sortColumn(_row, col) {\n      this.sortBy = col.value;\n      if (this.sortBy !== col.value) {\n        this.sortDirection = 'asc';\n      } else {\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n      let orderBy;\n      if (!this.sortDirection) {\n        orderBy = 'sortIndex';\n      } else {\n        switch (col.value) {\n          case 'Product':\n            orderBy = 'description';\n            break;\n          case 'Total Qty':\n            orderBy = 'taskProductQuantity';\n            break;\n          case 'SKU':\n            orderBy = 'sku';\n            break;\n          case 'Unit':\n            orderBy = 'unit';\n            break;\n          case 'Unit price':\n            orderBy = 'unitPrice';\n            break;\n          case 'Order Qty':\n            orderBy = 'quantity';\n            break;\n          case 'Delivered Qty':\n            orderBy = 'deliveredQuantity';\n            break;\n          case 'Remaining Qty':\n            orderBy = 'remainingQuantity';\n            break;\n          case 'Path':\n            orderBy = 'breadcrumbs';\n            break;\n          default:\n            break;\n        }\n      }\n      this.purchaseOrderItems = _lodash.default.orderBy(this.purchaseOrderItems, orderBy, this.sortDirection);\n    }\n    get totalPriceFooter() {\n      if (!this.purchaseOrderItems.length) return null;\n      const totalPrice = this.purchaseOrderItems.filter(i => !i.isDeleted).reduce((a, b) => a += b.unitPrice * b.quantity, 0);\n      return this.numberFormat.format(totalPrice, {\n        style: 'currency',\n        dashZero: true\n      });\n    }\n    get gst() {\n      return this.model.purchaseOrder.last.value.belongsTo('entity').value()?.gst;\n    }\n    get supplierContactDetailsExists() {\n      const supplier = this.model.purchaseOrder.last.value.belongsTo('supplier').value();\n      return Boolean(supplier?.contactEmail?.length);\n    }\n    onChangeUnitPrice(_row, col, e) {\n      const purchaseOrderItems = this.purchaseOrderItems;\n      purchaseOrderItems[col.extraData.index].unitPrice = Number(e.target.value.replace(/[^0-9.-]+/g, ''));\n      this.purchaseOrderItems = purchaseOrderItems;\n    }\n    onChangeOrderQty(_row, col, e) {\n      const purchaseOrderItems = this.purchaseOrderItems;\n      const remainingQty = this.purchaseOrderItems[col.extraData.index].remainingQuantity;\n      const remainingQuantity = remainingQty + purchaseOrderItems[col.extraData.index].quantity - Number(e.target.value);\n      if (e.target.value.toString().includes('.')) {\n        const toFixNumber = e.target.value.toString().split('.')[1].length;\n        purchaseOrderItems[col.extraData.index].remainingQuantity = remainingQuantity.toFixed(toFixNumber);\n      } else {\n        purchaseOrderItems[col.extraData.index].remainingQuantity = remainingQuantity;\n      }\n      purchaseOrderItems[col.extraData.index].quantity = Number(e.target.value);\n      this.purchaseOrderItems = purchaseOrderItems;\n    }\n    onChangeDeliveredQty(_row, col, e) {\n      const purchaseOrderItems = this.purchaseOrderItems;\n      purchaseOrderItems[col.extraData.index].deliveredQuantity = Number(e.target.value);\n      this.purchaseOrderItems = purchaseOrderItems;\n    }\n    get productTableData() {\n      return this.purchaseOrderItems.filter(i => !i.isDeleted).map((item, index) => {\n        const itemData = [{\n          colClass: 'align-middle',\n          value: item.breadcrumbs\n        }, {\n          colClass: 'align-middle',\n          value: item.description\n        }, {\n          colClass: 'text-left align-middle',\n          value: item.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: item.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: item.taskProductQuantity\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: Number(item.remainingQuantity) < 0 ? 'text-danger' : '',\n          value: item.remainingQuantity\n        }, {\n          type: 'NUMBER_INPUT',\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          min: '0',\n          max: '1000000',\n          disabled: !this.isEditable,\n          value: item.quantity || 0,\n          onInputChange: this.onChangeOrderQty,\n          extraData: {\n            index\n          }\n        }, {\n          type: 'TEXT_INPUT',\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          disabled: !this.isEditable,\n          value: this.numberFormat.format(item.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          }),\n          onInputChange: this.onChangeUnitPrice,\n          extraData: {\n            index\n          }\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-nowrap',\n          value: this.numberFormat.format(item.unitPrice * item.quantity, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.purchaseOrder.status === 'SENT') {\n          itemData.push({\n            type: 'NUMBER_INPUT',\n            colClass: 'text-right align-middle',\n            textClass: 'text-right',\n            min: '0',\n            max: '1000000',\n            disabled: !this.isEditable,\n            value: item.deliveredQuantity || 0,\n            onInputChange: this.onChangeDeliveredQty,\n            extraData: {\n              index\n            }\n          });\n        }\n        if (this.isEditable) {\n          itemData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectedItemIndexes.has(index),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              index\n            }\n          });\n        }\n        return {\n          rowData: itemData\n        };\n      });\n    }\n    get productTableHeader() {\n      const productHeader = [{\n        value: this.intl.t('common.Path'),\n        iconName: this.sortBy === 'Path' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Total Qty'),\n        iconName: this.sortBy === 'Total Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('shared.purchase-order.Remaining Qty'),\n        iconName: this.sortBy === 'Remaining Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('shared.purchase-order.Order Qty'),\n        iconName: this.sortBy === 'Order Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        colClass: 'text-right text-nowrap',\n        value: this.intl.t('common.Total')\n      }];\n      if (this.purchaseOrder.status === 'SENT') {\n        productHeader.push({\n          iconName: this.sortBy === 'Delivered Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n          onClickCol: this.sortColumn,\n          colClass: 'cursor-pointer text-right text-nowrap',\n          value: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivered Qty')\n        });\n      }\n      if (this.isEditable && this.purchaseOrderItems.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectedItemIndexes.size === this.purchaseOrderItems.length),\n        isPartiallySelected: Boolean(this.selectedItemIndexes.size && this.selectedItemIndexes.size !== this.purchaseOrderItems.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedItemIndexes = new Set();\n      if (e.target.checked) {\n        this.purchaseOrderItems.forEach((_p, index) => {\n          selectedItemIndexes.add(index);\n        });\n      }\n      this.selectedItemIndexes = selectedItemIndexes;\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedItemIndexes.add(col.extraData.index);\n      } else {\n        this.selectedItemIndexes.delete(col.extraData.index);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedItemIndexes = this.selectedItemIndexes;\n    }\n    get isEditable() {\n      return this.canManagePurchaseOrders;\n    }\n    get canAddProducts() {\n      const canUseProjects = this.newFeatureFlags.includesFeatureFlags('canUseProjects', 'canUseTasks');\n      const canUseProducts = this.model.projects.last.value.some(p => this.newFeatureFlags.includesFeatureFlags(p, 'canUseProducts'));\n      return canUseProjects && canUseProducts;\n    }\n    get canManagePurchaseOrderProjects() {\n      return this.model.projects.last.value.filter(p => this.newFeatureFlags.includesFeatureFlags('canManagePurchaseOrders', p));\n    }\n    async attachmentsUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-purchase-order', {\n            purchaseOrder: this.model.purchaseOrder.last.value,\n            attachment\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    async deleteAttachment(attachment) {\n      try {\n        const linkAttachmentsToPurchaseOrders = this.model.purchaseOrder.last.value.hasMany('attachments').value();\n        const linkRecord = linkAttachmentsToPurchaseOrders.find(item => item.belongsTo('attachment').id() === attachment.id);\n\n        // first we need to delete the link record\n        await linkRecord.destroyRecord();\n        await attachment.destroyRecord();\n      } catch (error) {\n        this.notifications.error({\n          error,\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingTheAttachment')\n        });\n      }\n    }\n    downloadAttachment(record) {\n      window.open(record.href, '_blank');\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.purchaseOrder.purchaseOrderNumber}_${year}-${month}-${day}`;\n    }\n    toggleProperty(propertyName) {\n      this[propertyName] = !this[propertyName];\n    }\n    get exportedData() {\n      const seller = this.purchaseOrder.belongsTo('supplier').value();\n      let status;\n      switch (this.status) {\n        case 'AWAITING_APPROVAL':\n          {\n            status = 'Awaiting approval';\n            break;\n          }\n        case 'DRAFT':\n          {\n            status = 'Draft';\n            break;\n          }\n        case 'APPROVED':\n          {\n            status = 'Approved';\n            break;\n          }\n        case 'SENT':\n          {\n            status = 'Sent';\n            break;\n          }\n      }\n      const buyerDetails = `${this.sessionData.entity.name}${this.sessionData.entity.address ? `, ${this.sessionData.entity.address}` : ''}`;\n      const sellerDetails = `${seller.name}${seller.address ? `, ${seller.address}` : ''}`;\n      const orderSubmittedDate = this.purchaseOrder.dateOrderPlaced ? (0, _moment.default)(this.purchaseOrder.dateOrderPlaced).format(this.intl.t('date.dashDayFirstWithTime')) : '';\n      const requestedDeliveryDate = this.purchaseOrder.requestedDeliveryDate ? (0, _moment.default)(this.purchaseOrder.requestedDeliveryDate).format(this.intl.t('date.dashDayFirstWithTime')) : '';\n      const _items = this.purchaseOrder.hasMany('items').value()?.toArray() || [];\n      const items = Object.values(groupPurchaseOrderItems(_items));\n      const {\n        subtotal,\n        subtotalWithTax\n      } = (items || []).reduce((acc, item) => {\n        const totalPrice = item.quantity === null || item.unitPrice === null ? 0 : item.quantity * item.unitPrice;\n        acc.subtotal += totalPrice;\n        acc.subtotalWithTax += item.taxTotal;\n        return acc;\n      }, {\n        subtotal: 0,\n        subtotalWithTax: 0\n      });\n      const freightCharges = this.purchaseOrder?.freightCharges || 0;\n      const freightChargesWithTax = this.purchaseOrder.taxFreightCharges || 0;\n      const taxValue = subtotalWithTax + freightChargesWithTax - (subtotal + freightCharges);\n      const orderNote = this.purchaseOrder.orderNote || '';\n      const deliveryNote = this.purchaseOrder.deliveryNote || '';\n      const deliveryAddress = this.purchaseOrder.address || '';\n      const totalWithTax = subtotalWithTax + freightChargesWithTax;\n      return {\n        seller: sellerDetails,\n        buyer: buyerDetails,\n        status,\n        orderSubmittedDate,\n        requestedDeliveryDate,\n        items,\n        freightCharges,\n        freightChargesWithTax,\n        subtotal,\n        subtotalWithTax,\n        taxValue,\n        orderNote,\n        deliveryNote,\n        deliveryAddress,\n        totalWithTax\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedItemIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingPurchaseOrder\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"isCreatingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"itemCreatorSelectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"itemCreatorSelectedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"itemSelectorSelectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"isApproveAndSendEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"isSendEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"includeAllAttachmentsInSubmissionEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"deletedPurchaseOrderItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"addressList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"_purchaseOrderItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeUnitPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeUnitPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeOrderQty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeOrderQty\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeDeliveredQty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeDeliveredQty\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"attachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"attachmentsUploadComplete\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"deleteAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleProperty\"), _class2.prototype), _class2);\n  function groupPurchaseOrderItems(items) {\n    return items.reduce((acc, item) => {\n      // Create a unique key using SKU, description, and unit\n      const key = `${item.sku}-${item.description}-${item.unit}`;\n      if (!acc[key]) {\n        acc[key] = {\n          description: item.description,\n          sku: item.sku,\n          unit: item.unit,\n          quantity: item.quantity,\n          unitPrice: item.unitPrice,\n          totalPrice: item.unitPrice * item.quantity,\n          taxTotal: item.taxTotal\n        };\n      } else {\n        acc[key].quantity += item.quantity;\n        acc[key].totalPrice += item.unitPrice * item.quantity;\n        acc[key].taxTotal += item.taxTotal;\n      }\n      return acc;\n    }, {});\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/csv\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"moment\", \"ember-local-storage\", \"@ember/object/computed\", \"@glimmer/tracking\", \"portal/utils/csv-builder\", \"lodash\", \"@ember/service\", \"portal/utils/report-builder-attachments-bundle\", \"portal/utils/report-builder-mark-as-reported\", \"portal/utils/report-builder\", \"portal/routes/entity/builda-price/operations/outgoing/report-builder\"], function (_exports, _asyncArrowRuntime, _controller, _moment, _emberLocalStorage, _computed, _tracking, _csvBuilder, _lodash, _service, _reportBuilderAttachmentsBundle, _reportBuilderMarkAsReported, _reportBuilder, _reportBuilder2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"moment\",0,\"ember-local-storage\",0,\"@ember/object/computed\",0,\"@glimmer/tracking\",0,\"portal/utils/csv-builder\",0,\"ember-concurrency\",0,\"lodash\",0,\"@ember/service\",0,\"portal/utils/report-builder-attachments-bundle\",0,\"portal/utils/report-builder-mark-as-reported\",0,\"portal/utils/report-builder\",0,\"portal/routes/entity/builda-price/operations/outgoing/report-builder\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor6, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor7, this);\n      _initializerDefineProperty(this, \"downloaded\", _descriptor8, this);\n      _defineProperty(this, \"download\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.markReportedOnExport) {\n            const ok = (0, _reportBuilderMarkAsReported.confirmMarkAsReported)(this.model);\n            if (!ok) return;\n          }\n\n          // do this first otherwise people might leave the tab once the CSV is downloaded\n          if (this.markReportedOnExport) yield (0, _reportBuilderMarkAsReported.markSelectedItemsAsReported)(this.model, this.notifications);\n          const actions = [];\n          actions.push(this.generateAndDownloadCsv(this.model, this.groupReportByCostCenter));\n          if (this.includeAttachmentsOnExport) actions.push((0, _reportBuilderAttachmentsBundle.default)(this.model));\n          yield Promise.all(actions);\n          this.downloaded = true;\n        }\n      }), null, \"download\", null));\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.report-builder',\n        pageTitle: this.intl.t('common.Report builder')\n      }, {\n        pageTitle: this.intl.t('entity.builda-price.operations.outgoing.report-builder.csv.CSV export')\n      }]);\n    }\n    generateAndDownloadCsv(reportData) {\n      const report = [];\n      const {\n        projectName,\n        endDate,\n        startDate,\n        useChargeOutRates,\n        workers,\n        materialInvoices,\n        labourInvoices,\n        subcontractorInvoices,\n        computedTotals,\n        manualMaterials,\n        manualTimesheets,\n        manualSubcontractors\n      } = reportData;\n      const materialsMarkup = computedTotals.invoice.markupPercent;\n      const labourMarkup = computedTotals.timesheet.markupPercent;\n      const subcontractorMarkup = computedTotals.subcontractor.markupPercent;\n      const groupedMaterialInvoices = groupInvoiceGroupsByTask(materialInvoices);\n      const groupedSubcontractorInvoices = groupInvoiceGroupsByTask(subcontractorInvoices);\n      const groupedLabourInvoices = groupInvoiceGroupsByTask(labourInvoices);\n      const groupedWorkers = groupWorkerGroupsByTask(workers);\n\n      // get the list of tasks from our groups\n      const tasks = getTasks(groupedMaterialInvoices, groupedSubcontractorInvoices, groupedLabourInvoices, groupedWorkers);\n      // add the header row\n      report.push(...generateHeaderRows(this.intl));\n\n      // add the task rows\n      tasks.forEach(taskId => {\n        const task = this.store.peekRecord('task', taskId);\n        const materialInvoiceGroups = groupedMaterialInvoices[taskId];\n        const subcontractorInvoiceGroups = groupedSubcontractorInvoices[taskId];\n        const labourInvoiceGroups = groupedLabourInvoices[taskId];\n        const workerGroups = groupedWorkers[taskId];\n        if (materialInvoiceGroups) report.push(...generateInvoiceTypeRows(this.intl.t('common.Materials'), task, materialInvoiceGroups, materialsMarkup));\n        if (subcontractorInvoiceGroups) report.push(...generateInvoiceTypeRows(this.intl.t('common.Subcontractors'), task, subcontractorInvoiceGroups, subcontractorMarkup));\n        if (labourInvoiceGroups) report.push(...generateInvoiceTypeRows(this.intl.t('common.Labour'), task, labourInvoiceGroups, labourMarkup));\n        if (workerGroups) report.push(...generateLabourTypeRows(this.intl, this.intl.t('common.Labour'), task, workerGroups, useChargeOutRates, labourMarkup));\n        report.push(...generateTaskTotalRows(this.intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task total'), task, useChargeOutRates, computedTotals, materialInvoiceGroups, subcontractorInvoiceGroups, labourInvoiceGroups, workerGroups));\n      });\n\n      // add the manual items\n      if (manualMaterials) report.push(...generateManualTypeRows(this.intl.t('common.Materials'), manualMaterials, materialsMarkup));\n      if (manualTimesheets) report.push(...generateManualTypeRows(this.intl.t('common.Labour'), manualTimesheets, labourMarkup));\n      if (manualSubcontractors) report.push(...generateManualTypeRows(this.intl.t('common.Subcontractors'), manualSubcontractors, subcontractorMarkup));\n\n      // add the report totals\n      report.push(...generateTotalRows(this.intl.t('shared.report-builder.Report total'), computedTotals));\n      const fileName = `${projectName}_${(0, _moment.default)(startDate).format(this.intl.t('date.slashDayFirst'))}-${(0, _moment.default)(endDate).format(this.intl.t('date.slashDayFirst'))}.csv`;\n      (0, _csvBuilder.downloadCSV)(report, fileName);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"downloaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n  function generateHeaderRows(intl) {\n    return [[intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Row type'), intl.t('common.Task'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Invoice issuer'), intl.t('common.Invoice number'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item description'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item product code'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item quantity'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item unit price'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet worker'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet date'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet hours'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet rate'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item description'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task labour hours total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Report labour hours total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Report subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Report margin total'), intl.t('shared.report-builder.Report total')]];\n  }\n  function generateInvoiceTypeRows(type, task, invoiceGroups, markupPercent) {\n    const rows = [];\n    invoiceGroups.forEach(({\n      invoice,\n      items\n    }) => {\n      items.forEach(invoiceItem => {\n        const subtotal = invoiceItem.totalPrice;\n        const marginTotal = subtotal * markupPercent;\n        const total = subtotal + marginTotal;\n        rows.push([type, task?.name || 'Not assigned', invoice.issuer, invoice.billNumber, invoice.reference, invoiceItem.description, invoiceItem.productCode, invoiceItem.quantity, invoiceItem.unitPrice, subtotal, marginTotal, total]);\n      });\n    });\n    return rows;\n  }\n  function generateLabourTypeRows(intl, type, task, workerGroups, useChargeOutRates, markupPercent) {\n    const rows = [];\n    workerGroups.forEach(({\n      timesheets,\n      worker\n    }) => {\n      timesheets.forEach(timesheet => {\n        const rate = useChargeOutRates ?\n        // Timesheets charge our rate should be used unless there is a current\n        // one present, a current charge out rate of zero should be respected\n        worker.currentChargeOutRate != null ? worker.currentChargeOutRate : timesheet.chargeOutRate : timesheet.costRate;\n        const subtotal = (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, worker.currentChargeOutRate);\n        const marginTotal = subtotal * markupPercent;\n        const total = subtotal + marginTotal;\n        rows.push([type, task.name, '', '', '', '', '', '', '', '', '', '', timesheet.belongsTo('worker').value().fullName, (0, _moment.default)(timesheet.date).format(intl.t('date.shortWithWeekday')), timesheet.hours, rate, subtotal, marginTotal, total]);\n      });\n    });\n    return rows;\n  }\n  function generateTaskTotalRows(type, task, useChargeOutRates, computedTotals, invoiceGroups = [], subcontractorGroups = [], labourInvoiceGroups = [], timesheetGroups = []) {\n    const invoiceSubtotal = _lodash.default.sumBy(invoiceGroups, group => group.selectedTotalPrice);\n    const invoiceMargin = invoiceSubtotal * computedTotals.invoice.markupPercent;\n    const invoiceTotal = invoiceSubtotal + invoiceMargin;\n    const subcontractorSubtotal = _lodash.default.sumBy(subcontractorGroups, group => group.selectedTotalPrice);\n    const subcontractorMargin = subcontractorSubtotal * computedTotals.subcontractor.markupPercent;\n    const subcontractorTotal = subcontractorSubtotal + subcontractorMargin;\n    const labourInvoiceSubtotal = _lodash.default.sumBy(labourInvoiceGroups, group => group.selectedTotalPrice);\n    const timesheetsSubtotal = _lodash.default.sumBy(timesheetGroups, group => _lodash.default.sumBy(group.selectedTimesheets, timesheet => (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, group.currentChargeOutRate)));\n    const timesheetsManHoursTotal = _lodash.default.sumBy(timesheetGroups, group => _lodash.default.sumBy(group.selectedTimesheets, timesheet => timesheet.hours));\n    const labourSubtotal = labourInvoiceSubtotal + timesheetsSubtotal;\n    const labourMargin = labourSubtotal * computedTotals.timesheet.markupPercent;\n    const labourTotal = labourSubtotal + labourMargin;\n    const taskSubtotal = invoiceSubtotal + subcontractorSubtotal + labourSubtotal;\n    const taskMargin = invoiceMargin + subcontractorMargin + labourMargin;\n    const taskTotal = invoiceTotal + subcontractorTotal + labourTotal;\n    const taskManHoursTotal = timesheetsManHoursTotal;\n    return [[type, task?.name || 'Not assigned', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', taskManHoursTotal, taskSubtotal, taskMargin, taskTotal]];\n  }\n  function generateManualTypeRows(type, items, markupPercent) {\n    const rows = [];\n    items.forEach(item => {\n      const subtotal = item.total;\n      const marginTotal = item.total * markupPercent;\n      const total = subtotal + marginTotal;\n      rows.push([type, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', item.description, subtotal, marginTotal, total, '', '', '', '', '', '', '', '']);\n    });\n    return rows;\n  }\n  function generateTotalRows(type, computedTotals) {\n    return [[type, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', computedTotals.timesheet.manHoursTotal, computedTotals.total.subtotal, computedTotals.total.margin, computedTotals.total.total]];\n  }\n  function groupInvoiceGroupsByTask(invoiceGroups) {\n    return invoiceGroups.reduce((group, container) => {\n      const {\n        invoice,\n        items\n      } = container;\n      const selectedItems = items.filter(item => item.selected);\n      const groupedItems = _lodash.default.groupBy(selectedItems, item => item.belongsTo('task').id());\n      Object.entries(groupedItems).forEach(([task, items]) => {\n        const sortedItems = _lodash.default.sortBy(items, item => item.belongsTo('task').value()?.name);\n        const newItem = _reportBuilder2.InvoiceGroup.create({\n          invoice,\n          items: sortedItems\n        });\n        if (group[task]) group[task].push(newItem);else group[task] = [newItem];\n      });\n      return group;\n    }, {});\n  }\n  function groupWorkerGroupsByTask(workerGroups) {\n    return workerGroups.reduce((group, container) => {\n      const {\n        selectedTimesheets,\n        worker,\n        startDate,\n        endDate,\n        project\n      } = container;\n      const groupedTimesheets = _lodash.default.groupBy(selectedTimesheets, timesheet => timesheet.belongsTo('task').id());\n      Object.entries(groupedTimesheets).forEach(([task, timesheets]) => {\n        const newTimesheet = _reportBuilder2.WorkerGroup.create({\n          worker,\n          timesheets,\n          startDate,\n          endDate,\n          project,\n          task: timesheets[0].belongsTo('task').value()\n        });\n        if (group[task]) group[task].push(newTimesheet);else group[task] = [newTimesheet];\n      });\n      return group;\n    }, {});\n  }\n  function getTasks() {\n    return new Set([...arguments].reduce((arr, arg) => [...arr, ...Object.keys(arg)], []));\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/excel\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"moment\", \"jquery\", \"ember-local-storage\", \"@ember/controller\", \"@ember/object\", \"portal/utils/csv-builder\", \"@ember/service\", \"@ember/object/computed\", \"@glimmer/tracking\", \"portal/utils/report-builder-attachments-bundle\", \"portal/utils/report-builder-mark-as-reported\", \"portal/utils/report-builder\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _moment, _jquery, _emberLocalStorage, _controller, _object, _csvBuilder, _service, _computed, _tracking, _reportBuilderAttachmentsBundle, _reportBuilderMarkAsReported, _reportBuilder, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"moment\",0,\"jquery\",0,\"ember-local-storage\",0,\"@ember/controller\",0,\"@ember/object\",0,\"portal/utils/csv-builder\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/utils/report-builder-attachments-bundle\",0,\"portal/utils/report-builder-mark-as-reported\",0,\"portal/utils/report-builder\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _dec4 = (0, _computed.alias)('session.data.authenticated.access_token'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor5, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_portalApiToken\", _descriptor7, this);\n      _initializerDefineProperty(this, \"downloaded\", _descriptor8, this);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.report-builder',\n        pageTitle: this.intl.t('common.Report builder')\n      }, {\n        pageTitle: this.intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Excel export')\n      }]);\n      _defineProperty(this, \"download\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.markReportedOnExport) {\n            const ok = (0, _reportBuilderMarkAsReported.confirmMarkAsReported)(this.model);\n            if (!ok) return;\n          }\n\n          // do this first otherwise people might leave the tab once the spreadsheet is downloaded\n          if (this.markReportedOnExport) yield (0, _reportBuilderMarkAsReported.markSelectedItemsAsReported)(this.model, this.notifications);\n          const actions = [];\n          actions.push(generateAndDownloadXlsx(this.model, this.intl));\n          if (this.includeAttachmentsOnExport) actions.push((0, _reportBuilderAttachmentsBundle.default)(this.model));\n          yield Promise.all(actions);\n          this.downloaded = true;\n        }\n      }), null, \"download\", null));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_portalApiToken\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"downloaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n  /* eslint-disable max-len */\n  /* eslint-disable complexity */\n  function generateAndDownloadXlsx({\n    materialInvoices,\n    workers,\n    labourInvoices,\n    subcontractorInvoices,\n    entityName,\n    projectName,\n    endDate,\n    startDate,\n    computedTotals,\n    useChargeOutRates,\n    manualMaterials,\n    manualTimesheets,\n    manualSubcontractors\n  }, intl, portalApiToken) {\n    const report = [];\n    report.push({\n      lineType: 'title',\n      data: [`${entityName} Report`]\n    });\n    report.push({\n      lineType: 'blank',\n      data: null\n    });\n    report.push({\n      lineType: 'subtitle',\n      data: [intl.t('common.Project'), projectName]\n    });\n    report.push({\n      lineType: 'subtitle',\n      data: [intl.t('common.Date'), (0, _moment.default)().format('LLLL')]\n    });\n    report.push({\n      lineType: 'subtitle',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Report range'), `${(0, _moment.default)(startDate).format(intl.t('date.shortWithWeekday'))} to ${(0, _moment.default)(endDate).format(intl.t('date.shortWithWeekday'))}`]\n    });\n    report.push({\n      lineType: 'blank',\n      data: null\n    });\n    if ((0, _object.get)(materialInvoices, 'length') || (0, _object.get)(manualMaterials, 'length')) {\n      report.push({\n        lineType: 'sectionTitle',\n        data: [intl.t('common.Materials')]\n      });\n      report.push({\n        lineType: 'invoiceTypeHeader',\n        data: [intl.t('common.Issuer'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('common.Invoice number')]\n      });\n      report.push({\n        lineType: 'invoiceTypeItemHeader',\n        data: [intl.t('common.Description'), intl.t('common.Task'), intl.t('shared.report-builder.Product code'), intl.t('common.Quantity'), intl.t('common.Unit price'), intl.t('common.Total')]\n      });\n      materialInvoices.forEach((invoice, index) => {\n        const invoiceTotal = (0, _object.get)(invoice, 'selectedTotalPrice');\n        const items = (0, _object.get)(invoice, 'items').filter(item => (0, _object.get)(item, 'selected'));\n        report.push({\n          lineType: 'invoice',\n          data: [(0, _object.get)(invoice, 'invoice.issuer'), (0, _object.get)(invoice, 'invoice.reference'), (0, _object.get)(invoice, 'invoice.billNumber')]\n        });\n        items.forEach(item => {\n          report.push({\n            lineType: 'invoiceItem',\n            data: [(0, _object.get)(item, 'description'), (0, _object.get)(item, 'task.name'), (0, _object.get)(item, 'productCode'), (0, _object.get)(item, 'quantity'), (0, _object.get)(item, 'unitPrice'), (0, _object.get)(item, 'totalPrice')]\n          });\n        });\n        if (materialInvoices.length === index - 1) {\n          report.push({\n            lineType: 'invoiceTotalLast',\n            data: [invoiceTotal]\n          });\n        } else {\n          report.push({\n            lineType: 'invoiceTotal',\n            data: [invoiceTotal]\n          });\n        }\n      });\n      if ((0, _object.get)(manualMaterials, 'length')) {\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        report.push({\n          lineType: 'sectionTitle',\n          data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Extra materials')]\n        });\n        manualMaterials.forEach(manual => {\n          report.push({\n            lineType: 'extraItem',\n            data: [(0, _object.get)(manual, 'description'), (0, _object.get)(manual, 'total')]\n          });\n        });\n      }\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('shared.report-builder.Materials subtotal'), computedTotals.invoice.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Materials margin'), computedTotals.invoice.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('shared.report-builder.Materials total'), computedTotals.invoice.total]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n    }\n    if (workers.length || (0, _object.get)(manualTimesheets, 'length') || (0, _object.get)(labourInvoices, 'length')) {\n      report.push({\n        lineType: 'sectionTitle',\n        data: [intl.t('common.Labour')]\n      });\n      if (workers.length) {\n        report.push({\n          lineType: 'timesheetTypeHeader',\n          data: [intl.t('common.Worker')]\n        });\n        report.push({\n          lineType: 'timesheetTypeItemHeader',\n          data: [intl.t('common.Date'), intl.t('common.Task'), intl.t('common.Hours'), intl.t('common.Rate'), intl.t('common.Total')]\n        });\n        workers.forEach((workerWrapper, index) => {\n          let totalWorkerHours = 0;\n          let totalWorkerCost = 0;\n          const worker = (0, _object.get)(workerWrapper, 'worker');\n          const workerCurrentChargeOutRate = (0, _object.get)(worker, 'currentChargeOutRate');\n          report.push({\n            lineType: 'timesheet',\n            data: [`${(0, _object.get)(worker, 'firstName')} ${(0, _object.get)(worker, 'lastName')}`]\n          });\n          (0, _object.get)(workerWrapper, 'selectedTimesheets').forEach(timesheet => {\n            const rate = useChargeOutRates ?\n            // Timesheets charge our rate should be used unless there is a current one present, a current charge out rate of zero should be respected\n            workerCurrentChargeOutRate != null ? workerCurrentChargeOutRate : (0, _object.get)(timesheet, 'chargeOutRate') : (0, _object.get)(timesheet, 'costRate');\n            const hours = (0, _object.get)(timesheet, 'hours');\n            const timesheetTotal = (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, workerWrapper.currentChargeOutRate);\n            report.push({\n              lineType: 'timesheetItem',\n              data: [(0, _moment.default)((0, _object.get)(timesheet, 'date')).format(intl.t('date.shortWithWeekday')), (0, _object.get)(timesheet, 'task.name'), hours, rate, timesheetTotal]\n            });\n            totalWorkerHours += hours;\n            totalWorkerCost += timesheetTotal;\n          });\n          if (workers.length === index - 1) {\n            report.push({\n              lineType: 'timesheetTotalLast',\n              data: [totalWorkerHours, totalWorkerCost / (totalWorkerHours || Infinity), totalWorkerCost]\n            });\n          } else {\n            report.push({\n              lineType: 'timesheetTotal',\n              data: [totalWorkerHours, totalWorkerCost / (totalWorkerHours || Infinity), totalWorkerCost]\n            });\n          }\n        });\n      }\n      if ((0, _object.get)(labourInvoices, 'length')) {\n        report.push({\n          lineType: 'invoiceTypeHeader',\n          data: [intl.t('common.Issuer'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('common.Invoice number')]\n        });\n        report.push({\n          lineType: 'invoiceTypeItemHeader',\n          data: [intl.t('common.Description'), intl.t('common.Task'), intl.t('shared.report-builder.Product code'), intl.t('common.Quantity'), intl.t('common.Unit price'), intl.t('common.Total')]\n        });\n        labourInvoices.forEach((invoice, index) => {\n          const invoiceTotal = (0, _object.get)(invoice, 'selectedTotalPrice');\n          const items = (0, _object.get)(invoice, 'items').filter(item => (0, _object.get)(item, 'selected'));\n          report.push({\n            lineType: 'invoice',\n            data: [(0, _object.get)(invoice, 'invoice.issuer'), (0, _object.get)(invoice, 'invoice.reference'), (0, _object.get)(invoice, 'invoice.billNumber')]\n          });\n          items.forEach(item => {\n            report.push({\n              lineType: 'invoiceItem',\n              data: [(0, _object.get)(item, 'description'), (0, _object.get)(item, 'task.name'), (0, _object.get)(item, 'productCode'), (0, _object.get)(item, 'quantity'), (0, _object.get)(item, 'unitPrice'), (0, _object.get)(item, 'totalPrice')]\n            });\n          });\n          if (materialInvoices.length === index - 1) {\n            report.push({\n              lineType: 'invoiceTotalLast',\n              data: [invoiceTotal]\n            });\n          } else {\n            report.push({\n              lineType: 'invoiceTotal',\n              data: [invoiceTotal]\n            });\n          }\n        });\n      }\n      if ((0, _object.get)(manualTimesheets, 'length')) {\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        report.push({\n          lineType: 'sectionTitle',\n          data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Extra labour')]\n        });\n        manualTimesheets.forEach(manual => {\n          report.push({\n            lineType: 'extraItem',\n            data: [(0, _object.get)(manual, 'description'), (0, _object.get)(manual, 'total')]\n          });\n        });\n      }\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      report.push({\n        lineType: 'sectionTotalManHours',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Man hours'), computedTotals.timesheet.manHoursTotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('shared.report-builder.Labour subtotal'), computedTotals.timesheet.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Labour margin'), computedTotals.timesheet.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('shared.report-builder.Labour total'), computedTotals.timesheet.total]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n    }\n    if ((0, _object.get)(subcontractorInvoices, 'length') || (0, _object.get)(manualSubcontractors, 'length')) {\n      report.push({\n        lineType: 'sectionTitle',\n        data: [intl.t('common.Subcontractors')]\n      });\n      report.push({\n        lineType: 'invoiceTypeHeader',\n        data: [intl.t('common.Issuer'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('common.Invoice number')]\n      });\n      report.push({\n        lineType: 'invoiceTypeItemHeader',\n        data: [intl.t('common.Description'), intl.t('common.Task'), intl.t('shared.report-builder.Product code'), intl.t('common.Quantity'), intl.t('common.Unit price'), intl.t('common.Total')]\n      });\n      subcontractorInvoices.forEach((invoice, index) => {\n        const invoiceTotal = (0, _object.get)(invoice, 'selectedTotalPrice');\n        const items = (0, _object.get)(invoice, 'items').filter(item => (0, _object.get)(item, 'selected'));\n        report.push({\n          lineType: 'invoice',\n          data: [(0, _object.get)(invoice, 'invoice.issuer'), (0, _object.get)(invoice, 'invoice.reference'), (0, _object.get)(invoice, 'invoice.billNumber')]\n        });\n        items.forEach(item => {\n          report.push({\n            lineType: 'invoiceItem',\n            data: [(0, _object.get)(item, 'description'), (0, _object.get)(item, 'task.name'), (0, _object.get)(item, 'productCode'), (0, _object.get)(item, 'quantity'), (0, _object.get)(item, 'unitPrice'), (0, _object.get)(item, 'totalPrice')]\n          });\n        });\n        if (subcontractorInvoices.length === index - 1) {\n          report.push({\n            lineType: 'invoiceTotalLast',\n            data: [invoiceTotal]\n          });\n        } else {\n          report.push({\n            lineType: 'invoiceTotal',\n            data: [invoiceTotal]\n          });\n        }\n      });\n      if ((0, _object.get)(manualSubcontractors, 'length')) {\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        report.push({\n          lineType: 'sectionTitle',\n          data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Extra subcontractors')]\n        });\n        manualSubcontractors.forEach(manual => {\n          report.push({\n            lineType: 'extraItem',\n            data: [(0, _object.get)(manual, 'description'), (0, _object.get)(manual, 'total')]\n          });\n        });\n      }\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Subcontractor subtotal'), computedTotals.subcontractor.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Subcontractor margin'), computedTotals.subcontractor.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Subcontractor total'), computedTotals.subcontractor.total]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n    }\n    report.push({\n      lineType: 'sectionTitle',\n      data: [intl.t('common.Total')]\n    });\n    report.push({\n      lineType: 'reportTotalManHours',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Man hours'), computedTotals.timesheet.manHoursTotal]\n    });\n    report.push({\n      lineType: 'reportTotal',\n      data: [intl.t('common.Total'), computedTotals.total.subtotal]\n    });\n    report.push({\n      lineType: 'reportTotal',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Total margin'), computedTotals.total.margin]\n    });\n    report.push({\n      lineType: 'reportTotalLast',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Grand total'), computedTotals.total.total]\n    });\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-xlsx',\n        method: 'POST',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        },\n        headers: {\n          Authorization: `Bearer ${portalApiToken}`\n        },\n        data: JSON.stringify({\n          data: report\n        }),\n        contentType: 'application/json',\n        accept: 'application/vnd.ms-excel'\n      }).then(resolve, reject);\n    }).then(response => {\n      const fileName = `${projectName}_${(0, _moment.default)(startDate).format(intl.t('date.slashDayFirst'))}-${(0, _moment.default)(endDate).format(intl.t('date.slashDayFirst'))}.xlsx`;\n      return (0, _csvBuilder.downloadXlsx)(response, fileName);\n    });\n  }\n  /* eslint-enable max-len */\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/index\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"@ember/service\", \"portal/utils/report-builder\", \"moment\", \"rsvp\", \"lodash\", \"ember-local-storage\"], function (_exports, _controller, _object, _computed, _service, _reportBuilder, _moment, _rsvp, _lodash, _emberLocalStorage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"portal/utils/report-builder\",0,\"moment\",0,\"rsvp\",0,\"lodash\",0,\"ember-local-storage\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    markReportedOnExport: (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'),\n    includeAttachmentsOnExport: (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'),\n    _portalApiToken: (0, _computed.alias)('session.data.authenticated.access_token'),\n    materialsSectionExpanded: true,\n    labourSectionExpanded: true,\n    subcontractorsSectionExpanded: true,\n    groupedProjects: (0, _object.computed)('model.projects', function () {\n      const output = [];\n      const groups = _lodash.default.groupBy((0, _object.get)(this, 'model.projects'), 'status');\n      if (groups.OPEN) output.push({\n        groupName: (0, _object.get)(this, 'intl').t('common.Open'),\n        options: groups.OPEN\n      });\n      if (groups.HELD) output.push({\n        groupName: (0, _object.get)(this, 'intl').t('common.Held'),\n        options: groups.HELD\n      });\n      if (groups.CLOSED) output.push({\n        groupName: (0, _object.get)(this, 'intl').t('common.Closed'),\n        options: groups.CLOSED\n      });\n      return output;\n    }),\n    showTaskPopUp: false,\n    queryParams: ['endDate', 'startDate', 'selectedProjectId', 'filterByDate'],\n    filterByDate: true,\n    endDate: (0, _moment.default)().endOf('month').format('YYYY-MM-DD'),\n    jsEndDate: (0, _object.computed)('endDate', {\n      get: function () {\n        return (0, _moment.default)((0, _object.get)(this, 'endDate')).toDate();\n      },\n      set: function (key, value) {\n        (0, _object.set)(this, 'endDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    startDate: (0, _moment.default)().startOf('month').format('YYYY-MM-DD'),\n    jsStartDate: (0, _object.computed)('startDate', {\n      get: function () {\n        return (0, _moment.default)((0, _object.get)(this, 'startDate')).toDate();\n      },\n      set: function (key, value) {\n        (0, _object.set)(this, 'startDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    selectedProject: (0, _object.computed)('selectedProjectId', 'model.projects', {\n      get() {\n        return (0, _object.get)(this, 'model.projects').findBy('id', (0, _object.get)(this, 'selectedProjectId'));\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'selectedProjectId', value ? (0, _object.get)(value, 'id') : undefined);\n        return value;\n      }\n    }),\n    selectedTaskIds: [],\n    selectedTasks: (0, _object.computed)('selectedTaskIds', 'selectedProject.tasks', function () {\n      if (!(0, _object.get)(this, 'selectedTaskIds')) return [];\n      return ((0, _object.get)(this, 'selectedProject.tasks').content?.toArray() || []).filter(t => (0, _object.get)(this, 'selectedTaskIds').includes((0, _object.get)(t, 'id')));\n    }),\n    manualMaterials: [],\n    materialInvoices: (0, _computed.alias)('model.materialInvoices'),\n    manualLabour: [],\n    labourInvoices: (0, _computed.alias)('model.labourInvoices'),\n    manualTimesheets: [],\n    workers: (0, _computed.alias)('model.workers'),\n    manualSubcontractors: [],\n    subcontractorInvoices: (0, _computed.alias)('model.subcontractorInvoices'),\n    invoiceProfit: 0,\n    invoiceProfitType: 'margin',\n    invoiceDollarProfit: generateDollarProfit('invoiceProfit', 'invoiceProfitType', 'subtotals.invoice'),\n    invoiceMargin: generateMargin('invoiceProfit', 'invoiceProfitType', 'subtotals.invoice'),\n    invoiceMarkup: generateMarkup('invoiceProfit', 'invoiceProfitType', 'subtotals.invoice'),\n    timesheetProfit: 0,\n    timesheetProfitType: 'margin',\n    timesheetDollarProfit: generateDollarProfit('timesheetProfit', 'timesheetProfitType', 'subtotals.timesheet'),\n    timesheetMargin: generateMargin('timesheetProfit', 'timesheetProfitType', 'subtotals.timesheet'),\n    timesheetMarkup: generateMarkup('timesheetProfit', 'timesheetProfitType', 'subtotals.timesheet'),\n    subcontractorProfit: 0,\n    subcontractorProfitType: 'margin',\n    subcontractorDollarProfit: generateDollarProfit('subcontractorProfit', 'subcontractorProfitType', 'subtotals.subcontractor'),\n    subcontractorMargin: generateMargin('subcontractorProfit', 'subcontractorProfitType', 'subtotals.subcontractor'),\n    subcontractorMarkup: generateMarkup('subcontractorProfit', 'subcontractorProfitType', 'subtotals.subcontractor'),\n    computedTotals: (0, _object.computed)('invoiceDollarProfit', 'invoiceMarkup', 'invoiceProfit', 'invoiceProfitType', 'subcontractorDollarProfit', 'subcontractorMarkup', 'subcontractorProfit', 'subcontractorProfitType', 'subtotals', 'timesheetDollarProfit', 'timesheetMarkup', 'timesheetProfit', 'timesheetProfitType', function () {\n      const invoiceDollarProfit = (0, _object.get)(this, 'invoiceDollarProfit');\n      const timesheetDollarProfit = (0, _object.get)(this, 'timesheetDollarProfit');\n      const subcontractorDollarProfit = (0, _object.get)(this, 'subcontractorDollarProfit');\n      const {\n        invoice,\n        timesheet,\n        manHoursTotal,\n        subcontractor,\n        total\n      } = (0, _object.getProperties)((0, _object.get)(this, 'subtotals'), 'invoice', 'timesheet', 'manHoursTotal', 'subcontractor', 'total');\n      return {\n        invoice: {\n          subtotal: invoice,\n          margin: invoiceDollarProfit,\n          total: invoice + invoiceDollarProfit,\n          markupPercent: this.invoiceMarkup\n        },\n        timesheet: {\n          manHoursTotal,\n          subtotal: timesheet,\n          margin: timesheetDollarProfit,\n          total: timesheet + timesheetDollarProfit,\n          markupPercent: this.timesheetMarkup\n        },\n        subcontractor: {\n          subtotal: subcontractor,\n          margin: subcontractorDollarProfit,\n          total: subcontractor + subcontractorDollarProfit,\n          markupPercent: this.subcontractorMarkup\n        },\n        total: {\n          margin: invoiceDollarProfit + timesheetDollarProfit + subcontractorDollarProfit,\n          subtotal: total,\n          total: total + invoiceDollarProfit + timesheetDollarProfit + subcontractorDollarProfit\n        }\n      };\n    }),\n    subtotals: (0, _object.computed)('manualMaterials.@each.{total,selected}', 'manualTimesheets.@each.{total,selected}', 'manualSubcontractors.@each.{total,selected}', 'materialInvoices.@each.{allSelected,partSelected}', 'materialInvoices.items.@each.{selected,reported}', 'labourInvoices.@each.{allSelected,partSelected}', 'labourInvoices.items.@each.{selected,reported}', 'subcontractorInvoices.@each.{allSelected,partSelected}', 'subcontractorInvoices.items.@each.{selected,reported}', 'workers.@each.{allSelected,partSelected,currentChargeOutRate}', 'workers.timesheets.@each.{selected,reported}', 'useChargeOutRates', function () {\n      const materialInvoices = (0, _object.get)(this, 'materialInvoices');\n      const subcontractorInvoices = (0, _object.get)(this, 'subcontractorInvoices');\n      const labourInvoices = (0, _object.get)(this, 'labourInvoices');\n      const workers = (0, _object.get)(this, 'workers');\n      const manualMaterials = (0, _object.get)(this, 'manualMaterials').filter(manual => (0, _object.get)(manual, 'selected'));\n      const manualTimesheets = (0, _object.get)(this, 'manualTimesheets').filter(manual => (0, _object.get)(manual, 'selected'));\n      const manualSubcontractors = (0, _object.get)(this, 'manualSubcontractors').filter(manual => (0, _object.get)(manual, 'selected'));\n      const useChargeOutRates = (0, _object.get)(this, 'useChargeOutRates');\n      const manualInvoiceTotalPrice = manualMaterials.reduce((total, manual) => total += (0, _object.get)(manual, 'total'), 0);\n      const invoiceTotalPrice = materialInvoices.reduce((total, invoice) => total += (0, _object.get)(invoice, 'selectedTotalPrice'), 0);\n      const manualTimesheetTotalPrice = manualTimesheets.reduce((total, manual) => total += (0, _object.get)(manual, 'total'), 0);\n      const timesheetTotalPrice = workers.reduce((total, workerWrapper) => {\n        return total += workerWrapper.selectedTimesheets.reduce((total, timesheet) => total += (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, workerWrapper.currentChargeOutRate), 0);\n      }, 0);\n      const labourInvoicePrice = labourInvoices.reduce((total, invoice) => total += (0, _object.get)(invoice, 'selectedTotalPrice'), 0);\n      const timesheetTotalManHours = workers.reduce((total, workerWrapper) => {\n        return total += workerWrapper.selectedTimesheets.reduce((total, timesheet) => total += (0, _object.get)(timesheet, 'duration'), 0);\n      }, 0);\n      const manualSubcontractorTotalPrice = manualSubcontractors.reduce((total, manual) => total += (0, _object.get)(manual, 'total'), 0);\n      const subcontractorTotalPrice = subcontractorInvoices.reduce((total, invoice) => total += (0, _object.get)(invoice, 'selectedTotalPrice'), 0);\n      return {\n        invoice: invoiceTotalPrice + manualInvoiceTotalPrice,\n        timesheet: timesheetTotalPrice + labourInvoicePrice + manualTimesheetTotalPrice,\n        manHoursTotal: timesheetTotalManHours / 60,\n        subcontractor: subcontractorTotalPrice + manualSubcontractorTotalPrice,\n        total: invoiceTotalPrice + manualInvoiceTotalPrice + timesheetTotalPrice + labourInvoicePrice + manualTimesheetTotalPrice + subcontractorTotalPrice + manualSubcontractorTotalPrice\n      };\n    }),\n    useChargeOutRates: true,\n    allMaterialsSelected: (0, _object.computed)('materialInvoices.@each.allSelected', function () {\n      return (0, _object.get)(this, 'materialInvoices').every(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'allSelected'));\n    }),\n    partMaterialsSelected: (0, _object.computed)('allMaterialsSelected', 'materialInvoices.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allMaterialsSelected') && (0, _object.get)(this, 'materialInvoices').some(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'allSelected') || (0, _object.get)(invoiceWrapper, 'partSelected'));\n    }),\n    allTimesheetsSelected: (0, _object.computed)('workers.@each.allSelected', function () {\n      return (0, _object.get)(this, 'workers').every(workerWrapper => (0, _object.get)(workerWrapper, 'allSelected'));\n    }),\n    partTimesheetsSelected: (0, _object.computed)('allTimesheetsSelected', 'workers.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allTimesheetsSelected') && (0, _object.get)(this, 'workers').some(workerWrapper => (0, _object.get)(workerWrapper, 'allSelected') || (0, _object.get)(workerWrapper, 'partSelected'));\n    }),\n    allSubcontractorsSelected: (0, _object.computed)('subcontractorInvoices.@each.allSelected', function () {\n      return (0, _object.get)(this, 'subcontractorInvoices').every(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'allSelected'));\n    }),\n    partSubcontractorsSelected: (0, _object.computed)('allSubcontractorsSelected', 'subcontractorInvoices.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allSubcontractorsSelected') && (0, _object.get)(this, 'subcontractorInvoices').some(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'allSelected') || (0, _object.get)(subcontractorWrapper, 'partSelected'));\n    }),\n    allLabourSelected: (0, _object.computed)('labourInvoices.@each.allSelected', function () {\n      return (0, _object.get)(this, 'labourInvoices').every(labourWrapper => (0, _object.get)(labourWrapper, 'allSelected'));\n    }),\n    partLabourSelected: (0, _object.computed)('allLabourSelected', 'labourInvoices.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allLabourSelected') && (0, _object.get)(this, 'labourInvoices').some(labourWrapper => (0, _object.get)(labourWrapper, 'allSelected') || (0, _object.get)(labourWrapper, 'partSelected'));\n    }),\n    reportData: (0, _object.computed)('computedTotals', 'endDate', 'labourInvoices', 'manualMaterials', 'manualSubcontractors', 'manualTimesheets', 'materialInvoices', 'selectedProject.{id,name}', 'sessionData.entity.name', 'startDate', 'subcontractorInvoices', 'useChargeOutRates', 'workers', function () {\n      const projectId = (0, _object.get)(this, 'selectedProject.id');\n      const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n      const projectName = (0, _object.get)(this, 'selectedProject.name');\n      const endDate = (0, _object.get)(this, 'endDate');\n      const startDate = (0, _object.get)(this, 'startDate');\n      const computedTotals = (0, _object.get)(this, 'computedTotals');\n      const useChargeOutRates = (0, _object.get)(this, 'useChargeOutRates');\n      const materialInvoices = (0, _object.get)(this, 'materialInvoices').filter(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'allSelected') || (0, _object.get)(invoiceWrapper, 'partSelected'));\n      const manualMaterials = (0, _object.get)(this, 'manualMaterials');\n      const workers = (0, _object.get)(this, 'workers').filter(workerWrapper => (0, _object.get)(workerWrapper, 'allSelected') || (0, _object.get)(workerWrapper, 'partSelected'));\n      const labourInvoices = (0, _object.get)(this, 'labourInvoices').filter(labourWrapper => (0, _object.get)(labourWrapper, 'allSelected') || (0, _object.get)(labourWrapper, 'partSelected'));\n      const manualTimesheets = (0, _object.get)(this, 'manualTimesheets');\n      const subcontractorInvoices = (0, _object.get)(this, 'subcontractorInvoices').filter(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'allSelected') || (0, _object.get)(subcontractorWrapper, 'partSelected'));\n      const manualSubcontractors = (0, _object.get)(this, 'manualSubcontractors');\n      return {\n        projectId,\n        materialInvoices,\n        workers,\n        labourInvoices,\n        subcontractorInvoices,\n        entityName,\n        projectName,\n        endDate,\n        startDate,\n        computedTotals,\n        useChargeOutRates,\n        manualMaterials,\n        manualTimesheets,\n        manualSubcontractors\n      };\n    }),\n    actions: {\n      removeSelectedTask(task) {\n        (0, _object.set)(this, 'showTaskPopUp', false);\n        const filteredSelectTasks = (0, _object.get)(this, 'selectedTasks').filter(t => t.id !== task.id);\n        (0, _object.set)(this, 'selectedTaskIds', filteredSelectTasks.map(t => t.id));\n        (0, _object.get)(this, 'model.refresh')();\n      },\n      setProject(value) {\n        (0, _object.set)(this, 'selectedTaskIds', []);\n        (0, _object.set)(this, 'selectedProject', value);\n      },\n      removeAllTaskFilters() {\n        (0, _object.set)(this, 'selectedTaskIds', []);\n        (0, _object.get)(this, 'model.refresh')();\n      },\n      setSelectedTasks(tasks) {\n        (0, _object.set)(this, 'showTaskPopUp', false);\n        const taskIds = tasks.map(t => t.id);\n        const selectedTaskIds = (0, _object.get)(this, 'selectedTaskIds');\n        if (_lodash.default.difference(taskIds, selectedTaskIds).length || _lodash.default.difference(selectedTaskIds, taskIds).length) {\n          (0, _object.set)(this, 'selectedTaskIds', taskIds);\n          (0, _object.get)(this, 'model.refresh')();\n        }\n      },\n      toggleFilter() {\n        (0, _object.set)(this, 'filterByDate', !(0, _object.get)(this, 'filterByDate'));\n      },\n      setProfitType(groupKey, profitType) {\n        switch (profitType) {\n          case 'dollar':\n            (0, _object.set)(this, `${groupKey}Profit`, (0, _object.get)(this, `${groupKey}DollarProfit`));\n            break;\n          case 'margin':\n            (0, _object.set)(this, `${groupKey}Profit`, (0, _object.get)(this, `${groupKey}Margin`));\n            break;\n          case 'markup':\n            (0, _object.set)(this, `${groupKey}Profit`, (0, _object.get)(this, `${groupKey}Markup`));\n            break;\n          default:\n            throw new Error('Unknown `profitType` provided');\n        }\n        (0, _object.set)(this, `${groupKey}ProfitType`, profitType);\n      },\n      setDateRange(dates) {\n        const {\n          startDate,\n          endDate\n        } = dates;\n        if (startDate) (0, _object.set)(this, 'jsStartDate', startDate);\n        if (endDate) (0, _object.set)(this, 'jsEndDate', endDate);\n      },\n      toggleItemsVisible(resource) {\n        (0, _object.set)(resource, 'itemsVisible', !(0, _object.get)(resource, 'itemsVisible'));\n      },\n      toggleTimesheetsSelected(event) {\n        const selected = (0, _object.get)(this, 'allTimesheetsSelected');\n        (0, _object.get)(this, 'workers').forEach(workerWrapper => (0, _object.get)(workerWrapper, 'timesheets').forEach(timesheet => (0, _object.set)(timesheet, 'selected', !selected)));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleWorkersTimesheetsSelected(workerWrapper, event) {\n        const selected = (0, _object.get)(workerWrapper, 'timesheets').every(timesheet => (0, _object.get)(timesheet, 'selected'));\n        (0, _object.get)(workerWrapper, 'timesheets').forEach(timesheet => (0, _object.set)(timesheet, 'selected', !selected));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleTimesheetSelected(timesheet, event) {\n        timesheet.toggleProperty('selected');\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleMaterialsSelected(event) {\n        const selected = (0, _object.get)(this, 'allMaterialsSelected');\n        (0, _object.get)(this, 'materialInvoices').forEach(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'items').forEach(item => (0, _object.set)(item, 'selected', !selected)));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleSubcontractorsSelected(event) {\n        const selected = (0, _object.get)(this, 'allSubcontractorsSelected');\n        (0, _object.get)(this, 'subcontractorInvoices').forEach(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'items').forEach(item => (0, _object.set)(item, 'selected', !selected)));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleLabourSelected(event) {\n        const selected = (0, _object.get)(this, 'allLabourSelected');\n        (0, _object.get)(this, 'labourInvoices').forEach(labourWrapper => (0, _object.get)(labourWrapper, 'items').forEach(item => (0, _object.set)(item, 'selected', !selected)));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleTimesheetsReportedSelected() {\n        (0, _object.get)(this, 'workers').forEach(workerWrapper => {\n          (0, _object.get)(workerWrapper, 'timesheets').forEach(timesheet => {\n            if (!(0, _object.get)(timesheet, 'reported')) (0, _object.set)(timesheet, 'selected', true);\n          });\n        });\n        (0, _object.get)(this, 'labourInvoices').forEach(invoiceWrapper => {\n          (0, _object.get)(invoiceWrapper, 'items').forEach(item => {\n            if (!(0, _object.get)(item, 'reported')) (0, _object.set)(item, 'selected', true);\n          });\n        });\n      },\n      toggleMaterialsReportedSelected() {\n        (0, _object.get)(this, 'materialInvoices').forEach(invoiceWrapper => {\n          (0, _object.get)(invoiceWrapper, 'items').forEach(item => {\n            if (!(0, _object.get)(item, 'reported')) (0, _object.set)(item, 'selected', true);\n          });\n        });\n      },\n      toggleSubcontractorsReportedSelected() {\n        (0, _object.get)(this, 'subcontractorInvoices').forEach(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'items').forEach(item => {\n          if (!(0, _object.get)(item, 'reported')) (0, _object.set)(item, 'selected', true);\n        }));\n      },\n      toggleResourceItemsSelected(resource, event) {\n        const selected = (0, _object.get)(resource, 'items').every(item => (0, _object.get)(item, 'selected'));\n        (0, _object.get)(resource, 'items').forEach(item => (0, _object.set)(item, 'selected', !selected));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleInvoiceItemSelected(item, event) {\n        item.toggleProperty('selected');\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      addManualItem(type) {\n        const newManualItem = {\n          manual: true,\n          selected: true,\n          description: '',\n          total: 0\n        };\n        switch (type) {\n          case 'material':\n            (0, _object.get)(this, 'manualMaterials').pushObject(newManualItem);\n            break;\n          case 'timesheet':\n            (0, _object.get)(this, 'manualTimesheets').pushObject(newManualItem);\n            break;\n          case 'subcontractor':\n            (0, _object.get)(this, 'manualSubcontractors').pushObject(newManualItem);\n            break;\n        }\n      },\n      deleteManualItem(type, resource) {\n        switch (type) {\n          case 'material':\n            (0, _object.get)(this, 'manualMaterials').removeObject(resource);\n            break;\n          case 'timesheet':\n            (0, _object.get)(this, 'manualTimesheets').removeObject(resource);\n            break;\n          case 'subcontractor':\n            (0, _object.get)(this, 'manualSubcontractors').removeObject(resource);\n            break;\n        }\n      },\n      async downloadReport(type) {\n        switch (type) {\n          case 'pdf':\n            this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.pdf', this.reportData);\n            break;\n          case 'csv':\n            this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.csv', this.reportData);\n            break;\n          case 'excel':\n            this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.excel', this.reportData);\n            break;\n          default:\n            break;\n        }\n      },\n      setItemReportedFalse(item) {\n        (0, _object.set)(item, 'reported', false);\n        // if the items is an invoice trigger the computed property\n        item.save();\n      },\n      setItemsReportedFalse(items) {\n        // Set all the items marked as reported back to false and save them\n        _rsvp.default.all(items.map(item => {\n          if ((0, _object.get)(item, 'reported')) {\n            (0, _object.set)(item, 'reported', false);\n            return item.save();\n          } else {\n            return null;\n          }\n        }));\n      }\n    },\n    resetPageOverrides() {\n      (0, _object.set)(this, 'invoiceProfit', 0);\n      (0, _object.set)(this, 'timesheetProfit', 0);\n      (0, _object.set)(this, 'subcontractorProfit', 0);\n      (0, _object.set)(this, 'manualMaterials', []);\n      (0, _object.set)(this, 'manualTimesheets', []);\n      (0, _object.set)(this, 'manualSubcontractors', []);\n      (0, _object.get)(this, 'model.workers').forEach(worker => (0, _object.set)(worker, 'currentChargeOutRate', null));\n    }\n  });\n  function generateDollarProfit(profitKey, profitTypeKey, subtotalKey) {\n    return (0, _object.computed)(profitKey, profitTypeKey, subtotalKey, function () {\n      const profit = (0, _object.get)(this, profitKey);\n      const profitType = (0, _object.get)(this, profitTypeKey);\n      const subtotal = (0, _object.get)(this, subtotalKey);\n      switch (profitType) {\n        case 'dollar':\n          return profit;\n        case 'margin':\n          return profit * subtotal / (1 - profit);\n        case 'markup':\n          return profit * subtotal;\n        default:\n          return 0;\n      }\n    });\n  }\n  function generateMargin(profitKey, profitTypeKey, subtotalKey) {\n    return (0, _object.computed)(profitKey, profitTypeKey, subtotalKey, function () {\n      const profit = (0, _object.get)(this, profitKey);\n      const profitType = (0, _object.get)(this, profitTypeKey);\n      const subtotal = (0, _object.get)(this, subtotalKey);\n      switch (profitType) {\n        case 'dollar':\n          return profit / (profit + subtotal) || 0;\n        case 'margin':\n          return profit;\n        case 'markup':\n          return 1 - 1 / (profit + 1);\n        default:\n          return 0;\n      }\n    });\n  }\n  function generateMarkup(profitKey, profitTypeKey, subtotalKey) {\n    return (0, _object.computed)(profitKey, profitTypeKey, subtotalKey, function () {\n      const profit = (0, _object.get)(this, profitKey);\n      const profitType = (0, _object.get)(this, profitTypeKey);\n      const subtotal = (0, _object.get)(this, subtotalKey);\n      switch (profitType) {\n        case 'dollar':\n          return profit / subtotal;\n        case 'margin':\n          return profit / (1 - profit);\n        case 'markup':\n          return profit;\n        default:\n          return 0;\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/pdf\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"ember-local-storage\", \"@glimmer/tracking\", \"portal/utils/download\", \"@ember/service\", \"portal/utils/report-builder-attachments-bundle\", \"portal/utils/report-builder-mark-as-reported\", \"portal/config/environment\"], function (_exports, _controller, _object, _computed, _emberLocalStorage, _tracking, _download, _service, _reportBuilderAttachmentsBundle, _reportBuilderMarkAsReported, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"ember-local-storage\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"@ember/service\",0,\"portal/utils/report-builder-attachments-bundle\",0,\"portal/utils/report-builder-mark-as-reported\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const HTML_TO_PDF_SERVICE_URL = _environment.default.urls.htmlToPdfService;\n  let PdfController = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _dec4 = (0, _computed.alias)('session.data.authenticated.access_token'), _class = class PdfController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDownloading\", _descriptor4, this);\n      _initializerDefineProperty(this, \"downloaded\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor7, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_portalApiToken\", _descriptor9, this);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.report-builder',\n        pageTitle: this.intl.t('common.Report builder')\n      }, {\n        pageTitle: this.intl.t('entity.builda-price.operations.outgoing.report-builder.pdf.PDF export')\n      }]);\n    }\n    async download() {\n      try {\n        if (this.markReportedOnExport) {\n          const ok = (0, _reportBuilderMarkAsReported.confirmMarkAsReported)(this.model);\n          if (!ok) return;\n        }\n        this.isDownloading = true;\n        const htmlContent = document.querySelector('.pdf-wrapper').outerHTML;\n        const body = {\n          htmlContent,\n          includeMargins: true\n        };\n        const options = {\n          method: 'POST',\n          body: JSON.stringify(body),\n          headers: {\n            Accept: 'application/pdf',\n            'Content-Type': 'application/json'\n          }\n        };\n        const res = await fetch(HTML_TO_PDF_SERVICE_URL, options);\n        const blob = await res.blob();\n\n        // do this first otherwise people might leave the tab once the PDF is downloaded\n        if (this.markReportedOnExport) await (0, _reportBuilderMarkAsReported.markSelectedItemsAsReported)(this.model, this.notifications);\n        const actions = [];\n        actions.push((0, _download.download)(blob, 'report.pdf', 'application/pdf'));\n        if (this.includeAttachmentsOnExport) {\n          actions.push((0, _reportBuilderAttachmentsBundle.default)(this.model));\n        }\n        await Promise.all(actions);\n        this.downloaded = true;\n      } catch (error) {\n        throw error;\n      } finally {\n        this.isDownloading = false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDownloading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"downloaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_portalApiToken\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"download\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"download\"), _class.prototype), _class);\n});","define(\"portal/controllers/entity/builda-price/operations/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"portal/config/environment\", \"ember-changeset\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _runloop, _environment, _emberChangeset, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"ember-changeset\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor5, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingProduct\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingProduct\", _descriptor0, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor10, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor11, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor12, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectProductIds\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedProductId\", _descriptor15, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor16, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor17, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor18, this);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersFilter\", undefined);\n      _defineProperty(this, \"suppliersPage\", undefined);\n      _defineProperty(this, \"suppliersPageSize\", 10);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageIndex', 'sortBy', 'sortDirection', 'searchTerm', 'supplier']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onAddProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (product) {\n          try {\n            yield this.store.createRecord('entity-product', {\n              ...product,\n              entity: this.sessionData.entity\n            }).save();\n            this.isAddingProduct = false;\n            yield this.updateProductList.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n          }\n        }\n      }), null, \"onAddProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          try {\n            yield productChangeSet.save();\n            this.isEditingProduct = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileSavingProduct'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"updateProductList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.products.perform(Number(this.model.pageSize), Number(this.model.pageIndex), this.model.sortBy, this.model.sortDirection, this.model.searchTerm);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileReloadProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProductList\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.store.adapterFor('entity-product').deleteBulk('entity-product', [...this.selectProductIds]);\n            this.isDeletingProducts = false;\n            this.selectProductIds = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingProducts'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"deleteProducts\", null));\n      _defineProperty(this, \"loadMoreSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const suppliersFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) {\n              suppliersFilter.and.push((0, _searchFilter.default)(['name'], searchTerm, 'operator'));\n            }\n            if (JSON.stringify(suppliersFilter) !== JSON.stringify(this.suppliersFilter)) {\n              this.suppliersPage = undefined;\n              this.suppliersFilter = suppliersFilter;\n              this.suppliers = [];\n            }\n            if (this.suppliersPage && !this.suppliersPage?.hasNextPage) return this.suppliers;\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: suppliersFilter,\n              pageSize: this.suppliersPageSize,\n              page: nextPageNumber,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            this.suppliersPage = nextPage.pagination;\n            this.suppliers = [...this.suppliers, ...nextPage.data];\n            return this.suppliers;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadMoreSuppliers\", null));\n    }\n    get products() {\n      return this.model.products.last.value || [];\n    }\n    get isLoading() {\n      return this.model.products.isRunning || this.deleteProducts.isRunning || this.onSaveProduct.isRunning;\n    }\n    get supplierChangeSet() {\n      return (0, _emberChangeset.Changeset)({\n        supplierName: this.supplier\n      });\n    }\n    updateSearchTerm(value) {\n      this.selectProductIds = new Set();\n      this.pageIndex = 1;\n      this.searchTerm = value;\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    setPrice(price) {\n      this.productChangeSet.set('unitPrice', price);\n    }\n    get totalRecords() {\n      if (this.model.products.isRunning) return 0;\n      return this.products.meta.totalRecords;\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectProductIds.add(col.extraData.productId);\n      } else {\n        this.selectProductIds.delete(col.extraData.productId);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectProductIds = this.selectProductIds;\n    }\n    onClickProductName(_row, col) {\n      this.selectedProductId = col.extraData.productId;\n      this.isEditingProduct = true;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedProductIds = new Set();\n      if (e.target.checked) {\n        this.products.forEach(p => {\n          selectedProductIds.add(p.id);\n        });\n      }\n      this.selectProductIds = selectedProductIds;\n    }\n    onCreateProduct() {\n      this.selectedProductId = null;\n      this.isEditingProduct = true;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = col.value;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    get productTableHeader() {\n      if (this.model.products.isRunning) return [];\n      const productHeader = [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }];\n      if (this.isEditable && this.products.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectProductIds.size === this.products.length),\n        isPartiallySelected: Boolean(this.selectProductIds.size && this.selectProductIds.size !== this.products.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    get showFilters() {\n      return this.productTableData?.length || this.supplierChangeSet.get('supplierName') || this.searchTerm?.length;\n    }\n    get productTableData() {\n      if (this.model.products.isRunning) return [];\n      return this.products.map(product => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          productData.unshift({\n            type: 'BUTTON',\n            textClass: 'btn btn-link',\n            value: product.description,\n            onClickButton: this.onClickProductName,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectProductIds.has(product.id),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              productId: product.id\n            }\n          });\n        } else {\n          productData.unshift({\n            colClass: 'align-middle',\n            value: product.description\n          });\n        }\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.entity, 'canManageProducts');\n    }\n    setSupplier(value) {\n      const supplierName = value?.supplierName;\n      this.supplier = supplierName;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectProductIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProductId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickProductName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickProductName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCreateProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCreateProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('searchString', 'model.projects.value.@each.sortIndex'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor8, this);\n      _defineProperty(this, \"queryParams\", ['status']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _defineProperty(this, \"attentionSafetyLogoSrc\", '/assets/images/logos/attention-safety-full-50259a0b942c7c43389c731ad3822e2f.svg');\n      _defineProperty(this, \"projectValidationMap\", {\n        name: (_key, val) => val.length > 3 || this.intl.t('validation.Name'),\n        startDate: (_key, val) => Boolean(val) || this.intl.t('validation.Start date'),\n        contractType: (_key, val) => Boolean(val) || this.intl.t('validation.Please select a contract type')\n      });\n      _defineProperty(this, \"contractType\", [{\n        value: 'COST_PLUS',\n        label: this.intl.t('shared.task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('shared.task.Fixed price')\n      }]);\n      _initializerDefineProperty(this, \"newProjectData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor0, this);\n      _initializerDefineProperty(this, \"addressSuggestions\", _descriptor1, this);\n      _defineProperty(this, \"onAddressChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (val) {\n          if (!val.trim().length) {\n            this.addressSuggestions = [];\n            return;\n          }\n          try {\n            this.addressSuggestions = yield this.portalApiV2.authPost('/places/search', {\n              input: val\n            });\n          } catch {\n            this.addressSuggestions = [];\n          }\n        }\n      }), null, \"onAddressChange\", null));\n      _defineProperty(this, \"onProjectListUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectList) {\n          try {\n            const body = [];\n            projectList.forEach((project, index) => {\n              body.push({\n                projectId: project.id,\n                sortIndex: index\n              });\n              project.sortIndex = index;\n            });\n            yield this.buildaPrice.updateProjectList(body);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.Something went wrong ordering projects'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"onProjectListUpdate\", null));\n      _defineProperty(this, \"createProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectChangeset) {\n          yield projectChangeset.validate();\n          if (projectChangeset.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.notification.Please complete the project information'));\n            return;\n          }\n          try {\n            // commit the changes\n            projectChangeset.execute();\n            const project = this.store.createRecord('project', {\n              entity: this.sessionData.entity,\n              sortIndex: 0,\n              status: 'OPEN',\n              name: this.newProjectData.name,\n              projectReference: this.newProjectData.projectReference,\n              address: this.newProjectData.address,\n              lat: this.newProjectData.lat,\n              lng: this.newProjectData.lng,\n              description: this.newProjectData.description,\n              contractType: this.newProjectData.contractType,\n              startDate: this.newProjectData.startDate ? new Date(this.newProjectData.startDate) : new Date()\n            });\n            yield project.save();\n            const body = [];\n            this.model.projects.value.forEach(project => {\n              const sortIndex = project.sortIndex + 1;\n              body.push({\n                projectId: project.id,\n                sortIndex\n              });\n              project.sortIndex = sortIndex;\n            });\n            yield this.buildaPrice.updateProjectList(body);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.Successfully created new a project'));\n            if (this.newProjectData.openAndSave) {\n              this.closeNewProjectForm();\n              this.router.transitionTo('entity.builda-price.projects.project', project.id);\n              return;\n            }\n            (0, _object.set)(this, 'model.projects.value', [project, ...this.model.projects.value]);\n            this.closeNewProjectForm();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.somethingWentWrongWhileCreatingAProject'),\n              error\n            });\n          }\n        }\n      }), null, \"createProject\", null));\n    }\n    openNewProjectForm() {\n      this.addressSuggestions = [];\n      this.newProjectData = {\n        name: '',\n        address: '',\n        lat: null,\n        lng: null,\n        projectReference: '',\n        description: '',\n        startDate: '',\n        // being passed to \"date\" input\n        contractType: 'COST_PLUS',\n        openAndSave: false\n      };\n    }\n    get canManageProjects() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageProjects');\n    }\n    closeNewProjectForm() {\n      this.newProjectData = null;\n      this.addressSuggestions = [];\n    }\n    async setAddress(projectModel, suggestion) {\n      this.addressSuggestions = [];\n      if (!suggestion) return;\n      const {\n        address,\n        id\n      } = suggestion;\n      projectModel.address = address;\n      try {\n        const {\n          latitude,\n          longitude\n        } = await this.portalApiV2.authGet(`/places/location/${id}`);\n        projectModel.lat = latitude;\n        projectModel.lng = longitude;\n      } catch {\n        projectModel.lat = null;\n        projectModel.lng = null;\n      }\n    }\n    get filteredProjects() {\n      return this.model.projects.value?.filter(project => {\n        const matchString = ((project.name || '') + (project.address || '') + (project.status || '') + (project.projectReference || '')).toLowerCase();\n        return matchString.includes(this.searchString.toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"newProjectData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"addressSuggestions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openNewProjectForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openNewProjectForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeNewProjectForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeNewProjectForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredProjects\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredProjects\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/documents\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.attachments.isRunning;\n    }\n    get project() {\n      return this.model.project.last.value;\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageFileStorage');\n    }\n    get attachments() {\n      // if you can edit the attachments use the relationship directly instead of the model result\n      if (this.isEditable) return this.model.project.last.value.myAttachments;\n      return this.model.attachments.last.value;\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-project', {\n            project: this.project,\n            attachment\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/estimates\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/projects/project/estimates/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"portal/services/pricing\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _pricing) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/services/pricing\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.estimates.last.value.[]', 'searchString'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor8, this);\n      _initializerDefineProperty(this, \"deletingEstimateData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"newEstimateData\", _descriptor0, this);\n      _initializerDefineProperty(this, \"editingEstimateData\", _descriptor1, this);\n      _initializerDefineProperty(this, \"duplicateEstimateData\", _descriptor10, this);\n      _initializerDefineProperty(this, \"merchantList\", _descriptor11, this);\n      _initializerDefineProperty(this, \"importTemplateData\", _descriptor12, this);\n      _initializerDefineProperty(this, \"templates\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedTemplates\", _descriptor14, this);\n      _initializerDefineProperty(this, \"importMaterialsData\", _descriptor15, this);\n      _initializerDefineProperty(this, \"quotes\", _descriptor16, this);\n      _initializerDefineProperty(this, \"selectedQuote\", _descriptor17, this);\n      _initializerDefineProperty(this, \"estimateForGenerateTasks\", _descriptor18, this);\n      _defineProperty(this, \"queryParams\", ['filter']);\n      _initializerDefineProperty(this, \"selectedUnlinkedEstimates\", _descriptor19, this);\n      _initializerDefineProperty(this, \"showUnlinkedEstimatesDialog\", _descriptor20, this);\n      _initializerDefineProperty(this, \"groupLabourAndMaterialBySubheading\", _descriptor21, this);\n      _initializerDefineProperty(this, \"groupSubcontractorsBySubheading\", _descriptor22, this);\n      _initializerDefineProperty(this, \"groupMiscBySubheading\", _descriptor23, this);\n      _initializerDefineProperty(this, \"groupMiscByHeading\", _descriptor24, this);\n      _initializerDefineProperty(this, \"groupMiscByItems\", _descriptor25, this);\n      _initializerDefineProperty(this, \"groupOverheadBySubheading\", _descriptor26, this);\n      _initializerDefineProperty(this, \"groupOverheadByHeading\", _descriptor27, this);\n      _initializerDefineProperty(this, \"groupOverheadByItems\", _descriptor28, this);\n      _defineProperty(this, \"status\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'APPROVED',\n        label: this.intl.t('common.Approved')\n      }, {\n        value: 'REJECTED',\n        label: this.intl.t('common.Rejected')\n      }, {\n        value: 'IMPORTED',\n        label: this.intl.t('common.Imported')\n      }]);\n      _defineProperty(this, \"createNewEstimateValidationMap\", {\n        name: (_key, val) => val.length > 3 || this.intl.t('validation.Please provide a name for the estimate'),\n        merchant: (_key, val) => Boolean(val) || this.intl.t('validation.estimateMerchant')\n      });\n      _defineProperty(this, \"editEstimateValidationMap\", {\n        name: (_key, val) => val.length > 3 || this.intl.t('validation.Please provide a name for the estimate'),\n        status: (_key, val) => Boolean(val) || this.intl.t('validation.Please provide a status for the estimate')\n      });\n      _defineProperty(this, \"openNewEstimateForm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.newEstimateData = {\n            name: '',\n            merchant: '',\n            dateCreated: '',\n            openAndSave: false\n          };\n          try {\n            const {\n              merchantList\n            } = yield this.pricing.getMerchantList();\n            this.merchantList = merchantList.map(merchant => ({\n              value: `${merchant.id}_${merchant.cdeptname}`,\n              label: merchant.cdeptname\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.Something went wrong loading merchants'),\n              error\n            });\n          }\n        }\n      }), null, \"openNewEstimateForm\", null));\n      _defineProperty(this, \"createEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimateChangeset) {\n          yield estimateChangeset.validate();\n          if (estimateChangeset.isInvalid) {\n            this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please complete the estimate information'));\n            return;\n          }\n          try {\n            estimateChangeset.execute();\n            const [pricingMerchantId, pricingMerchantName] = this.newEstimateData.merchant.split('_');\n            const result = yield this.pricing.createPrice({\n              name: this.newEstimateData.name,\n              address: this.model.project.last.value.address,\n              status: 'DRAFT',\n              projectId: this.model.project.last.value.id,\n              pricingMerchantId: pricingMerchantId,\n              pricingMerchantName: pricingMerchantName,\n              entityId: this.sessionData.entity.id\n            });\n            const newEstimate = yield this.store.findRecord('estimate', result.id);\n            this.model.estimates.last.value.pushObject(newEstimate);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Successfully created new estimate'));\n            if (this.newEstimateData.openAndSave) {\n              this.onEstimateRowClick(newEstimate.id);\n            }\n            this.newEstimateData = null;\n          } catch (error) {\n            let message = this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongCreatingTheEstimate');\n            if (error instanceof _pricing.PortalPricingError) {\n              message = error.message;\n            }\n            this.notifications.error({\n              message,\n              error\n            });\n          }\n        }\n      }), null, \"createEstimate\", null));\n      _defineProperty(this, \"editEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimateChangeset) {\n          yield estimateChangeset.validate();\n          if (estimateChangeset.isInvalid) {\n            this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please complete the estimate information'));\n            return;\n          }\n          try {\n            estimateChangeset.execute();\n            yield this.pricing.editPrice({\n              name: this.editingEstimateData.name,\n              address: this.model.project.last.value.address,\n              status: this.editingEstimateData.status,\n              pricingJobId: this.editingEstimateData.pricingJobId,\n              estimateId: this.editingEstimateData.id,\n              projectId: this.model.project.last.value.id\n            });\n            yield this.store.findRecord('estimate', this.editingEstimateData.id);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Edited estimate successfully'));\n            this.editingEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongEditingTheEstimate'),\n              error\n            });\n          }\n        }\n      }), null, \"editEstimate\", null));\n      _defineProperty(this, \"duplicateEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const result = yield this.pricing.duplicatePrice({\n              pricingJobId: this.duplicateEstimateData.pricingJobId,\n              estimateId: this.duplicateEstimateData.id,\n              name: this.duplicateEstimateData.name + '_copy',\n              attachToProject: Boolean(this.attachToProject)\n            });\n            if (this.attachToProject) {\n              const duplicatedEstimate = yield this.store.findRecord('estimate', result.id);\n              this.model.estimates.last.value.pushObject(duplicatedEstimate);\n            } else {\n              this.model.unlinkedEstimates.perform();\n            }\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Duplicated estimate successfully'));\n            this.duplicateEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongDuplicatingTheEstimate'),\n              error\n            });\n          }\n        }\n      }), null, \"duplicateEstimate\", null));\n      _defineProperty(this, \"deleteEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.pricing.deletePrice({\n              pricingJobId: this.deletingEstimateData.pricingJobId,\n              estimateId: this.deletingEstimateData.id,\n              projectId: this.model.project.last.value.id\n            });\n            this.store.unloadRecord(this.deletingEstimateData);\n            this.model.estimates.last.value.removeObject(this.deletingEstimateData);\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Deleted estimate successfully'));\n            this.deletingEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongDeletingTheEstimate'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteEstimate\", null));\n      _defineProperty(this, \"getTemplateOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimate) {\n          try {\n            this.importTemplateData = estimate;\n            const status = yield this.pricing.getImportStatus({\n              pricingJobId: estimate.pricingJobId\n            });\n            if (!status.canImport) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.youCannotImportTemplatesForDuplicatedEstimates'));\n              this.importTemplateData = null;\n              return;\n            }\n            const result = yield this.pricing.getTemplates({\n              merchantId: estimate.pricingMerchantId\n            });\n            if (result) {\n              this.templates = result;\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileLoadingTemplates'),\n              error\n            });\n          }\n        }\n      }), null, \"getTemplateOptions\", null));\n      _defineProperty(this, \"importSelectedUnlinkedEstimates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.selectedUnlinkedEstimates) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please select a template'));\n              return;\n            }\n            yield Promise.all(this.selectedUnlinkedEstimates.map(async estimate => {\n              let status = estimate.status?.toUpperCase() || 'DRAFT';\n              if (estimate.status?.toUpperCase() === 'SUBMITTED') status = 'APPROVED';\n              if (estimate.status?.toUpperCase() === 'CLOSED') status = 'REJECTED';\n              const newEstimate = this.store.createRecord('estimate', {\n                pricingMerchantName: estimate.pricingMerchantName,\n                pricingMerchantId: estimate.pricingMerchantId,\n                name: estimate.name,\n                project: this.model.project.last.value,\n                entity: this.sessionData.entity,\n                status,\n                pricingJobId: estimate.pricingJobId\n              });\n              await newEstimate.save();\n              this.model.estimates.last.value.pushObject(newEstimate);\n            }));\n\n            // reload the not imported estimates\n            yield this.model.unlinkedEstimates.perform(this.model.project.last.value.id);\n            this.destroyImportUnlinkedEstimatesData();\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Imported estimates successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileImportingEstimates'),\n              error\n            });\n          }\n        }\n      }), null, \"importSelectedUnlinkedEstimates\", null));\n      _defineProperty(this, \"importTemplates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.selectedTemplates) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please select a template'));\n              return;\n            }\n            const selectedTemplatesString = this.selectedTemplates.map(selectedItem => selectedItem.id).join(',');\n            yield this.pricing.addTemplates({\n              merchantId: this.importTemplateData.pricingMerchantId,\n              pricingJobId: this.importTemplateData.pricingJobId,\n              selectedTemplateIds: selectedTemplatesString\n            });\n            this.selectedTemplates = null;\n            this.importTemplateData = null;\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Imported templates successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileImportingTemplates'),\n              error\n            });\n          }\n        }\n      }), null, \"importTemplates\", null));\n      _defineProperty(this, \"getPreloadedQuotes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimate) {\n          try {\n            this.importMaterialsData = estimate;\n            const status = yield this.pricing.getImportStatus({\n              pricingJobId: estimate.pricingJobId\n            });\n            if (!status.canImport) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.youCannotImportMaterialsForDuplicatedEstimates'));\n              this.importMaterialsData = null;\n              return;\n            }\n            const result = yield this.pricing.getPreloadedQuotes({\n              pricingJobId: this.importMaterialsData.pricingJobId\n            });\n            if (result) {\n              this.quotes = result;\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileLoadingQuotes'),\n              error\n            });\n          }\n        }\n      }), null, \"getPreloadedQuotes\", null));\n      _defineProperty(this, \"importMaterials\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.selectedQuote) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.pleaseSelectExistingQuoteOrUploadANewFile'));\n              return;\n            }\n\n            // make sure the file is less that 2MB, 2000000 is in bytes\n            if (this.selectedQuote.file) {\n              if (this.selectedQuote.file.size > 2000000) {\n                this.notifications.error(this.intl.t('entity.builda-price.projects.project.estimates.Please upload a file less than 2MB'));\n                return;\n              }\n            }\n\n            //check the file has been uploaded, else proceed with preloaded quotes\n            if (this.selectedQuote.file) {\n              const base64File = yield this.fileToBase64(this.selectedQuote.file);\n              yield this.pricing.importMaterialsFromFile({\n                pricingJobId: this.importMaterialsData.pricingJobId,\n                pricingMerchantId: this.importMaterialsData.pricingMerchantId,\n                pricingMerchantName: this.importMaterialsData.pricingMerchantName.toUpperCase(),\n                jobFile: base64File,\n                jobFileName: this.selectedQuote.file.name,\n                jobFileType: this.selectedQuote.file.type\n              });\n            } else {\n              yield this.pricing.importMaterialsFromQuote({\n                pricingJobId: this.importMaterialsData.pricingJobId,\n                quoteId: this.selectedQuote.id\n              });\n            }\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Imported materials successfully'));\n            this.destroyImportMaterialsModal();\n          } catch (error) {\n            this.destroyImportMaterialsModal();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileImportingMaterials'),\n              error\n            });\n          }\n        }\n      }), null, \"importMaterials\", null));\n      _defineProperty(this, \"generateTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.pricing.createTasksFromEstimate({\n              entityId: this.sessionData.entity.id,\n              pricingJobId: this.estimateForGenerateTasks.pricingJobId,\n              projectId: this.model.project.last.value.id,\n              supplier: this.estimateForGenerateTasks.pricingMerchantName,\n              groupLabourAndMaterialBySubheading: this.groupLabourAndMaterialBySubheading,\n              groupSubcontractorsBySubheading: this.groupSubcontractorsBySubheading,\n              groupMiscByHeading: this.groupMiscByHeading,\n              groupMiscBySubheading: this.groupMiscBySubheading,\n              groupOverheadBySubheading: this.groupOverheadBySubheading,\n              groupOverheadByHeading: this.groupOverheadByHeading\n            });\n            this.estimateForGenerateTasks.status = 'IMPORTED';\n            this.estimateForGenerateTasks.save();\n\n            // reference to the current draft project budget etc may have changed - reload the project\n            yield this.model.project.last.value.reload();\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Generated tasks successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileGeneratingTasks'),\n              error\n            });\n          } finally {\n            this.closeGenerateTasks();\n          }\n        }\n      }), null, \"generateTasks\", null));\n    }\n    get deleteMessages() {\n      return [this.intl.t('entity.builda-price.projects.project.estimates.Do you want to delete this estimate')];\n    }\n    get filteredEstimates() {\n      return this.model?.estimates?.last?.value?.filter(estimate => {\n        const matchString = `${estimate.name}${estimate.status}`.toLowerCase();\n        return matchString.includes(this.searchString.toLowerCase());\n      }) || [];\n    }\n    get supportedFileFormats() {\n      return this.importMaterialsData?.pricingMerchantName.toLowerCase() === 'carters' ? '.csv, .xlsx' : '.csv';\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onEstimateRowClick(estimateId) {\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageEstimates')) {\n        this.router.transitionTo('entity.builda-price.projects.project.estimates.estimate', estimateId);\n      }\n    }\n    openEditEstimateForm(estimate) {\n      this.editingEstimateData = {\n        name: estimate.name,\n        status: estimate.status,\n        pricingJobId: estimate.pricingJobId,\n        id: estimate.id,\n        estimate: estimate\n      };\n    }\n    closeDeleteModal(estimate) {\n      this.deletingEstimateData = null;\n      this.openEditEstimateForm(estimate);\n    }\n    openDeleteModal(estimate) {\n      this.deletingEstimateData = estimate;\n      this.editingEstimateData = null;\n    }\n    onFileUpload(file) {\n      this.selectedQuote = {\n        id: '',\n        quoteNumber: file.name,\n        dateCreated: null,\n        file\n      };\n\n      // close the power-select\n      const element = document.getElementById('labelForImportMaterials');\n      element.click();\n    }\n    async fileToBase64(file) {\n      return new Promise((resolve, reject) => {\n        const reader = new FileReader();\n        reader.readAsDataURL(file);\n        reader.onload = () => resolve(reader.result.split(',').pop());\n        reader.onerror = e => reject(e);\n      });\n    }\n    destroyImportMaterialsModal() {\n      this.importMaterialsData = null;\n      this.selectedQuote = null;\n    }\n    destroyImportUnlinkedEstimatesData() {\n      this.selectedUnlinkedEstimates = null;\n      this.showUnlinkedEstimatesDialog = null;\n    }\n    closeGenerateTasks() {\n      this.estimateForGenerateTasks = false;\n      this.groupLabourAndMaterialBySubheading = false;\n      this.groupSubcontractorsBySubheading = false;\n      this.groupMiscBySubheading = false;\n      this.groupMiscByHeading = false;\n      this.groupMiscByItems = true;\n      this.groupOverheadBySubheading = false;\n      this.groupOverheadByHeading = false;\n      this.groupOverheadByItems = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"deletingEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"newEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"editingEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"duplicateEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"merchantList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"importTemplateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"templates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTemplates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"importMaterialsData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"quotes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"selectedQuote\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"estimateForGenerateTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"selectedUnlinkedEstimates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"showUnlinkedEstimatesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"groupLabourAndMaterialBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"groupSubcontractorsBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"groupMiscBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"groupMiscByHeading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"groupMiscByItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"groupOverheadBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"groupOverheadByHeading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"groupOverheadByItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredEstimates\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredEstimates\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"noop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onEstimateRowClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onEstimateRowClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openEditEstimateForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openEditEstimateForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDeleteModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDeleteModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openDeleteModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openDeleteModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onFileUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"destroyImportMaterialsModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"destroyImportMaterialsModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"destroyImportUnlinkedEstimatesData\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"destroyImportUnlinkedEstimatesData\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeGenerateTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeGenerateTasks\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"creatingBudgetVersion\", _descriptor5, this);\n      _initializerDefineProperty(this, \"creatingQuoteVersion\", _descriptor6, this);\n      _defineProperty(this, \"createBudgetVersion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.project.last.value.commit({\n              commitBudget: true,\n              commitQuote: false,\n              commitProgress: false,\n              commitScheduling: false\n            });\n            yield this.model.project.last.value.loadBudget();\n            this.creatingBudgetVersion = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.financials.somethingWentWrongCreatingABudgetVersion'),\n              error\n            });\n          }\n        }\n      }), null, \"createBudgetVersion\", null));\n      _defineProperty(this, \"createQuoteVersion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.project.last.value.commit({\n              commitBudget: false,\n              commitQuote: true,\n              commitProgress: false,\n              commitScheduling: false\n            });\n            yield this.model.project.last.value.loadQuote();\n            this.creatingQuoteVersion = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.financials.somethingWentWrongCreatingAQuoteVersion'),\n              error\n            });\n          }\n        }\n      }), null, \"createQuoteVersion\", null));\n    }\n    get isLoadingBudget() {\n      return this.model.loadBudget.isRunning || this.createBudgetVersion.isRunning;\n    }\n    get isLoadingQuote() {\n      return this.model.loadQuote.isRunning || this.createQuoteVersion.isRunning;\n    }\n    get canManageBudgetVersions() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageBudgetVersions');\n    }\n    get canManageQuoteVersions() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageQuoteVersions');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"creatingBudgetVersion\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"creatingQuoteVersion\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/health-and-safety\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/projects/project/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get canManageProject() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProjects');\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.builda-price.projects.project.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseClientPortal', 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.builda-price.projects.project.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.builda-price.projects.project.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.builda-price.projects.project.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/builda-price/projects/project/people/clients/client\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _client) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewQuotesAttributes = _exports.canViewProgressAttributes = _exports.canViewFileStorageAttributes = _exports.canViewBudgetsAttributes = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/builda-price/projects/project/people/clients/client\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.client.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor9, this);\n      _defineProperty(this, \"deleteClient\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.clients.client.removeClientFromProjectConfirm'))) return;\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('user-project-attribute', {\n              user: this.model.client.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.model.client.last.value.id\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.clients`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.clients.client.Removed client from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the client'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteClient\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canViewBudgetFinancialReports) {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _client.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _client.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewTasks) {\n              _client.canViewTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n\n              // if can view task is selected, we need to delete all visibility checks of tasks\n              changeset.set('taskAttributes', []);\n            } else {\n              _client.canViewTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewClientReports) {\n              _client.canViewClientReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewClientReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.taskAttributes) {\n              const originalIds = (changeset._content.taskAttributes || []).map(ta => ta.attr.id);\n              const newIds = (changeset.taskAttributes || []).map(ta => ta.attr.id);\n              const toAdd = newIds.filter(id => !originalIds.includes(id));\n              const toRemove = originalIds.filter(id => !newIds.includes(id));\n              toAdd.forEach(attributesToAdd.add, attributesToAdd);\n              toRemove.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributesForClients([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.client.isRunning || this.model.permissionsChangeset.isRunning || this.model.taskVisibilityOptions.isRunning || this.model.attributes.isRunning;\n    }\n    get permissionsChangeset() {\n      // The template reads the derived counts before the task has a value, so\n      // degrade to an empty set of permissions rather than throwing.\n      return this.model.permissionsChangeset.last?.value ?? {};\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Cost to complete')]: [this.permissionsChangeset.canViewClientReports || this.permissionsChangeset.canViewQuoteReports && this.permissionsChangeset.canViewProgressReports && this.permissionsChangeset.canViewChargeupReports && this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        model: this.model.client.last.value.id,\n        pageTitle: this.model.client.last.value.fullName\n      }];\n      return paths;\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length + (this.permissionsChangeset.taskAttributes?.length || 0);\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get canSeeTaskVisibilityChecks() {\n      return this.permissionsChangeset.canViewTasks;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewClientReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    async handleAttributesForClients(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: this.model.client.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      // add and remove entity attribute from the user\n      await this.store.findAll('user-attribute');\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: this.model.client.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToProjectAttributes = ['canViewProjects', 'hasClientRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.clients.last.value.projectClients', 'searchString.length'), _dec2 = (0, _object.computed)('model.clients.last.value.unassignedClients'), _dec3 = (0, _object.computed)('model.clients.last.value.projectClients'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUserToProject\", _descriptor7, this);\n      _initializerDefineProperty(this, \"clientToAddToProject\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isAddingClientToProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor0, this);\n      _defineProperty(this, \"addClientToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForClients(this.clientToAddToProject, addToProjectAttributes, []);\n            yield Promise.all([this.model.clients.perform(this.model.project)]);\n            this.isAddingClientToProject = false;\n            this.clientToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.clients.Added client to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding client'),\n              error\n            });\n          }\n        }\n      }), null, \"addClientToProject\", null));\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.clients.isRunning;\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value.projectClients?.filter(client => {\n        const matchString = `${client.firstName}${client.lastName}${client.email}${client.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.unassignedClients;\n    }\n    get projectClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.projectClients;\n    }\n    async handleAttributesForClients(client, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: client.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: client,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUserToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"clientToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingClientToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedClients\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectClients\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToProjectAttributes = ['canViewProjects', 'hasSubcontractorRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.subcontractors.last.value.projectSubcontractors', 'searchString.length'), _dec2 = (0, _object.computed)('model.subcontractors.last.value.unassignedSubcontractors'), _dec3 = (0, _object.computed)('model.subcontractors.last.value.projectSubcontractors'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingSubcontractorToProject\", _descriptor7, this);\n      _initializerDefineProperty(this, \"subcontractorToAddToProject\", _descriptor8, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor9, this);\n      _defineProperty(this, \"addSubcontractorToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForSubcontractor(this.subcontractorToAddToProject, addToProjectAttributes, []);\n            yield Promise.all([this.model.subcontractors.perform(this.model.project)]);\n            this.isAddingSubcontractorToProject = false;\n            this.subcontractorToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.subcontractors.Added subcontractor to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.people.subcontractors.somethingWentWrongAddingSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"addSubcontractorToProject\", null));\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value.projectSubcontractors?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.subcontractors.isRunning;\n    }\n    get unassignedSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.unassignedSubcontractors;\n    }\n    get projectSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.projectSubcontractors;\n    }\n    async handleAttributesForSubcontractor(subcontractor, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: subcontractor.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: subcontractor,\n          attribute\n        }).save();\n      }))]);\n    }\n    get userIsYou() {\n      return this._user === this.sessionData.user;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingSubcontractorToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedSubcontractors\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectSubcontractors\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _subcontractor, _subcontractor2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.subcontractor.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor1, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageEstimates) {\n              _subcontractor.canManageEstimatesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageEstimatesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProjects) {\n              _subcontractor.canManageProjectsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProjectsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewTasks) {\n              _subcontractor.canViewTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              _subcontractor.canCreateHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canCreateHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              _subcontractor.canManageHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributesForSubcontractor([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.subcontractors.subcontractor.removeSubcontractorFromProjectConfirm'))) return;\n\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('user-project-attribute', {\n              user: this.model.subcontractor.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.model.subcontractor.last.value.id\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.subcontractors.subcontractor.Removed subcontractor from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.people.subcontractors.subcontractor.somethingWentWrongRemovingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.subcontractor.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.entityCanViewBills || this.entityCanManageBills) && (this.entityCanManageTimesheets || this.entityCanViewTimesheets || this.permissionsChangeset.canManageTimesheets)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.intl.t('common.Subcontractors')\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        model: this.model.subcontractor.last.value.id,\n        pageTitle: this.model.subcontractor.last.value.fullName\n      }];\n      return paths;\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimates, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get userIsEntityAdmin() {\n      return this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageEntity');\n    }\n    get entityCanManageTimesheets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageTimesheetsAttributes);\n    }\n    get entityCanViewTimesheets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewTimesheetsAttributes);\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageBillsAttributes);\n    }\n    get entityCanManageProjects() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageProjectsAttributes);\n    }\n    get entityCanViewTasks() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewTasksAttributes);\n    }\n    get entityCanManageTasks() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageTasksAttributes);\n    }\n    get entityCanViewBudgets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBudgetsAttributes);\n    }\n    get entityCanViewProgress() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewProgressAttributes);\n    }\n    get entityCanManageProgress() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageProgressAttributes);\n    }\n    get entityCanManageBudgets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageBudgetsAttributes);\n    }\n    get entityCanViewQuotes() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewQuotesAttributes);\n    }\n    get entityCanManageQuotes() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageQuotesAttributes);\n    }\n    get entityCanViewInvoicingReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewInvoicingReportsAttributes);\n    }\n    get entityCanViewProducts() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewProductsAttributes);\n    }\n    get entityCanManageProducts() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageProductsAttributes);\n    }\n    get entityCanViewFileStorage() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewFileStorageAttributes);\n    }\n    get entityCanManageFileStorage() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageFileStorageAttributes);\n    }\n    get entityCanViewBudgetReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBudgetReportsAttributes);\n    }\n    get entityCanViewBudgetLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBudgetLabourHourReportsAttributes);\n    }\n    get entityCanViewQuoteReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewQuoteReportsAttributes);\n    }\n    get entityCanViewCostReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewCostReportsAttributes);\n    }\n    get entityCanViewCostLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewCostLabourHourReportsAttributes);\n    }\n    get entityCanViewChargeupReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewChargeupReportsAttributes);\n    }\n    get entityCanViewProgressReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewProgressReportsAttributes);\n    }\n    get entityCanViewSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewSchedulingReportsAttributes);\n    }\n    get entityCanManageSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageSchedulingReportsAttributes);\n    }\n    get entityCanManageEstimates() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageEstimatesAttributes);\n    }\n    get entityCanCreateHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canCreateHealthAndSafetyAttributes);\n    }\n    get entityCanManageHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageHealthAndSafetyAttributes);\n    }\n    async handleAttributesForSubcontractor(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: this.model.subcontractor.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: this.model.subcontractor.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToProjectAttributes = ['canViewProjects'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.users.last.value.projectUsers', 'searchString.length'), _dec2 = (0, _object.computed)('model.users.last.value.unassignedUsers'), _dec3 = (0, _object.computed)('model.users.last.value.projectUsers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUserToProject\", _descriptor7, this);\n      _initializerDefineProperty(this, \"userToAddToProject\", _descriptor8, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor9, this);\n      _defineProperty(this, \"addUserToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForUser(this.userToAddToProject, addToProjectAttributes, []);\n            yield Promise.all([this.model.users.perform(this.model.project)]);\n            this.isAddingUserToProject = false;\n            this.userToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.users.Added user to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding user'),\n              error\n            });\n          }\n        }\n      }), null, \"addUserToProject\", null));\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value.projectUsers?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.users.isRunning;\n    }\n    get unassignedUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.unassignedUsers;\n    }\n    get projectUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.projectUsers;\n    }\n    async handleAttributesForUser(user, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: user.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUserToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"userToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedUsers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectUsers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectUsers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"portal/routes/entity/builda-price/projects/project/people/users/user\", \"portal/routes/entity/settings/people/users/user\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _user, _user2, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/routes/entity/builda-price/projects/project/people/users/user\",0,\"portal/routes/entity/settings/people/users/user\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor1, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.users.user.removeUserFromProjectConfirm'))) return;\n\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('user-project-attribute', {\n              user: this.model.user.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.model.user.last.value.id\n              // task: { $in: taskIds }, // this would be better but the request could get too large\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.users`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.users.user.Removed user from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _user.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageEstimates) {\n              _user.canManageEstimatesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageEstimatesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _user.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _user.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProjects) {\n              _user.canManageProjectsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProjectsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _user.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewAccessReports) {\n              _user.canViewAccessReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewAccessReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _user.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _user.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _user.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _user.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _user.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _user.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _user.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _user.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _user.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _user.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewTasks) {\n              _user.canViewTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              _user.canCreateHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canCreateHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              _user.canManageHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoices) {\n              _user.canViewInvoicesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewInvoicesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageInvoices) {\n              _user.canManageInvoicesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageInvoicesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canApproveInvoices) {\n              _user.canApproveInvoicesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canApproveInvoicesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewStagePayments) {\n              _user.canViewStagePaymentsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewStagePaymentsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageStagePayments) {\n              _user.canManageStagePaymentsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageStagePaymentsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewPurchaseOrders) {\n              _user.canViewPurchaseOrdersAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewPurchaseOrdersAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManagePurchaseOrders) {\n              _user.canManagePurchaseOrdersAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManagePurchaseOrdersAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canApprovePurchaseOrders) {\n              _user.canApprovePurchaseOrdersAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canApprovePurchaseOrdersAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        model: this.model.user.last.value.id,\n        pageTitle: this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.entityCanViewBills || this.entityCanManageBills) && (this.entityCanManageTimesheets || this.entityCanViewTimesheets || this.permissionsChangeset.canManageTimesheets)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        ['Access']: [this.entityCanViewAccessReports || this.permissionsChangeset.canViewAccessReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimates, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canViewInvoices, this.permissionsChangeset.canManageInvoices, this.permissionsChangeset.canApproveInvoices, this.permissionsChangeset.canViewPurchaseOrders, this.permissionsChangeset.canManagePurchaseOrders, this.permissionsChangeset.canApprovePurchaseOrders, this.permissionsChangeset.canViewStagePayments, this.permissionsChangeset.canManageStagePayments].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewAccessReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.user.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get userIsEntityAdmin() {\n      return this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageEntity');\n    }\n    get entityCanManageTimesheets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageTimesheetsAttributes);\n    }\n    get entityCanViewTimesheets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewTimesheetsAttributes);\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageBillsAttributes);\n    }\n    get entityCanManageProjects() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageProjectsAttributes);\n    }\n    get entityCanViewTasks() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewTasksAttributes);\n    }\n    get entityCanManageTasks() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageTasksAttributes);\n    }\n    get entityCanViewBudgets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBudgetsAttributes);\n    }\n    get entityCanViewProgress() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewProgressAttributes);\n    }\n    get entityCanManageProgress() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageProgressAttributes);\n    }\n    get entityCanManageBudgets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageBudgetsAttributes);\n    }\n    get entityCanViewQuotes() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewQuotesAttributes);\n    }\n    get entityCanManageQuotes() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageQuotesAttributes);\n    }\n    get entityCanViewProducts() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewProductsAttributes);\n    }\n    get entityCanManageProducts() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageProductsAttributes);\n    }\n    get entityCanViewFileStorage() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewFileStorageAttributes);\n    }\n    get entityCanManageFileStorage() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageFileStorageAttributes);\n    }\n    get entityCanViewBudgetReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBudgetReportsAttributes);\n    }\n    get entityCanViewBudgetLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBudgetLabourHourReportsAttributes);\n    }\n    get entityCanViewQuoteReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewQuoteReportsAttributes);\n    }\n    get entityCanViewInvoicingReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewInvoicingReportsAttributes);\n    }\n    get entityCanViewCostReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewCostReportsAttributes);\n    }\n    get entityCanViewCostLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewCostLabourHourReportsAttributes);\n    }\n    get entityCanViewChargeupReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewChargeupReportsAttributes);\n    }\n    get entityCanViewProgressReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewProgressReportsAttributes);\n    }\n    get entityCanViewSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewSchedulingReportsAttributes);\n    }\n    get entityCanManageSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageSchedulingReportsAttributes);\n    }\n    get entityCanViewAccessReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewAccessReportsAttributes);\n    }\n    get entityCanManageEstimates() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageEstimatesAttributes);\n    }\n    get entityCanCreateHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canCreateHealthAndSafetyAttributes);\n    }\n    get entityCanManageHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageHealthAndSafetyAttributes);\n    }\n    get entityCanViewInvoices() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewInvoicesAttributes);\n    }\n    get entityCanViewStagePayments() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewStagePaymentsAttributes);\n    }\n    get entityCanManageInvoices() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageInvoicesAttributes);\n    }\n    get entityCanManageStagePayments() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageStagePaymentsAttributes);\n    }\n    get entityCanApproveInvoices() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canApproveInvoicesAttributes);\n    }\n    get entityCanViewPurchaseOrders() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewPurchaseOrdersAttributes);\n    }\n    get entityCanManagePurchaseOrders() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManagePurchaseOrdersAttributes);\n    }\n    get entityCanApprovePurchaseOrders() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canApprovePurchaseOrdersAttributes);\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: this.model.user.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: this.model.user.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/routes/entity/builda-price/projects/project/people/workers\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _workers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"lodash\",0,\"portal/routes/entity/builda-price/projects/project/people/workers\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.workers.last.value.projectWorkers', 'searchString.length'), _dec2 = (0, _object.computed)('model.workers.last.value.projectWorkers'), _dec3 = (0, _object.computed)('model.workers.last.value.unassignedWorkers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_worker\", _descriptor7, this);\n      _initializerDefineProperty(this, \"permissionsChangeset\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isAddingWorkerToProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"workerToAddToProject\", _descriptor0, this);\n      _initializerDefineProperty(this, \"workerPermissionModal\", _descriptor1, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor10, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _initializerDefineProperty(this, \"_workersToAddToProject\", _descriptor11, this);\n      _defineProperty(this, \"addWorkerToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleWorkerProjectAttributes(this.workerToAddToProject, _workers.workerAttributes, []);\n            yield Promise.all([this.model.workers.perform(this.model.project)]);\n            this.isAddingWorkerToProject = false;\n            this.workerToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.workers.Added worker to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding worker'),\n              error\n            });\n          }\n        }\n      }), null, \"addWorkerToProject\", null));\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value.projectWorkers?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get projectWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.projectWorkers;\n    }\n    get unassignedWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.unassignedWorkers;\n    }\n    get workersToAddToProject() {\n      if (this._workersToAddToProject) return this._workersToAddToProject;\n      return this.projectWorkers;\n    }\n    set workersToAddToProject(value) {\n      this._workersToAddToProject = value;\n    }\n    get workersToRemoveFromProject() {\n      return _lodash.default.difference(this.projectWorkers, this.workersToAddToProject);\n    }\n    get canManageProject() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProjects');\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageWorkers');\n    }\n    async handleWorkerProjectAttributes(worker, projectAttributesToAdd, _projectAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: worker.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_worker\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"permissionsChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingWorkerToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"workerToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"workerPermissionModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectWorkers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedWorkers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedWorkers\"), _class2.prototype), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_workersToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"portal/routes/entity/builda-price/projects/project/people/workers/worker\", \"portal/routes/entity/settings/people/workers/worker\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _worker, _worker2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/projects/project/people/workers/worker\",0,\"portal/routes/entity/settings/people/workers/worker\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor8, this);\n      _defineProperty(this, \"saveWorkerPermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canViewTasks) {\n              _worker.canViewTaskAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _worker.canViewTaskAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              _worker.canCreateHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _worker.canCreateHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleWorkerProjectAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"saveWorkerPermissions\", null));\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.workers.worker.removeWorkerFromProjectConfirm'))) return;\n\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('worker-project-attribute', {\n              worker: this.model.worker.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('worker-task-attribute', {\n              worker: this.model.worker.last.value.id\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.workers.worker.Removed worker from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.worker.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        model: this.model.worker.last.value.id,\n        pageTitle: this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n    get entityCanViewTasks() {\n      return this.userIsEntityAdmin || this.model.worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canViewTasks');\n    }\n    get projectPermissionsCount() {\n      return [_worker.canViewTaskAttributes].filter(attrs => this.model.worker.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ...attrs)).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [_worker.canCreateHealthAndSafetyAttributes].filter(attrs => this.model.worker.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ...attrs)).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get entityCanCreateHealthAndSafety() {\n      return this.model.worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._worker2.workerHealthAndSafetyAttributes);\n    }\n    async handleWorkerProjectAttributes(projectAttributesToAdd, _projectAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: this.model.worker.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          worker: this.model.worker.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"portal/config/environment\", \"ember-changeset\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _runloop, _environment, _emberChangeset, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"ember-changeset\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor5, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingProduct\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingProduct\", _descriptor0, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor10, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor11, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor12, this);\n      _initializerDefineProperty(this, \"selectProductIds\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedProductId\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor15, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor16, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor17, this);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersFilter\", undefined);\n      _defineProperty(this, \"suppliersPage\", undefined);\n      _defineProperty(this, \"suppliersPageSize\", 10);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageIndex', 'sortBy', 'sortDirection', 'searchTerm', 'supplier']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onAddProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (product) {\n          try {\n            yield this.store.createRecord('project-product', {\n              ...product,\n              project: this.model.project.last.value,\n              entity: this.sessionData.entity\n            }).save();\n            this.isAddingProduct = false;\n            yield this.updateProductList.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n          }\n        }\n      }), null, \"onAddProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          try {\n            yield productChangeSet.save();\n            this.isEditingProduct = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileSavingProduct'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"updateProductList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.products.perform(this.model.project, Number(this.model.pageSize), Number(this.model.pageIndex), this.model.sortBy, this.model.sortDirection, this.model.searchTerm);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileReloadProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProductList\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.store.adapterFor('project-product').deleteBulk('project-product', [...this.selectProductIds]);\n            this.isDeletingProducts = false;\n            this.selectProductIds = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingProducts'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"deleteProducts\", null));\n      _defineProperty(this, \"loadMoreSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const suppliersFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) {\n              suppliersFilter.and.push((0, _searchFilter.default)(['name'], searchTerm, 'operator'));\n            }\n            if (JSON.stringify(suppliersFilter) !== JSON.stringify(this.suppliersFilter)) {\n              this.suppliersPage = undefined;\n              this.suppliersFilter = suppliersFilter;\n              this.suppliers = [];\n            }\n            if (this.suppliersPage && !this.suppliersPage?.hasNextPage) return this.suppliers;\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: suppliersFilter,\n              pageSize: this.suppliersPageSize,\n              page: nextPageNumber,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            this.suppliersPage = nextPage.pagination;\n            this.suppliers = [...this.suppliers, ...nextPage.data];\n            return this.suppliers;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadMoreSuppliers\", null));\n    }\n    get products() {\n      return this.model.products.last.value || [];\n    }\n    get supplierChangeSet() {\n      return (0, _emberChangeset.Changeset)({\n        supplierName: this.supplier\n      });\n    }\n    get isLoading() {\n      return this.model.products.isRunning || this.deleteProducts.isRunning || this.onSaveProduct.isRunning;\n    }\n    updateSearchTerm(value) {\n      this.selectProductIds = new Set();\n      this.pageIndex = 1;\n      this.searchTerm = value;\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get totalRecords() {\n      if (this.model.products.isRunning) return 0;\n      return this.products.meta.totalRecords;\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectProductIds.add(col.extraData.productId);\n      } else {\n        this.selectProductIds.delete(col.extraData.productId);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectProductIds = this.selectProductIds;\n    }\n    onClickProductName(_row, col) {\n      this.selectedProductId = col.extraData.productId;\n      this.isEditingProduct = true;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedProductIds = new Set();\n      if (e.target.checked) {\n        this.products.forEach(p => {\n          selectedProductIds.add(p.id);\n        });\n      }\n      this.selectProductIds = selectedProductIds;\n    }\n    onCreateProduct() {\n      this.selectedProductId = null;\n      this.isEditingProduct = true;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = col.value;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    get showFilters() {\n      return this.productTableData?.length || this.supplierChangeSet.get('supplierName') || this.searchTerm?.length;\n    }\n    get productTableHeader() {\n      if (this.model.products.isRunning) return [];\n      const productHeader = [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }];\n      if (this.isEditable && this.products.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectProductIds.size === this.products.length),\n        isPartiallySelected: Boolean(this.selectProductIds.size && this.selectProductIds.size !== this.products.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    get productTableData() {\n      if (this.model.products.isRunning) return [];\n      return this.products.map(product => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          productData.unshift({\n            type: 'BUTTON',\n            textClass: 'btn btn-link',\n            value: product.description,\n            onClickButton: this.onClickProductName,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectProductIds.has(product.id),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              productId: product.id\n            }\n          });\n        } else {\n          productData.unshift({\n            colClass: 'align-middle',\n            value: product.description\n          });\n        }\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProducts');\n    }\n    setSupplier(value) {\n      const supplierName = value?.supplierName;\n      this.supplier = supplierName;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"selectProductIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProductId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickProductName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickProductName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCreateProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCreateProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/progress\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('progressList.@each.{children,isDifferentFromLastVersion}'), _dec2 = (0, _object.computed)('model.project.last.value', 'newFeatureFlags'), _dec3 = (0, _object.computed)('model.progressList.last.value'), _dec4 = (0, _object.computed)('isSaving', 'isLoading', 'model.progressList.last.value.length'), _dec5 = (0, _object.computed)('model.progressList.last.value'), _dec6 = (0, _object.computed)('model.{project.last.value.draftProgressChangeSet,progressList.last.value.@each.isDirty}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showCommitProgressModal\", _descriptor6, this);\n      _defineProperty(this, \"saveDraftProgress\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const manageableProjectList = this.progressList.filter(p => p.task.canManageTaskProgress || p.children);\n            const promises = [this.buildaPrice.updateDraftProgressPosition(manageableProjectList)];\n            if (this.canCompleteTasks) {\n              const taskList = function makeTasks(containers) {\n                const tasks = [];\n                for (const container of containers) {\n                  // only send real tasks\n                  if (container.isDirect) continue;\n                  const task = {\n                    task: {\n                      id: container.task.id,\n                      path: container.task.path,\n                      status: container.task.status,\n                      parent: container.task.belongsTo('parent').id(),\n                      isComplete: container.isComplete,\n                      entity: container.task.belongsTo('entity').id()\n                    }\n                  };\n                  if (container.children) task.children = makeTasks(container.children);\n                  tasks.push(task);\n                }\n                return tasks;\n              }(manageableProjectList);\n\n              // this must be done before the commit because the task status changes from draft to active\n              promises.push(this.buildaPrice.updateTaskList(taskList));\n            }\n            yield Promise.all(promises);\n            yield this.model.project.last.value.reload();\n            yield this.model.progressList.perform(this.model.project);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.progress.Successfully saved progress draft'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.progress.somethingWentWrongWhileSavingProgressDraft'),\n              error\n            });\n          }\n        }\n      }), null, \"saveDraftProgress\", null));\n      _defineProperty(this, \"commitProgressVersion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const projectId = this.model.project.last.value.id;\n            const manageableProjectList = this.progressList.filter(p => p.task.canManageTaskProgress || p.children);\n            const promises = [this.buildaPrice.updateDraftProgressPosition(manageableProjectList)];\n            if (this.canCompleteTasks) {\n              const taskList = function makeTasks(containers) {\n                const tasks = [];\n                for (const container of containers) {\n                  // only send real tasks\n                  if (container.isDirect) continue;\n                  const task = {\n                    task: {\n                      id: container.task.id,\n                      path: container.task.path,\n                      status: container.task.status,\n                      parent: container.task.belongsTo('parent').id(),\n                      isComplete: container.isComplete,\n                      entity: container.task.belongsTo('entity').id()\n                    }\n                  };\n                  if (container.children) task.children = makeTasks(container.children);\n                  tasks.push(task);\n                }\n                return tasks;\n              }(manageableProjectList);\n\n              // this must be done before the commit because the task status changes from draft to active\n              promises.push(this.buildaPrice.updateTaskList(taskList));\n            }\n            yield Promise.all(promises);\n            yield this.buildaPrice.commitProject(projectId, {\n              commitBudget: false,\n              commitQuote: false,\n              commitProgress: true,\n              commitScheduling: false\n            });\n            this.showCommitProgressModal = false;\n            (0, _object.set)(this, 'model.project.last.value.draftProgressChangeSet', null);\n            yield this.model.project.last.value.reload();\n            yield this.model.progressList.perform(this.model.project);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.progress.Successfully made progress version'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.progress.somethingWentWrongWhileMakingTheProgressVersion'),\n              error\n            });\n          }\n        }\n      }), null, \"commitProgressVersion\", null));\n    }\n    get isSaving() {\n      return this.saveDraftProgress.isRunning || this.commitProgressVersion.isRunning;\n    }\n    get isLoading() {\n      return this.model.progressList.isRunning;\n    }\n    get canCompleteTasks() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageTasks');\n    }\n    get numberOfChanges() {\n      let count = 0;\n      (function countChanges(containers) {\n        containers.forEach(container => {\n          if (!container.children && container.isDifferentFromLastVersion) count++;\n          if (container.children) countChanges(container.children);\n        });\n      })(this.progressList);\n      return count;\n    }\n    get canSeeCreateVersionButton() {\n      if (!this.model.project.last.value) return true;\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProgressVersions');\n    }\n    get canSeeSaveDraftButton() {\n      if (!this.model.progressList.last.value) return true;\n      const findCanManageTaskProgress = list => {\n        if (list.some(pl => pl.task.canManageTaskProgress)) return true;\n        if (list.children?.length) return findCanManageTaskProgress(list.children);\n      };\n      return findCanManageTaskProgress(this.model.progressList.last.value);\n    }\n    get showTaskControls() {\n      if (this.isSaving) return true;\n      if (this.isLoading) return true;\n      if (this.model.progressList.last.value?.length) return true;\n      return false;\n    }\n    get progressList() {\n      return this.model.progressList.last.value;\n    }\n    get latestVersion() {\n      return this.model.project.last.value?.currentProgressVersion;\n    }\n    get isDraft() {\n      return Boolean(this.model.project.last.value?.belongsTo('draftProgressChangeSet').id() || this.model.progressList.last.value?.some(tc => tc.isDirty));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"showCommitProgressModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"numberOfChanges\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"numberOfChanges\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canSeeCreateVersionButton\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"canSeeCreateVersionButton\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canSeeSaveDraftButton\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"canSeeSaveDraftButton\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"showTaskControls\", [_dec4], Object.getOwnPropertyDescriptor(_class2.prototype, \"showTaskControls\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"progressList\", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, \"progressList\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isDraft\", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, \"isDraft\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"ember-changeset\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _emberChangeset, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-changeset\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.xeroTrackingOptions.last.value.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isArchivingProject\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isDeletingProject\", _descriptor1, this);\n      _initializerDefineProperty(this, \"addressSuggestions\", _descriptor10, this);\n      _defineProperty(this, \"googleMapAddressFinder\", (0, _emberChangeset.Changeset)({\n        address: null\n      }));\n      _defineProperty(this, \"status\", [{\n        value: 'OPEN',\n        label: this.intl.t('common.Open')\n      }, {\n        value: 'HELD',\n        label: this.intl.t('common.Held')\n      }, {\n        value: 'CLOSED',\n        label: this.intl.t('common.Closed')\n      }, {\n        value: 'ARCHIVED',\n        label: this.intl.t('common.Archived')\n      }]);\n      _defineProperty(this, \"contractType\", [{\n        value: 'COST_PLUS',\n        label: this.intl.t('shared.task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('shared.task.Fixed price')\n      }]);\n      _defineProperty(this, \"syncXeroTrackingCategoryOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const {\n              removed\n            } = yield this.xeroIntegration.getTrackingCategoryOptions(this.sessionData.entity);\n            const storeTrackingOptions = this.store.peekAll('xero-tracking-option');\n            if (removed.length) {\n              for (const id of removed) {\n                const option = storeTrackingOptions.find(a => a.id === id);\n                if (option) {\n                  // unload the record\n                  this.store.unloadRecord(option);\n                }\n              }\n            }\n            yield this.model.xeroTrackingOptions.perform();\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.settings.Successfully synced tracking categories'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.somethingWentWrongReloadingTrackingCategories'),\n              error\n            });\n          }\n        }\n      }), null, \"syncXeroTrackingCategoryOptions\", null));\n      _defineProperty(this, \"onAddressChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (val) {\n          if (val.trim().length > 0) {\n            const addressSuggestions = yield this.portalApiV2.authPost('/places/search', {\n              input: val\n            });\n            this.addressSuggestions = addressSuggestions;\n          }\n        }\n      }), null, \"onAddressChange\", null));\n      _defineProperty(this, \"deleteProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.project.last.value.delete();\n            this.isDeletingProject = false;\n            this.router.transitionTo('entity.builda-price.projects');\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.settings.Successfully deleted the project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.projectsWithAllocatedCostsOrPurchaseOrdersCanNotBeDeletedInsteadSetTheProjectToArchived'),\n              error\n            }, 5000);\n          }\n        }\n      }), null, \"deleteProject\", null));\n      _defineProperty(this, \"archiveProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.model.project.last.value.status = 'ARCHIVED';\n          try {\n            yield this.model.project.last.value.save();\n            this.isArchivingProject = false;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.settings.Successfully archived the project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.somethingWentWrongArchivingTheProject'),\n              error\n            });\n          }\n        }\n      }), null, \"archiveProject\", null));\n      _defineProperty(this, \"saveProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectChangeset, profitMarginChangeset) {\n          if (this.canManageProject) {\n            projectChangeset.validate();\n            if (projectChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the project information'));\n              return;\n            }\n          }\n\n          // because the profit type changing modifies the percentage validation\n          // we need to force a validate on all fields (including pristine)\n          if (this.canManageProfitMargin) {\n            profitMarginChangeset.validate('profitType', 'labourPercentage', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n            if (profitMarginChangeset.saveProfitMargin) {\n              this.notifications.warning(this.intl.t('shared.notification.pleaseCompleteTheProfitMarginInformation'));\n              return;\n            }\n          }\n          try {\n            // commit the changes\n            if (this.canManageProfitMargin) {\n              profitMarginChangeset.execute();\n              yield profitMarginChangeset.save();\n            }\n            if (this.canManageProject) {\n              projectChangeset.execute();\n              yield projectChangeset.save();\n            }\n            this.notifications.success('Saved successfully');\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingTheProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"saveProfitMargin\", null));\n      _defineProperty(this, \"saveProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectChangeset) {\n          if (this.canManageProject) {\n            projectChangeset.validate('startDate', 'completionDate', 'name', 'status');\n            if (projectChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the project information'));\n              return;\n            }\n          }\n          try {\n            const promises = [];\n            if (this.canManageProject) {\n              projectChangeset.execute();\n              promises.push(projectChangeset.save());\n            }\n            yield Promise.all(promises);\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.Something went wrong saving the project'),\n              error\n            });\n          }\n        }\n      }), null, \"saveProject\", null));\n    }\n    clearAddressSuggestions() {\n      this.addressSuggestions = [];\n      this.googleMapAddressFinder.address = null;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.loadProjectProfitMargin.isRunning || this.model.glAccounts.isRunning;\n    }\n    get canDelete() {\n      return this.model.project.last.value.canDelete;\n    }\n    get canManageProject() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProjects');\n    }\n    get canManageProfitMargin() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProfitMargin');\n    }\n    get projectClientsString() {\n      return this.model.projectClients.last.value?.map(c => c.fullName).join(', ') || null;\n    }\n    set purchasesGlAccountIsOverridden(value) {}\n    get purchasesGlAccountIsOverridden() {\n      const currentValue = this.model.projectChangeset.last.value.purchasesGlAccount;\n      return currentValue !== null;\n    }\n    set salesGlAccountIsOverridden(value) {}\n    get salesGlAccountIsOverridden() {\n      const currentValue = this.model.projectChangeset.last.value.salesGlAccount;\n      return currentValue !== null;\n    }\n    togglePurchasesGlAccountOverride(projectModel) {\n      const currentValue = projectModel.purchasesGlAccount;\n      const effectivePurchasesGlAccount = this.model.project.lastSuccessful.value.defaultPurchasesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectivePurchasesGlAccount;\n      projectModel.set('purchasesGlAccount', newValue);\n    }\n    toggleSalesGlAccountOverride(projectModel) {\n      const currentValue = projectModel.salesGlAccount;\n      const effectiveSalesGlAccount = this.model.project.lastSuccessful.value.defaultSalesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectiveSalesGlAccount;\n      projectModel.set('salesGlAccount', newValue);\n    }\n    get deleteMessages() {\n      return [this.intl.t('entity.builda-price.projects.project.settings.Do you want to delete this project')];\n    }\n    // power select component options loading state wants a promise\n    get xeroTrackingOptions() {\n      return (async () => {\n        const value = await this.model.xeroTrackingOptions.last;\n        return value;\n      })();\n    }\n    onRadiusChange(rad) {\n      this.model.projectChangeset.last.value.rad = rad;\n    }\n    async setGoogleMapAddress(suggestion) {\n      this.addressSuggestions = [];\n\n      // enter with nothing highlighted selects nothing, the typed text stands\n      if (!suggestion) return;\n      const {\n        address,\n        id\n      } = suggestion;\n      this.googleMapAddressFinder.address = address;\n      const {\n        latitude,\n        longitude\n      } = await this.portalApiV2.authGet(`/places/location/${id}`);\n      this.model.projectChangeset.last.value.lat = latitude;\n      this.model.projectChangeset.last.value.lng = longitude;\n    }\n    async setAddress(suggestion) {\n      this.addressSuggestions = [];\n      if (!suggestion) return;\n      const {\n        address,\n        id\n      } = suggestion;\n      this.model.projectChangeset.last.value.address = address;\n      const {\n        latitude,\n        longitude\n      } = await this.portalApiV2.authGet(`/places/location/${id}`);\n      this.model.projectChangeset.last.value.lat = latitude;\n      this.model.projectChangeset.last.value.lng = longitude;\n    }\n    onClickMap(lat, lng) {\n      this.model.projectChangeset.last.value.lat = lat;\n      this.model.projectChangeset.last.value.lng = lng;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isArchivingProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"addressSuggestions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"clearAddressSuggestions\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearAddressSuggestions\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"xeroTrackingOptions\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"xeroTrackingOptions\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onRadiusChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onRadiusChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setGoogleMapAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setGoogleMapAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickMap\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickMap\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/stage-payments\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"ember-changeset\", \"portal/models/entity-invoice-option\", \"lodash\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _emberChangeset, _entityInvoiceOption, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/models/entity-invoice-option\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let StagePaymentsController = _exports.default = (_class = class StagePaymentsController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"showCreateStagesModal\", _descriptor9, this);\n      _initializerDefineProperty(this, \"numberOfStages\", _descriptor0, this);\n      _initializerDefineProperty(this, \"showNameEditor\", _descriptor1, this);\n      _initializerDefineProperty(this, \"showDateEditor\", _descriptor10, this);\n      _initializerDefineProperty(this, \"showValueEditor\", _descriptor11, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor12, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor13, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor15, this);\n      _initializerDefineProperty(this, \"showChecklistModal\", _descriptor16, this);\n      _initializerDefineProperty(this, \"showTaskSelectorModal\", _descriptor17, this);\n      _initializerDefineProperty(this, \"selectedStages\", _descriptor18, this);\n      _initializerDefineProperty(this, \"showBulkDeleteStagesModal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"showDeleteStageModal\", _descriptor20, this);\n      _initializerDefineProperty(this, \"currentStageLinkedTasks\", _descriptor21, this);\n      _initializerDefineProperty(this, \"currentChecklist\", _descriptor22, this);\n      _initializerDefineProperty(this, \"allStageLinkedTasks\", _descriptor23, this);\n      _initializerDefineProperty(this, \"remainingQuoteValue\", _descriptor24, this);\n      _initializerDefineProperty(this, \"useValueFromTasks\", _descriptor25, this);\n      _initializerDefineProperty(this, \"currentStagePayment\", _descriptor26, this);\n      _initializerDefineProperty(this, \"showBulkActionsModal\", _descriptor27, this);\n      _initializerDefineProperty(this, \"showProjectLevelContractTermsModal\", _descriptor28, this);\n      _initializerDefineProperty(this, \"showDownloadOptions\", _descriptor29, this);\n      _initializerDefineProperty(this, \"includeTasks\", _descriptor30, this);\n      _initializerDefineProperty(this, \"includeCheckListItems\", _descriptor31, this);\n      _defineProperty(this, \"status\", 'ALL');\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'sortBy', 'status', 'sortDirection']);\n      _defineProperty(this, \"stagePaymentValidationMap\", {\n        name: (_key, val) => {\n          if (val?.length > 255) {\n            return this.intl.t('validation.pleaseInputANameLessThan255Characters');\n          }\n          return true;\n        },\n        stageNumber: (_key, val) => {\n          const stageNumber = Number(val);\n          return stageNumber >= 1 && Number.isInteger(stageNumber) && stageNumber <= this.totalRecords || this.intl.t('entity.builda-price.projects.project.stage-payments.stageNumberMustBeGreaterIntThanZeroAndLessThanMaxStageNumber', {\n            max: this.totalRecords\n          });\n        },\n        retention: (_key, val) => {\n          if (typeof val !== 'number') return true;\n\n          // null is valid\n          if (val === null) return true;\n          return val <= 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n      });\n      _defineProperty(this, \"stagePaymentsOptionsValidationMap\", {});\n      _defineProperty(this, \"addNewQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (title) {\n          const newQuestion = yield this.store.createRecord('stage-payment-question', {\n            title: title,\n            complete: false,\n            entity: this.sessionData.entity,\n            stagePayment: this.currentStagePayment\n          }).save();\n          this.currentChecklist = [...this.currentChecklist, newQuestion];\n        }\n      }), null, \"addNewQuestion\", null));\n      _defineProperty(this, \"deleteQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (questionId) {\n          const question = this.store.peekRecord('stage-payment-question', questionId);\n          yield question.destroyRecord();\n          this.currentChecklist = this.currentChecklist.filter(item => item.id !== questionId);\n        }\n      }), null, \"deleteQuestion\", null));\n      _defineProperty(this, \"loadDataForValueModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.remainingQuoteValue = 0;\n            this.useValueFromTasks = 0;\n            const {\n              allStages,\n              quoteVersionValues,\n              allStagesLinkedTasks\n            } = yield this.loadDataForEffectivePercentage();\n            const usedQuote = (allStages || []).reduce((acc, stage) => acc + stage.value, 0);\n            const totalQuoteValue = (quoteVersionValues || []).reduce((acc, quote) => acc + quote.labour + quote.materials + quote.subcontractors + quote.sums, 0);\n            this.remainingQuoteValue = Math.max(totalQuoteValue - usedQuote, 0);\n            let useValueFromTasks = 0;\n            const linksByTask = _lodash.default.groupBy(allStagesLinkedTasks, link => link.belongsTo('task').id());\n            for (let taskId of Object.keys(linksByTask)) {\n              const items = linksByTask[taskId];\n              const effectivePercentage = calculateEffectivePercentage(items, this.currentStagePayment);\n              const currentTaskQuote = quoteVersionValues.find(qvv => qvv.belongsTo('task').id() === taskId);\n              const currentTaskShare = effectivePercentage * ((currentTaskQuote?.labour || 0) + (currentTaskQuote?.materials || 0) + (currentTaskQuote?.subcontractors || 0) + (currentTaskQuote?.sums || 0));\n              useValueFromTasks += currentTaskShare || 0;\n            }\n            this.useValueFromTasks = useValueFromTasks;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.Something went wrong while fetching data'),\n              error\n            });\n          }\n        }\n      }), null, \"loadDataForValueModal\", null));\n      _defineProperty(this, \"addStagePayments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagesCount) {\n          try {\n            for (let i = 1; i <= stagesCount; i++) {\n              yield this.store.createRecord('stage-payment', {\n                entity: this.sessionData.entity,\n                project: this.model.project.lastSuccessful.value\n              }).save();\n            }\n            yield Promise.all([this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status), this.model.stagePaymentsValues.perform(this.model.project)]);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyAddedStages', {\n              stage: stagesCount > 1 ? 'stages' : 'stage'\n            }));\n            this.numberOfStages = null;\n            this.showCreateStagesModal = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileAddingStages', {\n                stage: stagesCount > 1 ? 'stages' : 'stage'\n              }),\n              error\n            });\n          }\n        }\n      }), null, \"addStagePayments\", null));\n      _defineProperty(this, \"saveCurrentStage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (!changeset.isValid) return;\n            yield changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.Successfully saved stage'));\n            yield this.model.stagePaymentsValues.perform(this.model.project);\n            yield this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status);\n            this.showNameEditor = false;\n            this.showValueEditor = false;\n            this.showDateEditor = false;\n            this.currentStagePayment = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.Something went wrong while saving stage'),\n              error\n            });\n          }\n        }\n      }), null, \"saveCurrentStage\", null));\n      _defineProperty(this, \"deleteStages\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const invoiceLinks = [];\n            for (const record of this.selectedStages) {\n              const invoices = this.model.invoices.lastSuccessful.value.filter(i => i.belongsTo('stagePayment').value() === record);\n              if (invoices.length) {\n                const links = invoices.map(inv => {\n                  const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', inv.id);\n                  return `<a target=\"_blank\" href=\"${url}\">${inv.invoiceNumber}</a>`;\n                });\n                invoiceLinks.push(...links);\n              }\n            }\n            if (invoiceLinks.length) {\n              const joinedLinks = invoiceLinks.join(', ');\n              this.notifications.warning({\n                message: `${this.intl.t('entity.builda-price.projects.project.stage-payments.stagePaymentWithInvoicesDeleteWarn')} ${joinedLinks}`,\n                clearDuration: 10000\n              });\n              return;\n            }\n            const actions = [];\n            for (const record of this.selectedStages) {\n              actions.push(record.destroyRecord());\n            }\n            yield Promise.all(actions);\n            yield Promise.all([this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status), this.model.stagePaymentsValues.perform(this.model.project)]);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyDeletedStage', {\n              stage: this.selectedStages.size > 1 ? 'stages' : 'stage'\n            }));\n            this.showBulkDeleteStagesModal = false;\n            this.selectedStages = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileDeletingStage', {\n                stage: this.selectedStages.size > 1 ? 'stages' : 'stage'\n              }),\n              error\n            });\n          }\n        }\n      }), null, \"deleteStages\", null));\n      _initializerDefineProperty(this, \"_bulkActionsStageValue\", _descriptor32, this);\n      _initializerDefineProperty(this, \"_computedRemainingQuoteValue\", _descriptor33, this);\n      _defineProperty(this, \"saveBulkActionDistributeValue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const actions = [];\n            const fixedValue = this.bulkActionsStageValue;\n            this.selectedStages.forEach(record => {\n              record.value = fixedValue;\n              actions.push(record.save());\n            });\n            yield Promise.all(actions);\n            yield this.model.stagePaymentsValues.perform(this.model.project);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyAppliedTheValuesAcrossStage', {\n              stage: this.selectedStages.size > 1 ? 'stages' : 'stage'\n            }));\n            this.selectedStages = new Set();\n            this.bulkActionsStageValue = null;\n            this.showBulkActionsModal = false;\n            this._computedRemainingQuoteValue = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileApplyingValues'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBulkActionDistributeValue\", null));\n      _defineProperty(this, \"setRemainingQuoteValue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          changeset.set('value', this.remainingQuoteValue);\n        }\n      }), null, \"setRemainingQuoteValue\", null));\n      _defineProperty(this, \"setUseValueFromTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          changeset.set('value', this.useValueFromTasks);\n        }\n      }), null, \"setUseValueFromTasks\", null));\n      _defineProperty(this, \"saveStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePaymentOption) {\n          if (stagePaymentOption.isInvalid) return;\n          try {\n            stagePaymentOption.execute();\n            const wasNew = Boolean(stagePaymentOption.isNew);\n            yield stagePaymentOption.save();\n\n            // if the record was new, we need to setup the relationship with the project\n            if (wasNew) {\n              const project = this.model.project.last.value;\n              yield project.save();\n            }\n            this.showProjectLevelContractTermsModal = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongUpdatingProjectNotes'),\n              error\n            });\n          }\n        }\n      }), null, \"saveStagePaymentOptions\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadStagePaymentsPDF(this.filename, {\n              entity: this.sessionData.entity.id,\n              project: this.model.project.last.value.id,\n              includeTasks: this.includeTasks,\n              includeCheckListItems: this.includeCheckListItems\n            });\n            this.closeDownloadOptions();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadAsPdf\", null));\n    }\n    onChangePage(pageNumber) {\n      this.pageNumber = pageNumber;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get pageIsLoading() {\n      return this.model.stagePayments.lastSuccessful === null && this.model.stagePayments.isRunning || this.model.progressVersionValues.lastSuccessful === null && this.model.progressVersionValues.isRunning || this.model.stagePaymentsValues.lastSuccessful === null && this.model.stagePaymentsValues.isRunning || this.model.invoices.lastSuccessful === null && this.model.invoices.isRunning || this.model.stagePaymentOptions.lastSuccessful === null && this.model.stagePaymentOptions.isRunning;\n    }\n    get stagePaymentOption() {\n      return this.model.project.last.value.belongsTo('stagePaymentOption').value();\n    }\n    get tableIsLoading() {\n      return this.model.stagePayments.isRunning;\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canManageStagePayments');\n    }\n    openNameEditor(_row, col, _e) {\n      this.currentStagePayment = col.currentStagePayment;\n      this.showNameEditor = true;\n    }\n    openDateEditor(_row, col, _e) {\n      this.currentStagePayment = col.currentStagePayment;\n      this.showDateEditor = true;\n    }\n    openValueEditor(_row, col, _e) {\n      this.currentStagePayment = col.currentStagePayment;\n      this.showValueEditor = true;\n    }\n    get totalRecords() {\n      return this.model.stagePayments.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    get stagePayments() {\n      return this.model.stagePayments.lastSuccessful.value?.toArray() || [];\n    }\n    get progressVersionValues() {\n      return this.model.progressVersionValues.lastSuccessful.value?.toArray() || [];\n    }\n    get selectedStagesValue() {\n      return Array.from(this.selectedStages).reduce((acc, stage) => {\n        return acc += stage.value || 0;\n      }, 0);\n    }\n    openTaskSelector(_row, col) {\n      this.currentStageLinkedTasks = col.currentStageLinkedTasks;\n      this.allStageLinkedTasks = this.store.peekAll('link-task-to-stage-payment').filter(stagePaymentTask => stagePaymentTask.belongsTo('task').value().belongsTo('project').id() === this.model.project.lastSuccessful.value.id);\n      this.currentStagePayment = col.currentStagePayment;\n      this.showTaskSelectorModal = true;\n    }\n    openChecklist(_row, col) {\n      this.currentChecklist = col.currentStageLinkedQuestions;\n      this.currentStagePayment = col.currentStagePayment;\n      this.showChecklistModal = true;\n    }\n    get tableHeader() {\n      return [{\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle col',\n        onInputChange: this.onSelectAllStages,\n        value: this.selectedStages.size,\n        isPartiallySelected: Boolean(this.selectedStages.size && this.selectedStages.size < this.stagePayments.filter(item => item.status !== 'CLAIMED').length)\n      }, {\n        value: this.intl.t('entity.builda-price.projects.project.stage-payments.Stage'),\n        iconName: this.getSortIcon('Stage'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-center col'\n      }, {\n        value: this.intl.t('common.Name'),\n        iconName: this.getSortIcon('Name'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left col-5'\n      }, {\n        value: this.intl.t('common.Due date'),\n        iconName: this.getSortIcon('Due date'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left col'\n      }, {\n        value: this.intl.t('entity.builda-price.projects.project.stage-payments.Included tasks'),\n        colClass: 'text-left col'\n      }, {\n        value: this.intl.t('common.Checklist'),\n        colClass: 'text-left col'\n      }, {\n        value: this.intl.t('common.Value'),\n        iconName: this.getSortIcon('Value'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right col'\n      }, {\n        value: this.intl.t('common.Status'),\n        iconName: this.getSortIcon('Status'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left col'\n      }, {\n        value: this.intl.t('common.Actions'),\n        colClass: 'text-center col'\n      }];\n    }\n    get tableData() {\n      const allStageLinkedTasks = this.store.peekAll('link-task-to-stage-payment').filter(task => task.belongsTo('task').value().belongsTo('project').id() === this.model.project.lastSuccessful.value.id);\n      return this.stagePayments.map(payment => {\n        const stageStatus = payment.status === 'CLAIMED' ? this.intl.t('common.Claimed') : this.intl.t('common.Unclaimed');\n        const currentStageInvoices = this.model.invoices.lastSuccessful.value.filter(item => item.belongsTo('stagePayment').id() === payment.id);\n        const currentStageLinkedTasks = allStageLinkedTasks.filter(task => task.belongsTo('stagePayment').id() === payment.id);\n        const completedTaskIds = currentStageLinkedTasks.reduce((completedTaskIds, task) => {\n          const progress = this.progressVersionValues.find(pvv => pvv.belongsTo('task').id() === task.belongsTo('task').id());\n          if (progress && progress.progress >= task.completionPercentage) return [...completedTaskIds, task.id];\n          return completedTaskIds;\n        }, []);\n        const currentStageLinkedQuestions = this.store.peekAll('stage-payment-question').filter(question => question.belongsTo('stagePayment').id() === payment.id).sortBy('dateCreated');\n        const completedQuestions = currentStageLinkedQuestions.filter(question => question.complete).length;\n        const dueDate = payment.dueDate ? this.intl.formatDate(payment.dueDate) : null;\n        const value = this.numberFormat.format(payment.value, {\n          style: 'currency'\n        });\n        const hasDueDate = !!payment.dueDate;\n        const hasTasks = currentStageLinkedTasks.length > 0;\n        const hasQuestions = currentStageLinkedQuestions.length > 0;\n        const dueDateCondition = hasDueDate ? new Date(payment.dueDate) < new Date() : true;\n        const tasksCondition = hasTasks ? currentStageLinkedTasks.length === completedTaskIds.length : true;\n        const questionsCondition = hasQuestions ? currentStageLinkedQuestions.length === completedQuestions : true;\n\n        // Ensure all present conditions are satisfied\n        const allConditionsMet = (!hasDueDate || dueDateCondition) && (!hasTasks || tasksCondition) && (!hasQuestions || questionsCondition);\n        const isReadyToBeClaimed = (hasDueDate || hasTasks || hasQuestions) && payment.value > 0 && payment.status !== 'CLAIMED' && allConditionsMet;\n        const taskTooltip = currentStageLinkedTasks.sort((a, b) => a.belongsTo('task').value()?.path > b.belongsTo('task').value()?.path ? 1 : -1).map(link => `${link.belongsTo('task').value()?.name} (${this.numberFormat.format(link.completionPercentage, {\n          style: 'percent',\n          dashZero: false,\n          maximumSignificantDigits: 4\n        })})`).join(', ');\n        const checklistTooltip = currentStageLinkedQuestions.map(question => question.title).join(', ');\n        const rowData = [{\n          colClass: 'text-center align-middle col',\n          value: payment.stageNumber\n        }, {\n          colClass: 'text-left align-middle col-5',\n          value: payment.name,\n          badgeValue: isReadyToBeClaimed ? this.intl.t('entity.builda-price.projects.project.stage-payments.Ready to be claimed') : null,\n          badgeClass: isReadyToBeClaimed ? 'badge bg-primary fs-8' : null\n        }, {\n          colClass: `text-left align-middle col ${payment.status !== 'CLAIMED' && payment.dueDate && new Date(payment.dueDate) < new Date() ? 'text-danger' : ''}`,\n          value: dueDate || '&mdash;'\n        }, {\n          tooltip: taskTooltip,\n          colClass: 'text-left align-middle col',\n          value: currentStageLinkedTasks.length ? this.intl.t('entity.builda-price.projects.project.stage-payments.xOfYComplete', {\n            complete: completedTaskIds.length,\n            total: currentStageLinkedTasks.length\n          }) : '&mdash;'\n        }, {\n          tooltip: checklistTooltip,\n          colClass: 'text-left align-middle col',\n          value: currentStageLinkedQuestions.length ? this.intl.t('entity.builda-price.projects.project.stage-payments.xOfYComplete', {\n            complete: completedQuestions,\n            total: currentStageLinkedQuestions.length\n          }) : '&mdash;'\n        }, {\n          colClass: 'text-right align-middle col',\n          value: value,\n          onClickButton: this.openValueEditor,\n          currentStagePayment: payment\n        }, {\n          colClass: 'text-left align-middle col',\n          value: stageStatus\n        }];\n        const popOverActions = {\n          primary: {\n            iconName: 'ellipsis-h'\n          },\n          secondary: []\n        };\n        if (payment.status === 'UNCLAIMED' && this.isEditable) {\n          popOverActions.secondary.push({\n            items: [{\n              name: this.intl.t('entity.builda-price.projects.project.stage-payments.Claim stage'),\n              iconName: 'check',\n              onClickButton: this.toggleStageStatus\n            }]\n          });\n          if (!currentStageInvoices.length && this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canManageInvoices')) {\n            popOverActions.secondary.push({\n              items: [{\n                name: this.intl.t('entity.builda-price.projects.project.stage-payments.claimAndInvoice'),\n                iconName: 'check',\n                onClickButton: this.claimAndInvoiceStage\n              }]\n            });\n          }\n        }\n\n        // Edit details\n        if (payment.status !== 'CLAIMED') {\n          popOverActions.secondary.push({\n            items: [{\n              name: this.isEditable ? this.intl.t('entity.builda-price.projects.project.stage-payments.Edit details') : this.intl.t('entity.builda-price.projects.project.stage-payments.View details'),\n              iconName: 'pen',\n              onClickButton: this.openNameEditor\n            }]\n          });\n        }\n\n        // Constraints section\n        const constraintItems = [];\n        if (this.isEditable && payment.status !== 'CLAIMED') {\n          constraintItems.push({\n            name: this.intl.t('entity.builda-price.projects.project.stage-payments.Edit value'),\n            iconName: 'dollar-sign',\n            onClickButton: this.openValueEditor\n          }, {\n            name: this.intl.t('entity.builda-price.projects.project.stage-payments.Edit due date'),\n            iconName: 'calendar',\n            onClickButton: this.openDateEditor\n          });\n        }\n        constraintItems.push({\n          name: this.isEditable ? this.intl.t('entity.builda-price.projects.project.stage-payments.Edit included tasks') : this.intl.t('entity.builda-price.projects.project.stage-payments.View included tasks'),\n          iconName: 'tasks',\n          onClickButton: this.openTaskSelector\n        });\n        if (this.isEditable || currentStageLinkedQuestions.length) {\n          constraintItems.push({\n            name: this.isEditable ? this.intl.t('entity.builda-price.projects.project.stage-payments.Edit checklist') : this.intl.t('entity.builda-price.projects.project.stage-payments.View checklist'),\n            iconName: 'tasks',\n            onClickButton: this.openChecklist\n          });\n        }\n        if (this.isEditable && payment.status !== 'CLAIMED') {\n          constraintItems.push({\n            name: this.intl.t('entity.builda-price.projects.project.stage-payments.Delete stage'),\n            iconName: 'trash',\n            onClickButton: this.deleteIndividualStage\n          });\n        }\n        if (constraintItems.length) {\n          popOverActions.secondary.push({\n            items: constraintItems\n          });\n        }\n\n        // CLAIMED + editable actions\n        if (payment.status === 'CLAIMED' && this.isEditable) {\n          popOverActions.secondary.push({\n            sectionName: '',\n            items: [{\n              name: this.intl.t('entity.builda-price.projects.project.stage-payments.Revert to unclaimed'),\n              iconName: 'undo',\n              onClickButton: this.toggleStageStatus\n            }]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canManageInvoices')) popOverActions.secondary.push({\n            sectionName: '',\n            items: [{\n              name: this.intl.t('entity.builda-price.projects.project.stage-payments.createInvoice'),\n              iconName: 'file-invoice',\n              onClickButton: this.claimAndInvoiceStage\n            }]\n          });\n        }\n        const invoices = currentStageInvoices.map(invoice => {\n          const navigateToInvoice = (_row, _col) => {\n            const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', invoice.id);\n            window.open(url, '_blank');\n          };\n          return {\n            name: this.intl.t(invoice.invoiceType === 'INVOICE' ? 'entity.builda-price.projects.project.stage-payments.viewInvoiceNumber' : 'entity.builda-price.projects.project.stage-payments.viewCreditNoteInvoiceNumber', {\n              invoiceNumber: invoice.invoiceNumber\n            }),\n            iconName: 'file-invoice',\n            onClickButton: navigateToInvoice\n          };\n        });\n        if (invoices.length && this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canUseInvoices')) {\n          popOverActions.secondary.push({\n            sectionName: '',\n            items: invoices\n          });\n        }\n        // Add main popover row\n        rowData.push({\n          type: 'POPOVER',\n          currentStagePayment: payment,\n          invoices: currentStageInvoices,\n          currentStageLinkedTasks,\n          currentStageLinkedQuestions,\n          popOverActions,\n          value: payment.status === 'CLAIMED' ? this.intl.t('common.Rollback') : this.intl.t('common.Complete'),\n          colClass: 'align-middle col'\n        });\n\n        // Add checkbox or empty column\n        if (payment.status !== 'CLAIMED') {\n          rowData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle col',\n            onInputChange: this.onSelectStage,\n            currentStagePayment: payment,\n            disabled: !this.isEditable,\n            value: this.selectedStages.has(payment)\n          });\n        } else {\n          rowData.unshift({\n            value: '',\n            colClass: 'col'\n          });\n        }\n        return {\n          rowData,\n          rowClass: payment.status === 'CLAIMED' ? 'table-light' : ''\n        };\n      });\n    }\n    get bulkActionsStageValue() {\n      return this._bulkActionsStageValue ?? this.selectedStagesValue / this.selectedStages.size;\n    }\n    set bulkActionsStageValue(value) {\n      this._bulkActionsStageValue = value;\n    }\n    get remainingQuote() {\n      return this.model.stagePaymentsValues.lastSuccessful.value?.remainingQuote || 0;\n    }\n    get remainingQuoteValueInContextWithStages() {\n      if (this._computedRemainingQuoteValue !== null) {\n        return this._computedRemainingQuoteValue;\n      }\n      const eachRecordValue = this.remainingQuote / this.selectedStages.size;\n      const stagesValue = this.selectedStagesValue;\n      const adjustedSelectedStagesValue = stagesValue / this.selectedStages.size;\n      return eachRecordValue + adjustedSelectedStagesValue;\n    }\n    distributeRemainingQuoteAcrossStages() {\n      if (!this.remainingQuote || !this.selectedStages.size) return;\n      this._computedRemainingQuoteValue = this.remainingQuoteValueInContextWithStages;\n      this.bulkActionsStageValue = this._computedRemainingQuoteValue;\n    }\n    async toggleStageStatus(_row, col, _e) {\n      const changeset = (0, _emberChangeset.Changeset)(col.currentStagePayment, undefined, this.stagePaymentValidationMap);\n      if (col.currentStagePayment.status === 'CLAIMED') {\n        changeset.set('status', 'UNCLAIMED');\n      } else {\n        changeset.set('status', 'CLAIMED');\n        this.selectedStages.delete(col.currentStagePayment);\n      }\n      await this.saveCurrentStage.perform(changeset);\n    }\n    onSelectStage(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedStages.add(col.currentStagePayment);\n      } else {\n        this.selectedStages.delete(col.currentStagePayment);\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedStages = this.selectedStages;\n    }\n\n    // this is triggered when you select top level checkbox\n    onSelectAllStages(_row, col, e) {\n      if (e.target.checked) {\n        this.stagePayments.forEach(stage => {\n          if (stage.status !== 'CLAIMED') this.selectedStages.add(stage);\n        });\n      } else {\n        this.stagePayments.forEach(stage => {\n          if (stage.status !== 'CLAIMED') this.selectedStages.delete(stage);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedStages = this.selectedStages;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n      } else {\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortBy = undefined;\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n    }\n    getSortIcon(column) {\n      if (this.sortBy === column && this.sortDirection) {\n        return this.sortDirection === 'desc' ? 'sort-down' : 'sort-up';\n      }\n      return undefined;\n    }\n    preventNegative(event) {\n      let value = event.target.value;\n      if (value <= 0) {\n        event.target.value = 1;\n      }\n    }\n    async deleteIndividualStage(_row, col, _e) {\n      try {\n        if (col.invoices.length) {\n          const links = col.invoices.map(inv => {\n            const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', inv.id);\n            return `<a target=\"_blank\" href=\"${url}\">${inv.invoiceNumber}</a>`;\n          });\n          const joinedLinks = links.join(', ');\n          this.notifications.warning({\n            message: `${this.intl.t('entity.builda-price.projects.project.stage-payments.stagePaymentWithInvoicesDeleteWarn')} ${joinedLinks}`,\n            clearDuration: 5000\n          });\n          return;\n        }\n        await col.currentStagePayment.destroyRecord();\n        await Promise.all([this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status), this.model.stagePaymentsValues.perform(this.model.project)]);\n        this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyDeletedStage', {\n          stage: 'stage'\n        }));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileDeletingStage', {\n            stage: 'stage'\n          }),\n          error\n        });\n      }\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.model.project.last.value.name}_${year}-${month}-${day}`;\n    }\n    toggleProperty(propertyName) {\n      this[propertyName] = !this[propertyName];\n    }\n    closeDownloadOptions() {\n      this.showDownloadOptions = false;\n      this.includeCheckListItems = false;\n      this.includeTasks = false;\n    }\n    async loadDataForEffectivePercentage() {\n      try {\n        const stagesFilter = {\n          and: [{\n            field: 'project',\n            op: 'EQ',\n            value: this.model.project.lastSuccessful.value.id\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }]\n        };\n        const quoteVersionValueFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }, {\n            field: 'version',\n            op: 'EQ',\n            value: this.model.project.lastSuccessful.value.belongsTo('currentQuoteVersion').id()\n          }]\n        };\n        const [allStages, quoteVersionValues] = await Promise.all([this.store.query('stage-payment', {\n          filter: stagesFilter\n        }), this.store.query('quote-version-value', {\n          filter: quoteVersionValueFilter\n        })]);\n        const linkTaskToStagePaymentsFilter = {\n          and: [{\n            field: 'stagePayment',\n            op: 'IN',\n            value: allStages.map(stage => stage.id)\n          }]\n        };\n        const allStagesLinkedTasks = await this.store.query('link-task-to-stage-payment', {\n          filter: linkTaskToStagePaymentsFilter,\n          include: 'task'\n        }).then(res => res?.toArray());\n        return {\n          allStages,\n          quoteVersionValues,\n          allStagesLinkedTasks\n        };\n      } catch {\n        //\n      }\n    }\n    async claimAndInvoiceStage(_row, col, _e) {\n      try {\n        let glAccount = undefined;\n        const linkedTasks = this.store.peekAll('link-task-to-stage-payment').filter(link => link.belongsTo('stagePayment').id() === col.currentStagePayment.id);\n        let [invoiceOption, {\n          allStagesLinkedTasks\n        }] = await Promise.all([this.store.query('entity-invoice-option', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          }\n        }).then(res => res[0]), this.loadDataForEffectivePercentage(), this.store.query('gl-account', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          }\n        })]);\n        if (!invoiceOption) invoiceOption = await _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity).save();\n        const invoice = await this.store.createRecord('invoice', {\n          invoiceNumber: `${invoiceOption.invoicePrefix}${invoiceOption.nextInvoiceNumber}`,\n          entity: this.sessionData.entity,\n          stagePayment: col.currentStagePayment\n        }).save();\n        const allocations = [];\n        const linksByTask = _lodash.default.groupBy(allStagesLinkedTasks, link => link.belongsTo('task').id());\n        const stageLinks = allStagesLinkedTasks.filter(link => link.belongsTo('stagePayment').id() === col.currentStagePayment.id);\n        for (let link of stageLinks) {\n          const taskId = link.belongsTo('task').id();\n          const allocationPercentage = calculateEffectivePercentage(linksByTask[taskId], col.currentStagePayment);\n          allocations.push({\n            type: 'task',\n            id: taskId,\n            allocation: 'all',\n            checked: true,\n            indeterminate: false,\n            allocationPercentage\n          });\n        }\n        if (!linkedTasks.length) {\n          allocations.push({\n            type: 'project',\n            id: col.currentStagePayment.belongsTo('project').id(),\n            allocation: 'all',\n            checked: true,\n            indeterminate: false\n          });\n          glAccount = col.currentStagePayment.belongsTo('project').value().effectiveSalesGlAccount;\n        } else if (linkedTasks.length === 1) {\n          glAccount = linkedTasks[0].belongsTo('task').value().effectiveSalesGlAccount;\n        } else {\n          const tasks = linkedTasks.map(l => l.belongsTo('task').value());\n\n          // build parents for each task as array [[1, 1.1, 1.1.1], [2, 2.1, 2.1.1]]\n          const tasksParents = tasks.map(t => {\n            let currentTask = t;\n            const currentHierarchy = [];\n            while (currentTask) {\n              currentHierarchy.push(currentTask);\n              currentTask = currentTask.belongsTo('parent').value();\n            }\n            return currentHierarchy;\n          });\n\n          // Iterate each first task's hierarchy and check if every other task's hierarchy also contains that same parent.\n          // If no common parent is found, we'll fall back to the project's GL account.\n          let commonParent = null;\n          for (let task of tasksParents[0]) {\n            if (tasksParents.every(c => c.includes(task))) {\n              commonParent = task;\n              break;\n            }\n          }\n          if (commonParent) {\n            glAccount = commonParent.effectiveSalesGlAccount;\n          } else {\n            // fallback to project GL\n            glAccount = col.currentStagePayment.belongsTo('project').value().effectiveSalesGlAccount;\n          }\n        }\n        let description = `${col.currentStagePayment.belongsTo('project').value().name}:`;\n        description += ` Stage ${col.currentStagePayment.stageNumber}`;\n        if (col.currentStagePayment.name) description += ` - ${col.currentStagePayment.name}`;\n        await this.store.createRecord('invoice-item', {\n          description,\n          unitPrice: col.currentStagePayment.value,\n          quantity: 1,\n          entity: this.sessionData.entity,\n          taxRate: this.sessionData.entity.gst,\n          project: col.currentStagePayment.belongsTo('project').value(),\n          invoice,\n          sortIndex: 0,\n          glAccount,\n          stagePayment: col.currentStagePayment,\n          contractType: 'FIXED_PRICE'\n        }).save({\n          adapterOptions: {\n            meta: {\n              allocations,\n              contractType: 'FIXED_PRICE'\n            }\n          }\n        });\n\n        // change stage status to CLAIMED\n        col.currentStagePayment.status = 'CLAIMED';\n        await col.currentStagePayment.save();\n        this.router.transitionTo('entity.builda-price.operations.outgoing.invoices.invoice', invoice.id);\n      } catch (error) {\n        this.notifications.error({\n          message: 'Something went wrong while creating invoice',\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"showCreateStagesModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"numberOfStages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"showNameEditor\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"showDateEditor\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"showValueEditor\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"showChecklistModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"showTaskSelectorModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"selectedStages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"showBulkDeleteStagesModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"showDeleteStageModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"currentStageLinkedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"currentChecklist\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"allStageLinkedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"remainingQuoteValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"useValueFromTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"currentStagePayment\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"showBulkActionsModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"showProjectLevelContractTermsModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"showDownloadOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, \"includeTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, \"includeCheckListItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChangePage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openNameEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openNameEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDateEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDateEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openValueEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openValueEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openTaskSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openTaskSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openChecklist\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openChecklist\"), _class.prototype), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, \"_bulkActionsStageValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, \"_computedRemainingQuoteValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"distributeRemainingQuoteAcrossStages\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"distributeRemainingQuoteAcrossStages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleStageStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleStageStatus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectStage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectStage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectAllStages\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectAllStages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortColumn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventNegative\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"preventNegative\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteIndividualStage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteIndividualStage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleProperty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDownloadOptions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDownloadOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"claimAndInvoiceStage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"claimAndInvoiceStage\"), _class.prototype), _class);\n  function calculateEffectivePercentage(linkedTasks, currentStagePayment) {\n    const data = linkedTasks.map(item => ({\n      percentage: item.completionPercentage,\n      stageId: item.belongsTo('stagePayment').id(),\n      dateCreated: item.belongsTo('stagePayment').value().dateCreated\n    })).sort((a, b) => b.percentage - a.percentage || new Date(b.dateCreated) - new Date(a.dateCreated));\n    const targetIndex = data.findIndex(d => d.stageId === currentStagePayment.id);\n    if (targetIndex === -1) return 0;\n    const currentPercentage = data[targetIndex].percentage;\n    const nextHighestPercentage = data[targetIndex + 1]?.percentage || 0;\n    return currentPercentage - nextHighestPercentage;\n  }\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"portal/routes/entity/builda-price/projects/project/tasks/index\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/routes/entity/builda-price/projects/project/tasks/index\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"addingTasksFromTakeoff\", _descriptor7, this);\n      _initializerDefineProperty(this, \"addingTaskFromTemplate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"firstTaskName\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_taskList\", _descriptor0, this);\n      _defineProperty(this, \"saveNewTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskName, parentTask) {\n          try {\n            if (!taskName) {\n              this.notifications.warning(this.intl.t('shared.notification.Please provide a task name'));\n              return;\n            }\n            const newTask = this.store.createRecord('task', {\n              name: taskName,\n              project: this.model.project.last.value,\n              entity: this.sessionData.entity,\n              taskType: 'TASK'\n            });\n            if (parentTask) {\n              const childrenLength = parentTask.activeChildren.length;\n              newTask.parent = parentTask;\n              newTask.timesheetStatus = parentTask.timesheetStatus;\n              newTask.path = `${parentTask.path}.${String(childrenLength).padStart(3, '0')}`;\n              newTask.taskType = parentTask.taskType;\n            } else {\n              newTask.path = String(this.taskList.length).padStart(3, '0');\n            }\n            this.addTaskToList(newTask);\n            yield newTask.save();\n            this.firstTaskName = ''; // this only needs to happen rarely\n\n            return newTask;\n          } catch (error) {\n            this.reloadTasks();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.Something went wrong creating a task'),\n              error\n            });\n          }\n        }\n      }), null, \"saveNewTask\", null));\n      _defineProperty(this, \"onTaskListUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (newTaskList) {\n          try {\n            this.taskList = newTaskList;\n            yield this.buildaPrice.updateTaskList(newTaskList);\n\n            // once the JSON:API is fixed we can remove this code\n            const newTasks = function getTasksFromItems(items, tasks = []) {\n              items.forEach(item => {\n                tasks.push(item.task);\n                if (item.children?.length) getTasksFromItems(item.children, tasks);\n              });\n              return tasks;\n            }(newTaskList);\n            yield Promise.all(newTasks.map(async task => {\n              // clear the relationships manually\n              task.parent = null;\n              task.children = [];\n              // reload the relationships\n              await this.store.findRecord('task', task.id, {\n                reload: true\n              });\n            }));\n          } catch (error) {\n            this.reloadTasks();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.Something went wrong updating tasks'),\n              error\n            });\n          }\n        }\n      }), {\n        keepLatest: true\n      }, \"onTaskListUpdate\", null));\n      _defineProperty(this, \"onLoadTaskTemplate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskTemplate, taskTemplateItems) {\n          this.addingTaskFromTemplate = false;\n          try {\n            yield this.buildaPrice.addTasksFromTemplate(this.model.project.last.value.id, {\n              name: taskTemplate.name,\n              items: taskTemplateItems.filter(t => !t.isDeleted)\n            });\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.Loaded template'));\n            this.taskList = yield this.model.taskList.perform(this.model.project.last.value.id);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.somethingWentWrongCreatingTasksFromATemplate'),\n              error\n            });\n          }\n        }\n      }), null, \"onLoadTaskTemplate\", null));\n      _defineProperty(this, \"onLoadTakeoff\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (items) {\n          try {\n            yield this.buildaPrice.addTasksFromFile(this.model.project.last.value.id, items);\n            const [parentTasks, _project] = yield Promise.all([this.store.query('task', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: this.sessionData.entity.id\n                }, {\n                  field: 'project',\n                  op: 'EQ',\n                  value: this.model.project.last.value.id\n                }, {\n                  field: 'status',\n                  op: 'IN',\n                  value: ['ACTIVE', 'DRAFT_CREATED']\n                }]\n              },\n              fields: {\n                tasks: '_meta.hasBudget,_meta.hasQuote,_meta.hasProducts,_meta.hasAttachments'\n              }\n            }).then(tasks => tasks.toArray().filter(t => !t.belongsTo('parent').id()).sort((a, b) => a.path - b.path)), this.store.findRecord('project', this.model.project.last.value.id, {\n              reload: true\n            })]);\n            yield this.model.project.last.value.loadTaskChanges();\n            const newTaskContainers = parentTasks.map(t => new _index.TaskContainer(t));\n            this.taskList = newTaskContainers;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.Successfully imported tasks'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.Something went wrong importing tasks'),\n              error\n            });\n          }\n        }\n      }), null, \"onLoadTakeoff\", null));\n    }\n    set taskList(value) {\n      this._taskList = value;\n    }\n    get taskList() {\n      if (this._taskList) return this._taskList;\n      return this.model.taskList.last.value;\n    }\n    get parentTasks() {\n      if (this.taskList.length <= 0) return [];\n      const parentTasks = this.taskList.map(container => container.task).sortBy('path');\n      return parentTasks;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.taskList.isRunning;\n    }\n    get canManageTasks() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageTasks');\n    }\n    addTaskToList(task) {\n      const newTaskContainer = new _index.TaskContainer(task);\n\n      // if we don't have a parent push to the top level of the list\n      if (!task.belongsTo('parent').value()) {\n        this.taskList.pushObject(newTaskContainer);\n        return;\n      }\n      const parentTaskId = task.belongsTo('parent').id();\n      let parentTc;\n      const findParentTc = taskList => {\n        taskList.forEach(container => {\n          if (container.task.id === parentTaskId) {\n            parentTc = container;\n          } else if (container.children) {\n            findParentTc(container.children);\n          }\n        });\n      };\n      findParentTc(this.taskList);\n      parentTc.children = [...(parentTc?.children || []), newTaskContainer];\n\n      // this commits the computed property to state - strange but ok\n      this._taskList = this.taskList;\n    }\n    onTaskNameInputKeypress(e) {\n      if (e.key === 'Enter') {\n        this.saveNewTask.perform(this.firstTaskName);\n      }\n    }\n    reloadTasks() {\n      this.taskList = null;\n\n      // unloadAll is very slow for some reason\n      const tasks = this.store.peekAll('task');\n      tasks.forEach(task => task.unloadRecord());\n      this.model.refresh();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"addingTasksFromTakeoff\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"addingTaskFromTemplate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"firstTaskName\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_taskList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onTaskNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onTaskNameInputKeypress\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get tabs() {\n      const tabs = [];\n      if (this.newFeatureFlags.includesSomeFeatureFlags(this.model.task.last.value, 'canUseTaskBudgets', 'canUseTaskQuotes')) tabs.push({\n        name: this.intl.t('common.Financials'),\n        route: 'entity.builda-price.projects.project.tasks.task.financials'\n      });\n      tabs.push({\n        name: this.intl.t('common.Settings'),\n        route: 'entity.builda-price.projects.project.tasks.task.settings'\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags(this.model.task.last.value, 'canUseUsers', 'canUseWorkers', 'canUseSubcontractors')) tabs.push({\n        name: this.intl.t('common.People'),\n        route: 'entity.builda-price.projects.project.tasks.task.people'\n      });\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseFileStorage')) tabs.push({\n        name: this.intl.t('common.Documents'),\n        route: 'entity.builda-price.projects.project.tasks.task.documents'\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags(this.model.task.last.value, 'canUseProducts')) tabs.push({\n        name: this.intl.t('common.Products'),\n        route: 'entity.builda-price.projects.project.tasks.task.products'\n      });\n      return tabs;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.builda-price.projects.project.tasks',\n        pageTitle: this.intl.t('common.Tasks')\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: 'entity.builda-price.projects.project.tasks.task',\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value().name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      })(this.model.task.last.value);\n      taskList.push({\n        route: 'entity.builda-price.projects.project.tasks.task',\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/documents\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n    }\n    get isLoading() {\n      return this.model.task.last.isRunning || this.model.attachments.isRunning;\n    }\n    get task() {\n      return this.model.task.last.value;\n    }\n    get project() {\n      return this.task?.belongsTo('project').value();\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.task, 'canManageFileStorage');\n    }\n    get attachments() {\n      // if you can edit the attachments use the relationship directly instead of the model result\n      if (this.isEditable) return this.model.task.last.value.myAttachments;\n      return this.model.attachments.last.value;\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-task', {\n            task: this.task,\n            attachment\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"portal/utils/profit-margin\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object, _profitMargin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/utils/profit-margin\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      // this validator is to validate only profit percentages on Quote data\n      _defineProperty(this, \"validatePercentages\", currentPercentages => (key, newVal, oldVal, _changes, _content) => {\n        if (currentPercentages[key].type === 'MARGIN') {\n          const percentage = newVal || oldVal;\n          if (percentage === null) return true;\n          return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n        return true;\n      });\n      // this validator can be used when at least one of any of the form inputs are required\n      _defineProperty(this, \"validateContent\", (_key, newVal, _oldVal, changes, content) => {\n        if (content.labour === 0 && !changes.labour && content.materials === 0 && !changes.materials && content.subcontractors === 0 && !changes.subcontractors && content.sums === 0 && !changes.sums) {\n          // man hours is only on the budget form\n          if (content.manHours != null) {\n            if (content.manHours === 0 && !changes.manHours) return this.intl.t('validation.Please enter a value');\n          } else {\n            return this.intl.t('validation.Please enter a value');\n          }\n        }\n      });\n      _initializerDefineProperty(this, \"updateBudgetData\", _descriptor4, this);\n      _defineProperty(this, \"budgetValidationMap\", {\n        materials: this.validateContent,\n        subcontractors: this.validateContent,\n        labour: this.validateContent,\n        sums: this.validateContent,\n        manHours: this.validateContent\n      });\n      _initializerDefineProperty(this, \"updateQuoteData\", _descriptor5, this);\n      _defineProperty(this, \"updateBudget\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (budgetChangeset) {\n          try {\n            yield budgetChangeset.validate();\n            if (budgetChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Please complete the budget information'));\n              return;\n            }\n            budgetChangeset.execute();\n            const diff = Object.entries(this.updateBudgetData).reduce((diff, [key, value]) => ({\n              ...diff,\n              [`${key}Diff`]: value - (this.task.budget?.[key] || 0)\n            }), {});\n            yield this.task.update({\n              budget: diff\n            });\n            this.updateBudgetData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Something went wrong updating the budget'),\n              error\n            });\n          }\n        }\n      }), null, \"updateBudget\", null));\n      _defineProperty(this, \"updateQuote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (quoteChangeset) {\n          try {\n            yield quoteChangeset.validate();\n            if (quoteChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Please complete the quote information'));\n              return;\n            }\n            quoteChangeset.execute();\n            const quoteData = {\n              manHours: this.task.draftBudget.manHours,\n              labour: this.updateQuoteData.labour,\n              materials: this.updateQuoteData.materials,\n              subcontractors: this.updateQuoteData.subcontractors,\n              sums: this.updateQuoteData.sums\n            };\n            const diff = Object.entries(quoteData).reduce((diff, [key, value]) => ({\n              ...diff,\n              [`${key}Diff`]: (value || 0) - (this.task.quote?.[key] || 0)\n            }), {});\n            yield this.task.update({\n              quote: diff\n            });\n            this.updateQuoteData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Something went wrong updating the quote'),\n              error\n            });\n          }\n        }\n      }), null, \"updateQuote\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.loadQuote.isRunning || this.model.loadBudget.isRunning || this.model.loadProfitMargins.isRunning;\n    }\n    get task() {\n      return this.model.task.last.value;\n    }\n    get hasDraftBudgetChanges() {\n      return Boolean(this.task.draftBudgetChange);\n    }\n    get hasDraftQuoteChanges() {\n      return Boolean(this.task.draftQuoteChange);\n    }\n    get hasBothDraftBudgetAndQuoteChanges() {\n      return this.hasDraftBudgetChanges && this.hasDraftQuoteChanges;\n    }\n    get hasBudget() {\n      return [this.task.totalDraftBudgetManHours, this.task.totalDraftBudgetLabour, this.task.totalDraftBudgetMaterials, this.task.totalDraftBudgetSubcontractors, this.task.totalDraftBudgetSums].some(x => x);\n    }\n    get project() {\n      return this.model.task.last.value?.belongsTo('project').value();\n    }\n    get canManageProjectBudgetAndQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageBudgetVersions', 'canManageQuoteVersions');\n    }\n    get canManageProjectBudget() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageBudgetVersions');\n    }\n    get canManageProjectQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageQuoteVersions');\n    }\n    get canManageBudget() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTaskBudgets');\n    }\n    get canManageQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTaskQuotes');\n    }\n    get canViewBudget() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseTaskBudgets');\n    }\n    get canViewQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseTaskQuotes');\n    }\n    get totalDraftBudgetCurrency() {\n      return this.task.draftBudgetLabour + this.task.draftBudgetMaterials + this.task.draftBudgetSubcontractors + this.task.draftBudgetSums || 0;\n    }\n    get totalDraftChildrenBudgetCurrency() {\n      return this.task.childrenDraftBudgetLabour + this.task.childrenDraftBudgetMaterials + this.task.childrenDraftBudgetSubcontractors + this.task.childrenDraftBudgetSums || 0;\n    }\n    get totalTotalDraftBudgetCurrency() {\n      return this.task.totalDraftBudgetLabour + this.task.totalDraftBudgetMaterials + this.task.totalDraftBudgetSubcontractors + this.task.totalDraftBudgetSums || 0;\n    }\n    get totalDraftQuoteCurrency() {\n      return this.task.draftQuoteLabour + this.task.draftQuoteMaterials + this.task.draftQuoteSubcontractors + this.task.draftQuoteSums || 0;\n    }\n    get totalDraftChildrenQuoteCurrency() {\n      return this.task.childrenDraftQuoteLabour + this.task.childrenDraftQuoteMaterials + this.task.childrenDraftQuoteSubcontractors + this.task.childrenDraftQuoteSums || 0;\n    }\n    get totalTotalDraftQuoteCurrency() {\n      return this.task.totalDraftQuoteLabour + this.task.totalDraftQuoteMaterials + this.task.totalDraftQuoteSubcontractors + this.task.totalDraftQuoteSums || 0;\n    }\n    get totalProductCurrency() {\n      let totalAmount = 0;\n      this.task.totalProducts.forEach(p => {\n        if (p.unitPrice && p.quantity) totalAmount += p.unitPrice * p.quantity;\n      });\n      return totalAmount;\n    }\n    setMaterialBudgetFromProducts(budgetModel) {\n      budgetModel.set('materials', this.totalProductCurrency);\n      budgetModel.set(`materialsTotal`, this.totalProductCurrency);\n      const total = budgetModel.labourTotal + budgetModel.materialsTotal + budgetModel.subcontractorsTotal + budgetModel.sumsTotal;\n      budgetModel.set('total', total);\n    }\n    openUpdateBudgetForm() {\n      const manHoursTotal = this.task.totalDraftBudgetManHours;\n      const labourTotal = this.task.totalDraftBudgetLabour;\n      const materialsTotal = this.task.totalDraftBudgetMaterials;\n      const subcontractorsTotal = this.task.totalDraftBudgetSubcontractors;\n      const sumsTotal = this.task.totalDraftBudgetSums;\n\n      // TODO refactor this to not pass state to the ember-changeset\n      this.updateBudgetData = {\n        manHours: this.task.draftBudget.manHours,\n        manHoursTotal,\n        labour: this.task.draftBudget.labour,\n        labourTotal,\n        materials: this.task.draftBudget.materials,\n        materialsTotal,\n        subcontractors: this.task.draftBudget.subcontractors,\n        subcontractorsTotal,\n        sums: this.task.draftBudget.sums,\n        sumsTotal,\n        total: labourTotal + materialsTotal + subcontractorsTotal + sumsTotal\n      };\n    }\n    budgetValueChanged(budgetModel, fieldName, value) {\n      const lineTotal = value + this.task.childrenDraftBudget[fieldName];\n      budgetModel.set(`${fieldName}Total`, lineTotal);\n      const total = budgetModel.labourTotal + budgetModel.materialsTotal + budgetModel.subcontractorsTotal + budgetModel.sumsTotal;\n      budgetModel.set('total', total);\n    }\n    get hasQuote() {\n      return [this.task.totalDraftQuoteManHours, this.task.totalDraftQuoteLabour, this.task.totalDraftQuoteMaterials, this.task.totalDraftQuoteSubcontractors, this.task.totalDraftQuoteSums].some(x => x);\n    }\n    openUpdateQuoteForm() {\n      const labourTotal = this.task.totalDraftQuoteLabour;\n      const materialsTotal = this.task.totalDraftQuoteMaterials;\n      const subcontractorsTotal = this.task.totalDraftQuoteSubcontractors;\n      const sumsTotal = this.task.totalDraftQuoteSums;\n\n      // TODO refactor this to not pass state to the ember-changeset\n      this.updateQuoteData = {\n        labour: this.calculateInitialQuoteValues('labour'),\n        labourTotal,\n        materials: this.calculateInitialQuoteValues('materials'),\n        materialsTotal,\n        subcontractors: this.calculateInitialQuoteValues('subcontractors'),\n        subcontractorsTotal,\n        sums: this.calculateInitialQuoteValues('sums'),\n        sumsTotal,\n        labourPercentage: this.calculateInitialProfitPercentages('labour'),\n        materialsPercentage: this.calculateInitialProfitPercentages('materials'),\n        subcontractorsPercentage: this.calculateInitialProfitPercentages('subcontractors'),\n        sumsPercentage: this.calculateInitialProfitPercentages('sums'),\n        total: labourTotal + materialsTotal + subcontractorsTotal + sumsTotal\n      };\n    }\n    get quoteValidationMap() {\n      return {\n        materials: this.validateContent,\n        subcontractors: this.validateContent,\n        labour: this.validateContent,\n        sums: this.validateContent,\n        labourPercentage: this.validatePercentages(this.task.effectiveProfitMargin),\n        materialsPercentage: this.validatePercentages(this.task.effectiveProfitMargin),\n        subcontractorsPercentage: this.validatePercentages(this.task.effectiveProfitMargin),\n        sumsPercentage: this.validatePercentages(this.task.effectiveProfitMargin)\n      };\n    }\n    // calculate quotes values based on profit type & percentages\n    async profitMarginChanged(quoteModel, fieldName, value) {\n      const draftBudget = this.task.draftBudget;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n      const calculatedValue = (0, _profitMargin.calculateValue)(expectedProfitType.type, draftBudget[fieldName], Number(value));\n      quoteModel.set(fieldName, calculatedValue);\n      const lineTotal = calculatedValue + this.task.childrenDraftQuote[fieldName];\n      quoteModel.set(`${fieldName}Total`, lineTotal);\n      const total = quoteModel.labourTotal + quoteModel.materialsTotal + quoteModel.subcontractorsTotal + quoteModel.sumsTotal;\n      quoteModel.set('total', total);\n    }\n\n    // calculate percentages values based on quote value & profit type\n    async quoteValueChanged(quoteModel, fieldName, value) {\n      // first: update line total and quote total\n      const lineTotal = value + this.task.childrenDraftQuote[fieldName];\n      quoteModel.set(`${fieldName}Total`, lineTotal);\n      const total = quoteModel.labourTotal + quoteModel.materialsTotal + quoteModel.subcontractorsTotal + quoteModel.sumsTotal;\n      quoteModel.set('total', total);\n\n      // second: update margin value\n      const draftBudget = this.task.draftBudget;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n\n      // if budget or input value is zero, set value to zero\n      if (!draftBudget?.[fieldName]) {\n        quoteModel.set(`${fieldName}Percentage`, 0);\n        return;\n      }\n      const calculatedValue = (0, _profitMargin.calculatePercentage)(expectedProfitType.type, draftBudget[fieldName], Number(value));\n      quoteModel.set(`${fieldName}Percentage`, calculatedValue);\n    }\n\n    // calculate quote values when opening modal\n    calculateInitialQuoteValues(fieldName) {\n      const draftQuote = this.task.draftQuote;\n      const draftBudget = this.task.draftBudget;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n\n      // if quote value is there return quote value\n      if (draftQuote?.[fieldName]) return draftQuote[fieldName];\n\n      // if budget is not there return zero\n      if (!draftBudget?.[fieldName]) return 0;\n      return (0, _profitMargin.calculateValue)(expectedProfitType.type, draftBudget[fieldName], expectedProfitType.value);\n    }\n\n    // calculate percentages when opening modal\n    calculateInitialProfitPercentages(fieldName) {\n      const draftQuote = this.task.draftQuote;\n      const draftBudget = this.task.draftBudget;\n      const profitMargin = this.task.belongsTo('profitMargin').value();\n      const defaultProfitMargin = this.task.defaultPercentageValues;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n\n      // if budget is not there return 0\n      if (!draftBudget?.[fieldName]) return 0;\n\n      // if quote value exists calculate percentages\n      if (draftQuote[fieldName]) {\n        return (0, _profitMargin.calculatePercentage)(expectedProfitType.type, draftBudget[fieldName], draftQuote[fieldName]);\n      }\n      return profitMargin?.[`${fieldName}Percentage`] || defaultProfitMargin?.[`${fieldName}Percentage`].value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setMaterialBudgetFromProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setMaterialBudgetFromProducts\"), _class2.prototype), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"updateBudgetData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openUpdateBudgetForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openUpdateBudgetForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"budgetValueChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"budgetValueChanged\"), _class2.prototype), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"updateQuoteData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openUpdateQuoteForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openUpdateQuoteForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"profitMarginChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"profitMarginChanged\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quoteValueChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"quoteValueChanged\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get canManageTask() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTasks');\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseClientPortal', 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client\", \"portal/routes/entity/builda-price/projects/project/people/clients/client\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _client, _client2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9; // import { tracked } from '@glimmer/tracking';\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client\",0,\"portal/routes/entity/builda-price/projects/project/people/clients/client\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.client.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _initializerDefineProperty(this, \"_taskPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor9, this);\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.clients.client.removeClientFromTaskConfirm'))) return;\n\n            // remove all permissions for this user and this task\n            const taskAttributes = yield this.store.simpleQuery('user-task-attribute', {\n              user: this.model.client.last.value.id,\n              task: this.model.task.last.value.id\n            }).then(utas => utas.toArray());\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.clients`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.clients.client.Removed client from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the client'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canViewBudgetFinancialReports) {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _client.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _client.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _client.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _client.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _client.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _client.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewClientReports) {\n              _client.canViewClientReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewClientReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.client.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.projectCanViewClientReports || this.permissionsChangeset.canViewClientReports || (this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports) && (this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports) && (this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports) && (this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports)]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        model: this.model.client.last.value.id,\n        pageTitle: this.model.client.last.value.fullName\n      }];\n      return paths;\n    }\n    get taskPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewProgress].filter(attribute => attribute).length;\n    }\n    get taskPermissionsVisible() {\n      if (this._taskPermissionsVisible != null) return this._taskPermissionsVisible;\n      return this.taskPermissionsCount > 0;\n    }\n    set taskPermissionsVisible(value) {\n      this._taskPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewClientReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get _parentTaskIds() {\n      if (!this.model.task.last.value) return [];\n      const ids = [];\n      const getTaskId = task => {\n        // not loaded yet\n        if (!task) return;\n        ids.push(task.id);\n        if (task.belongsTo('parent').value()) getTaskId(task.belongsTo('parent').value());\n      };\n      getTaskId(this.model.task.last.value.belongsTo('parent').value());\n      return ids;\n    }\n    get projectCanViewTasks() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgets() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuotes() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgress() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewFileStorage() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewBudgetReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewBudgetReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetLabourHourReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewBudgetLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewBudgetLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuoteReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewQuoteReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewQuoteReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewCostReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewCostReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostLabourHourReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewCostLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewCostLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewChargeupReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewChargeupReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewChargeupReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgressReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewProgressReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewProgressReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewInvoicingReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewInvoicingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewInvoicingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewClientReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewClientReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewClientReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewSchedulingReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: this.model.client.last.value.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: this.model.client.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_taskPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToTaskAttributes = ['canViewTasks', 'hasClientRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.clients.last.value.taskClients', 'searchString.length'), _dec2 = (0, _object.computed)('model.clients.last.value.unassignedClients'), _dec3 = (0, _object.computed)('model.clients.last.value.taskClients'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingClientToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"clientToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _defineProperty(this, \"addClientToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForClient(this.clientToAddToTask, addToTaskAttributes, []);\n            this.isAddingClientToTask = false;\n            this.clientToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.clients.Added client to task'));\n            yield Promise.all([this.model.clients.perform(this.model.task)]);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding client'),\n              error\n            });\n          }\n        }\n      }), null, \"addClientToTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.clients.isRunning || this.model.project.isRunning;\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value.taskClients?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.unassignedClients;\n    }\n    get taskClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.taskClients;\n    }\n    async handleAttributesForClient(client, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: client.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: client,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingClientToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"clientToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedClients\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskClients\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToTaskAttributes = ['canViewTasks', 'hasSubcontractorRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.subcontractors.last.value.taskSubcontractors', 'searchString.length'), _dec2 = (0, _object.computed)('model.subcontractors.last.value.unassignedSubcontractors'), _dec3 = (0, _object.computed)('model.subcontractors.last.value.taskSubcontractors'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingSubcontractorToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"subcontractorToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"addSubcontractorToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForSubcontractor(this.subcontractorToAddToTask, addToTaskAttributes, []);\n            this.isAddingSubcontractorToTask = false;\n            this.subcontractorToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.Added subcontractor to task'));\n            yield Promise.all([this.model.subcontractors.perform(this.model.task)]);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding user'),\n              error\n            });\n          }\n        }\n      }), null, \"addSubcontractorToTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.subcontractors.isRunning || this.model.project.isRunning;\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value.taskSubcontractors?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.unassignedSubcontractors;\n    }\n    get taskSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.taskSubcontractors;\n    }\n    async handleAttributesForSubcontractor(subcontractor, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: subcontractor.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: subcontractor,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingSubcontractorToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedSubcontractors\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskSubcontractors\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", \"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _subcontractor, _subcontractor2, _subcontractor3) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\",0,\"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.subcontractor.last.value.{id,fullName}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _initializerDefineProperty(this, \"_taskPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.removeSubcontractorFromTaskConfirm'))) return;\n\n            // remove all permissions for this user and this task\n            const taskAttributes = yield this.store.simpleQuery('user-task-attribute', {\n              user: this.model.subcontractor.last.value.id,\n              task: this.model.task.last.value.id\n            }).then(utas => utas.toArray());\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.Removed subcontractors from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.somethingWentWrongRemovingTheSubcontractors'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.subcontractor.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.projectCanManageTimesheets || this.permissionsChangeset.canManageTimesheets) && (this.entityCanViewBills || this.entityCanManageBills)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: 'Subcontractor'\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        model: this.model.subcontractor.last.value.id,\n        pageTitle: this.model.subcontractor.last.value.fullName\n      }];\n      return paths;\n    }\n    get taskPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewProgress].filter(attribute => attribute).length;\n    }\n    get taskPermissionsVisible() {\n      if (this._taskPermissionsVisible != null) return this._taskPermissionsVisible;\n      return this.taskPermissionsCount > 0;\n    }\n    set taskPermissionsVisible(value) {\n      this._taskPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get _parentTaskIds() {\n      if (!this.model.task.last.value) return [];\n      const ids = [];\n      const getTaskId = task => {\n        // not loaded yet\n        if (!task) return;\n        ids.push(task.id);\n        if (task.belongsTo('parent').value()) getTaskId(task.belongsTo('parent').value());\n      };\n      getTaskId(this.model.task.last.value.belongsTo('parent').value());\n      return ids;\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageBillsAttributes);\n    }\n    get projectCanManageTimesheets() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageTimesheetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageTimesheetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageTimesheetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBudgetReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewBudgetReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewBudgetReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBudgetLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewBudgetLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewBudgetLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuoteReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewQuoteReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewQuoteReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewQuoteReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewCostReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewCostReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewCostReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewCostLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewCostLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewCostLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewChargeupReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewChargeupReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewChargeupReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewChargeupReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgressReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewProgressReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewProgressReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProgressReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewInvoicingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewInvoicingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewInvoicingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewInvoicingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: this.model.subcontractor.last.value.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: this.model.subcontractor.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_taskPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToTaskAttributes = ['canViewTasks'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.users.last.value.taskUsers', 'searchString.length'), _dec2 = (0, _object.computed)('model.users.last.value.unassignedUsers'), _dec3 = (0, _object.computed)('model.users.last.value.taskUsers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingUserToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"userToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"addUserToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForUser(this.userToAddToTask, addToTaskAttributes, []);\n            this.isAddingUserToTask = false;\n            this.userToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.users.Added user to task'));\n            yield Promise.all([this.model.users.perform(this.model.task)]);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding user'),\n              error\n            });\n          }\n        }\n      }), null, \"addUserToTask\", null));\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value.taskUsers?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.unassignedUsers;\n    }\n    get taskUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.taskUsers;\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.users.isRunning || this.model.project.isRunning;\n    }\n    async handleAttributesForUser(user, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: user.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUserToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"userToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedUsers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskUsers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskUsers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user\", \"portal/routes/entity/builda-price/projects/project/people/users/user\", \"portal/routes/entity/settings/people/users/user\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _user, _user2, _user3) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user\",0,\"portal/routes/entity/builda-price/projects/project/people/users/user\",0,\"portal/routes/entity/settings/people/users/user\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_taskPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.users.user.removeUserFromTaskConfirm'))) return;\n\n            // remove all permissions for this user and this task\n            const taskAttributes = yield this.store.simpleQuery('user-task-attribute', {\n              user: this.model.user.last.value.id,\n              task: this.model.task.last.value.id\n            }).then(utas => utas.toArray());\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.users`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.users.user.Removed user from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _user.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _user.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _user.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _user.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _user.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _user.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _user.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _user.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _user.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _user.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _user.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _user.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _user.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _user.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        model: this.model.user.last.value.id,\n        pageTitle: this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.projectCanManageTimesheets || this.permissionsChangeset.canManageTimesheets) && (this.entityCanViewBills || this.entityCanManageBills)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get taskPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewProgress].filter(attribute => attribute).length;\n    }\n    get taskPermissionsVisible() {\n      if (this._taskPermissionsVisible != null) return this._taskPermissionsVisible;\n      return this.taskPermissionsCount > 0;\n    }\n    set taskPermissionsVisible(value) {\n      this._taskPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.user.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get _parentTaskIds() {\n      if (!this.model.task.last.value) return [];\n      const ids = [];\n      const getTaskId = task => {\n        // not loaded yet\n        if (!task) return;\n        ids.push(task.id);\n        if (task.belongsTo('parent').value()) getTaskId(task.belongsTo('parent').value());\n      };\n      getTaskId(this.model.task.last.value.belongsTo('parent').value());\n      return ids;\n    }\n    get userIsEntityAdmin() {\n      return this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageEntity');\n    }\n    get projectCanManageTimesheets() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageTimesheetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageTimesheetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageTimesheetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageBillsAttributes);\n    }\n    get projectCanViewTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBudgetReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewBudgetReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewBudgetReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBudgetLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewBudgetLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewBudgetLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuoteReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewQuoteReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewQuoteReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewQuoteReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewCostReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewCostReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewCostReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewCostLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewCostLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewCostLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewChargeupReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewChargeupReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewChargeupReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewChargeupReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewInvoicingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewInvoicingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewInvoicingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewInvoicingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgressReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewProgressReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewProgressReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProgressReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: this.model.user.last.value.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: this.model.user.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_taskPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _workers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.workers.last.value.taskWorkers', 'searchString.length'), _dec2 = (0, _object.computed)('model.workers.last.value.taskWorkers'), _dec3 = (0, _object.computed)('model.workers.last.value.unassignedWorkers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingWorkerToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_workerToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"addWorkerToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleWorkerTaskAttributes(this.workerToAddToTask, [..._workers.workerTaskAttributes], []);\n            yield this.handleWorkerProjectAttributes(this.workerToAddToTask, [..._workers.workerProjectAttributes], []);\n            yield Promise.all([this.model.workers.perform(this.model.task)]);\n            this.isAddingWorkerToTask = false;\n            this.workerToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.workers.Added worker to task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding worker'),\n              error\n            });\n          }\n        }\n      }), null, \"addWorkerToTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value.taskWorkers?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get projectWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.taskWorkers;\n    }\n    get unassignedWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.unassignedWorkers;\n    }\n    get workerToAddToTask() {\n      if (this._workerToAddToTask) return this._workerToAddToTask;\n      return this.taskWorkers;\n    }\n    set workerToAddToTask(value) {\n      this._workerToAddToTask = value;\n    }\n    get workerToRemoveFromTask() {\n      return _lodash.default.difference(this.taskWorkers, this.workerToAddToTask);\n    }\n    async handleWorkerProjectAttributes(worker, projectAttributesToAdd, _projectAttributesToRemove) {\n      const project = this.model.task.last.value.belongsTo('project').value();\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: worker.id,\n        project: project.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkerTaskAttributes(worker, taskAttributesToAdd, _taskAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const taskAttributesToRemove = _taskAttributesToRemove.filter(ar => !taskAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-task-attribute', {\n        worker: worker.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(taskAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(taskAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingWorkerToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectWorkers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedWorkers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedWorkers\"), _class2.prototype), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_workerToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6; // import { tracked } from '@glimmer/tracking';\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.workers.worker.removeWorkerFromTaskConfirm'))) return;\n            const taskAttributes = yield this.store.simpleQuery('worker-task-attribute', {\n              worker: this.model.worker.last.value.id,\n              entity: this.sessionData.entity.id,\n              task: this.model.task.last.value.id\n            });\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.workers.worker.Removed worker from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.worker.isRunning;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        model: this.model.worker.last.value.id,\n        pageTitle: this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor7, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor9, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor0, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor1, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectProductIds\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedProductId\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isAddingProduct\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isEditingProduct\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor15, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor16, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageIndex', 'sortBy', 'sortDirection', 'searchTerm']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onAddProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (product) {\n          try {\n            yield this.store.createRecord('task-product', {\n              ...product,\n              task: this.model.task.last.value,\n              entity: this.sessionData.entity\n            }).save();\n            this.isAddingProduct = false;\n            yield this.updateProductList.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n          }\n        }\n      }), null, \"onAddProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          try {\n            yield productChangeSet.save();\n            this.isEditingProduct = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileSavingProduct'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"updateProductList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.products.perform(this.model.task, Number(this.model.pageSize), Number(this.model.pageIndex), this.model.sortBy, this.model.sortDirection, this.model.searchTerm);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileReloadProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProductList\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.store.adapterFor('task-product').deleteBulk('task-product', [...this.selectProductIds]);\n            this.isDeletingProducts = false;\n            this.selectProductIds = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingProducts'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"deleteProducts\", null));\n    }\n    get products() {\n      return this.model.products.last.value || [];\n    }\n    updateSearchTerm(value) {\n      this.selectProductIds = new Set();\n      this.pageIndex = 1;\n      this.searchTerm = value;\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    setPrice(price) {\n      this.productChangeSet.set('unitPrice', price);\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectProductIds.add(col.extraData.productId);\n      } else {\n        this.selectProductIds.delete(col.extraData.productId);\n      }\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectProductIds = this.selectProductIds;\n    }\n    onClickProductName(_row, col) {\n      this.selectedProductId = col.extraData.productId;\n      this.isEditingProduct = true;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedProductIds = new Set();\n      if (e.target.checked) {\n        this.products.forEach(p => {\n          selectedProductIds.add(p.id);\n        });\n      }\n      this.selectProductIds = selectedProductIds;\n    }\n    onCreateProduct() {\n      this.selectedProductId = null;\n      this.isEditingProduct = true;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = col.value;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    onChangeProductQuantity(_row, col, e) {\n      try {\n        const products = this.products.toArray();\n        products[col.extraData.index].quantity = Number(e.target.value);\n        products[col.extraData.index].save();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.builda-price.projects.project.tasks.task.products.somethingWentWrongWhileSavingTheProductQuantity'),\n          error\n        });\n      }\n    }\n    get showFilters() {\n      return this.productTableData?.length || this.searchTerm?.length;\n    }\n    get productTableHeader() {\n      if (this.model.products.isRunning) return [];\n      const productHeader = [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        value: this.intl.t('common.Quantity'),\n        iconName: this.sortBy === 'Quantity' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        colClass: 'text-right',\n        value: 'Total'\n      }];\n      if (this.isEditable && this.products.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectProductIds.size === this.products.length),\n        isPartiallySelected: Boolean(this.selectProductIds.size && this.selectProductIds.size !== this.products.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    get totalRecords() {\n      if (this.model.products.isRunning) return 0;\n      return this.products.meta.totalRecords;\n    }\n    get productTableData() {\n      if (this.model.products.isRunning) return [];\n      return this.products.map((product, index) => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice * product.quantity, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          productData.unshift({\n            type: 'BUTTON',\n            textClass: 'btn btn-link',\n            value: product.description,\n            onClickButton: this.onClickProductName,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectProductIds.has(product.id),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.splice(productData.length - 1, 0, {\n            type: 'NUMBER_INPUT',\n            colClass: 'text-right align-middle',\n            textClass: 'text-right entity-products__quantity-width',\n            min: '0',\n            max: '1000000',\n            value: product.quantity,\n            onInputChange: this.onChangeProductQuantity,\n            extraData: {\n              index\n            }\n          });\n        } else {\n          productData.unshift({\n            colClass: 'align-middle',\n            value: product.description\n          });\n          productData.splice(productData.length - 1, 0, {\n            colClass: 'text-right align-middle',\n            value: product.quantity\n          });\n        }\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageProducts');\n    }\n    get isLoading() {\n      return this.model.task.last.isRunning;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"selectProductIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProductId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickProductName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickProductName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCreateProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCreateProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeProductQuantity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeProductQuantity\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isDeletingTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDependencyTransferModalOpen\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dependencyTransferDestinationTask\", _descriptor0, this);\n      _defineProperty(this, \"timesheetStatus\", [{\n        value: 'ACTIVE',\n        label: this.intl.t('common.Active')\n      }, {\n        value: 'INACTIVE',\n        label: this.intl.t('common.Inactive')\n      }]);\n      _defineProperty(this, \"taskTypes\", [{\n        value: 'TASK',\n        label: this.intl.t('common.General')\n      }, {\n        value: 'BUILDERS_WORK',\n        label: this.intl.t('common.builderWork')\n      }, {\n        value: 'SUMS',\n        label: this.intl.t('common.Sums')\n      }, {\n        value: 'SUBCONTRACTOR',\n        label: this.intl.t('common.Subcontractors')\n      }, {\n        value: 'PLANT',\n        label: this.intl.t('common.Plant')\n      }, {\n        value: 'INTERNAL',\n        label: this.intl.t('common.Internal')\n      }, {\n        value: 'MILESTONE',\n        label: this.intl.t('common.Milestone')\n      }]);\n      _defineProperty(this, \"contractType\", [{\n        value: 'COST_PLUS',\n        label: this.intl.t('shared.task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('shared.task.Fixed price')\n      }]);\n      _defineProperty(this, \"deleteTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (dependencyTransferDestinationTask) {\n          const taskToDelete = this.model.task.last.value;\n          try {\n            yield taskToDelete.delete(dependencyTransferDestinationTask?.id);\n            this.isDeletingTask = false;\n            this.isDependencyTransferModalOpen = false;\n            this.dependencyTransferDestinationTask = undefined;\n            yield this.router.transitionTo('entity.builda-price.projects.project.tasks');\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Successfully deleted task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Something went wrong deleting the task'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteTask\", null));\n      _defineProperty(this, \"saveProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskChangeset, profitMarginChangeset) {\n          if (this.canManageTask) {\n            taskChangeset.validate();\n            if (taskChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Please complete the task information'));\n              return;\n            }\n          }\n          if (this.canManageProfitMargin) {\n            profitMarginChangeset.validate('profitType', 'labourPercentage', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n            if (profitMarginChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.pleaseCompleteTheProfitMarginInformation'));\n              return;\n            }\n          }\n          try {\n            if (this.canManageProfitMargin) {\n              profitMarginChangeset.execute();\n              yield profitMarginChangeset.save();\n            }\n            const promises = [];\n            if (this.canManageTask) {\n              taskChangeset.execute();\n              promises.push(taskChangeset.save());\n            }\n            yield Promise.all(promises);\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingTheProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"saveProfitMargin\", null));\n      _defineProperty(this, \"saveTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskChangeset) {\n          if (this.canManageTask) {\n            taskChangeset.validate();\n            if (taskChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Please complete the task information'));\n              return;\n            }\n          }\n          try {\n            const promises = [];\n            if (this.canManageTask) {\n              taskChangeset.execute();\n              promises.push(taskChangeset.save());\n            }\n            yield Promise.all(promises);\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Something went wrong saving the task'),\n              error\n            });\n          }\n        }\n      }), null, \"saveTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.loadTaskProfitMargin.isRunning || this.model.glAccounts.isRunning;\n    }\n    get hasInactiveParents() {\n      return this.model.task.last.value.hasInactiveParents;\n    }\n    get profitMargin() {\n      return this.model.task.last.value.belongsTo('profitMargin').value();\n    }\n    set contractTypeIsOverridden(value) {}\n    get contractTypeIsOverridden() {\n      return this.model.taskChangeset.last.value.contractType != null;\n    }\n    set purchasesGlAccountIsOverridden(value) {}\n    get purchasesGlAccountIsOverridden() {\n      const currentValue = this.model.taskChangeset.last.value.purchasesGlAccount;\n      return currentValue !== null;\n    }\n    set salesGlAccountIsOverridden(value) {}\n    get salesGlAccountIsOverridden() {\n      const currentValue = this.model.taskChangeset.last.value.salesGlAccount;\n      return currentValue !== null;\n    }\n    get canManageTask() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTasks');\n    }\n    get canManageProfitMargin() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageProfitMargin');\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageWorkers');\n    }\n    get taskHasDependencies() {\n      return this.model.task.last.value.taskHasDependencies;\n    }\n    get deleteConfirmText() {\n      if (this.model.task.last.value.children.length > 1) return this.intl.t('entity.builda-price.projects.project.tasks.task.settings.deleteXTasks', {\n        // total: itself add its children\n        number: this.model.task.last.value.children.length + 1\n      });\n      if (this.model.task.last.value.children.length === 1 || this.taskHasDependencies) return this.intl.t('entity.builda-price.projects.project.tasks.task.settings.notification.deleteTask');\n      return null;\n    }\n    get deleteMessages() {\n      const messages = [this.intl.t('entity.builda-price.projects.project.tasks.task.settings.doYouWantToDeleteThisTask')];\n      if (this.model.task.last.value.children.length >= 1) {\n        messages.push(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.willDeleteSubtasks', {\n          subtaskNumber: this.model.task.last.value.children.length\n        }));\n      }\n      if (this.taskHasDependencies) {\n        messages.push(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.hasCostAssignedInTask'));\n      }\n      return messages;\n    }\n    get availableDependencyTransferDestinationTasks() {\n      const taskProject = this.model.task.last.value.belongsTo('project').value();\n      return taskProject?.activeTasks || [];\n    }\n    openDeleteModal() {\n      if (!this.taskHasDependencies) {\n        this.isDeletingTask = true;\n        return;\n      }\n      this.isDependencyTransferModalOpen = true;\n    }\n    selectDependencyTransferDestination(destinationTask) {\n      this.dependencyTransferDestinationTask = destinationTask;\n    }\n    closeDependencyTransferModal() {\n      this.dependencyTransferDestinationTask = undefined;\n      this.isDependencyTransferModalOpen = false;\n    }\n    async handleWorkerProjectAttributes(worker, projectAttributesToAdd, _projectAttributesToRemove) {\n      const project = this.model.task.last.value.belongsTo('project').value();\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: worker.id,\n        project: project.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkerTaskAttributes(worker, taskAttributesToAdd, _taskAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const taskAttributesToRemove = _taskAttributesToRemove.filter(ar => !taskAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-task-attribute', {\n        worker: worker.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n\n      // add and remove entity attribute from the worker\n      await this.store.findAll('worker-attribute');\n      await Promise.all([Promise.all(taskAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(taskAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n    get humanReadableContractType() {\n      const type = this.model.taskChangeset.last.value.contractType || this.model.task.last.value.effectiveContractType;\n      switch (type) {\n        case 'COST_PLUS':\n          return this.intl.t('shared.task.Cost plus');\n        case 'FIXED_PRICE':\n          return this.intl.t('shared.task.Fixed price');\n        default:\n          return type;\n      }\n    }\n    toggleContractTypeOverride(taskModel) {\n      const currentValue = taskModel.contractType;\n      const newValue = currentValue != null ? null : this.model.task.last.value.effectiveContractType;\n      taskModel.set('contractType', newValue);\n    }\n    togglePurchasesGlAccountOverride(taskModel) {\n      const currentValue = taskModel.purchasesGlAccount;\n      const effectivePurchasesGlAccount = this.model.task.lastSuccessful.value.defaultPurchasesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectivePurchasesGlAccount;\n      taskModel.set('purchasesGlAccount', newValue);\n    }\n    toggleSalesGlAccountOverride(taskModel) {\n      const currentValue = taskModel.salesGlAccount;\n      const effectiveSalesGlAccount = this.model.task.lastSuccessful.value.defaultSalesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectiveSalesGlAccount;\n      taskModel.set('salesGlAccount', newValue);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDependencyTransferModalOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dependencyTransferDestinationTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openDeleteModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openDeleteModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"selectDependencyTransferDestination\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectDependencyTransferDestination\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDependencyTransferModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDependencyTransferModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleContractTypeOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleContractTypeOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/forecast-breakdown\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'forecast-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate', 'excludedProjectIds', 'status']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedProjectIds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_controllerDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_excludedProjects\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_controllerStatus\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.forecastTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.forecastTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.forecastTable.last.value.elements[0].values, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get selectedDate() {\n      return this._selectedDate;\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n    }\n    get excludedProjectIds() {\n      return this._excludedProjectIds;\n    }\n    set excludedProjectIds(value) {\n      this._excludedProjectIds = value;\n    }\n    get status() {\n      return this._status;\n    }\n    set status(value) {\n      this._status = value;\n    }\n    get controllerDate() {\n      if (this._controllerDate) return this._controllerDate;\n      return this.selectedDate || (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set controllerDate(value) {\n      this._controllerDate = value;\n    }\n    get excludedProjects() {\n      if (this._excludedProjects) return this._excludedProjects;\n      return this.excludedProjectIds.length ? this.model.projects.last.value.filter(p => this.excludedProjectIds.includes(p.id)) : [];\n    }\n    set excludedProjects(value) {\n      this._excludedProjects = value;\n    }\n    get controllerStatus() {\n      if (this._controllerStatus) return this._controllerStatus;\n      return this.status || 'OPEN';\n    }\n    set controllerStatus(value) {\n      this._controllerStatus = value;\n    }\n    get hasFilters() {\n      if (!this.selectedDate && !this.excludedProjectIds.length && !this.status) return false;\n      return this.status !== 'OPEN' || this.excludedProjectIds.length || this.selectedDate !== (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    removeFilter() {\n      this.controllerDate = (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n      this.controllerStatus = 'OPEN';\n      this.excludedProjects = [];\n      this.selectedDate = this.controllerDate;\n      this.status = this.controllerStatus;\n      this.excludedProjectIds = [];\n    }\n    applyFilter() {\n      this.selectedDate = this.controllerDate;\n      this.excludedProjectIds = this.excludedProjects.map(p => p.id);\n      this.status = this.controllerStatus;\n    }\n    filterStatus(value) {\n      this.controllerStatus = value;\n      if (value !== 'ALL') {\n        this.excludedProjects = this.excludedProjects.filter(project => project.status === value);\n      }\n    }\n    get filteredProjects() {\n      if (this.controllerStatus === 'ALL') return this.model.projects.last.value || [];\n      return (this.model.projects.last.value || []).filter(p => p.status === this.controllerStatus);\n    }\n    get isLoading() {\n      return this.model.forecastTable.isRunning || this.model.projects.isRunning;\n    }\n    onDateChange(e) {\n      this.controllerDate = e.target.value;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} forecast report on ${(0, _moment.default)(this.controllerDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_forecast-report`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerStatus\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"applyFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"applyFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filterStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"filterStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDateChange\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/invoicing\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'invoice-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.invoiceTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead?.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.sessionData.entity : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.invoiceTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_invoicing-report`;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} invoicing report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.invoiceTable.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/labour-hours\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'labour-hours-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['status', 'selectedDate']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const thead = this.model.entityLevelReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.entityLevelReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.entityLevelReport.last.value.elements[2].values, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} labour hours report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_labour-hours-report`;\n    }\n    get isLoading() {\n      return this.model.entityLevelReport.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'filterByDate', 'projectIds', 'workerIds', 'invoiceId']);\n      _initializerDefineProperty(this, \"invoiceId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"filterByDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"workerIds\", _descriptor8, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"projectIds\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = ['date', 'worker name', 'project name', 'task name', 'hours', 'note', 'note type'];\n          const tbody = [];\n          if (this.model.noteReport.last?.value?.elements?.[0]?.values) {\n            this.model.noteReport.last.value.elements[0].values.forEach(_row => {\n              let row = [];\n              _row.forEach((cell, index) => {\n                const attachmentsIndex = 4;\n                const linkIndex = 6;\n                const taskProjectNameIndex = 2;\n                if ([attachmentsIndex, linkIndex].includes(index)) return;\n                if (index === taskProjectNameIndex) {\n                  const [projectName, taskName, duration] = cell;\n                  row.push({\n                    format: 'TEXT',\n                    value: projectName.value\n                  });\n                  row.push({\n                    format: 'TEXT',\n                    value: taskName.value\n                  });\n                  row.push({\n                    format: 'TEXT',\n                    value: duration.value\n                  });\n                  return;\n                }\n                row.push(cell);\n              });\n              tbody.push(row);\n            });\n          }\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, undefined, this.title, tbody, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedWorkers() {\n      if (!this.workerIds) return null;\n      return (this.model.getWorkers.last?.value?.toArray() || []).filter(w => this.workerIds.includes(w.id));\n    }\n    set selectedWorkers(value) {\n      if (!value?.length) {\n        this.workerIds = null;\n        return;\n      }\n      this.workerIds = value.map(w => w.id);\n    }\n    get selectedProjects() {\n      if (!this.projectIds) return null;\n      return (this.model.getProjects.last?.value?.toArray() || []).filter(p => this.projectIds.includes(p.id));\n    }\n    set selectedProjects(value) {\n      if (!value?.length) {\n        this.projectIds = null;\n        return;\n      }\n      this.projectIds = value.map(p => p.id);\n    }\n    setFilterByDate(e) {\n      this.filterByDate = e.target.checked;\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    get title() {\n      if (this.filterByDate) {\n        return `Notes report between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return 'Notes report';\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0');\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_notes-report`;\n    }\n    get isLoading() {\n      return this.model.noteReport.isRunning || this.model.getProjects.isRunning || this.model.getWorkers.isRunning;\n    }\n    removeAllProjectFilters() {\n      this.projectIds = null;\n      this.invoiceId = null;\n    }\n    removeAllWorkerFilters() {\n      this.workerIds = null;\n      this.invoiceId = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"workerIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"projectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterByDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterByDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllProjectFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllProjectFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllWorkerFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllWorkerFilters\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/position\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['status', 'selectedDate']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor8, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.entityLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Labour hours') || option.name === this.intl.t('shared.reports.Financial breakdown')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.sessionData.entity : null);\n            } else {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.sessionData.entity : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.entityLevelReport.last.value.elements.filter(e => e.name === this.intl.t('shared.reports.Financial breakdown') || e.name === this.intl.t('common.Projects') || e.name === this.intl.t('common.Labour hours')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.sessionData.entity.name} position report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_position-report`;\n    }\n    get isLoading() {\n      return this.model.entityLevelReport.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/profit-margins\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'profit-margins-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate', 'excludedProjectIds', 'status']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedProjectIds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_controllerDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_excludedProjects\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_controllerStatus\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.profitMarginsTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.profitMarginsTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.profitMarginsTable.last.value.elements[0].values, false, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedDate() {\n      return this._selectedDate;\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n    }\n    get excludedProjectIds() {\n      return this._excludedProjectIds;\n    }\n    set excludedProjectIds(value) {\n      this._excludedProjectIds = value;\n    }\n    get status() {\n      return this._status;\n    }\n    set status(value) {\n      this._status = value;\n    }\n    get controllerDate() {\n      if (this._controllerDate) return this._controllerDate;\n      return this.selectedDate || (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set controllerDate(value) {\n      this._controllerDate = value;\n    }\n    get excludedProjects() {\n      if (this._excludedProjects) return this._excludedProjects;\n      return this.excludedProjectIds.length ? this.model.projects.last.value.filter(p => this.excludedProjectIds.includes(p.id)) : [];\n    }\n    set excludedProjects(value) {\n      this._excludedProjects = value;\n    }\n    get controllerStatus() {\n      if (this._controllerStatus) return this._controllerStatus;\n      return this.status || 'OPEN';\n    }\n    set controllerStatus(value) {\n      this._controllerStatus = value;\n    }\n    get hasFilters() {\n      if (!this.selectedDate && !this.excludedProjectIds.length && !this.status) return false;\n      return this.status !== 'OPEN' || this.excludedProjectIds.length || this.selectedDate !== (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    removeFilter() {\n      this.controllerDate = (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n      this.controllerStatus = 'OPEN';\n      this.excludedProjects = [];\n      this.selectedDate = this.controllerDate;\n      this.status = this.controllerStatus;\n      this.excludedProjectIds = [];\n    }\n    applyFilter() {\n      this.selectedDate = this.controllerDate;\n      this.excludedProjectIds = this.excludedProjects.map(p => p.id);\n      this.status = this.controllerStatus;\n    }\n    filterStatus(value) {\n      this.controllerStatus = value;\n      if (value !== 'ALL') {\n        this.excludedProjects = this.excludedProjects.filter(project => project.status === value);\n      }\n    }\n    get filteredProjects() {\n      if (this.controllerStatus === 'ALL') return this.model.projects.last.value || [];\n      return (this.model.projects.last.value || []).filter(p => p.status === this.controllerStatus);\n    }\n    get isLoading() {\n      return this.model.profitMarginsTable.isRunning || this.model.projects.isRunning;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} profit margins report on ${(0, _moment.default)(this._selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_profit-margins-report`;\n    }\n    onDateChange(e) {\n      this.controllerDate = e.target.value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerStatus\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"applyFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"applyFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filterStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"filterStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDateChange\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/wip\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'wip-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate', 'excludedProjectIds', 'status']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedProjectIds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_controllerDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_excludedProjects\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_controllerStatus\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.wipReportTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.wipReportTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.wipReportTable.last.value.elements[0].values, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get selectedDate() {\n      return this._selectedDate;\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n    }\n    get excludedProjectIds() {\n      return this._excludedProjectIds;\n    }\n    set excludedProjectIds(value) {\n      this._excludedProjectIds = value;\n    }\n    get status() {\n      return this._status;\n    }\n    set status(value) {\n      this._status = value;\n    }\n    get controllerDate() {\n      if (this._controllerDate) return this._controllerDate;\n      return this.selectedDate || (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set controllerDate(value) {\n      this._controllerDate = value;\n    }\n    get excludedProjects() {\n      if (this._excludedProjects) return this._excludedProjects;\n      return this.excludedProjectIds.length ? this.model.projects.last.value.filter(p => this.excludedProjectIds.includes(p.id)) : [];\n    }\n    set excludedProjects(value) {\n      this._excludedProjects = value;\n    }\n    get controllerStatus() {\n      if (this._controllerStatus) return this._controllerStatus;\n      return this.status || 'OPEN';\n    }\n    set controllerStatus(value) {\n      this._controllerStatus = value;\n    }\n    get hasFilters() {\n      if (!this.selectedDate && !this.excludedProjectIds.length && !this.status) return false;\n      return this.status !== 'OPEN' || this.excludedProjectIds.length || this.selectedDate !== (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    removeFilter() {\n      this.controllerDate = (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n      this.controllerStatus = 'OPEN';\n      this.excludedProjects = [];\n      this.selectedDate = this.controllerDate;\n      this.status = this.controllerStatus;\n      this.excludedProjectIds = [];\n    }\n    applyFilter() {\n      this.selectedDate = this.controllerDate;\n      this.excludedProjectIds = this.excludedProjects.map(p => p.id);\n      this.status = this.controllerStatus;\n    }\n    filterStatus(value) {\n      this.controllerStatus = value;\n      if (value !== 'ALL') {\n        this.excludedProjects = this.excludedProjects.filter(project => project.status === value);\n      }\n    }\n    get filteredProjects() {\n      const hasValueProjects = this.model.projects.last.value.filter(project => project.belongsTo('currentBudgetVersion').id() || project.belongsTo('currentQuoteVersion').id());\n      if (this.controllerStatus === 'ALL') return hasValueProjects || [];\n      return (hasValueProjects || []).filter(p => p.status === this.controllerStatus);\n    }\n    get isLoading() {\n      return this.model.wipReportTable.isRunning || this.model.projects.isRunning;\n    }\n    onDateChange(e) {\n      this.controllerDate = e.target.value;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} work in progress for ${(0, _moment.default)(this.balanceDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_wip-report`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerStatus\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"applyFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"applyFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filterStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"filterStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDateChange\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _controller, _tracking, _object, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.projectsData.last.value.elements', 'searchString'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", ['status']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _initializerDefineProperty(this, \"searchString\", _descriptor6, this);\n    }\n    get projectsData() {\n      const values = this.model.projectsData.last.value.elements[0].values.filter(row => {\n        const matchString = (row[0].value || '').toLowerCase();\n        return matchString.includes(this.searchString.toLowerCase());\n      });\n      return {\n        ...this.model.projectsData.last.value.elements[0],\n        values\n      };\n    }\n    get attentionSafetyLogoSrc() {\n      return _platform.BRANDING.ATTENTION_SAFETY.logo;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"projectsData\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectsData\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/access\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"filterByDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"workerIds\", _descriptor7, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'filterByDate', 'workerIds']);\n      _initializerDefineProperty(this, \"endDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor9, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = ['Name', 'Entry time', 'Exit time', 'Time on site'];\n          const tbody = this.model.report.last.value.elements[1].values;\n          this.reportsDownload.downloadAsCsv(this.filename, thead, undefined, this.title, tbody, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedWorkers() {\n      if (!this.workerIds) return [];\n      const workerIds = this.workerIds.split(',');\n      return (this.model.workers.last?.value?.toArray() || []).filter(worker => workerIds.includes(worker.id));\n    }\n    set selectedWorkers(workers) {\n      this.workerIds = workers.length ? workers.map(worker => worker.id).join(',') : null;\n    }\n    removeAllWorkerFilters() {\n      this.workerIds = null;\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    get title() {\n      let title = `${this.model.project.last.value.name} access report`;\n      if (this.filterByDate) {\n        title += ` between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return title;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_access-report`;\n    }\n    get isLoading() {\n      return this.model.report.isRunning || this.model.project.isRunning || this.model.workers.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"workerIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeAllWorkerFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllWorkerFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/budget/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'budget-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.budgetTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.budgetTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_budget-hours-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} budget report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.budgetTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/budget/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'budget-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.budgetTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.budgetTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name} budget report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_budget-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.budgetTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/chargeup/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'chargeup-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.chargeupReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.chargeupReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.chargeupReport.last.value.elements[2].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_chargeup-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} chargeup report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.chargeupReport.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/chargeup/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'chargeup-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.chargeupReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.chargeupReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.chargeupReport.last.value.elements[2].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      return this.model.quoteTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} chargeup report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_chargeup-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.chargeupReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'client-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.projectLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n            if (option.name === this.intl.t('common.Summary')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.projectLevelReport.last.value.elements.filter(e => e.name === this.intl.t('common.Summary') || e.name === this.intl.t('common.Tasks')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.project.last.value.name} cost to complete report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_cost-to-complete-report`;\n    }\n    get isLoading() {\n      return this.model.projectLevelReport.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'client-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.taskLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n            if (option.name === this.intl.t('common.Summary')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.taskLevelReport.last.value.elements.filter(e => e.name === this.intl.t('common.Summary') || e.name === this.intl.t('common.Tasks')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} cost to complete report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_cost-to-complete-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.taskLevelReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/cost\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"showTaskPopUp\", _descriptor7, this);\n      _initializerDefineProperty(this, \"parentId\", _descriptor8, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'costType', 'parentId', 'allocationType']);\n      _initializerDefineProperty(this, \"costType\", _descriptor9, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_filterByDate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor10, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_selectedTasks\", _descriptor12, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor13, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          csvOptions.forEach(o => {\n            if (o.value) {\n              const thead = this.model.costTable.last.value.elements[o.index - 1].axes.thead.map(i => i.value);\n              const tfoot = this.model.costTable.last.value.elements[o.index - 1].axes.tfoot;\n              const tableName = this.model.costTable.last.value.elements[o.index - 1].name;\n              this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, this.model.costTable.last.value.elements[o.index - 1].values, saveResource ? this.model.project.last.value : null);\n            }\n          });\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get showAllocationTypeFilter() {\n      return this.allocationType && this.costType !== 'TIMESHEETS';\n    }\n    get allocationTypeLabel() {\n      switch (this.allocationType) {\n        case 'LABOUR':\n          return this.intl.t('common.Labour');\n        case 'MATERIALS':\n          return this.intl.t('common.Materials');\n        case 'SUBCONTRACTORS':\n          return this.intl.t('common.Subcontractors');\n      }\n      return '';\n    }\n    setCostType(costType) {\n      this.costType = costType;\n      if (costType === 'TIMESHEETS') this.allocationType = null;\n    }\n    get filterByDate() {\n      return this._filterByDate;\n    }\n    set filterByDate(value) {\n      this._filterByDate = value;\n      return value;\n    }\n    setFilterByDate(e) {\n      this.filterByDate = e.target.checked;\n      const selectedTasks = this.selectedTasks.map(t => t.id).length ? this.selectedTasks.map(t => t.id) : null;\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, this.parentId, selectedTasks, this.allocationType);\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    set selectedTasks(value) {\n      this._selectedTasks = value;\n    }\n    get selectedTasks() {\n      const hasParentSelected = Boolean(this.parentId);\n      if (hasParentSelected) {\n        return this.model.selectedTaskIds.last.value.map(taskId => this.store.peekRecord('task', taskId));\n      }\n      return this._selectedTasks || [];\n    }\n    get title() {\n      if (this.filterByDate) {\n        return `${this.model.project.last.value.name} cost report between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return `${this.model.project.last.value.name} cost report`;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.costTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_cost-report-report`;\n    }\n    get isLoading() {\n      return this.model.costTable.isRunning || this.model.project.isRunning || this.model.tasks.isRunning || this.model.selectedTaskIds.isRunning;\n    }\n    setSelectedTasks(tasks) {\n      this.showTaskPopUp = false;\n      this.selectedTasks = tasks;\n      const taskIds = tasks.map(t => t.id);\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, null, taskIds, this.allocationType);\n      this.parentId = null;\n    }\n    removeSelectedTask(task) {\n      this.showTaskPopUp = false;\n      const selectedTasks = this.selectedTasks.filter(t => t.id !== task.id);\n      this.selectedTasks = selectedTasks;\n      const selectedTaskIds = selectedTasks.map(t => t.id).length ? selectedTasks.map(t => t.id) : null;\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, null, selectedTaskIds, this.allocationType);\n\n      // do this at the end so the getter for selectedTasks still returns the parent tasks while we need it\n      this.parentId = null;\n    }\n    removeAllTaskFilters() {\n      this.selectedTasks = null;\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, null, undefined, this.allocationType);\n      this.parentId = null;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"showTaskPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"parentId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"costType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'TIMESHEETS';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setCostType\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setCostType\"), _class2.prototype), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterByDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterByDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSelectedTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSelectedTasks\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeSelectedTask\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeSelectedTask\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllTaskFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllTaskFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'forecast-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.forecastTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.forecastTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.forecastTable.last.value.elements[0].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get title() {\n      return `${this.model.project.last.value.name} forecast report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_forecast-report`;\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get isLoading() {\n      return this.model.forecastTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'forecast-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.forecastTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.forecastTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.forecastTable.last.value.elements[0].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name}forecast report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_forecast-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.forecastTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/invoicing/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'invoice-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.invoiceTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.invoiceTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_invoicing-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} invoicing report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.invoiceTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/invoicing/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'invoice-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.invoiceTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.invoiceTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} invoicing report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_invoicing-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.invoiceTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/labour-hours/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'labour-hours-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), {\n        restartable: true\n      }, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.labourHoursTable.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.labourHoursTable.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.labourHoursTable.last.value.elements[2].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_labour-hours-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} labour hours report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.labourHoursTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/labour-hours/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.taskLevelReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.taskLevelReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.taskLevelReport.last.value.elements[2].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name} labour hours report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_labour-hours-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.taskLevelReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'filterByDate', 'invoiceId', 'workerIds']);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _initializerDefineProperty(this, \"showTaskPopUp\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedTasks\", _descriptor7, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"filterByDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"invoiceId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"workerIds\", _descriptor10, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          if (!this.model.noteReport.last?.value) return;\n          const thead = ['date', 'worker name', 'task name', 'hours', 'note', 'note type'];\n          const tbody = [];\n          const elements = this.model.noteReport.last.value.elements;\n          if (elements && elements[0] && elements[0].values) {\n            elements[0].values.forEach(_row => {\n              let row = [];\n              _row.forEach((cell, index) => {\n                const attachmentsIndex = 4;\n                const linkIndex = 6;\n                const taskDurationIndex = 2;\n                if ([attachmentsIndex, linkIndex].includes(index)) return;\n                if (index === taskDurationIndex) {\n                  const [taskName, duration] = cell;\n                  row.push({\n                    format: 'TEXT',\n                    value: taskName.value\n                  });\n                  row.push({\n                    format: 'TEXT',\n                    value: duration.value\n                  });\n                  return;\n                }\n                row.push(cell);\n              });\n              tbody.push(row);\n            });\n          }\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, undefined, this.title, tbody, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateStartDateInput, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedWorkers() {\n      if (!this.workerIds) return null;\n      const ids = typeof this.workerIds === 'string' ? this.workerIds.split(',') : this.workerIds;\n      return (this.model.getWorkers.last.value?.toArray() || []).filter(w => ids.includes(w.id));\n    }\n    set selectedWorkers(value) {\n      if (!value?.length) {\n        this.workerIds = null;\n      } else {\n        this.workerIds = value.map(w => w.id);\n      }\n      this.refreshReport();\n    }\n    refreshReport() {\n      const currentSelectedTaskIds = this.selectedTasks.length ? this.selectedTasks.map(t => t.id) : null;\n      const workerIds = typeof this.workerIds === 'string' ? this.workerIds.split(',') : this.workerIds;\n      this.model.noteReport.perform(this.model.project, this.startDate, this.endDate, this.filterByDate, currentSelectedTaskIds, workerIds, this.invoiceId);\n    }\n    setFilterByDate(e) {\n      this.filterByDate = e.target.checked;\n      this.refreshReport();\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n      this.refreshReport();\n    }\n    setSelectedTasks(tasks) {\n      this.showTaskPopUp = false;\n      this.selectedTasks = tasks;\n      this.refreshReport();\n    }\n    removeSelectedTask(task) {\n      this.showTaskPopUp = false;\n      const selectedTasks = this.selectedTasks.filter(t => t.id !== task.id);\n      this.selectedTasks = selectedTasks;\n      this.refreshReport();\n    }\n    removeAllTaskFilters() {\n      this.selectedTasks = [];\n      if (this.invoiceId) {\n        this.invoiceId = null;\n      }\n      this.refreshReport();\n    }\n    removeAllWorkerFilters() {\n      this.workerIds = null;\n      if (this.invoiceId) this.invoiceId = null;\n      this.refreshReport();\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    get title() {\n      if (!this.model.project.last?.value) return '';\n      if (this.filterByDate) {\n        return `${this.model.project.last.value.name} notes report between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return `${this.model.project.last.value.name} notes`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0');\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_notes-report`;\n    }\n    get isLoading() {\n      return this.model.noteReport.isRunning || this.model.project.isRunning || this.model.tasks.isRunning;\n    }\n    updateStartDateInput(value) {\n      this.startDate = value;\n      this.refreshReport();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"showTaskPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"workerIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterByDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterByDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSelectedTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSelectedTasks\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeSelectedTask\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeSelectedTask\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllTaskFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllTaskFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllWorkerFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllWorkerFilters\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/position/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.projectLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n            if (option.name === this.intl.t('shared.reports.Financial breakdown') || option.name === this.intl.t('common.Labour hours')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.projectLevelReport.last.value.elements.filter(e => e.name === this.intl.t('shared.reports.Financial breakdown') || e.name === this.intl.t('common.Tasks') || e.name === this.intl.t('common.Labour hours')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.project.last.value.name} position  report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_position-report`;\n    }\n    get isLoading() {\n      return this.model.projectLevelReport.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/position/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.taskLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n            if (option.name === this.intl.t('shared.reports.Financial breakdown') || option.name === this.intl.t('common.Labour hours')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.taskLevelReport.last.value.elements.filter(e => e.name === this.intl.t('shared.reports.Financial breakdown') || e.name === this.intl.t('common.Tasks') || e.name === this.intl.t('common.Labour hours')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} position report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_position-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.taskLevelReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/profit-margins/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'profit-margins-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.profitMarginsTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.profitMarginsTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.profitMarginsTable.last.value.elements[0].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n    }\n    get title() {\n      return `${this.model.project.last.value.name} profit margins report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_profit-margins-report`;\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get isLoading() {\n      return this.model.profitMarginsTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/profit-margins/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.profitMarginsTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.profitMarginsTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.profitMarginsTable.last.value.elements[0].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name} profit margins report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_profit-margins-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.profitMarginsTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/quote/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'quote-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.quoteTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.quoteTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_quote-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} quote report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.quoteTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/quote/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.quoteTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.quoteTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} quote report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_quote-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.quoteTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/scheduling\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/scheduling/timeline\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@ember/controller\", \"@bryntum/gantt\", \"@ember/service\", \"portal/config/environment\", \"@ember/runloop\", \"@glimmer/tracking\", \"ember-local-storage\", \"@bryntum/gantt/locales/gantt.locale.ZhCn.js\"], function (_exports, _asyncArrowRuntime, _object, _controller, _gantt, _service, _environment, _runloop, _tracking, _emberLocalStorage, _ganttLocaleZhCn) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/controller\",0,\"@bryntum/gantt\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"ember-local-storage\",0,\"ember-concurrency\",0,\"@bryntum/gantt/locales/gantt.locale.ZhCn.js\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _object.computed)('selected_projects', 'model.projects.last.value', 'projectsById'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ganttChart\", _descriptor8, this);\n      _initializerDefineProperty(this, \"taskImportModalVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchFilterRegex\", _descriptor0, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor1, this);\n      _initializerDefineProperty(this, \"undoCount\", _descriptor10, this);\n      _initializerDefineProperty(this, \"redoCount\", _descriptor11, this);\n      _initializerDefineProperty(this, \"ganttIsLoading\", _descriptor12, this);\n      _defineProperty(this, \"queryParams\", ['selected_projects']);\n      _initializerDefineProperty(this, \"selected_projects\", _descriptor13, this);\n      _initializerDefineProperty(this, \"_ganttFillTicksEnabled\", _descriptor14, this);\n      _initializerDefineProperty(this, \"_ganttSubGridConfigsEnabled\", _descriptor15, this);\n      _initializerDefineProperty(this, \"_ganttTableCollapsed\", _descriptor16, this);\n      _initializerDefineProperty(this, \"_ganttDependenciesEnabled\", _descriptor17, this);\n      _initializerDefineProperty(this, \"_ganttLabelsEnabled\", _descriptor18, this);\n      _initializerDefineProperty(this, \"_ganttCriticalPathsEnabled\", _descriptor19, this);\n      _initializerDefineProperty(this, \"_ganttNonWorkingTimeEnabled\", _descriptor20, this);\n      _initializerDefineProperty(this, \"_ganttColumnLinesEnabled\", _descriptor21, this);\n      _initializerDefineProperty(this, \"_ganttRollupsEnabled\", _descriptor22, this);\n      _initializerDefineProperty(this, \"_ganttProgressLineEnabled\", _descriptor23, this);\n      _initializerDefineProperty(this, \"_ganttParentAreaEnabled\", _descriptor24, this);\n      _defineProperty(this, \"onSyncGantt\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.ganttChart.readOnly = true;\n            yield this.ganttChart.project.sync();\n            this.ganttChart.project.stm.resetQueue();\n            this.ganttChart.project.stm.disable();\n            this.ganttChart.project.stm.enable();\n          } catch (error) {\n            yield this.ganttChart.project.doAutoLoad();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.scheduling.timeline.somethingWentWrongSyncingTheTimeline'),\n              error\n            });\n          } finally {\n            this.ganttChart.readOnly = false;\n          }\n        }\n      }), null, \"onSyncGantt\", null));\n      _defineProperty(this, \"initializeGanttChart\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projectIds = this.selectedProjects?.map(p => p.id);\n          if (!projectIds?.length) {\n            this.ganttChart = null;\n            return;\n          }\n\n          // don't create the gantt chart again if we already have one\n          if (this.ganttChart) {\n            yield this.ganttChart.project.load({\n              request: {\n                params: {\n                  subjectEntityId: this.sessionData.entity.id,\n                  entityIds: [this.sessionData.entity.id],\n                  projectIds\n                }\n              }\n            });\n            return;\n          }\n          const _this = this;\n          const hasSchedulingTask = this.selectedProjects.every(p => p.isSchedulingEnabled());\n          if (!hasSchedulingTask) {\n            this.ganttChart = null;\n            return;\n          }\n          const canManageUsersAndWorkers = this.selectedProjects.every(p => this.newFeatureFlags.includesFeatureFlags(p, 'canManageWorkers', 'canManageUsers'));\n          const canViewUsersAndWorkers = canManageUsersAndWorkers || this.selectedProjects.every(p => this.newFeatureFlags.includesFeatureFlags(p, 'canUseWorkers', 'canUseUsers'));\n          const canUseProgress = this.selectedProjects.every(p => this.newFeatureFlags.includesFeatureFlags(p, 'canUseProgressPage'));\n          const columns = [{\n            type: 'name',\n            width: 250\n          }, {\n            type: 'startdate'\n          }, {\n            type: 'enddate',\n            hidden: true\n          }, {\n            type: 'duration'\n          }];\n          if (canViewUsersAndWorkers) {\n            columns.push({\n              type: 'resourceassignment',\n              width: 120,\n              showAvatars: true\n            });\n          } else if (canManageUsersAndWorkers) {\n            columns.push({\n              type: 'resourceassignment',\n              width: 120,\n              showAvatars: true,\n              readOnly: true,\n              editor: {\n                readOnly: true,\n                picker: false\n              }\n            });\n          }\n          if (canUseProgress) columns.push({\n            type: 'percentdone',\n            showCircle: true,\n            readOnly: true,\n            width: 70\n          });\n          const taskMenu = {\n            items: {\n              cut: false,\n              copy: false,\n              paste: false,\n              add: false,\n              indent: false,\n              outdent: false\n            }\n          };\n          if (canUseProgress) taskMenu.items.progress = {\n            separator: true,\n            text: this.intl.t('entity.builda-price.scheduling.timeline.Set progress'),\n            icon: 'fa fa-percent',\n            onItem({\n              taskRecord\n            }) {\n              window.open(_this.router.urlFor('entity.builda-price.projects.project.progress', taskRecord.data.project), '_blank');\n            }\n          };\n          if (this.model.user.last.value?.language?.toLowerCase().startsWith('zh')) {\n            _gantt.LocaleManager.applyLocale('ZhCN', _ganttLocaleZhCn.default);\n          } else {\n            _gantt.LocaleManager.applyLocale('En', {\n              DateHelper: {\n                locale: 53 // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry\n              },\n              ProjectLines: {\n                'Project Start': 'Start Date',\n                'Project End': 'End Date'\n              }\n            });\n          }\n          (0, _runloop.next)(() => {\n            this.ganttChart = new _gantt.Gantt({\n              smoothZoom: true,\n              visibleDate: {\n                date: new Date(),\n                block: 'center'\n              },\n              appendTo: 'gantt-chart-container',\n              scrollTaskIntoViewOnCellClick: {\n                block: 'start',\n                animate: true,\n                highlight: true\n              },\n              columns,\n              project: {\n                autoLoad: true,\n                autoSync: false,\n                trackProjectSettings: false,\n                listeners: {\n                  loadStart: () => this.ganttIsLoading = true,\n                  load: () => this.ganttIsLoading = false,\n                  loadFail: () => this.ganttIsLoading = false,\n                  loadCanceled: () => this.ganttIsLoading = false\n                },\n                stm: {\n                  autoRecord: true,\n                  listeners: {\n                    recordingstop: ({\n                      stm\n                    }) => {\n                      this.redoCount = stm.length - stm.position;\n                      this.undoCount = stm.position;\n                    },\n                    restoringstop: ({\n                      stm\n                    }) => {\n                      this.redoCount = stm.length - stm.position;\n                      this.undoCount = stm.position;\n                    },\n                    queueReset: () => {\n                      this.redoCount = 0;\n                      this.undoCount = 0;\n                    }\n                  }\n                },\n                resetUndoRedoQueuesAfterLoad: true,\n                silenceInitialCommit: false,\n                // https://bryntum.com/products/schedulerpro/docs/api/Scheduler/model/ProjectModel#config-silenceInitialCommit\n                autoCalculatePercentDoneForParentTasks: false,\n                transport: {\n                  load: {\n                    url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/gantt-chart/get-data`,\n                    method: 'GET',\n                    mode: 'cors',\n                    cache: 'no-cache',\n                    credentials: 'same-origin',\n                    referrerPolicy: 'no-referrer',\n                    params: {\n                      subjectEntityId: this.sessionData.entity.id,\n                      entityIds: [this.sessionData.entity.id],\n                      projectIds\n                    },\n                    headers: {\n                      'Content-Type': 'application/json',\n                      Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n                    }\n                  },\n                  sync: {\n                    url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/gantt-chart/sync-data`,\n                    method: 'POST',\n                    mode: 'cors',\n                    cache: 'no-cache',\n                    credentials: 'same-origin',\n                    referrerPolicy: 'no-referrer',\n                    params: {\n                      subjectEntityId: this.sessionData.entity.id\n                    },\n                    headers: {\n                      'Content-Type': 'application/json',\n                      Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n                    }\n                  }\n                }\n              },\n              /* start feature flags */\n              fillTicks: this.ganttFillTicksEnabled,\n              subGridConfigs: {\n                locked: {\n                  collapsed: this.ganttTableCollapsed && !this.ganttSubGridConfigsEnabled\n                },\n                normal: {\n                  collapsed: this.ganttSubGridConfigsEnabled\n                }\n              },\n              listeners: {\n                subGridCollapse: event => this.syncSubGridSetting(event, true),\n                subGridExpand: event => this.syncSubGridSetting(event, false)\n              },\n              showTaskColorPickers: true,\n              features: {\n                filter: true,\n                cellEdit: {\n                  addNewAtEnd: false // https://bryntum.com/products/grid/docs/#Grid/feature/CellEdit#config-addNewAtEnd\n                },\n                dependencyEdit: true,\n                // enable double clicking of dependency to edit to enable or disable dependencies\n                dependencies: {\n                  disabled: !this.ganttDependenciesEnabled\n                },\n                labels: {\n                  disabled: !this.ganttLabelsEnabled,\n                  left: {\n                    field: 'name'\n                  }\n                },\n                criticalPaths: {\n                  disabled: !this.ganttCriticalPathsEnabled\n                },\n                nonWorkingTime: {\n                  disabled: !this.ganttNonWorkingTimeEnabled\n                },\n                columnLines: {\n                  disabled: !this.ganttColumnLinesEnabled\n                },\n                rollups: {\n                  disabled: !this.ganttRollupsEnabled\n                },\n                progressLine: {\n                  disabled: !this.ganttProgressLineEnabled\n                },\n                parentArea: {\n                  disabled: !this.ganttParentAreaEnabled\n                },\n                /* start custom feature config */\n                timeRanges: {\n                  showCurrentTimeLine: {\n                    name: 'Today',\n                    cls: 'fa fa-flag'\n                  }\n                },\n                projectLines: {\n                  'Project Start': 'start date',\n                  'Project End': 'end date'\n                },\n                percentBar: {\n                  allowResize: false\n                },\n                rowReorder: false,\n                pdfExport: {\n                  exportDialog: {\n                    items: {\n                      orientationField: {\n                        value: 'landscape'\n                      },\n                      rowsRangeField: {\n                        hidden: true\n                      },\n                      scheduleRangeField: {\n                        hidden: true\n                      }\n                    }\n                  },\n                  exportServer: _environment.default.urls.ganttExportServer,\n                  clientURL: window.location.origin,\n                  translateURLsToAbsolute: window.location.origin,\n                  sendAsBinary: true\n                  // Docker run locally\n                  // translateURLsToAbsolute: 'http://192.168.210.XX:4200/',\n                },\n                taskMenu,\n                taskEdit: {\n                  items: {\n                    generalTab: {\n                      items: {\n                        percentDone: {\n                          readOnly: true\n                        },\n                        startDate: {\n                          format: this.intl.t('date.slashDayFirst')\n                        },\n                        endDate: {\n                          format: this.intl.t('date.slashDayFirst')\n                        },\n                        effort: {\n                          readOnly: true\n                        }\n                      }\n                    },\n                    resourcesTab: {\n                      items: {\n                        toolbar: {\n                          items: {\n                            add: {\n                              disabled: !canManageUsersAndWorkers\n                            },\n                            remove: {\n                              disabled: !canManageUsersAndWorkers\n                            }\n                          }\n                        }\n                      }\n                    },\n                    advancedTab: {\n                      items: {\n                        constraintDateField: {\n                          format: this.intl.t('date.slashDayFirst')\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            });\n            this.ganttChart.project.stm.enable();\n          });\n        }\n      }), {\n        keepLatest: true\n      }, \"initializeGanttChart\", null));\n    }\n    get projectsById() {\n      if (!this.model.projects.last.value) return {};\n      return this.model.projects.last.value.reduce((projects, p) => ({\n        ...projects,\n        [p.id]: p\n      }), {});\n    }\n    get selectedProjects() {\n      if (!this.model.projects.last.value) return [];\n      const projectIds = this.selected_projects?.split(',') || [];\n      const projects = [];\n      projectIds.forEach(projectId => {\n        const project = this.projectsById[projectId];\n        if (project) projects.push(project);\n      });\n      return projects;\n    }\n    set selectedProjects(projects = []) {\n      if (!projects.length) {\n        (0, _object.set)(this, 'selected_projects', null);\n        return;\n      }\n      const projectIds = projects.map(p => p.id).join(',');\n      (0, _object.set)(this, 'selected_projects', projectIds);\n    }\n    get isLoading() {\n      return this.model.projects.isRunning || this.model.user.isRunning;\n    }\n    get projectIsSetting() {\n      return this.onSetProjects.isRunning || this.onSyncGantt.isRunning || this.ganttIsLoading;\n    }\n    get ganttChartIsVisible() {\n      return this.selectedProjects.length > 0;\n    }\n    get manageableProjects() {\n      // TODO this is the wrong permission probably\n      return this.selectedProjects?.filter(p => this.newFeatureFlags.includesSomeFeatureFlags(p, 'canManageTasks')) || [];\n    }\n    get canUseImportAndManage() {\n      return this.manageableProjects.length > 0;\n    }\n    get ganttFillTicksEnabled() {\n      return this._ganttFillTicksEnabled;\n    }\n    set ganttFillTicksEnabled(value) {\n      this._ganttFillTicksEnabled = value;\n      this.persistedSettings.set('ganttFillTicksEnabled', value);\n      this.ganttChart.fillTicks = value;\n    }\n    get ganttSubGridConfigsEnabled() {\n      return this._ganttSubGridConfigsEnabled;\n    }\n    set ganttSubGridConfigsEnabled(value) {\n      this._ganttSubGridConfigsEnabled = value;\n      this.persistedSettings.set('ganttSubGridConfigsEnabled', value);\n      this.ganttChart.subGrids.normal.collapsed = value;\n\n      // the table and the schedule can't both be hidden\n      if (value && this.ganttTableCollapsed) this.ganttTableCollapsed = false;\n    }\n    get ganttTableCollapsed() {\n      return this._ganttTableCollapsed;\n    }\n    set ganttTableCollapsed(value) {\n      this._ganttTableCollapsed = value;\n      this.persistedSettings.set('ganttTableCollapsed', value);\n      this.ganttChart.subGrids.locked.collapsed = value;\n      if (value && this.ganttSubGridConfigsEnabled) this.ganttSubGridConfigsEnabled = false;\n    }\n    get ganttDependenciesEnabled() {\n      return this._ganttDependenciesEnabled;\n    }\n    set ganttDependenciesEnabled(value) {\n      this._ganttDependenciesEnabled = value;\n      this.persistedSettings.set('ganttDependenciesEnabled', value);\n      this.ganttChart.features.dependencies.disabled = !value;\n    }\n    get ganttLabelsEnabled() {\n      return this._ganttLabelsEnabled;\n    }\n    set ganttLabelsEnabled(value) {\n      this._ganttLabelsEnabled = value;\n      this.persistedSettings.set('ganttLabelsEnabled', value);\n      this.ganttChart.features.labels.disabled = !value;\n    }\n    get ganttCriticalPathsEnabled() {\n      return this._ganttCriticalPathsEnabled;\n    }\n    set ganttCriticalPathsEnabled(value) {\n      this._ganttCriticalPathsEnabled = value;\n      this.persistedSettings.set('ganttCriticalPathsEnabled', value);\n      this.ganttChart.features.criticalPaths.disabled = !value;\n    }\n    get ganttNonWorkingTimeEnabled() {\n      return this._ganttNonWorkingTimeEnabled;\n    }\n    set ganttNonWorkingTimeEnabled(value) {\n      this._ganttNonWorkingTimeEnabled = value;\n      this.persistedSettings.set('ganttNonWorkingTimeEnabled', value);\n      this.ganttChart.features.nonWorkingTime.disabled = !value;\n    }\n    get ganttColumnLinesEnabled() {\n      return this._ganttColumnLinesEnabled;\n    }\n    set ganttColumnLinesEnabled(value) {\n      this._ganttColumnLinesEnabled = value;\n      this.persistedSettings.set('ganttColumnLinesEnabled', value);\n      this.ganttChart.features.columnLines.disabled = !value;\n    }\n    get ganttRollupsEnabled() {\n      return this._ganttRollupsEnabled;\n    }\n    set ganttRollupsEnabled(value) {\n      this._ganttRollupsEnabled = value;\n      this.persistedSettings.set('ganttRollupsEnabled', value);\n      this.ganttChart.features.rollups.disabled = !value;\n    }\n    get ganttProgressLineEnabled() {\n      return this._ganttProgressLineEnabled;\n    }\n    set ganttProgressLineEnabled(value) {\n      this._ganttProgressLineEnabled = value;\n      this.persistedSettings.set('ganttProgressLineEnabled', value);\n      this.ganttChart.features.progressLine.disabled = !value;\n    }\n    get ganttParentAreaEnabled() {\n      return this._ganttParentAreaEnabled;\n    }\n    set ganttParentAreaEnabled(value) {\n      this._ganttParentAreaEnabled = value;\n      this.persistedSettings.set('ganttParentAreaEnabled', value);\n      this.ganttChart.features.parentArea.disabled = !value;\n    }\n    toggleSetting(key, event) {\n      this[key] = !this[key];\n      event.stopPropagation();\n      event.preventDefault();\n    }\n\n    // the splitter's own collapse buttons go straight to the gantt, so mirror\n    // them back without re-running the setters\n    syncSubGridSetting({\n      subGrid\n    }, collapsed) {\n      const key = {\n        locked: 'ganttTableCollapsed',\n        normal: 'ganttSubGridConfigsEnabled'\n      }[subGrid.region];\n      if (!key) return;\n      this[`_${key}`] = collapsed;\n      this.persistedSettings.set(key, collapsed);\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onZoomInClick() {\n      this.ganttChart.zoomIn();\n    }\n    onZoomOutClick() {\n      this.ganttChart.zoomOut();\n    }\n    onCollapseAllClick() {\n      this.ganttChart.expandAll();\n    }\n    onUndo() {\n      if (this.ganttChart.project.stm.canUndo) this.ganttChart.project.stm.undo();\n    }\n    onRedo() {\n      if (this.ganttChart.project.stm.canRedo) this.ganttChart.project.stm.redo();\n    }\n    onExpandAllClick() {\n      this.ganttChart.collapseAll();\n    }\n    onShiftPreviousClick() {\n      this.ganttChart.shiftPrevious();\n    }\n    onShiftNextClick() {\n      this.ganttChart.shiftNext();\n    }\n    onZoomToFitClick() {\n      this.ganttChart.zoomToFit({\n        leftMargin: 50,\n        rightMargin: 50\n      });\n    }\n    onGoToTodayClick() {\n      this.ganttChart.visibleDate = {\n        date: new Date(),\n        block: 'center'\n      };\n    }\n    onSearchChange(event) {\n      this.searchString = event.target.value;\n      if (event.target.value === '') {\n        this.searchFilterRegex = new RegExp('(.*?)');\n      } else {\n        const searchValue = event.target.value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n        this.searchFilterRegex = new RegExp(searchValue, 'i');\n      }\n      this.ganttChart.store.filter({\n        filters: task => task.name.match(this.searchFilterRegex),\n        replace: true\n      });\n    }\n\n    // copy from gantt.module.js\n    formatDuration(duration, nbrDecimals) {\n      const multiplier = Math.pow(10, nbrDecimals);\n      return Math.round(duration * multiplier) / multiplier;\n    }\n    downloadPDF() {\n      this.ganttChart.features.pdfExport.showExportDialog();\n    }\n    async onTaskImportModalClose(reloadProject) {\n      if (reloadProject) await this.initializeGanttChart.perform();\n      this.taskImportModalVisible = false;\n    }\n    onSetProjects(projects) {\n      const confirmChange = Boolean(this.selectedProjects.length && this.undoCount);\n      if (confirmChange && !confirm(this.intl.t('entity.builda-price.scheduling.timeline.youHaveUnsavedChangesThatWillBeLostIfYouDecideToSelectAnotherProjectDoYouWantContinue'))) return;\n      this.undoCount = 0;\n      this.redoCount = 0;\n      this.selectedProjects = projects;\n\n      // treat this like a side effect so people can keep selecting projects without waiting for the gantt to load\n      this.initializeGanttChart.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"ganttChart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"taskImportModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchFilterRegex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new RegExp('(.*?)');\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"undoCount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"redoCount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"ganttIsLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"selected_projects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"selectedProjects\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectedProjects\"), _class2.prototype), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttFillTicksEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttFillTicksEnabled');\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttSubGridConfigsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttSubGridConfigsEnabled');\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttTableCollapsed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttTableCollapsed');\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttDependenciesEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttDependenciesEnabled') ?? true;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttLabelsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttLabelsEnabled') ?? true;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttCriticalPathsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttCriticalPathsEnabled');\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttNonWorkingTimeEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttNonWorkingTimeEnabled') ?? true;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttColumnLinesEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttColumnLinesEnabled') ?? true;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttRollupsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttRollupsEnabled');\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttProgressLineEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttProgressLineEnabled');\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttParentAreaEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttParentAreaEnabled');\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleSetting\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSetting\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"syncSubGridSetting\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"syncSubGridSetting\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"noop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomInClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomInClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomOutClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomOutClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCollapseAllClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCollapseAllClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUndo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUndo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onRedo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onRedo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onExpandAllClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onExpandAllClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onShiftPreviousClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onShiftPreviousClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onShiftNextClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onShiftNextClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomToFitClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomToFitClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onGoToTodayClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onGoToTodayClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSearchChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSearchChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"downloadPDF\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadPDF\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onTaskImportModalClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onTaskImportModalClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSetProjects\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSetProjects\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/disabled\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n    }\n    get hasChargebeeSubscription() {\n      // TODO also check if the user is able to manage the subscription\n      return this.chargebee.ready;\n    }\n    logout() {\n      this.session.invalidate();\n    }\n    openChargebee() {\n      try {\n        this.chargebee.open();\n      } catch (error) {\n        this.notifications.error({\n          message: 'Could not open subscription management portal',\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"chargebee\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"logout\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openChargebee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openChargebee\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/financials\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _controller, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get buildaPriceLogoSrc() {\n      return _platform.BRANDING.BUILDA_PRICE.logo;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/utils\", \"@ember/object\", \"rsvp\", \"jquery\", \"portal/utils/nest\"], function (_exports, _controller, _service, _utils, _object, _rsvp, _jquery, _nest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/utils\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"portal/utils/nest\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    isLoading: false,\n    isSaving: false,\n    nestedAccounts: (0, _object.computed)('debitCredit', 'model.[]', 'parent.debitCredit', function () {\n      var accounts = (0, _object.get)(this, 'model');\n      if ((0, _utils.isEmpty)(accounts)) {\n        return [];\n      }\n      accounts.forEach(account => {\n        account.setProperties({\n          tmpId: (0, _object.get)(account, 'id') || Math.floor(Math.random() * Math.pow(10, 10)).toString(),\n          debitCreditMatchesParent: (0, _object.computed)('debitCredit', 'parent.debitCredit', function () {\n            return (0, _object.get)(this, 'debitCredit') === (0, _object.get)(this, 'parent.debitCredit');\n          })\n        });\n      });\n      var childAccounts = accounts.filter(account => {\n        return (0, _utils.isEmpty)((0, _object.get)(account, 'parent').content);\n      });\n      accounts = {\n        'profit-and-loss': (0, _nest.default)(childAccounts.filterBy('category', 'profit-and-loss'), accounts, 'tmpId'),\n        'balance-sheet': (0, _nest.default)(childAccounts.filterBy('category', 'balance-sheet'), accounts, 'tmpId'),\n        'other-data': (0, _nest.default)(childAccounts.filterBy('category', 'other-data'), accounts, 'tmpId')\n      };\n      return accounts;\n    }),\n    actions: {\n      addLine(category) {\n        category = category || 'profit-and-loss';\n        const accounts = (0, _object.get)(this, 'model').filterBy('category', category).sortBy('sortIndex');\n        const lastAccount = accounts.objectAt(accounts.length - 1);\n        const highestIndex = lastAccount ? (0, _object.get)(lastAccount, 'sortIndex') : -1;\n        const account = this.store.createRecord('account', {\n          sortIndex: highestIndex + 1,\n          debitCredit: lastAccount ? (0, _object.get)(lastAccount, 'debitCredit') || 'CREDIT' : 'CREDIT',\n          category: category,\n          parent: lastAccount ? (0, _object.get)(lastAccount, 'parent') || null : null,\n          status: 'ACTIVE',\n          format: 'CURRENCY',\n          periodic: category !== 'balance-sheet',\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model').pushObject(account);\n      },\n      createChildAccount(account) {\n        var newAccount = {\n          name: '',\n          debitCredit: (0, _object.get)(account, 'debitCredit') || 'CREDIT',\n          isHeading: false,\n          sortIndex: (0, _object.get)(account, 'sortIndex') + 1,\n          category: (0, _object.get)(account, 'category'),\n          periodic: (0, _object.get)(account, 'periodic'),\n          parent: account,\n          status: 'ACTIVE',\n          format: (0, _object.get)(account, 'format') || 'CURRENCY',\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        };\n        const createAccount = this.store.createRecord('account', newAccount);\n        (0, _object.get)(this, 'model').pushObject(createAccount);\n      },\n      deleteAccount(account) {\n        if ((0, _object.get)(account, 'isNew')) {\n          // If the account hasn't been saved yet, just remove it from the model.\n          (0, _object.get)(this, 'model').removeObject(account);\n          (0, _object.get)(this, 'notifications').success('Successfully removed account.');\n          return;\n        }\n        // Check cases where account should not be deleted.\n        if ((0, _object.get)(account, 'label') != null) {\n          // If the account is used in a kpi, do not let it be deleted.\n          (0, _object.get)(this, 'notifications').error('This account is used in a KPI calculation, it is unable to be deleted.');\n          return;\n        }\n        if ((0, _object.get)(account, 'children.length')) {\n          // If the account has children, do not let it be deleted.\n          (0, _object.get)(this, 'notifications').error('You are not able to delete an account with children.');\n          return;\n        }\n        (0, _object.set)(this, 'accountToDelete', account);\n        this.toggleProperty('isDeleting');\n      },\n      cancelDelete() {\n        (0, _object.set)(this, 'accountToDelete', null);\n        this.toggleProperty('isDeleting');\n      },\n      // This will be called after checking that the account can be deleted.\n      doDelete() {\n        const account = (0, _object.get)(this, 'accountToDelete');\n        const parentAccount = (0, _object.get)(this, 'model').findBy('id', (0, _object.get)(account, 'parent.id'));\n        if (!account || (0, _object.get)(account, 'isNew')) {\n          this.toggleProperty('isDeleting');\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        account.destroyRecord().then(() => {\n          (0, _object.get)(this, 'model').removeObject(account);\n          const remainingChildren = (0, _object.get)(this, 'model').filter(a => (0, _object.get)(a, 'parent.id') === (parentAccount, 'id'));\n          if ((0, _object.get)(remainingChildren, 'length')) return;\n          (0, _object.set)(parentAccount, 'isHeading', false);\n          return parentAccount.save();\n        }).then(() => {\n          (0, _object.get)(this, 'notifications').success('Successfully removed account.');\n          this.toggleProperty('isDeleting');\n          (0, _object.set)(this, 'isSaving', false);\n        }).catch(err => {\n          (0, _object.get)(this, 'notifications').error('Deletion of this account failed.');\n          this.toggleProperty('isDeleting');\n          (0, _object.set)(this, 'isSaving', false);\n          throw err;\n        });\n      },\n      save() {\n        const accounts = this.store.peekAll('account').filterBy('entity.id', (0, _object.get)(this, 'sessionData.entity.id'));\n        const profitAndLossData = (0, _jquery.default)('.coa-editor > ol.profit-and-loss-list').nestedSortable('toArray');\n        const balanceSheetData = (0, _jquery.default)('.coa-editor > ol.balance-sheet-list').nestedSortable('toArray');\n        const otherDataData = (0, _jquery.default)('.coa-editor > ol.other-data-list').nestedSortable('toArray');\n        (0, _object.set)(this, 'isSaving', true);\n        function setAccountProperties(line) {\n          const account = accounts.findBy('tmpId', line.item_id);\n          const parent = accounts.findBy('tmpId', line.parent_id);\n          if (account) {\n            (0, _object.set)(account, 'parent', parent);\n            (0, _object.set)(account, 'sortIndex', line.left);\n          }\n          if (parent) {\n            (0, _object.set)(parent, 'isHeading', true);\n          }\n        }\n        accounts.beginPropertyChanges();\n        profitAndLossData.forEach(setAccountProperties);\n        balanceSheetData.forEach(setAccountProperties);\n        otherDataData.forEach(setAccountProperties);\n        accounts.endPropertyChanges();\n        queuedSave(accounts).then(() => {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').success('Accounts saved successfully.');\n        }, () => {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').error('Accounts failed to save.');\n        });\n      },\n      toggleDebitCredit(account) {\n        var debitCredit = (0, _object.get)(account, 'debitCredit');\n        (0, _object.set)(account, 'debitCredit', debitCredit === 'CREDIT' ? 'DEBIT' : 'CREDIT');\n      }\n    }\n  });\n  function queuedSave(accounts) {\n    const promises = [];\n    accounts.forEach(account => {\n      // It the account doesn't have an unIDed parent\n      if ((0, _object.get)(account, 'parent').content === null || !(0, _utils.isEmpty)((0, _object.get)(account, 'parent.id'))) {\n        if ((0, _object.get)(account, 'hasDirtyAttributes')) {\n          const save = account.save();\n          promises.push(save);\n\n          // If this account is new\n          if ((0, _utils.isEmpty)((0, _object.get)(account, 'id'))) {\n            // Find its children\n            var children = accounts.filterBy('parent.tmpId', (0, _object.get)(account, 'tmpId'));\n            if (children.length) {\n              // And save them after this has finished saving\n              save.then(function () {\n                queuedSave(children, 1);\n              });\n            }\n          }\n        }\n      }\n    });\n    return _rsvp.default.all(promises);\n  }\n});","define(\"portal/controllers/entity/financials/dashboard-loading\", [\"exports\", \"portal/controllers/entity/financials/dashboard\"], function (_exports, _dashboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dashboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/dashboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/controllers/entity/financials/dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)()\n  });\n});","define(\"portal/controllers/entity/financials/general\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"portal/mixins/edit-record\", \"moment\"], function (_exports, _computed, _controller, _object, _service, _editRecord, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/mixins/edit-record\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend(_editRecord.default, {\n    sessionData: (0, _service.inject)(),\n    firstClosedPeriodLabel: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const isTopLevel = !(0, _object.get)(this, 'sessionData.entity.parent.id');\n      return isTopLevel ? 'Hide group reports on and after' : 'Withhold data from groups on and after';\n    }),\n    firstClosedPeriodExplanation: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const isTopLevel = !(0, _object.get)(this, 'sessionData.entity.parent.id');\n      return isTopLevel ? 'Setting the First Closed Period will prevent branches from seeing group reports on or before the given period' : \"Setting the First Closed Period will prevent your branch's data from being included in group reports on or before the given period\";\n    }),\n    openAllPeriods: (0, _object.computed)('firstClosedPeriod', {\n      set(key, value) {\n        if (value) {\n          // Open all periods by clearing the firstClosedPeriod option\n          (0, _object.set)(this, 'model.firstClosedPeriod', null);\n        } else {\n          const month = (0, _object.get)(this, 'firstClosedMonth');\n          const year = (0, _object.get)(this, 'firstClosedYear');\n          this.setFirstClosedPeriod(month, year);\n        }\n        return value;\n      },\n      get() {\n        return (0, _object.get)(this, 'firstClosedPeriod') == null;\n      }\n    }),\n    firstClosedPeriod: (0, _computed.alias)('model.firstClosedPeriod'),\n    setFirstClosedPeriod(month, year) {\n      // Minus 1 because moment expects a 0-based month index\n      const firstClosedPeriod = (0, _moment.default)().month(month - 1).year(year).endOf('month').toDate();\n      (0, _object.set)(this, 'firstClosedPeriod', firstClosedPeriod);\n    },\n    firstClosedMonth: (0, _object.computed)('firstClosedPeriod', {\n      get() {\n        // Add 1 because moment returns a 0-based month index\n        return (0, _moment.default)((0, _object.get)(this, 'firstClosedPeriod') || new Date()).month() + 1;\n      },\n      set(key, month) {\n        this.setFirstClosedPeriod(month, (0, _object.get)(this, 'firstClosedYear'));\n        return month;\n      }\n    }),\n    firstClosedYear: (0, _object.computed)('firstClosedPeriod', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'firstClosedPeriod') || new Date()).year();\n      },\n      set(key, year) {\n        this.setFirstClosedPeriod((0, _object.get)(this, 'firstClosedMonth'), year);\n        return year;\n      }\n    }),\n    balanceDate: (0, _object.computed)('model.balanceDate', {\n      get() {\n        return (0, _object.get)(this, 'model.balanceDate') || 0;\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'model.balanceDate', value);\n        return value;\n      }\n    }),\n    years: (0, _object.computed)(function () {\n      const years = [];\n      const currentYear = (0, _moment.default)().year();\n      for (let i = -4; i < 2; i++) {\n        years.push(currentYear + i);\n      }\n      return years;\n    }),\n    months: [{\n      name: 'Not Set',\n      value: 0\n    }, {\n      name: 'January',\n      value: 1\n    }, {\n      name: 'February',\n      value: 2\n    }, {\n      name: 'March',\n      value: 3\n    }, {\n      name: 'April',\n      value: 4\n    }, {\n      name: 'May',\n      value: 5\n    }, {\n      name: 'June',\n      value: 6\n    }, {\n      name: 'July',\n      value: 7\n    }, {\n      name: 'August',\n      value: 8\n    }, {\n      name: 'September',\n      value: 9\n    }, {\n      name: 'October',\n      value: 10\n    }, {\n      name: 'November',\n      value: 11\n    }, {\n      name: 'December',\n      value: 12\n    }],\n    record: (0, _computed.alias)('model')\n  });\n});","define(\"portal/controllers/entity/financials/groups/access\", [\"exports\", \"portal/controllers/entity/financials/groups/membership\"], function (_exports, _membership) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/groups/membership\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _membership.default.extend({\n    propertyToToggle: 'canAccessGroup'\n  });\n});","define(\"portal/controllers/entity/financials/groups/membership\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"@ember/utils\", \"@ember/object\"], function (_exports, _computed, _controller, _service, _rsvp, _utils, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    // If true, do not allow saving, editing, or deleting.\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    propertyToToggle: 'isInGroup',\n    tableContent: (0, _object.computed)('group.canBeAccessedBy', 'group.members', 'model.branches.[]', 'model.groups.[]', 'propertyToToggle', function () {\n      const store = (0, _object.get)(this, 'store');\n      const groups = (0, _object.get)(this, 'model.groups');\n      const propertyName = (0, _object.get)(this, 'propertyToToggle');\n      const content = (0, _object.get)(this, 'model.branches').map(branch => {\n        const branchId = (0, _object.get)(branch, 'id');\n        (0, _object.set)(branch, 'groupData', []);\n        groups.forEach(group => {\n          const data = _object.default.extend({\n            group: group,\n            branch: branch,\n            isInGroup: (0, _object.computed)('group.members.[]', 'group.members.@each.isDeleted', {\n              get() {\n                const members = ((0, _object.get)(this, 'group').hasMany('members').value() || []).map(item => (0, _object.get)(item, 'entity'));\n                return members.findBy('id', branchId) != null;\n              },\n              set(key, value) {\n                const groupMembers = (0, _object.get)(this, 'group').hasMany('members').value();\n                const existingMember = groupMembers.find(item => {\n                  const entity = (0, _object.get)(item, 'entity');\n                  return (0, _object.get)(entity, 'id') === branchId;\n                });\n                if (value) {\n                  if (!existingMember) {\n                    const member = store.createRecord('link-entity-group-member', {\n                      entity: branch,\n                      entityGroup: group\n                    });\n                    groupMembers.pushObject(member);\n                  } else if ((0, _object.get)(existingMember, 'isDeleted')) {\n                    existingMember.rollbackAttributes();\n                  }\n                  return value;\n                }\n                if (!existingMember || (0, _object.get)(existingMember, 'isDeleted')) {\n                  return value;\n                }\n                if ((0, _object.get)(existingMember, 'isNew')) {\n                  groupMembers.removeObject(existingMember);\n                  existingMember.unloadRecord();\n                } else {\n                  existingMember.deleteRecord();\n                }\n                return value;\n              }\n            }),\n            canAccessGroup: (0, _object.computed)('group.canBeAccessedBy.[]', 'group.canBeAccessedBy.@each.isDeleted', {\n              get() {\n                const canBeAccessedBy = ((0, _object.get)(this, 'group').hasMany('canBeAccessedBy').value() || []).map(item => (0, _object.get)(item, 'entity'));\n                return canBeAccessedBy.findBy('id', branchId) != null;\n              },\n              set(key, value) {\n                const accessItems = (0, _object.get)(this, 'group').hasMany('canBeAccessedBy').value();\n                const existingAccess = accessItems.find(item => {\n                  const entity = (0, _object.get)(item, 'entity');\n                  return (0, _object.get)(entity, 'id') === branchId;\n                });\n                if (value) {\n                  if (!existingAccess) {\n                    const access = store.createRecord('link-entity-group-can-be-accessed-by', {\n                      entity: branch,\n                      entityGroup: group\n                    });\n                    accessItems.pushObject(access);\n                  } else if ((0, _object.get)(existingAccess, 'isDeleted')) {\n                    existingAccess.rollbackAttributes();\n                  }\n                  return value;\n                }\n                if (!existingAccess || (0, _object.get)(existingAccess, 'isDeleted')) {\n                  return value;\n                }\n                if ((0, _object.get)(existingAccess, 'isNew')) {\n                  accessItems.removeObject(existingAccess);\n                  existingAccess.unloadRecord();\n                } else {\n                  existingAccess.deleteRecord();\n                }\n                return value;\n              }\n            }),\n            propertyToToggle: (0, _computed.alias)(propertyName)\n          }).create();\n          (0, _object.get)(branch, 'groupData').pushObject(data);\n        });\n        return branch;\n      });\n      return content.sortBy('name');\n    }),\n    actions: {\n      addNewGroup() {\n        // If noEditGroups is set, then don't let them be created.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const group = this.store.createRecord('entity-group', {\n          parentEntity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model.groups').pushObject(group);\n      },\n      deleteGroup(group) {\n        // If noEditGroups is set, then don't let them be deleted.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        (0, _object.set)(this, 'groupBeingDeleted', group);\n      },\n      cancelDeleteGroup() {\n        (0, _object.set)(this, 'groupBeingDeleted', null);\n      },\n      confirmDeleteGroup(group) {\n        (0, _object.set)(this, 'isDeleting', true);\n        group.destroyRecord().then(() => {\n          (0, _object.set)(this, 'groupBeingDeleted', null);\n          (0, _object.get)(this, 'model.groups').removeObject(group);\n          (0, _object.set)(this, 'isDeleting', false);\n        }, reason => {\n          this.send('error', reason);\n          (0, _object.set)(this, 'groupBeingDeleted', null);\n          (0, _object.set)(this, 'isDeleting', false);\n        });\n      },\n      save() {\n        // If noEditGroups is set, then don't let them be saved.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const saveGroups = [];\n        const saveLinks = [];\n        const groups = (0, _object.get)(this, 'model.groups');\n\n        // If any group does not have a name\n        if (groups.map(group => (0, _utils.isEmpty)((0, _object.get)(group, 'name'))).includes(true)) {\n          (0, _object.get)(this, 'notifications').error('One of your groups does not have a name. Please give it a name before saving.');\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        groups.forEach(group => {\n          if ((0, _object.get)(group, 'isNew') || (0, _object.get)(group, 'hasDirtyAttributes')) {\n            saveGroups.push(group.save());\n          }\n          (0, _object.get)(group, 'members').forEach(item => {\n            if (item.isNew || item.isDeleted) {\n              saveLinks.push(item);\n            }\n          });\n          (0, _object.get)(group, 'canBeAccessedBy').forEach(item => {\n            if (item.isNew || item.isDeleted) {\n              saveLinks.push(item);\n            }\n          });\n        });\n        _rsvp.default.all(saveGroups).then(() => _rsvp.default.all(saveLinks.map(item => item.save()))).then(() => (0, _object.get)(this, 'notifications').success('All groups have been saved.')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/groups/order\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _controller, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    // If true, do not allow saving.\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    isSaving: false,\n    actions: {\n      save() {\n        // Do not allow a save if noEditGroups is true.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const saveAll = (0, _object.get)(this, 'model.groups').map(group => group.save());\n        (0, _object.set)(this, 'isSaving', true);\n        _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('Group order has been saved.')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/import\", [\"exports\", \"@ember/controller\", \"@ember/object\"], function (_exports, _controller, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    hasOtherData: (0, _object.computed)('model.[]', function () {\n      const otherDataAccounts = (0, _object.get)(this, 'model').filterBy('category', 'other-data');\n      return (0, _object.get)(otherDataAccounts, 'length') > 0;\n    })\n  });\n});","define(\"portal/controllers/entity/financials/import/data\", [\"exports\", \"@ember/object/computed\", \"@ember/service\", \"@ember/controller\", \"@ember/object\", \"@ember/utils\", \"rsvp\", \"jquery\", \"portal/utils/balance-calculator\", \"portal/config/environment\"], function (_exports, _computed, _service, _controller, _object, _utils, _rsvp, _jquery, balanceCalculator, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/utils\",0,\"rsvp\",0,\"jquery\",0,\"portal/utils/balance-calculator\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  const {\n    default: calcBalances,\n    addValue\n  } = balanceCalculator;\n  var _default = _exports.default = _controller.default.extend({\n    application: (0, _controller.inject)(),\n    importController: (0, _controller.inject)('entity.financials.import'),\n    cache: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    /*\n     * Keeps track of maps that have been edited since the page was loaded.\n     * Push map objects here so that they will be saved when save and continue is clicked.\n     * Should be cleared after either saving (if save & continue was clicked),\n     * or refreshing (if step skipped or other step navigated to).\n     *\n     * This is in lieu of an Ember Data feature for tracking changes to relationships ala hasDirtyAttributes.\n     */\n    editedMaps: [],\n    steps: ['profit-and-loss', 'balance-sheet', 'other-data'],\n    stepName: (0, _object.computed)('step', function () {\n      return (0, _object.get)(this, 'step').replace(/-/g, ' ').replace(/^(\\w)|\\s(\\w)/g, w => w.toUpperCase());\n    }),\n    systems: [{\n      key: 'xero-csv',\n      label: 'Xero (CSV)',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'xero-api',\n      label: 'Xero (integration)',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'banklink',\n      label: 'BankLink',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'api',\n      label: 'Connected Application',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'eaccounts',\n      label: 'eAccounts',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'empower',\n      label: 'Empower',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'maxim',\n      label: 'Maxim',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'myob',\n      label: 'MYOB / MYOB AR',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'myob-ao',\n      label: 'MYOB AO',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'frameworks',\n      label: 'Frameworks',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'prostix',\n      label: 'ProStix',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'rees',\n      label: 'Rees',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'itm-manual',\n      label: 'ITM Manual',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'gj-gardner',\n      label: 'GJ Gardner',\n      multipleFiles: true,\n      visible: false\n    }],\n    visibleSystems: (0, _computed.filterBy)('systems', 'visible', true),\n    selectedSystem: (0, _object.computed)('model.import.system', 'sessionData.entity.system', 'systems', function () {\n      const systems = (0, _object.get)(this, 'systems');\n      const importSystem = systems.findBy('key', (0, _object.get)(this, 'model.import.system'));\n      const entitySystem = systems.findBy('key', (0, _object.get)(this, 'sessionData.entity.system'));\n      return importSystem || entitySystem || null;\n    }),\n    switchSystem: (0, _object.observer)('selectedSystem', function () {\n      const getBranch = (0, _object.get)(this, 'sessionData.branch');\n      if (getBranch) {\n        getBranch.then(branch => {\n          if (branch && (0, _object.get)(branch, 'hasDirtyAttributes')) {\n            branch.save();\n          }\n        });\n      }\n    }),\n    isConfiguring: (0, _object.computed)('selectedSystem', 'lastImport.length', function () {\n      const hasSelectedSystem = !(0, _utils.isEmpty)((0, _object.get)(this, 'selectedSystem'));\n      const hasImported = (0, _object.get)(this, 'lastImport.length') > 0;\n      return hasSelectedSystem && hasImported;\n    }),\n    unusedMaps: (0, _object.computed)('model.import.externalBalances.[]', 'model.maps.@each.account', 'step', function () {\n      const maps = (0, _object.get)(this, 'model.maps').rejectBy('account.id');\n      const extBals = (0, _object.get)(this, 'model.import.externalBalances') || [];\n      maps.forEach(map => {\n        const extBal = extBals.findBy('externalId', (0, _object.get)(map, 'externalId'));\n        if (extBal && (0, _object.get)(map, 'sourceBalance') !== extBal || (0, _object.get)(this, 'step') !== (0, _object.get)(map, 'step')) {\n          addValue(map, extBal, (0, _object.get)(this, 'step'));\n        }\n      });\n      return maps;\n    }),\n    accountList: (0, _object.computed)('isHeading', 'model.accounts', 'model.import.externalBalances.[]', 'model.maps.@each.account', 'step', function () {\n      const accounts = (0, _object.get)(this, 'model.accounts');\n      const maps = (0, _object.get)(this, 'model.maps');\n      const imp = (0, _object.get)(this, 'model.import');\n      const step = (0, _object.get)(this, 'step');\n      const balances = calcBalances(accounts, imp, maps, step);\n      accounts.forEach(account => {\n        const isHeading = (0, _object.get)(this, 'isHeading');\n        const colspan = isHeading ? 4 : 0;\n        const depth = this._getAccountDepth(account);\n        account.setProperties({\n          colspan,\n          depth\n        });\n        if (!isHeading) {\n          (0, _object.set)(account, 'balance', balances.findBy('account.id', (0, _object.get)(account, 'id')));\n        }\n      });\n      return accounts.sortBy('sortIndex');\n    }),\n    _getAccountDepth(account) {\n      let line = (0, _object.get)(account, 'parent');\n      let depth = 0;\n      while ((0, _object.get)(line, 'id') && depth <= 5) {\n        line = (0, _object.get)(line, 'parent');\n        depth += 1;\n      }\n      return depth;\n    },\n    importMaps(newMaps) {\n      const maps = (0, _object.get)(this, 'model.maps');\n\n      // Only add new maps if they don't already exist\n      newMaps.forEach(map => {\n        const mapsForSystem = maps.filterBy('system', map.system);\n        if (!mapsForSystem.findBy('externalId', map.externalId)) {\n          map.entity = (0, _object.get)(this, 'sessionData.entity');\n          const mapRecord = this.store.createRecord('account-map', map);\n          maps.pushObject(mapRecord);\n\n          // Queue the new map up for saving by considering it edited.\n          this.send('onEditMap', mapRecord);\n        }\n      });\n    },\n    importBalances(balances) {\n      const system = (0, _object.get)(this, 'selectedSystem') || {};\n      const systemKey = (0, _object.get)(system, 'key');\n      const previousSystemKey = (0, _object.get)(this, 'model.import.system');\n      (0, _object.set)(this, 'lastImport', balances);\n      (0, _object.set)(this, 'model.import.system', systemKey);\n      let newBalances = balances;\n      const shouldCombineBalances = (0, _object.get)(system, 'multipleFiles') && systemKey === previousSystemKey;\n      if (shouldCombineBalances) {\n        const oldBalances = (0, _object.get)(this, 'model.import.externalBalances') || [];\n        newBalances = this.combineBalances(oldBalances, newBalances);\n      }\n      (0, _object.set)(this, 'model.import.externalBalances', newBalances);\n    },\n    combineBalances(oldBals, newBals) {\n      const newBalExtIds = newBals.mapBy('externalId');\n      return [\n      // Filter out old balances that are also in the new balances\n      ...oldBals.filter(oldBal => !newBalExtIds.includes((0, _object.get)(oldBal, 'externalId'))), ...newBals];\n    },\n    actions: {\n      invertMap(...args) {\n        this.send('invertMap', ...args);\n      },\n      selectSystem(key) {\n        (0, _object.set)(this, 'model.import.system', key);\n        (0, _object.set)(this, 'sessionData.entity.system', key);\n      },\n      onEditMap(map) {\n        // Add the map to the list of edited maps if it isn't already there.\n        if (!(0, _object.get)(this, 'editedMaps').includes(map)) {\n          (0, _object.get)(this, 'editedMaps').pushObject(map);\n        }\n      },\n      toggleEditing() {\n        this.toggleProperty('isEditing');\n      },\n      toggleConfigPane(account) {\n        const id = (0, _object.get)(account, 'id');\n        (0, _jquery.default)('[data-account-id=' + id + ']').toggleClass('closed');\n      },\n      remap(mapId, balance, system) {\n        const map = (0, _object.get)(this, 'model.maps').find(item => item.get('externalId') === mapId && item.get('system') === system);\n        if (!map) {\n          this.send('error');\n          return;\n        }\n\n        // If this map has already been assigned to an account, remove the old relationship\n        const currentId = (0, _object.get)(map, 'account.id');\n        if (!(0, _utils.isEmpty)(currentId)) {\n          const account = (0, _object.get)(this, 'accountList').findBy('id', currentId);\n          const oldMaps = (0, _object.get)(account, 'balance.maps');\n          const oldMap = oldMaps.findBy('id', (0, _object.get)(map, 'id'));\n          oldMaps.removeObject(oldMap);\n        }\n\n        // Update the map to link to the new account (or nothing)\n        (0, _object.set)(map, 'account', balance ? (0, _object.get)(balance, 'account') : null);\n        if (!(0, _utils.isEmpty)(balance)) {\n          // Add map to account\n          (0, _object.get)(balance, 'maps').pushObject(map);\n        }\n        this.send('onEditMap', map);\n      },\n      import(data) {\n        this.importMaps(data.maps);\n        this.importBalances(data.balances);\n      },\n      save() {\n        const imp = (0, _object.get)(this, 'model.import');\n        const step = (0, _object.get)(this, 'step');\n        const allMaps = (0, _object.get)(this, 'model.maps');\n        // Only save maps that have been created or edited since arriving at this page.\n        const mapsToSave = [...(0, _object.get)(this, 'editedMaps'), ...allMaps.filterBy('hasDirtyAttributes')].uniq();\n        switch (step) {\n          case 'profit-and-loss':\n            (0, _object.set)(imp, 'includesProfitAndLoss', true);\n            break;\n          case 'balance-sheet':\n            (0, _object.set)(imp, 'includesBalanceSheet', true);\n            break;\n          case 'other-data':\n            (0, _object.set)(imp, 'includesOtherData', true);\n        }\n\n        // Get a list of manual balances from other steps\n        const accountList = (0, _object.get)(this, 'accountList');\n        const accountIds = accountList.mapBy('id');\n        const manBals = ((0, _object.get)(imp, 'manualBalances') || []).filter(b => !accountIds.includes(b.account));\n        // Fill in the manual balances on this page\n        (0, _object.get)(this, 'accountList').filterBy('balance.isManual').forEach(account => {\n          manBals.push({\n            account: (0, _object.get)(account, 'id'),\n            value: (0, _object.get)(account, 'balance.value')\n          });\n        });\n        (0, _object.set)(imp, 'manualBalances', manBals);\n        (0, _object.set)(this, 'isImporting', true);\n        const saveImport = imp.save();\n        const saveMaps = mapsToSave.map(map => map.save());\n        _rsvp.default.all([saveImport, ...saveMaps]).then(() => {\n          (0, _object.get)(this, 'cache').clear('reports'); // wipe the local cache\n\n          const branch = (0, _object.get)(this, 'sessionData.entity.id');\n          const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + `/reports/update?entity=${branch}`;\n          const headers = {\n            Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n          };\n          return _jquery.default.ajax({\n            contentType: 'application/json',\n            method: 'POST',\n            url,\n            headers\n          });\n        }).then(() => (0, _object.set)(this, 'editedMaps', [])).then(() => this.send('advance')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isImporting', false));\n      },\n      advance() {\n        const steps = (0, _object.get)(this, 'steps');\n        const step = (0, _object.get)(this, 'step');\n        const currentStep = steps.indexOf(step);\n        const hasOtherData = (0, _object.get)(this, 'importController.hasOtherData');\n        if (currentStep === steps.length - (hasOtherData ? 1 : 2)) {\n          this.router.transitionTo('entity.financials.import.done');\n        } else {\n          this.router.transitionTo('entity.financials.import.data', steps[currentStep + 1]);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/import/start\", [\"exports\", \"@ember/service\", \"@ember/controller\"], function (_exports, _service, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    importController: (0, _controller.inject)('entity.financials.import'),\n    actions: {\n      advance() {\n        this.router.transitionTo('entity.financials.import.data', 'profit-and-loss');\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/kpis\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"jquery\", \"rsvp\", \"@ember/object\"], function (_exports, _controller, _service, _jquery, _rsvp, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    isSaving: false,\n    cache: (0, _service.inject)(),\n    sort() {\n      (0, _jquery.default)('.master-detail > aside li').each((index, li) => {\n        const id = (0, _jquery.default)(li).attr('data-id');\n        const item = (0, _object.get)(this, 'content').findBy('id', id);\n        if (item) {\n          (0, _object.set)(item, 'sortIndex', index);\n        }\n      });\n    },\n    actions: {\n      save() {\n        const saveAll = (0, _object.get)(this, 'model').map(kpi => kpi.save());\n        (0, _object.set)(this, 'isSaving', true);\n        _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('KPI was saved successfully.')).then(() => (0, _object.get)(this, 'cache').clear('reports')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/kpis/kpi\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"portal/mixins/edit-record\"], function (_exports, _controller, _computed, _editRecord) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object/computed\",0,\"portal/mixins/edit-record\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend(_editRecord.default, {\n    record: (0, _computed.alias)('model'),\n    messages: {\n      save: {\n        success: 'The KPI was saved successfully.',\n        error: 'The KPI failed to save.'\n      },\n      delete: {\n        success: 'The KPI was deleted successfully.',\n        error: 'The KPI failed to delete.'\n      }\n    },\n    transitionToOnSave: '',\n    transitionToOnDelete: ''\n  });\n});","define(\"portal/controllers/entity/financials/planning/strategies\", [\"exports\", \"@ember/controller\", \"@ember/array\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"@ember/utils\", \"moment\", \"portal/models/account\", \"portal/models/kpi\", \"portal/utils/sort-accounts\"], function (_exports, _controller, _array, _service, _object, _rsvp, _utils, _moment, _account, _kpi, _sortAccounts) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/array\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/utils\",0,\"moment\",0,\"portal/models/account\",0,\"portal/models/kpi\",0,\"portal/utils/sort-accounts\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    monthVisible: true,\n    ytdVisible: true,\n    focusToggle: true,\n    targets: (0, _object.computed)('model.targets.[]', function () {\n      const model = (0, _object.get)(this, 'model.targets');\n      const targets = [];\n      model.forEach(source => {\n        const breakdown = (0, _array.A)((0, _object.get)(source, 'breakdown') || []);\n        let sourceValues = (0, _array.A)((0, _object.get)(source, 'values') || []);\n        if (!sourceValues.length) {\n          sourceValues = (0, _array.A)([{\n            periodType: 'month',\n            targetValue: 0,\n            actualValue: 0\n          }, {\n            periodType: 'ytd',\n            targetValue: 0,\n            actualValue: 0\n          }]);\n        }\n        (0, _object.set)(source, 'breakdown', breakdown);\n        (0, _object.set)(source, 'values', sourceValues);\n        const isBalanceTarget = (0, _object.get)(source, 'account.id') != null;\n        const isKpiTarget = (0, _object.get)(source, 'kpi.id') != null;\n        const metric = isBalanceTarget ? (0, _object.get)(source, 'account') : (0, _object.get)(source, 'kpi');\n        const category = (0, _object.get)(source, 'account.category');\n        const debitCredit = (0, _object.get)(source, 'account.debitCredit');\n        const target = _object.default.extend({\n          id: (0, _object.get)(source, 'id'),\n          name: (0, _object.get)(metric, 'name'),\n          showYtd: isKpiTarget || (0, _object.get)(metric, 'periodic'),\n          metric,\n          isBalanceTarget,\n          isKpiTarget,\n          hasBreakdown: isKpiTarget,\n          showBreakdown: false,\n          breakdown,\n          increaseIsGood: !isBalanceTarget || category === 'balance-sheet' === (debitCredit === 'DEBIT'),\n          values: (0, _object.computed)('source.values', function () {\n            return (0, _object.get)(source, 'values');\n          }),\n          monthTarget: (0, _object.computed)('values.@each.targetValue', computedValue('month', 'targetValue')),\n          monthActual: (0, _object.computed)('values.@each.actualValue', computedValue('month', 'actualValue')),\n          monthDifference: (0, _object.computed)('monthTarget', 'monthActual', computedDifference('monthActual', 'monthTarget')),\n          monthArrowClasses: (0, _object.computed)('monthDifference', computedArrow('monthDifference')),\n          ytdTarget: (0, _object.computed)('values.@each.targetValue', computedValue('ytd', 'targetValue')),\n          ytdActual: (0, _object.computed)('values.@each.actualValue', computedValue('ytd', 'actualValue')),\n          ytdDifference: (0, _object.computed)('ytdTarget', 'ytdActual', computedDifference('ytdActual', 'ytdTarget')),\n          ytdArrowClasses: (0, _object.computed)('ytdDifference', computedArrow('ytdDifference'))\n        }).create();\n        targets.pushObject(target);\n      });\n      return targets;\n    }),\n    accountTargets: (0, _object.computed)('targets', function () {\n      const balanceTargets = (0, _object.get)(this, 'targets').filterBy('isBalanceTarget');\n      return (0, _sortAccounts.default)(balanceTargets, 'metric.sortIndex', 'metric.category');\n    }),\n    untargetedAccounts: untargeted('model.accounts', 'accountTargets'),\n    kpiTargets: (0, _object.computed)('targets', function () {\n      return (0, _object.get)(this, 'targets').filterBy('isKpiTarget').sortBy('metric.sortIndex');\n    }),\n    untargetedKPIs: untargeted('model.kpis', 'kpiTargets'),\n    checkingEmpty(targets) {\n      const arrayOfResults = [];\n      targets.forEach(target => {\n        (0, _array.A)((0, _object.get)(target, 'values') || []).forEach(value => {\n          arrayOfResults.push(Boolean((0, _object.get)(value, 'targetValue')));\n        });\n      });\n      return arrayOfResults;\n    },\n    actions: {\n      addTarget(metric) {\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        let account, kpi;\n        if (metric instanceof _account.default) {\n          account = metric;\n        } else if (metric instanceof _kpi.default) {\n          kpi = metric;\n        }\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const date = (0, _moment.default)(period, 'YYYY-MM').endOf('month').toDate();\n        const newTarget = this.store.createRecord('target', {\n          date,\n          entity: entity,\n          account,\n          kpi\n        });\n        newTarget.save().then(savedTarget => {\n          (0, _object.get)(this, 'model.targets').pushObject(savedTarget);\n        });\n      },\n      removeTarget(target) {\n        const targets = (0, _object.get)(this, 'model.targets');\n        const targetRecord = targets.findBy('id', (0, _object.get)(target, 'id'));\n\n        // Remove from the table\n        targets.removeObject(targetRecord);\n\n        // Delete server-side\n        return targetRecord.destroyRecord();\n      },\n      purgeEmptyBreakdownLines(target) {\n        const breakdown = (0, _array.A)((0, _object.get)(target, 'breakdown') || []);\n        const emptyLines = [];\n        breakdown.forEach(line => {\n          let empty = true;\n          Object.keys(line).forEach(field => {\n            if (!(0, _utils.isEmpty)(line[field])) {\n              empty = false;\n            }\n          });\n          if (empty) {\n            emptyLines.push(line);\n          }\n        });\n        emptyLines.forEach(line => {\n          breakdown.removeObject(line);\n        });\n      },\n      save() {\n        (0, _object.get)(this, 'model.targets').forEach(target => {\n          this.send('purgeEmptyBreakdownLines', target);\n        });\n        const empties = this.checkingEmpty((0, _object.get)(this, 'model.targets'));\n        if (!empties.includes(false)) {\n          const saveAll = (0, _object.get)(this, 'model.targets').map(target => target.save());\n          return _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('Targets were saved successfully.')).catch(err => this.send('error', err));\n        } else {\n          (0, _object.get)(this, 'notifications').error('Some Targets were not completely filled in.');\n        }\n      }\n    }\n  });\n  function computedValue(periodType, field) {\n    return {\n      get() {\n        const values = (0, _object.get)(this, 'values').findBy('periodType', periodType);\n        if (!values) return null;\n        return (0, _object.get)(values, field);\n      },\n      set(key, value) {\n        const values = (0, _object.get)(this, 'values').findBy('periodType', periodType);\n        if (values) {\n          (0, _object.set)(values, field, Number(value));\n        }\n        return value;\n      }\n    };\n  }\n  function computedDifference(field1, field2) {\n    return function () {\n      const value1 = (0, _object.get)(this, field1);\n      const value2 = (0, _object.get)(this, field2);\n      if (isNaN(value1) || isNaN(value2) || value1 == null || value2 == null) {\n        return null;\n      }\n      return value1 - value2;\n    };\n  }\n  function computedArrow(field) {\n    return function () {\n      const value = (0, _object.get)(this, field);\n      const classes = ['fa'];\n      if (value > 0) {\n        classes.push('increase fa-arrow-up');\n      } else if (value < 0) {\n        classes.push('decrease fa-arrow-down');\n      } else if (value === 0) {\n        classes.push('constant');\n      }\n      return classes.join(' ');\n    };\n  }\n  function untargeted(metricsKey, targetedKey) {\n    return (0, _object.computed)(metricsKey, targetedKey, function () {\n      const metrics = (0, _object.get)(this, metricsKey);\n      const targeted = (0, _object.get)(this, targetedKey).map(target => (0, _object.get)(target, 'metric.id'));\n      return metrics.reject(metric => targeted.includes((0, _object.get)(metric, 'id')));\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'balance-sheet',\n    dataKeyPrefix: 'b-s'\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/generic\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/csv-builder\"], function (_exports, _computed, _controller, _service, _object, _lodash, _csvBuilder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/csv-builder\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    accountSettings: [],\n    dataKeyPrefix: null,\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    hideChildrenKey: (0, _object.computed)('dataKeyPrefix', function () {\n      return `${(0, _object.get)(this, 'dataKeyPrefix')}HideChildren`;\n    }),\n    canSeeBreakdown: (0, _object.computed)('newFeatureFlags.userCanSeeFPBreakdown', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanSeeFPBreakdown');\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, min 1\n    }),\n    // Collection of entities, sorted initially but sort index.\n    orderedEntities: [],\n    initOrderedEntities: (0, _object.observer)('sessionData.branch.id', 'model.groups', function () {\n      if ((0, _object.get)(this, 'model')) {\n        (0, _object.set)(this, 'orderedEntities', (0, _object.get)(this, 'model.entities').sortBy('sortIndex'));\n      }\n    }),\n    // Take the list of accounts\n    accountsSortedByEntity: (0, _object.computed)('accountSettings', 'hideChildrenKey', 'model.nestedAccounts', 'orderedEntities', function () {\n      const accountSettings = (0, _object.get)(this, 'accountSettings');\n      const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n      // function definition\n      const applySetting = function (account) {\n        const setting = accountSettings.find(setting => (0, _object.get)(setting, 'id') === (0, _object.get)(account, 'id')) || {};\n        const hide = (0, _object.get)(setting, hideChildrenKey) == null || (0, _object.get)(setting, hideChildrenKey);\n        (0, _object.set)(account, 'hideChildren', hide);\n        ((0, _object.get)(account, 'children') || []).forEach(applySetting);\n      };\n      if ((0, _object.get)(this, 'model')) {\n        const accounts = _lodash.default.cloneDeep((0, _object.get)(this, 'model.nestedAccounts'));\n        accounts.forEach(applySetting);\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        sortByEntity(accounts, orderedEntities);\n        return accounts;\n      }\n    }),\n    profitAndLoss: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'profit-and-loss'),\n    balanceSheet: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'balance-sheet'),\n    otherData: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'other-data'),\n    // Can be overwritten if for non devault behavior\n    pageAsCSV(meta) {\n      // Use default CSV builder\n      return (0, _csvBuilder.default)(meta, (0, _object.get)(this, 'orderedEntities'), (0, _object.get)(this, 'accountsSortedByEntity'));\n    },\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = this.pageAsCSV(meta);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        (0, _csvBuilder.downloadCSV)(file, fileName);\n      },\n      toggleShowChildren(account) {\n        const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n        // account.toggleProperty('hideChildren');\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n        const accountSettings = (0, _object.get)(this, 'accountSettings');\n        const existingSetting = accountSettings.findBy('id', (0, _object.get)(account, 'id'));\n        if (existingSetting) {\n          existingSetting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n        } else {\n          const setting = {\n            id: (0, _object.get)(account, 'id'),\n            name: (0, _object.get)(account, 'name')\n          };\n          setting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n          accountSettings.push(setting);\n        }\n      },\n      togglePrintableTrue(balance) {\n        balance.toggleProperty('printable', true);\n      },\n      toggleShowBreakdown(metric, groupNumber, periodType) {\n        const group = (0, _object.get)(this, 'orderedEntities')[groupNumber];\n        (0, _object.set)(this, 'selectedMetric', metric);\n        (0, _object.set)(this, 'selectedGroup', group);\n        (0, _object.set)(this, 'selectedPeriodType', periodType);\n        this.toggleProperty('showBreakdown');\n      },\n      shiftFarLeft(entity) {\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        const scopedToGroup = false; // todo - get(this, 'scope.stack.1.type') === 'group';\n\n        if (scopedToGroup) {\n          (0, _object.set)(this, 'orderedEntities', [entity, ...orderedEntities.removeObject(entity)]);\n          return;\n        }\n        if (entity === orderedEntities[0]) return;\n        const scopedEntity = orderedEntities[0];\n        const otherEntities = orderedEntities.removeObject(entity).removeObject(scopedEntity);\n        (0, _object.set)(this, 'orderedEntities', [scopedEntity, entity, ...otherEntities]);\n      }\n    }\n  });\n  function sortByEntity(accounts, orderedEntities) {\n    (accounts || []).forEach(account => {\n      const values = (0, _object.get)(account, 'data');\n      const hideChildren = (0, _object.get)(account, 'hideChildren');\n      const sortedValues = [];\n      orderedEntities.forEach(entity => {\n        const value = values.findBy('entity', (0, _object.get)(entity, 'id'));\n        sortedValues.push(value || {});\n      });\n      (0, _object.set)(account, 'data', sortedValues);\n      (0, _object.set)(account, 'hideChildren', hideChildren);\n      if ((0, _object.get)(account, 'children')) {\n        sortByEntity((0, _object.get)(account, 'children'), orderedEntities);\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"portal/utils/csv-builder\", \"portal/utils/email-validator\"], function (_exports, _controller, _service, _object, _jquery, _environment, csvBuilder, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/csv-builder\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  const {\n    generateMetaDataRows,\n    downloadCSV\n  } = csvBuilder;\n  var _default = _exports.default = _controller.default.extend({\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    queryParams: ['selectedEntityIds', 'selectedGroupIds'],\n    ytdVisible: true,\n    monthVisible: true,\n    lastYearVisible: true,\n    percentageVisible: true,\n    profitAndLossTableVisible: true,\n    selectedGroupIds: [],\n    selectedGroups: [],\n    selectedEntityIds: [],\n    selectedEntities: [],\n    newUserData: {\n      firstName: '',\n      lastName: '',\n      email: ''\n    },\n    allowedEntities: (0, _object.computed)('sessionData.allowedEntities', 'sessionData.entity.parent.id', 'sessionData.entity.id', function () {\n      const parentId = (0, _object.get)(this, 'sessionData.entity.parent.id') || (0, _object.get)(this, 'sessionData.entity.id');\n      return (0, _object.get)(this, 'sessionData.allowedEntities').filter(e => e.includesClaims('canUseFinancialReporting') && (0, _object.get)(e, 'parent.id') === parentId).sortBy('name');\n    }),\n    financialsTableColspan: (0, _object.computed)('ytdVisible', 'monthVisible', 'lastYearVisible', 'percentageVisible', function () {\n      let result = 1;\n      if ((0, _object.get)(this, 'ytdVisible') && (0, _object.get)(this, 'monthVisible')) result = result * 2;\n      if ((0, _object.get)(this, 'lastYearVisible')) result = result * 2;\n      return result;\n    }),\n    actions: {\n      createNewUser() {\n        const {\n          firstName,\n          lastName,\n          email\n        } = (0, _object.get)(this, 'newUserData');\n        const notifications = (0, _object.get)(this, 'notifications');\n        if (!firstName) return notifications.warning('You must supply a first name');\n        if (!email) return notifications.warning('You must supply an email address');\n        if (!(0, _emailValidator.default)(email)) return notifications.warning('You must supply a valid email address');\n        const payload = {\n          firstName,\n          lastName,\n          email,\n          entity: (0, _object.get)(this, 'sessionData.entity.id'),\n          isItmPLInvite: true\n        };\n        (0, _object.set)(this, 'isCreatingNewUser', true);\n        return createUserAjax(payload, (0, _object.get)(this, 'session.data.authenticated.access_token')).then(() => {\n          (0, _object.get)(this, 'notifications').success('The invitation has been sent. They have been notified by email.');\n          (0, _object.set)(this, 'userCreateModalVisible', false);\n          (0, _object.set)(this, 'newUserData', {});\n        }).catch(err => this.send('error', err)).finally(() => {\n          (0, _object.set)(this, 'isCreatingNewUser', false);\n        });\n      },\n      selectEntity(data) {\n        (0, _object.set)(this, 'selectedEntityIds', data.mapBy('id'));\n      },\n      selectGroup(data) {\n        (0, _object.set)(this, 'selectedGroupIds', data.mapBy('id'));\n      },\n      toggleShowChildren(account) {\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n      },\n      setProfitAndLossTableVisible(boolean) {\n        (0, _object.set)(this, 'profitAndLossTableVisible', boolean);\n      },\n      toggleYtdVisible() {\n        (0, _object.set)(this, 'ytdVisible', !(0, _object.get)(this, 'ytdVisible'));\n        if (!(0, _object.get)(this, 'ytdVisible') && !(0, _object.get)(this, 'monthVisible')) {\n          (0, _object.set)(this, 'monthVisible', true);\n        }\n      },\n      toggleMonthVisible() {\n        (0, _object.set)(this, 'monthVisible', !(0, _object.get)(this, 'monthVisible'));\n        if (!(0, _object.get)(this, 'ytdVisible') && !(0, _object.get)(this, 'monthVisible')) {\n          (0, _object.set)(this, 'ytdVisible', true);\n        }\n      },\n      downloadSheet() {\n        const category = 'itm-custom-profit-and-loss';\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const num = (num, percent) => {\n          if (isNaN(num) || Math.abs(Number(num)) < 0.0001) return '0';\n          return percent ? `${Number(num) * 100}%` : String(num);\n        };\n        const createRows = (data, depth = 0, options = {}) => {\n          const {\n            recurse = true,\n            percentSales = false,\n            percentParent = false,\n            percentages = true,\n            totalTitle = null\n          } = options;\n          const getPercentValue = (data, type, index) => {\n            if (percentSales) return num(data[`${type}PercentSales`][index], true);\n            if (percentParent) return num(data[`${type}PercentParent`][index], true);\n            return '';\n          };\n          const arr = [];\n          arr.push(totalTitle ? totalTitle : '    '.repeat(depth) + data.name || 'unnamed account');\n          data.month.forEach((val, i) => {\n            if (percentages) {\n              arr.push(num(data.month[i]));\n              arr.push(getPercentValue(data, 'month', i));\n              arr.push(num(data.monthPrev[i]));\n              arr.push(getPercentValue(data, 'monthPrev', i));\n              arr.push(num(data.ytd[i]));\n              arr.push(getPercentValue(data, 'ytd', i));\n              arr.push(num(data.ytdPrev[i]));\n              arr.push(getPercentValue(data, 'ytdPrev', i));\n            } else {\n              arr.push(...[num(data.month[i]), '']);\n              arr.push(...[num(data.monthPrev[i]), '']);\n              arr.push(...[num(data.ytd[i]), '']);\n              arr.push(...[num(data.ytdPrev[i]), '']);\n            }\n          });\n          if (data.children && data.children.length && recurse) {\n            return [arr].concat(...data.children.map(c => createRows(c, depth + 1, options)));\n          } else {\n            return [arr];\n          }\n        };\n        const getSelectedItemName = item => (0, _object.get)(item || {}, 'name') || (0, _object.get)(item || {}, 'data.name') || '';\n\n        /* eslint-disable max-len */\n        const csv = [...generateMetaDataRows(meta)];\n        const entityNames = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) entityNames.push(...['', entityName, '', '', '', '', '', '', '']);\n        entityNames.push(...(0, _object.get)(this, 'selectedEntities').reduce((arr, entity) => [...arr, getSelectedItemName(entity), '', '', '', '', '', '', ''], []));\n        entityNames.push(...(0, _object.get)(this, 'selectedGroups').reduce((arr, group) => [...arr, getSelectedItemName(group), '', '', '', '', '', '', ''], []));\n        csv.push(entityNames);\n        const percentSalesHeadings = ['Current Monthly', '% of Sales', 'Last Year Monthly', '% of Sales', 'Current YTD', '% of Sales', 'Last Year YTD', '% of Sales'];\n        const pAndLHeadingRow = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) pAndLHeadingRow.push(...percentSalesHeadings);\n        (0, _object.get)(this, 'selectedEntities').forEach(() => pAndLHeadingRow.push(...percentSalesHeadings));\n        (0, _object.get)(this, 'selectedGroups').forEach(() => pAndLHeadingRow.push(...percentSalesHeadings));\n        csv.push(pAndLHeadingRow);\n        const pAndLContent = [...createRows((0, _object.get)(this, 'model.sales'), 0, {\n          percentages: false,\n          recurse: false\n        }), ...createRows((0, _object.get)(this, 'model.costOfSales'), 0, {\n          percentSales: true\n        }), ...createRows((0, _object.get)(this, 'model.systemMargin'), 0, {\n          totalTitle: 'Total System Margin',\n          percentSales: true\n        })];\n        (0, _object.get)(this, 'model.stockVariation.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.achievedMargin'), 0, {\n          totalTitle: 'Total Achived Margin',\n          percentSales: true\n        }));\n        (0, _object.get)(this, 'model.loyaltiesAndFreight.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.grossMargin'), 0, {\n          totalTitle: 'Final Gross Margin',\n          percentSales: true\n        }));\n        (0, _object.get)(this, 'model.expenses.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 1, {\n            percentSales: true,\n            recurse: false\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.expenses'), 0, {\n          totalTitle: 'Total Expenses',\n          percentages: false,\n          recurse: false\n        }), ...createRows((0, _object.get)(this, 'model.ebitda'), 0, {\n          totalTitle: 'EBITDA',\n          percentages: false,\n          recurse: false\n        }));\n        (0, _object.get)(this, 'model.otherIncomeAndDepreciation.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.netProfit'), 0, {\n          totalTitle: 'Net Operating Profit',\n          percentSales: true\n        }));\n        csv.push(...pAndLContent);\n\n        // Add a blank line\n        csv.push([]);\n        const expensesHeadingRow = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) expensesHeadingRow.push(...percentSalesHeadings);\n        (0, _object.get)(this, 'selectedEntities').forEach(() => expensesHeadingRow.push(...percentSalesHeadings));\n        (0, _object.get)(this, 'selectedGroups').forEach(() => expensesHeadingRow.push(...percentSalesHeadings));\n        csv.push(expensesHeadingRow);\n        const expensesContent = [...createRows((0, _object.get)(this, 'model.expenses'), 0, {\n          totalTitle: 'Total Expenses',\n          recurse: false,\n          percentSales: true\n        })];\n        (0, _object.get)(this, 'model.expenses.children').forEach(child => {\n          expensesContent.push(...createRows(child, 1, {\n            percentSales: true\n          }));\n        });\n        csv.push(...expensesContent);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        downloadCSV(csv, fileName);\n      }\n    }\n  });\n  function createUserAjax(payload, token) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/financials',\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'other-data',\n    dataKeyPrefix: 'o-d'\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"portal/utils/csv-builder\", \"moment\"], function (_exports, _computed, _controller, _service, _object, csvBuilder, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/utils/csv-builder\",0,\"moment\"eaimeta@70e063a35619d71f\n  const {\n    generateMetaDataRows,\n    generateDataRows,\n    downloadCSV\n  } = csvBuilder;\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    category: 'personal-data',\n    dataKeyPrefix: 'p-d',\n    queryParams: ['interval', 'duration'],\n    interval: 1,\n    duration: 1,\n    dateRange: (0, _object.computed)('sessionData.period', 'interval', 'duration', function () {\n      const currentDate = (0, _object.get)(this, 'sessionData.period');\n      const dateRange = [];\n      const interval = (0, _object.get)(this, 'interval');\n      const duration = (0, _object.get)(this, 'duration');\n      for (let i = 0; i < duration; i++) {\n        const age = interval * i;\n        dateRange.unshift((0, _moment.default)(currentDate, 'YYYY-MM').subtract(age, 'months').format('YYYY-MM'));\n      }\n      return dateRange;\n    }),\n    durationOptions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],\n    intervalOptions: [{\n      name: '1 month',\n      value: 1\n    }, {\n      name: '3 months',\n      value: 3\n    }, {\n      name: '6 months',\n      value: 6\n    }, {\n      name: '12 months',\n      value: 12\n    }],\n    accountSettings: [],\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    // This just needs to run each time you revisit the route.\n    applyAccountSettings() {\n      const accountSettings = (0, _object.get)(this, 'accountSettings');\n      const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n      const applySetting = function (account) {\n        const setting = accountSettings.find(setting => (0, _object.get)(setting, 'id') === (0, _object.get)(account, 'id')) || {};\n        const hide = (0, _object.get)(setting, hideChildrenKey) == null || (0, _object.get)(setting, hideChildrenKey);\n        (0, _object.set)(account, 'hideChildren', hide);\n        ((0, _object.get)(account, 'children') || []).forEach(applySetting);\n      };\n      const accounts = (0, _object.get)(this, 'model.nestedAccounts');\n      accounts.forEach(applySetting);\n      return accounts;\n    },\n    profitAndLoss: (0, _computed.filterBy)('model.nestedAccounts', 'category', 'profit-and-loss'),\n    balanceSheet: (0, _computed.filterBy)('model.nestedAccounts', 'category', 'balance-sheet'),\n    hideChildrenKey: (0, _object.computed)('dataKeyPrefix', function () {\n      return `${(0, _object.get)(this, 'dataKeyPrefix')}HideChildren`;\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, maximum 1\n    }),\n    intervalCount: (0, _object.computed)('duration', function () {\n      return new Array((0, _object.get)(this, 'duration')).fill(undefined);\n    }),\n    pageAsCSV(meta) {\n      // Build the spreadsheet manually\n      const rows = [...generateMetaDataRows(meta),\n      // Header for profit and loss\n      ['Profit And Loss Sheet', ''], ['Account Name', 'Month', 'YTD'], ...generateDataRows((0, _object.get)(this, 'profitAndLoss')), ['', ''],\n      // Header for Balance Sheet\n      ['Balance Sheet', ''], ['Account Name', 'Month', 'YTD'], ...generateDataRows((0, _object.get)(this, 'balanceSheet'))];\n      return rows;\n    },\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = this.pageAsCSV(meta);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        downloadCSV(file, fileName);\n      },\n      toggleShowChildren(account) {\n        const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n        // account.toggleProperty('hideChildren');\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n        const accountSettings = (0, _object.get)(this, 'accountSettings');\n        const existingSetting = accountSettings.findBy('id', (0, _object.get)(account, 'id'));\n        if (existingSetting) {\n          existingSetting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n        } else {\n          const setting = {\n            id: (0, _object.get)(account, 'id'),\n            name: (0, _object.get)(account, 'name')\n          };\n          setting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n          accountSettings.push(setting);\n        }\n      },\n      togglePrintableTrue(balance) {\n        balance.toggleProperty('printable', true);\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'profit-and-loss',\n    dataKeyPrefix: 'p-and-l'\n  });\n});","define(\"portal/controllers/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/csv-builder\"], function (_exports, _computed, _controller, _service, _object, _lodash, _csvBuilder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/csv-builder\",0,\"portal/utils/csv-builder\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    isLoading: false,\n    category: 'kpis',\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, min 1\n    }),\n    linkToDetail: (0, _computed.alias)('sessionData.entity.parent.id'),\n    // Collection of entities, sorted initially but sort index.\n    orderedEntities: [],\n    initOrderedEntities: (0, _object.observer)('model.groups', function () {\n      if ((0, _object.get)(this, 'model')) {\n        let entity = (0, _object.get)(this, 'sessionData.entity');\n\n        // TODO bit hacky, someone with more time fix this.\n        // It just stops the entity from coming up if you are on a top level entity.\n        // can probably just be removed once reports for top level entities is implemented.\n        const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n        if (!parentEntity) entity = null;\n        const entities = [];\n        if (entity) {\n          entities.push(entity);\n        }\n        entities.push(...(0, _object.get)(this, 'model.groups'));\n        (0, _object.set)(this, 'orderedEntities', entities);\n      }\n    }),\n    // Take the list of kpis\n    kpisSortedByEntity: (0, _object.computed)('model.kpis', 'orderedEntities', function () {\n      const kpis = _lodash.default.cloneDeep((0, _object.get)(this, 'model.kpis'));\n      const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n      sortByEntity(kpis, orderedEntities);\n      return kpis;\n    }),\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = (0, _csvBuilder.default)(meta, (0, _object.get)(this, 'orderedEntities'), (0, _object.get)(this, 'kpisSortedByEntity'));\n\n        // Use a data URL to specify the contents rather than the location of a resource.\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        (0, _csvBuilder.downloadCSV)(file, fileName);\n      },\n      shiftFarLeft(entity) {\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        const scopedToGroup = false; // todo - get(this, 'scope.stack.1.type') === 'group';\n\n        if (scopedToGroup) {\n          (0, _object.set)(this, 'orderedEntities', [entity, ...orderedEntities.removeObject(entity)]);\n          return;\n        }\n        if (entity === orderedEntities[0]) return;\n        const scopedEntity = orderedEntities[0];\n        const otherEntities = orderedEntities.removeObject(entity).removeObject(scopedEntity);\n        (0, _object.set)(this, 'orderedEntities', [scopedEntity, entity, ...otherEntities]);\n      },\n      toggleShowBreakdown(kpi, groupId, periodType) {\n        const group = (0, _object.get)(this, 'model.groups').findBy('id', groupId);\n        (0, _object.set)(this, 'selectedMetric', kpi);\n        (0, _object.set)(this, 'selectedGroup', group);\n        (0, _object.set)(this, 'selectedPeriodType', periodType);\n        this.toggleProperty('showBreakdown');\n      }\n    }\n  });\n  function sortByEntity(kpis, orderedEntities) {\n    (kpis || []).forEach(kpi => {\n      const values = (0, _object.get)(kpi, 'data');\n      const sortedValues = [];\n      orderedEntities.forEach(entity => {\n        const value = values.findBy('entity', (0, _object.get)(entity, 'id'));\n        sortedValues.push(value || {});\n      });\n      (0, _object.set)(kpi, 'data', sortedValues);\n      if ((0, _object.get)(kpi, 'children')) {\n        sortByEntity((0, _object.get)(kpi, 'children'), orderedEntities);\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@ember/array\", \"@ember/utils\", \"moment\"], function (_exports, _computed, _controller, _service, _object, _array, _utils, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/utils\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    periodType: 'month',\n    period: (0, _computed.alias)('sessionData.period'),\n    periodTypeOptions: [{\n      value: 'month',\n      label: 'Monthly'\n    }, {\n      value: 'ytd',\n      label: 'YTD'\n    }],\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    currentStats: (0, _object.computed)('model.stats', 'periodType', function () {\n      const periodType = (0, _object.get)(this, 'periodType');\n      let stats = (0, _object.get)(this, 'model.stats');\n      if (Array.isArray(stats)) {\n        /*\n        TODO I think this is happening because of the caching.\n        Not sure exactly why, could maybe be fixed at its cause at some point.\n        */\n        stats = stats[0].periodTypes;\n      }\n      const currentStats = (0, _object.get)(stats, periodType);\n      return currentStats;\n    }),\n    chartPeriod: (0, _object.computed)('sessionData.period', 'periodType', function () {\n      const end = (0, _object.get)(this, 'sessionData.period');\n      const start = (0, _moment.default)(end, 'YYYY-MM').subtract(11, 'months').format('YYYY-MM');\n      const type = (0, _object.get)(this, 'periodType');\n      return {\n        start,\n        end,\n        type\n      };\n    }),\n    selectedPeriodData: (0, _object.computed)('model.kpi.series', 'sessionData.entity.id', 'sessionData.period', function () {\n      const periodDate = (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').endOf('month').toDate();\n      const series = (0, _object.get)(this, 'model.kpi.series');\n      if (!(0, _array.isArray)(series)) {\n        return null;\n      }\n      const branchId = (0, _object.get)(this, 'sessionData.entity.id');\n      const branch = series.findBy('entity', branchId);\n      if (!branch || !(0, _array.isArray)((0, _object.get)(branch, 'periods'))) {\n        return null;\n      }\n      return (0, _object.get)(branch, 'periods').findBy('date', periodDate.toISOString());\n    }),\n    noData: (0, _object.computed)('model.kpi.series', function () {\n      const series = (0, _object.get)(this, 'model.kpi.series');\n      return (0, _utils.isEmpty)(series);\n    }),\n    checked: false,\n    watchchecked: (0, _object.observer)('checked', function () {\n      var currentPeriodType = (0, _object.get)(this, 'periodType');\n      if (currentPeriodType === 'month') {\n        (0, _object.set)(this, 'checked', true);\n        return (0, _object.set)(this, 'periodType', 'ytd');\n      } else {\n        (0, _object.set)(this, 'checked', false);\n        return (0, _object.set)(this, 'periodType', 'month');\n      }\n    })\n  });\n});","define(\"portal/controllers/entity/index\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({});\n});","define(\"portal/controllers/entity/module-dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n    }\n    goToModule(mod) {\n      if (mod.outsideLink) return window.open(mod.outsideLink, '_blank');\n      this.router.transitionTo(`entity.${mod.slug}`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"goToModule\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goToModule\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/auto-mapping\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _controller, _computed, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    store: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    selectedDisplayOption: 'reference',\n    displayOptions: [{\n      value: 'reference',\n      label: 'Invoice reference'\n    }, {\n      value: 'account',\n      label: 'Merchant account'\n    }],\n    readyToDelete: null,\n    deleting: false,\n    showInvalid: false,\n    referenceDirectives: (0, _computed.filterBy)('model.directives', 'kind', 'reference'),\n    openReferenceDirectives: (0, _object.computed)('referenceDirectives', function () {\n      return (0, _object.get)(this, 'referenceDirectives').filter(d => ((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status')));\n    }),\n    closedReferenceDirectives: (0, _object.computed)('referenceDirectives.@each.project', function () {\n      return (0, _object.get)(this, 'referenceDirectives').filter(d => !(((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status'))));\n    }),\n    accountDirectives: (0, _computed.filterBy)('model.directives', 'kind', 'account'),\n    openAccountDirectives: (0, _object.computed)('accountDirectives', function () {\n      return (0, _object.get)(this, 'accountDirectives').filter(d => ((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status')));\n    }),\n    closedAccountDirectives: (0, _object.computed)('accountDirectives.@each.project', function () {\n      return (0, _object.get)(this, 'accountDirectives').filter(d => !(((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status'))));\n    }),\n    unusedAccounts: (0, _object.computed)('model.merchantAccounts', 'accountDirectives.@each.value', function () {\n      const usedCodes = (0, _object.get)(this, 'accountDirectives').map(a => (0, _object.get)(a, 'value'));\n      return (0, _object.get)(this, 'model.merchantAccounts').filter(account => !usedCodes.includes((0, _object.get)(account, 'code')));\n    }),\n    /**\n     * Builds a hash table where the keys are the all the reference values on the page, and the values\n     * are booleans showing whether that reference value is a duplicate.\n     * The reason for this structure is to be easy to find. e.g. {{get duplicates directive.value}};\n     * This only needs to be checked for reference directives as the UI can prevent a user from using the\n     * same account twice by omitting it from the select list.\n     * @type {Object}\n     */\n    duplicates: (0, _object.computed)('referenceDirectives.@each.value', function () {\n      let duplicatesFound = false;\n      const directives = (0, _object.get)(this, 'referenceDirectives');\n      const duplicates = directives.mapBy('lowerValue').reduce((result, val, index, all) => {\n        const isDuplicate = all.slice(index + 1).includes(val);\n        if (isDuplicate) duplicatesFound = true;\n        return Object.assign({\n          [val]: isDuplicate\n        }, result);\n      }, {});\n      (0, _object.set)(this, 'duplicatesPresent', duplicatesFound);\n      return duplicates;\n    }),\n    diplicatesPresent: false,\n    actions: {\n      async save() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const directives = (0, _object.get)(this, 'model.directives');\n        // Check each individual directive is valid\n        if (directives.some(d => !(0, _object.get)(d, 'isValid'))) {\n          (0, _object.set)(this, 'showInvalid', true);\n          notifications.warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.allDirectivesMustHaveAProjectAndAReferenceOrAccount'));\n          return;\n        }\n\n        // Check there are no duplicates in the values of the reference directives\n        if ((0, _object.get)(this, 'duplicatesPresent')) {\n          (0, _object.set)(this, 'showInvalid', true);\n          notifications.warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.theReferenceValuesUsedMustBeUniqueOneOrMoreDuplicatesWereFound'));\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await _rsvp.default.all(directives.map(d => d.save()));\n          (0, _object.set)(this, 'showInvalid', false);\n          notifications.success((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.All directives were saved'));\n        } catch (error) {\n          notifications.error((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.somethingWentWrongSavingTheDirectives'));\n\n          // If there was a problem saving, we don't know what state is reliable,\n          // therefore we should tell the route to refresh the list of directives.\n          this.send('refreshDirectives');\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      setProject(directive, projectId) {\n        const project = (0, _object.get)(this, 'model.projects').findBy('id', projectId);\n        (0, _object.set)(directive, 'project', project);\n      },\n      addDirective(kind) {\n        if (kind === 'account' && !(0, _object.get)(this, 'unusedAccounts.length')) {\n          return (0, _object.get)(this, 'notifications').warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.thereAreNoMoreMerchantAccountsToUse'));\n        }\n        const newDirective = (0, _object.get)(this, 'store').createRecord('invoice-auto-map-directive', {\n          kind,\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model.directives').unshiftObject(newDirective);\n      },\n      async deleteDirective(directive) {\n        // Put page into a loading state\n        (0, _object.set)(this, 'deleting', true);\n        try {\n          // Delete the record from the database, then remove it from the page\n          await directive.destroyRecord();\n          (0, _object.get)(this, 'model.directives').removeObject(directive);\n        } catch (error) {\n          (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.somethingWentWrongDeletingTheDirectives'));\n        } finally {\n          // Put the page back into its normal state\n          (0, _object.set)(this, 'deleting', false);\n          (0, _object.set)(this, 'readyToDelete', null);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor5, this);\n      _initializerDefineProperty(this, \"onChangeSyncWithXero\", _descriptor6, this);\n      _defineProperty(this, \"glAccountValidationMap\", {\n        name: (_key, val) => Boolean(val) || this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Please provide a name'),\n        code: (_key, val) => Boolean(val) || this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Please provide a code')\n      });\n      _defineProperty(this, \"saveAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const notifications = this.notifications;\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const isNew = this.glAccount.isNew;\n            const account = yield changeset.save();\n            if (isNew) this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', account.id);\n            notifications.success(this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Successfully saved account'));\n          } catch (error) {\n            notifications.error({\n              error,\n              message: this.intl.t('entity.settings.chart-of-accounts.chart-of-account.problemWhileSavingAccount')\n            });\n          }\n        }\n      }), null, \"saveAccount\", null));\n      _defineProperty(this, \"deleteAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.glAccount.destroyRecord();\n            this.notifications.success('Successfully deleted account');\n            this.router.transitionTo('entity.settings.chart-of-accounts');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.chart-of-accounts.chart-of-account.problemWhileDeletingAccount')\n            });\n          }\n        }\n      }), null, \"deleteAccount\", null));\n    }\n    get isLoading() {\n      return this.model.glAccount.isRunning;\n    }\n    get glAccount() {\n      return this.model.glAccount.last.value;\n    }\n    get showSyncIcon() {\n      return this.accountingPlatform.isActive && this.glAccount.isLinkedToActiveAccountingPlatform;\n    }\n    get disableForm() {\n      return this.accountingPlatform.isActive && this.glAccount.isLinkedToActiveAccountingPlatform;\n    }\n    get canEditGlAccounts() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageInvoices') || this.newFeatureFlags.includesFeatureFlags('canManageBills');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.settings.chart-of-accounts',\n        pageTitle: this.intl.t('entity.settings.chart-of-accounts.Chart of accounts')\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.glAccount.isNew ? this.intl.t('entity.settings.chart-of-accounts.chart-of-account.New account') : this.model.glAccount.last.value.name\n      }];\n      return paths;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"onChangeSyncWithXero\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.glAccount.isNew ? true : false;\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/settings/chart-of-accounts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor9, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedAccountIds\", _descriptor1, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isDeletingAccounts\", _descriptor11, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'searchString']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"syncWithAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            let message = '';\n            const {\n              created = [],\n              updated = [],\n              removed = []\n            } = yield this.accountingPlatform.getAccounts.perform(this.sessionData.entity);\n            if (created.length) {\n              message = `Successfully imported ${created.length} ${created.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (updated.length) {\n              // force update updated accounts\n              yield this.handleAccountsUpdated(updated);\n              if (message.length) message += ' ';\n              message += `Successfully updated ${updated.length} ${updated.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (removed.length) {\n              // remove references to removed accounts\n              yield this.handleAccountsRemoved(removed);\n              if (message.length) message += ' ';\n              message += `Removed ${removed.length} removed ${removed.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (message.length) {\n              this.notifications.success(message);\n              yield this.model.glAccounts.perform(this.model.pageSize, this.model.pageNumber);\n              return;\n            }\n            this.notifications.info('No new accounts found.');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while updating accounts',\n              error\n            });\n          }\n        }\n      }), null, \"syncWithAccountingPackage\", null));\n      _defineProperty(this, \"deleteAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const actions = [];\n            this.selectedAccountIds.forEach(record => {\n              const account = this.glAccounts.find(item => item.id === record);\n              actions.push(account?.destroyRecord());\n            });\n            yield Promise.all(actions);\n            yield this.model.glAccounts.perform(this.model.pageSize, this.model.pageNumber);\n            this.notifications.success(`Successfully deleted\n           ${this.selectedAccountIds.size > 1 ? 'accounts' : 'account'}`);\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong while deleting accounts'\n            });\n          } finally {\n            this.isDeletingAccounts = false;\n            this.selectedAccountIds = new Set();\n          }\n        }\n      }), null, \"deleteAccounts\", null));\n    }\n    get isLoading() {\n      return this.model.glAccounts.isRunning;\n    }\n    get isEditable() {\n      return true;\n    }\n    get glAccounts() {\n      return this.model.glAccounts.lastSuccessful.value?.toArray() || [];\n    }\n    get tableHeader() {\n      if (this.model.glAccounts.isRunning) return [];\n      const header = [{\n        value: this.intl.t('common.Name'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('common.Code'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('common.Tax rate'),\n        colClass: ' text-right me-2'\n      }];\n      if (this.isEditable && this.glAccounts.length) header.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        onInputChange: this.onSelectAllAccounts,\n        value: this.selectedAccountIds.size,\n        isPartiallySelected: Boolean(this.selectedAccountIds.size && this.selectedAccountIds.size < this.glAccounts.filter(item => !item.isLinkedToActiveAccountingPlatform).length)\n      });\n      return header;\n    }\n    get tableData() {\n      if (this.model.glAccounts.isRunning) return [];\n      return this.glAccounts.map(account => {\n        const data = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-left',\n          value: account.name,\n          onClickButton: this.onClickGlAccountName,\n          iconName: account.isLinkedToActiveAccountingPlatform && this.accountingPlatform.isActive ? 'sync' : '',\n          title: 'This account is synced with your accounting package',\n          extraData: {\n            account\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: account?.code ?? ' — '\n        }, {\n          colClass: 'text-right align-middle me-2',\n          value: this.numberFormat.format(account?.taxRate, {\n            style: 'percent',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          data.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle gl-accounts__table-checkbox-max-width',\n            onInputChange: this.onSelectAccount,\n            disabled: account.isLinkedToActiveAccountingPlatform ? true : false,\n            value: this.selectedAccountIds.has(account.id),\n            extraData: {\n              account\n            }\n          });\n        }\n        return {\n          rowData: data\n        };\n      });\n    }\n    get totalRecords() {\n      return this.model.glAccounts.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    addNewGlAccount() {\n      this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', 'new');\n    }\n    onChangePageIndex(pageNumber) {\n      this.pageNumber = pageNumber;\n      this.selectedAccountIds = new Set();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    onSelectAccount(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedAccountIds.add(col.extraData.account.id);\n      } else {\n        this.selectedAccountIds.delete(col.extraData.account.id);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedAccountIds = this.selectedAccountIds;\n    }\n    updateSearchTerm(value) {\n      this.selectedAccountIds = new Set();\n      this.searchString = value.trim();\n      this.pageNumber = 1;\n    }\n    async onClickGlAccountName(_row, col) {\n      this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', col.extraData.account.id);\n    }\n    async handleAccountsRemoved(items) {\n      const loadedAccounts = this.store.peekAll('gl-account');\n      for (const id of items) {\n        const account = loadedAccounts.find(a => a.id === id);\n        if (account) {\n          // unload the record\n          this.store.unloadRecord(account);\n        }\n      }\n    }\n    async handleAccountsUpdated(items) {\n      const loadedAccounts = this.store.peekAll('gl-account');\n      await Promise.all(items.map(id => {\n        const account = loadedAccounts.find(a => a.id === id);\n        return account && account.reload();\n      }));\n    }\n    onSelectAllAccounts(_row, col, e) {\n      if (e.target.checked) {\n        this.glAccounts.forEach(account => {\n          if (!account.isLinkedToActiveAccountingPlatform) this.selectedAccountIds.add(account.id);\n        });\n      } else {\n        this.glAccounts.forEach(account => {\n          if (!account.isLinkedToActiveAccountingPlatform) this.selectedAccountIds.delete(account.id);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedAccountIds = this.selectedAccountIds;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedAccountIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"addNewGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addNewGlAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateSearchTerm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateSearchTerm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickGlAccountName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickGlAccountName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAllAccounts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAllAccounts\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/company\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/models/attachment\", \"portal/utils/email-validator\", \"ember-changeset\", \"@ember/runloop\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _tracking, _attachment, _emailValidator, _emberChangeset, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/utils/email-validator\",0,\"ember-changeset\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _defineProperty(this, \"validateContent\", (_key, newVal, oldVal, changes, content) => {\n        // check for the currently selected profit type\n        let profitType = changes.profitType || content.profitType;\n        if (profitType === 'MARGIN') {\n          const percentage = newVal || oldVal;\n          // null is valid\n          if (percentage === null) return true;\n          return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n        return true;\n      });\n      _defineProperty(this, \"MAX_FILE_SIZE\", 1024 * 1024 * 5);\n      // 5 MB\n      _defineProperty(this, \"ALLOWED_MIME_TYPES\", ['image/png', 'image/jpeg', 'image/gif']);\n      _defineProperty(this, \"profitTypes\", [{\n        value: 'MARGIN',\n        label: this.intl.t('common.Margin')\n      }, {\n        value: 'MARKUP',\n        label: this.intl.t('common.Markup')\n      }]);\n      _defineProperty(this, \"paymentTermType\", [{\n        value: 'OF_FOLLOWING_MONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('shared.contacts.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"messages\", {\n        save: {\n          success: this.intl.t('entity.settings.company.The entity was saved successfully'),\n          error: this.intl.t('entity.settings.company.The entity failed to save')\n        },\n        delete: {\n          success: this.intl.t('entity.settings.company.The entity was deleted successfully'),\n          error: this.intl.t('entity.settings.company.The entity failed to delete')\n        }\n      });\n      _initializerDefineProperty(this, \"isSaving\", _descriptor8, this);\n      _defineProperty(this, \"entityValidationMap\", {\n        name: (_key, val) => Boolean(val) || this.intl.t('validation.Name'),\n        address: this.validateEntityContent.bind(this),\n        businessNumber: this.validateEntityContent.bind(this),\n        contactEmail: this.validateEntityContent.bind(this)\n      });\n      _defineProperty(this, \"purchaseOrderValidationMap\", {\n        nextPurchaseOrderNumber: (_key, val) => !isNaN(val) || this.intl.t('validation.purchaseOrderNumber')\n      });\n      _defineProperty(this, \"invoiceValidationMap\", {\n        nextInvoiceNumber: (_key, val) => !isNaN(val) || 'please provide a valid number',\n        nextCreditNoteNumber: (_key, val) => !isNaN(val) || 'please provide a valid number'\n      });\n      _defineProperty(this, \"stagePaymentsOptionsValidationMap\", {});\n      _defineProperty(this, \"profitMarginValidationMap\", {\n        profitType: (_key, val) => Boolean(val) || this.intl.t('validation.profitType'),\n        labourPercentage: this.validateContent,\n        additionalLabourMargin: this.validateContent,\n        materialsPercentage: this.validateContent,\n        subcontractorsPercentage: this.validateContent,\n        sumsPercentage: this.validateContent\n      });\n      _defineProperty(this, \"updateProfitMargins\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (profitMargin) {\n          yield profitMargin.validate('profitType', 'labourPercentage', 'additionalLabourMargin', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n          if (profitMargin.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n            return;\n          }\n          try {\n            profitMargin.execute();\n            const wasNew = Boolean(profitMargin.isNew);\n            yield profitMargin.save();\n\n            // if the record was new, we need to setup the relationship with the entity\n            if (wasNew) {\n              const entity = this.sessionData.entity;\n              yield entity.save();\n            }\n            this.notifications.success(this.intl.t('entity.settings.company.Profit margins saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileUpdatingProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProfitMargins\", null));\n      _defineProperty(this, \"saveEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.validate();\n          if (entity.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            entity.execute();\n            const companyLogo = entity.get('data').safeBelongsToValue('companyLogo');\n            if (companyLogo?.isNew) {\n              const lastLogo = this.model.companyLogo.last.value;\n              if (lastLogo?.id) {\n                yield lastLogo.destroyRecord();\n              }\n              yield companyLogo.save({\n                adapterOptions: {\n                  meta: {\n                    data: companyLogo.data\n                  }\n                }\n              });\n            } else if (!companyLogo) {\n              const lastLogo = this.model.companyLogo.last.value;\n              if (lastLogo?.id) {\n                yield lastLogo.destroyRecord();\n              }\n            }\n            const updatedEntity = yield entity.save();\n            yield this.model.companyLogo.perform(updatedEntity);\n            this.notifications.success(this.intl.t('entity.settings.company.Company details saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileUpdatingCompanyDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"saveEntity\", null));\n      _defineProperty(this, \"savePurchaseOrderOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderOption) {\n          yield purchaseOrderOption.validate();\n          if (purchaseOrderOption.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            purchaseOrderOption.execute();\n            yield purchaseOrderOption.save();\n            this.notifications.success(this.intl.t('entity.settings.company.purchaseOrderDetailsSavedSuccessfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileSavingPurchaseOrderDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"savePurchaseOrderOption\", null));\n      _defineProperty(this, \"saveInvoiceOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceOption) {\n          yield invoiceOption.validate();\n          if (invoiceOption.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            invoiceOption.execute();\n            yield invoiceOption.save();\n            this.notifications.success(this.intl.t('entity.settings.company.Invoice details saved successfully'));\n          } catch (error) {\n            if (error.errors[0]?.title === 'Invoice number already in use') {\n              this.notifications.warning(this.intl.t('entity.settings.company.Invoice number already in use'));\n              return;\n            }\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveInvoiceDetailError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveInvoiceOption\", null));\n      _defineProperty(this, \"saveStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePaymentOption) {\n          if (stagePaymentOption.isInvalid) return;\n          try {\n            stagePaymentOption.execute();\n            const wasNew = Boolean(stagePaymentOption.isNew);\n            yield stagePaymentOption.save();\n\n            // if the record was new, we need to setup the relationship with the entity\n            if (wasNew) {\n              const entity = this.sessionData.entity;\n              yield entity.save();\n            }\n            this.notifications.success(this.intl.t('entity.settings.company.Stage payment details saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveStageError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveStagePaymentOptions\", null));\n      _defineProperty(this, \"saveBreakdownOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.invoiceBreakdownOptions.firstGroupBy === 'TASK') {\n            this.invoiceBreakdownOptions.timesheetDetails = this.invoiceBreakdownOptions.timesheetDetails.filter(option => option !== 'TASK');\n          }\n          try {\n            yield this.invoiceBreakdownOptions.save();\n            this.invoiceBreakdownOptions = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveBreakdownOptionsError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBreakdownOptions\", null));\n      _initializerDefineProperty(this, \"invoiceBreakdownOptions\", _descriptor9, this);\n    }\n    get businessNumberLabel() {\n      let businessNumberLabel;\n      switch (this.model.entity.region) {\n        case 'NZL':\n          businessNumberLabel = this.intl.t('entity.settings.company.New Zealand business number');\n          break;\n        case 'AUS':\n          businessNumberLabel = this.intl.t('entity.settings.company.Australian business number');\n          break;\n        case 'GBR':\n          businessNumberLabel = this.intl.t('entity.settings.company.Company registration number');\n          break;\n        default:\n          businessNumberLabel = this.intl.t('entity.settings.company.Business number');\n          break;\n      }\n      return businessNumberLabel;\n    }\n    get taxNumberLabel() {\n      let taxNumberLabel;\n      switch (this.model.entity.region) {\n        case 'NZL':\n          taxNumberLabel = this.intl.t('entity.settings.company.GST number');\n          break;\n        case 'GBR':\n          taxNumberLabel = this.intl.t('entity.settings.company.VAT number');\n          break;\n      }\n      return taxNumberLabel;\n    }\n    async save() {\n      const notifications = this.notifications;\n      this.isSaving = true;\n\n      // If the logo is saved successfully, continue saving the record\n      this.record.save().then(() => {\n        this.isSaving = false;\n        notifications.success({\n          message: this.messages.save.success,\n          autoClear: true\n        });\n      }).catch(err => {\n        this.isSaving = false;\n        notifications.error(err.responseJSON.errors[0].title === undefined ? this.messages.save.error : err.responseJSON.errors[0].title);\n      });\n    }\n    async openChargebee() {\n      try {\n        this.chargebee.open();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.settings.company.couldNotOpenSubscriptionManagementPortal'),\n          error\n        });\n      }\n    }\n    validateEntityContent(key, newVal, _oldVal, _changes, _content) {\n      if (key === 'businessNumber' && newVal) {\n        switch (this.model.entity.region) {\n          case 'NZL':\n            return !(newVal.length < 13) || this.intl.t('validation.nzBusinessNumber');\n          case 'AUS':\n            return !(newVal.length < 11) || this.intl.t('validation.auBusinessNumber');\n          case 'GBR':\n            return !(newVal.length < 8) || this.intl.t('validation.companyRegistrationNumber');\n        }\n      }\n      if (key === 'contactEmail' && newVal) {\n        return (0, _emailValidator.default)(newVal) || this.intl.t('validation.Email');\n      }\n    }\n    get profitMargin() {\n      return this.model.entity.belongsTo('profitMargin').value();\n    }\n    toggleAdditionalLabourMargin(profitMarginModel) {\n      const newValue = profitMarginModel.additionalLabourMargin != null ? null : Number(this.profitMargin?.additionalLabourMargin || 0);\n      profitMarginModel.set('additionalLabourMargin', newValue);\n    }\n    get stagePaymentOption() {\n      return this.model.entity.belongsTo('stagePaymentOption').value();\n    }\n    async updateLogo(entityModel, event) {\n      try {\n        const [file] = event.target.files;\n        if (!file) return;\n        if (!this.ALLOWED_MIME_TYPES.includes(file.type)) {\n          this.notifications.info(this.intl.t('entity.settings.company.invalidLogoFormatPleaseUseJpegPngOrGif'));\n          return;\n        }\n        if (file.size > this.MAX_FILE_SIZE) {\n          this.notifications.info(this.intl.t('entity.settings.company.The selected logo file is too big'));\n          return;\n        }\n        entityModel.get('data').companyLogo = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n        const reader = new FileReader();\n        reader.onload = function (e) {\n          const previewImage = document.getElementById('image-preview');\n          if (previewImage) {\n            previewImage.src = e.target.result;\n            previewImage.style.display = 'block';\n          }\n        };\n        reader.readAsDataURL(file);\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.settings.company.somethingWentWrongWhileUploadingLogo'),\n          error\n        });\n      }\n    }\n    clearLogo(entityModel) {\n      entityModel.get('data').companyLogo = null;\n    }\n\n    // the two timesheet margins are mutually exclusive\n    onToggleTimesheetMargin(thisKey, otherKey) {\n      (0, _runloop.next)(() => {\n        if (this.invoiceBreakdownOptions.get(thisKey)) {\n          this.invoiceBreakdownOptions.set(otherKey, false);\n        }\n      });\n    }\n    get timesheetGroupingOptions() {\n      const options = [{\n        key: 'DAY',\n        name: this.intl.t('common.Day')\n      }, {\n        key: 'WORKER',\n        name: this.intl.t('common.Worker')\n      }];\n      if (this.invoiceBreakdownOptions.firstGroupBy !== 'TASK') options.push({\n        key: 'TASK',\n        name: this.intl.t('common.Task')\n      });\n      return options;\n    }\n    initInvoiceBreakdown() {\n      this.invoiceBreakdownOptions = (0, _emberChangeset.Changeset)(this.model.invoiceOptions.last.value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"chargebee\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"save\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openChargebee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openChargebee\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleAdditionalLabourMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleAdditionalLabourMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateLogo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateLogo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"clearLogo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearLogo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onToggleTimesheetMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onToggleTimesheetMargin\"), _class2.prototype), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceBreakdownOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"initInvoiceBreakdown\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initInvoiceBreakdown\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/contacts/contact\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/utils/search-term-escape\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _searchTermEscape) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/utils/search-term-escape\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"onChangeSyncWithAccountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingSupplier\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showAddAliasModal\", _descriptor0, this);\n      _initializerDefineProperty(this, \"aliasNameInput\", _descriptor1, this);\n      _defineProperty(this, \"paymentTermType\", [{\n        value: 'OFFOLLOWINGMONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYSAFTERBILLDATE',\n        label: this.intl.t('shared.contacts.day(s) after the bill date')\n      }, {\n        value: 'DAYSAFTERBILLMONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the bill month')\n      }, {\n        value: 'OFCURRENTMONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"salesPaymentTermType\", [{\n        value: 'OF_FOLLOWING_MONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('shared.contacts.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"updateSingleContact\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.updateContacts.perform(this.sessionData.entity, this.supplier);\n            yield this.store.findRecord('contact', this.supplier.id, {\n              reload: true\n            });\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.Something went wrong updating contact(s)')\n            });\n          }\n        }\n      }), null, \"updateSingleContact\", null));\n      _defineProperty(this, \"saveSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const isNew = this.supplier.isNew;\n            const supplier = yield changeset.save();\n            if (isNew) this.router.transitionTo('entity.settings.contacts.contact', supplier.id);\n            // Create a contact in accounting platform if we need to\n            if (!this.supplier.isContactLinkedToAccountingPlatform && this.onChangeSyncWithAccountingPlatform && this.accountingPlatform.isActive) {\n              yield this.accountingPlatform.createContact.perform(this.sessionData.entity, this.supplier);\n              yield this.store.findRecord('contact', supplier.id, {\n                reload: true\n              });\n            }\n            this.notifications.success(this.intl.t('entity.settings.contacts.contact.Successfully saved contact'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.contacts.contact.Something went wrong saving the contact')\n            });\n          }\n        }\n      }), null, \"saveSupplier\", null));\n      _defineProperty(this, \"addNewAlias\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const raw = this.aliasNameInput ?? '';\n          const aliasName = raw.trim();\n          if (!aliasName) {\n            this.notifications.error(this.intl.t('entity.settings.contacts.contact.Please enter an alias'));\n            return;\n          }\n          const results = yield this.store.query('contact', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'aliases',\n                op: 'CONTAINS_ILIKE',\n                value: `${(0, _searchTermEscape.searchTermEscape)(this.aliasNameInput)}`\n              }]\n            }\n          });\n          if (results?.toArray()?.length) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.contact.duplicateAliasLinkedToAnotherContact')\n            });\n            return;\n          }\n          try {\n            const changeset = this.model.supplierChangeset.last.value;\n            const currentAliases = changeset.get('aliases') || this.model.supplier.last.value?.aliases || [];\n            const isDuplicate = currentAliases.some(a => (a ?? '').trim().toLowerCase() === aliasName.toLowerCase());\n            if (isDuplicate) {\n              this.notifications.error({\n                message: this.intl.t('entity.settings.contacts.contact.Alias already exists')\n              });\n              return;\n            }\n            changeset.set('aliases', [...currentAliases, aliasName]);\n            this.showAddAliasModal = false;\n            this.aliasNameInput = null;\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.contacts.contact.Something went wrong saving the contact')\n            });\n          }\n        }\n      }), null, \"addNewAlias\", null));\n      _defineProperty(this, \"deleteSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.supplier.destroyRecord();\n            this.notifications.success(this.intl.t('entity.settings.contacts.contact.Successfully deleted contact'));\n            this.isDeletingSupplier = false;\n            this.router.transitionTo('entity.settings.contacts');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingContacts')\n            });\n          }\n        }\n      }), null, \"deleteSupplier\", null));\n    }\n    get aliasesTableData() {\n      const changeset = this.model.supplierChangeset.last.value;\n      const aliases = changeset?.get('aliases') || this.model.supplier.last.value?.aliases || [];\n      return aliases.map(alias => {\n        const userData = [{\n          colClass: 'text-left align-middle text-nowrap col-11',\n          value: alias\n        }, {\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-danger text-nowrap text-decoration-underline',\n          value: 'Remove',\n          onClickButton: this.removeAlias,\n          extraData: {\n            alias\n          }\n        }];\n        return {\n          rowData: userData\n        };\n      });\n    }\n    get aliasesTableHeader() {\n      return [];\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.settings.contacts',\n        pageTitle: this.intl.t('common.contacts')\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.supplier.isNew ? this.intl.t('entity.settings.contacts.contact.New contact') : this.model.supplier.last.value.name\n      }];\n      return paths;\n    }\n    get disableForm() {\n      return !this.canEditSupplier || this.saveSupplier.isRunning || this.deleteSupplier.isRunning || this.supplier.isContactLinkedToAccountingPlatform;\n    }\n    get canEditSupplier() {\n      return this.newFeatureFlags.includesFeatureFlags(this.sessionData.entity, 'canManageSuppliers');\n    }\n    get supplier() {\n      return this.model.supplier.last.value;\n    }\n    get isLoading() {\n      return this.model.supplier.isRunning || this.model.supplierChangeset.isRunning;\n    }\n    get deleteSupplierDisabledTitle() {\n      let title = null;\n      if (this.supplier.isContactLinkedToAccountingPlatform) {\n        title = this.intl.t('entity.settings.contacts.deleteLinkedToAccountingPlatform', {\n          label: this.accountingPlatform.label\n        });\n      } else if (this.supplier.isLinkedToResources) {\n        title = this.intl.t('entity.settings.contacts.deleteLinkedToResources');\n      }\n      return title;\n    }\n    async removeAlias(_row, col) {\n      const changeset = this.model.supplierChangeset.last.value;\n      const aliases = changeset.get('aliases') || this.model.supplier.last.value?.aliases || [];\n      const filteredAliases = aliases.filter(a => a !== col.extraData.alias);\n      changeset.set('aliases', filteredAliases);\n    }\n    closeAddAliasModal() {\n      this.showAddAliasModal = false;\n      this.aliasNameInput = null;\n    }\n    focusInput(element) {\n      element.focus();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"onChangeSyncWithAccountingPlatform\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.supplier.isNew ? true : false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingSupplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"showAddAliasModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"aliasNameInput\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeAlias\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAlias\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeAddAliasModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeAddAliasModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"focusInput\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"focusInput\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/contacts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"ember-concurrency\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _emberConcurrency, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedSupplierIds\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingSupplier\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isDeletingSuppliers\", _descriptor1, this);\n      _initializerDefineProperty(this, \"needDeleteXeroSuppliers\", _descriptor10, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor11, this);\n      _initializerDefineProperty(this, \"onMergeDuplicateSuppliers\", _descriptor12, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor13, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor14, this);\n      _initializerDefineProperty(this, \"duplicateSuppliers\", _descriptor15, this);\n      _initializerDefineProperty(this, \"mergeIndex\", _descriptor16, this);\n      _initializerDefineProperty(this, \"mergeOptions\", _descriptor17, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'searchString']);\n      _defineProperty(this, \"syncWithAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.accountingPlatform.isActive) yield this.updateContacts.perform();\n        }\n      }), null, \"syncWithAccountingPackage\", null));\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onCheckingDuplicateSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.duplicateSuppliers = yield this.buildaPrice.getDuplicateSuppliers({\n            entityId: this.sessionData.entity.id\n          });\n          this.mergeOptions = [...this.duplicateSuppliers];\n        }\n      }), null, \"onCheckingDuplicateSuppliers\", null));\n      _defineProperty(this, \"deleteSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const needDeleteSuppliers = this.suppliers.filter(s => this.selectedSupplierIds.has(s.id));\n            yield Promise.all(needDeleteSuppliers.map(supplier => supplier.destroyRecord()));\n            this.isDeletingSuppliers = false;\n            this.selectedSupplierIds = new Set();\n            this.needDeleteXeroSuppliers = [];\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingContacts'),\n              error\n            });\n          }\n          yield this.updateSupplierList.perform();\n        }\n      }), null, \"deleteSuppliers\", null));\n      _defineProperty(this, \"updateSupplierList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.suppliers.perform(this.model.pageSize, this.model.pageNumber, this.searchString);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileReloadSuppliers'),\n              error\n            });\n          }\n        }\n      }), null, \"updateSupplierList\", null));\n      _defineProperty(this, \"mergeDuplicatedSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.mergeDuplicateSuppliers(this.mergeOptions[0][0].actionData);\n            const cardDom = document.getElementsByClassName(`suppliers__duplicate-suppliers-card-0`)[0];\n            cardDom.classList.add('suppliers__duplicate-suppliers-list-fade-out');\n            yield (0, _emberConcurrency.timeout)(500);\n            this.mergeOptions = this.mergeOptions.slice(1);\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileMergingSupplier'),\n              error\n            });\n          }\n        }\n      }), null, \"mergeDuplicatedSupplier\", null));\n      _defineProperty(this, \"mergeAndUseDuplicatedSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (options, index) {\n          try {\n            const optionsIndex = this.mergeOptions.indexOf(options);\n            this.mergeIndex = optionsIndex;\n            const actionData = this.mergeOptions[optionsIndex][index].actionData;\n            yield this.buildaPrice.mergeDuplicateSuppliers(actionData);\n            const cardDom = document.getElementsByClassName(`suppliers__duplicate-suppliers-card-${optionsIndex}`)[0];\n            cardDom.classList.add('suppliers__duplicate-suppliers-list-fade-out');\n            yield (0, _emberConcurrency.timeout)(500);\n            this.mergeOptions.splice(optionsIndex, 1);\n            if (this.mergeOptions.length) {\n              this.mergeOptions = [...this.mergeOptions];\n            } else {\n              this.mergeOptions = [];\n            }\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileMergingAndUsingSupplier'),\n              error\n            });\n          }\n        }\n      }), null, \"mergeAndUseDuplicatedSupplier\", null));\n      _defineProperty(this, \"updateContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const changes = yield this.accountingPlatform.updateContacts.perform(this.sessionData.entity);\n            if (changes.updated.length) {\n              const updateIds = changes.updated;\n              this.suppliers.forEach(supplier => {\n                if (updateIds.includes(supplier.id)) {\n                  supplier.unloadRecord();\n                }\n              });\n            }\n            yield this.updateSupplierList.perform();\n            this.notifications.success(changes.created.length || changes.updated.length ? this.intl.t('entity.settings.contacts.importedXNewSuppliersAndUpdateX', {\n              created: changes.created.length || 0,\n              updated: changes.updated.length || 0\n            }) : this.intl.t('entity.settings.contacts.All suppliers were already up to date'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.Something went wrong updating contact(s)')\n            });\n          }\n        }\n      }), null, \"updateContacts\", null));\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.sessionData.entity, 'canManageSuppliers');\n    }\n    onChangePageIndex(pageNumber) {\n      this.pageNumber = pageNumber;\n      this.selectedSupplierIds = new Set();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get totalRecords() {\n      return this.model.suppliers.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    updateSearchTerm(value) {\n      this.selectedSupplierIds = new Set();\n      this.searchString = value.trim();\n      this.pageNumber = 1;\n    }\n    get suppliers() {\n      return this.model.suppliers.lastSuccessful.value.toArray() || [];\n    }\n    get selectableSuppliers() {\n      return this.paginationData.filter(supplier => !(supplier.isLinkedToActiveAccountingPlatform && this.accountingPlatform.isActive || supplier.isLinkedToResources));\n    }\n    get supplierTableHeader() {\n      if (this.model.suppliers.isRunning) return [];\n      const supplierHeader = [{\n        value: this.intl.t('common.Name'),\n        colClass: ' text-left'\n      }, {\n        value: 'Connection',\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('shared.contacts.Contact person'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('shared.contacts.Contact number'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Email'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Address'),\n        colClass: 'text-left'\n      }];\n      if (this.isEditable && this.suppliers.length) supplierHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectableSuppliers.length && this.selectedSupplierIds.size === this.selectableSuppliers.length),\n        isPartiallySelected: Boolean(this.selectableSuppliers.length && this.selectedSupplierIds.size && this.selectedSupplierIds.size !== this.selectableSuppliers.length),\n        onInputChange: this.onSelectAllSuppliers\n      });\n      return supplierHeader;\n    }\n    get isLoading() {\n      return this.model.suppliers.isRunning;\n    }\n    get paginationData() {\n      return this.model.suppliers.lastSuccessful.value?.toArray() || [];\n    }\n    get supplierTableData() {\n      if (this.model.suppliers.isRunning) return [];\n      return this.paginationData.map(supplier => {\n        const isLinkedToAccountingPlatform = supplier.isLinkedToActiveAccountingPlatform;\n        let selectionDisabledTitle = '';\n        if (isLinkedToAccountingPlatform) {\n          selectionDisabledTitle = this.intl.t('entity.settings.contacts.deleteLinkedToAccountingPlatform', {\n            label: this.accountingPlatform.label\n          });\n        } else if (supplier.isLinkedToResources) {\n          selectionDisabledTitle = this.intl.t('entity.settings.contacts.deleteLinkedToResources');\n        }\n        const supplierData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: supplier.name,\n          onClickButton: this.onClickSupplierName,\n          extraData: {\n            supplier\n          }\n        }, isLinkedToAccountingPlatform ? {\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: supplier.viewContactLabel,\n          onClickButton: this.onClickViewAccountingPlatform,\n          iconName: 'sync',\n          title: this.intl.t('entity.settings.contacts.thisSupplierIsSyncedWithYourAccountingPackage'),\n          extraData: {\n            supplier\n          }\n        } : {\n          colClass: 'text-left align-middle text-muted',\n          value: '&mdash;'\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactPerson ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactNumber ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactEmail ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.address ?? ' — '\n        }];\n        if (this.isEditable) {\n          supplierData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectedSupplierIds.has(supplier.id),\n            disabled: isLinkedToAccountingPlatform || supplier.isLinkedToResources ? true : false,\n            title: selectionDisabledTitle,\n            onInputChange: this.onSelectSupplier,\n            extraData: {\n              supplier\n            }\n          });\n        }\n        return {\n          rowData: supplierData\n        };\n      });\n    }\n    onDeletingSuppliers() {\n      this.needDeleteXeroSuppliers = this.suppliers.filter(s => this.selectedSupplierIds.has(s.id) && s.xeroContactId);\n      this.isDeletingSuppliers = true;\n    }\n    async onClickSupplierName(_row, col) {\n      this.router.transitionTo('entity.settings.contacts.contact', col.extraData.supplier.id);\n    }\n    onClickViewAccountingPlatform(_row, col) {\n      const contact = col.extraData?.supplier;\n      const url = contact?.viewContactUrl;\n      if (!url) return;\n      window.open(url, '_blank', 'noopener,noreferrer');\n    }\n    onSelectSupplier(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedSupplierIds.add(col.extraData.supplier.id);\n      } else {\n        this.selectedSupplierIds.delete(col.extraData.supplier.id);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedSupplierIds = this.selectedSupplierIds;\n    }\n    openMergeDuplicateSuppliersDialog() {\n      this.onMergeDuplicateSuppliers = true;\n      this.onCheckingDuplicateSuppliers.perform();\n    }\n    closeDuplicateSupplierModal() {\n      if (this.duplicateSuppliers.length !== this.mergeOptions.length) {\n        this.model.suppliers.perform(this.model.pageSize, this.model.pageNumber, this.searchString);\n      }\n      this.model.hasDuplicateSuppliers.perform();\n      this.onMergeDuplicateSuppliers = false;\n    }\n    goNewSupplier() {\n      this.router.transitionTo('entity.settings.contacts.contact', 'new');\n    }\n    onSelectAllSuppliers(_row, _col, e) {\n      if (e.target.checked) {\n        this.selectableSuppliers.forEach(supplier => {\n          this.selectedSupplierIds.add(supplier.id);\n        });\n      } else {\n        this.selectableSuppliers.forEach(supplier => {\n          this.selectedSupplierIds.delete(supplier.id);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedSupplierIds = this.selectedSupplierIds;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"selectedSupplierIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingSupplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"needDeleteXeroSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"onMergeDuplicateSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"duplicateSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"mergeIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"mergeOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateSearchTerm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateSearchTerm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDeletingSuppliers\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDeletingSuppliers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickSupplierName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickSupplierName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickViewAccountingPlatform\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickViewAccountingPlatform\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openMergeDuplicateSuppliersDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openMergeDuplicateSuppliersDialog\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDuplicateSupplierModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDuplicateSupplierModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"goNewSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goNewSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAllSuppliers\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAllSuppliers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/gl-accounts\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/settings/integrations\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/validators/ips-connection\", \"jquery\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _ipsConnection, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/validators/ips-connection\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor5, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor6, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor8, this);\n      _initializerDefineProperty(this, \"router\", _descriptor9, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor0, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor1, this);\n      _defineProperty(this, \"xeroValidationMap\", {});\n      _defineProperty(this, \"itmValidationMap\", {});\n      _defineProperty(this, \"defaultInvoiceStatusOptions\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'SUBMITTED',\n        label: this.intl.t('common.Awaiting approval')\n      }, {\n        value: 'AUTHORISED',\n        label: this.intl.t('entity.settings.integrations.Awaiting payment')\n      }]);\n      _defineProperty(this, \"defaultCreditNoteStatusOptions\", [{\n        value: 'SUBMITTED',\n        label: this.intl.t('common.Submitted')\n      }, {\n        value: 'AUTHORISED',\n        label: this.intl.t('entity.settings.integrations.Awaiting payment')\n      }]);\n      _defineProperty(this, \"defaultTimesheetStatusOptions\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'APPROVED',\n        label: this.intl.t('common.Approved')\n      }]);\n      _defineProperty(this, \"updateCompanyFeatures\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          changeSet.execute();\n          try {\n            yield this.setEntityFeatures(changeSet.data);\n            yield this.model.entity.reload();\n            yield this.model.entity.hasMany('attributes').ids();\n            yield this.store.simpleQuery('entity', {\n              _id: this.model.entity.id\n            });\n            this.notifications.success(this.intl.t('entity.settings.integrations.Successfully updated integration options'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingIntegrationOptions'),\n              error\n            });\n          }\n        }\n      }), null, \"updateCompanyFeatures\", null));\n      _defineProperty(this, \"saveIpsConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const isNew = changeset.isNew;\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n              return;\n            }\n            yield changeset.save();\n\n            // the connection is what makes IPS ready, so the meter needs fresh usage\n            yield this.ips.getUsage();\n            this.notifications.success(isNew ? this.intl.t('entity.settings.integrations.Successfully set up IPS') : this.intl.t('entity.settings.integrations.Successfully updated IPS contact email'));\n          } catch (error) {\n            this.notifications.error({\n              message: isNew ? this.intl.t('entity.settings.integrations.somethingWentWrongWhileSettingUpIPS') : this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingIPSContactEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"saveIpsConnection\", null));\n      _defineProperty(this, \"removeXeroCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.disconnect();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.Failed to disconnect Xero organisation'),\n              error\n            });\n          }\n        }\n      }), null, \"removeXeroCompany\", null));\n      _defineProperty(this, \"saveXeroConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            changeset.validate();\n            if (changeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n              return;\n            }\n            changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong while saving'),\n              error\n            });\n          }\n        }\n      }), null, \"saveXeroConnection\", null));\n      _initializerDefineProperty(this, \"selectedItmStores\", _descriptor10, this);\n      _defineProperty(this, \"setXeroCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.connect(); // this causes navigation away from the app\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.Failed to authenticate to Xero'),\n              error\n            });\n          }\n        }\n      }), null, \"setXeroCompany\", null));\n      _defineProperty(this, \"setQuickBooksCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.quickbooks.connect(); // this causes navigation away from the app\n          } catch (error) {\n            this.notifications.error({\n              message: 'failed to connect to quickbooks',\n              error\n            });\n          }\n        }\n      }), null, \"setQuickBooksCompany\", null));\n      _defineProperty(this, \"removeQuickBooksCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.quickbooks.disconnect();\n          } catch (error) {\n            this.notifications.error({\n              message: 'Failed to disconnect quickbooks',\n              error\n            });\n          }\n        }\n      }), null, \"removeQuickBooksCompany\", null));\n      _defineProperty(this, \"requestItmStores\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const token = this.session.data.authenticated.access_token;\n          const payload = {\n            entity: this.sessionData.entity.id,\n            stores: this.selectedItmStores.map(store => store.id)\n          };\n          if (payload.stores.length < 1) {\n            return this.notifications.warning({\n              message: this.intl.t('entity.settings.integrations.pleaseSelectEntitiesForTheRequest')\n            });\n          }\n          this.selectedItmStores = [];\n          try {\n            yield requestIntegrationAjax(token, payload);\n            yield this.store.simpleQuery('entity', {\n              _id: this.sessionData.entity.id\n            }, {\n              include: 'eaccountsInvoiceIntegration'\n            });\n            yield this.model.itmSuppliers.perform();\n            this.notifications.success(this.intl.t('entity.settings.integrations.Successfully made integration request'));\n          } catch (err) {\n            if (err.statusText === 'Bad Request') this.notifications.warning(this.intl.t('entity.settings.integrations.pleaseEnsureYouHaveCompletedTheForm'));else this.send('error', err);\n          }\n        }\n      }), null, \"requestItmStores\", null));\n      _defineProperty(this, \"updatePlaceMakersIntegration\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (enabled) {\n          try {\n            yield this.setEntityFeatures({\n              canUsePlaceMakers: enabled\n            });\n            yield this.store.simpleQuery('entity', {\n              _id: this.model.entity.id\n            });\n            if (enabled) {\n              this.notifications.success(this.intl.t('entity.settings.integrations.successfullyEnabledPlaceMakersIntegration'));\n            } else {\n              this.notifications.success(this.intl.t('entity.settings.integrations.successfullyDisabledPlaceMakersIntegration'));\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingPlaceMakersIntegration'),\n              error\n            });\n          }\n        }\n      }), null, \"updatePlaceMakersIntegration\", null));\n    }\n    get xeroCompanyId() {\n      return this.xeroIntegration.companyId;\n    }\n    get xeroCompanyName() {\n      return this.xeroIntegration.companyName;\n    }\n    get shortCode() {\n      return this.xeroCompanyId;\n    }\n    get allowedXeroIntegration() {\n      return this.xeroIntegration.ready;\n    }\n    get quickbooksUrl() {\n      return _environment.default.urls.quickbooksUrl;\n    }\n    get xeroConnection() {\n      return this.xeroIntegration.connection;\n    }\n    get ipsConnectionValidator() {\n      return (0, _ipsConnection.default)(this.intl);\n    }\n    async setEntityFeatures(features) {\n      const entity = this.model.entity;\n      const links = entity.hasMany('attributes').value() || [];\n      await Promise.all(Object.entries(features).map(async ([key, enabled]) => {\n        const link = links.find(item => item.belongsTo('attribute').id() === key);\n        if (!enabled) return link?.destroyRecord();\n        if (link) return;\n        const attribute = await this.store.findRecord('entity-attribute', key);\n        return this.store.createRecord('link-entity-to-entity-attribute', {\n          entity,\n          attribute\n        }).save();\n      }));\n    }\n    get eaccountsInvoiceIntegration() {\n      // TODO when this relationships is fixed this will be one record\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n\n      const eaccountsInvoiceIntegration = this.sessionData.entity.hasMany('eaccountsInvoiceIntegration').value() || [];\n      if (eaccountsInvoiceIntegration[0]) return eaccountsInvoiceIntegration[0];\n\n      // if you don't have one already, return a fake one\n      return {\n        allowed: true,\n        requests: [],\n        entity: this.sessionData.entity\n      };\n    }\n    get requestableItmStores() {\n      return this.model.itmSuppliers.last.value;\n    }\n    get requestedItmStores() {\n      return this.eaccountsInvoiceIntegration.requests;\n    }\n    addItmStoreRequest(stores) {\n      this.selectedItmStores = stores;\n    }\n    contactSupport() {\n      const helpCenter = this.helpCenter;\n      if (helpCenter?.helpCenterActive) {\n        helpCenter.openHelpCenter();\n      }\n    }\n    cancelItmStoreRequest(store) {\n      this.eaccountsInvoiceIntegration.requests = this.eaccountsInvoiceIntegration.requests.map(request => {\n        if (request.supplier !== store.supplier) return request;\n        return {\n          ...request,\n          status: 'Canceled'\n        };\n      });\n      this.eaccountsInvoiceIntegration.save();\n    }\n    reconnectITmStoreRequest(store) {\n      this.eaccountsInvoiceIntegration.requests = this.eaccountsInvoiceIntegration.requests.map(request => {\n        if (request.supplier !== store.supplier) return request;\n        return {\n          ...request,\n          status: 'Pending'\n        };\n      });\n      this.eaccountsInvoiceIntegration.save();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"selectedItmStores\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"addItmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addItmStoreRequest\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"contactSupport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"contactSupport\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"cancelItmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"cancelItmStoreRequest\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"reconnectITmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"reconnectITmStoreRequest\"), _class2.prototype), _class2);\n  function requestIntegrationAjax(token, payload) {\n    return new Promise((resolve, reject) => {\n      // eslint-disable-next-line ember/no-jquery\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/eaccounts/setup-invoice-imports',\n        data: JSON.stringify(payload),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.settings.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseClientPortal')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.settings.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.settings.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.settings.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/settings/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const wasNew = Boolean(this.user.isNew);\n\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n            this.router.transitionTo(`${this.model.basePath}.clients.client`, response.newUserId);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong saving the user'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.settings.people.clients.client.areYouSureYouWantToDeleteThisClient'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted someone else, go back to the clients index to reload the clients list\n            this.router.transitionTo(`${this.model.basePath}.clients.index`);\n            this.notifications.success(this.intl.t('entity.settings.people.clients.client.Successfully deleted user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong deleting the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.clients.client.New client') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token) {\n    const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price-client';\n    return new _rsvp.default.Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/clients/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.{basePath,clients.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.clients.isRunning;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value?.filter(client => {\n        const matchString = `${client.firstName}${client.lastName}${client.email}${client.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/subcontractors/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.{basePath,subcontractors.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.subcontractors.isRunning;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _tracking, _object, _subcontractor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_settingsPermissionsVisible\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor11, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const wasNew = Boolean(this.user.isNew);\n\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors.subcontractor`, response.newUserId);\n            this.notifications.success(this.intl.t('entity.settings.people.subcontractors.subcontractor.Successfully saved subcontractor'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.subcontractors.subcontractor.somethingWentWrongSavingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.userIsYou ? this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('entity.settings.people.subcontractors.subcontractor.areYouSureYouWantToDeleteThisSubcontractor'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted yourself, go back to index to refresh permissions and entities\n            if (this.userIsYou) this.router.transitionTo('index');else {\n              // if you have deleted someone else, go back to the users index to reload the users list\n              this.router.transitionTo(`${this.model.basePath}.subcontractors.index`);\n              this.notifications.success('Successfully deleted subcontractor');\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.userIsYou ? this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('entity.settings.people.subcontractors.subcontractor.somethingWentWrongDeletingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const entityAttributesToAdd = [];\n            const entityAttributesToRemove = [];\n            const workersToAdd = [];\n            if (changeset.isCompanyAdministrator) {\n              entityAttributesToAdd.push(..._subcontractor.administratorAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.administratorAttributes);\n            }\n            if (changeset.canManageEverything) {\n              entityAttributesToAdd.push(..._subcontractor.managerAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.managerAttributes);\n            }\n            if (changeset.canViewBills) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBillsAttributes);\n            }\n            if (changeset.canManageBills) {\n              entityAttributesToAdd.push(..._subcontractor.canManageBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageBillsAttributes);\n            }\n            if (changeset.canViewTimesheets) {\n              entityAttributesToAdd.push(..._subcontractor.canViewTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewTimesheetsAttributes);\n            }\n            if (changeset.canManageTimesheets) {\n              entityAttributesToAdd.push(..._subcontractor.canManageTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageTimesheetsAttributes);\n            }\n            if (changeset.canViewProjects) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProjectsAttributes);\n            }\n            if (changeset.canManageProjects) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProjectsAttributes);\n            }\n            if (changeset.canViewTasks) {\n              entityAttributesToAdd.push(..._subcontractor.canViewTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewTasksAttributes);\n            }\n            if (changeset.canManageTasks) {\n              entityAttributesToAdd.push(..._subcontractor.canManageTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageTasksAttributes);\n            }\n            if (changeset.canViewBudgets) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetsAttributes);\n            }\n            if (changeset.canManageBudgets) {\n              entityAttributesToAdd.push(..._subcontractor.canManageBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageBudgetsAttributes);\n            }\n            if (changeset.canViewProgress) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProgressAttributes);\n            }\n            if (changeset.canManageProgress) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProgressAttributes);\n            }\n            if (changeset.canViewQuotes) {\n              entityAttributesToAdd.push(..._subcontractor.canViewQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewQuotesAttributes);\n            }\n            if (changeset.canManageQuotes) {\n              entityAttributesToAdd.push(..._subcontractor.canManageQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageQuotesAttributes);\n            }\n            if (changeset.canViewProducts) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProductsAttributes);\n            }\n            if (changeset.canManageProducts) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProductsAttributes);\n            }\n            if (changeset.canViewFileStorage) {\n              entityAttributesToAdd.push(..._subcontractor.canViewFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewFileStorageAttributes);\n            }\n            if (changeset.canManageFileStorage) {\n              entityAttributesToAdd.push(..._subcontractor.canManageFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageFileStorageAttributes);\n            }\n            if (changeset.canManageWorkers) {\n              entityAttributesToAdd.push(..._subcontractor.canManageWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageWorkersAttributes);\n            }\n            if (changeset.canViewWorkers) {\n              entityAttributesToAdd.push(..._subcontractor.canViewWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewWorkersAttributes);\n            }\n            if (changeset.canViewPayrollReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewPayrollReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewPayrollReportsAttributes);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetReportsAttributes);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetLabourHourReportsAttributes);\n            }\n            if (changeset.canViewQuoteReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewQuoteReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewQuoteReportsAttributes);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewCostReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewCostReportsAttributes);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewCostLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewCostLabourHourReportsAttributes);\n            }\n            if (changeset.canViewChargeupReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewChargeupReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewChargeupReportsAttributes);\n            }\n            if (changeset.canViewProgressReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProgressReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProgressReportsAttributes);\n            }\n            if (changeset.canEstimate) {\n              entityAttributesToAdd.push(..._subcontractor.canManageEstimatesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageEstimatesAttributes);\n            }\n            if (changeset.canManageEstimateSettings) {\n              entityAttributesToAdd.push(..._subcontractor.canManageEstimateSettingsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageEstimateSettingsAttributes);\n            }\n            if (changeset.canViewSchedulingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewSchedulingReportsAttributes);\n            }\n            if (changeset.canManageSchedulingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canManageSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageSchedulingReportsAttributes);\n            }\n            if (changeset.canUseReportBuilderReport) {\n              entityAttributesToAdd.push(..._subcontractor.canUseReportBuilderReportAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canUseReportBuilderReportAttributes);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              entityAttributesToAdd.push(..._subcontractor.canCreateHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canCreateHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              entityAttributesToAdd.push(..._subcontractor.canManageHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageIntegrations) {\n              entityAttributesToAdd.push(..._subcontractor.canManageIntegrationsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageIntegrationsAttributes);\n            }\n            if (changeset.canViewInvoicingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewInvoicingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewInvoicingReportsAttributes);\n            }\n\n            // workers are set every time\n            workersToAdd.push(...changeset.workers);\n            yield Promise.all([this.handleEntityAttributes([...new Set(entityAttributesToAdd)], [...new Set(entityAttributesToRemove)]), this.handleWorkers([...new Set(workersToAdd)])]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.intl.t('common.Subcontractors')\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.subcontractors.subcontractor.New subcontractor') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning || this.model.permissionsChangeset.isRunning || this.model.workers.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports'],\n        [this.intl.t('common.Chargeup')]: ['canViewChargeupReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Costs')]: ['canViewCostFinancialReports', 'canViewBills', 'canViewTimesheets'],\n        [this.intl.t('shared.report.Forecast breakdown')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Labour hours')]: ['canViewBudgetLabourHourReports', 'canViewCostLabourHourReports', 'canViewProgressReports'],\n        [this.intl.t('common.Position')]: ['canViewBudgetFinancialReports', 'canViewBudgetLabourHourReports', 'canViewCostFinancialReports', 'canViewCostLabourHourReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('shared.report.Work in progress')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Invoicing')]: ['canViewInvoicingReports'],\n        [this.intl.t('common.Cost to complete')]: ['canViewQuoteReports', 'canViewProgressReports', 'canViewChargeupReports', 'canViewInvoicingReports']\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => this.permissionsChangeset[p]));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canEstimate, this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimateSettings, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewProjects, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports, this.permissionsChangeset.canManageSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      const workerCount = this.model.workers.last.value.toArray().filter(w => this.model.user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets')).length;\n      const permissionCount = [this.permissionsChangeset.canManageBills, this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canManageNotes, this.permissionsChangeset.canViewBills, this.permissionsChangeset.canViewTimesheets, this.permissionsChangeset.canViewNotes].filter(attribute => attribute).length;\n      return permissionCount + workerCount;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canUseReportBuilderReport, this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewPayrollReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get settingsPermissionsCount() {\n      return [this.permissionsChangeset.canViewWorkers].filter(attribute => attribute).length;\n    }\n    get settingsPermissionsVisible() {\n      if (this._settingsPermissionsVisible != null) return this._settingsPermissionsVisible;\n      return this.settingsPermissionsCount > 0;\n    }\n    set settingsPermissionsVisible(value) {\n      this._settingsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get userIsYou() {\n      return this.user === this.sessionData.user;\n    }\n    get canEditUser() {\n      return this.user.isNew || this.userIsYou;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    get canManageUserPermissions() {\n      return !this.userIsYou && this.newFeatureFlags.includesFeatureFlags('canManageUsers');\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('user-entity-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-entity-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkers(workersToAdd) {\n      const existingWorkerAttributes = await this.store.simpleQuery('user-worker-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n\n      // remove all the old worker attributes\n      await Promise.all(existingWorkerAttributes.map(pa => pa.destroyRecord()));\n      if (workersToAdd.length) {\n        // setup the new workers\n        const [canManageTimesheets, canManageNotes] = await Promise.all([this.store.findRecord('user-attribute', 'canManageTimesheets'), this.store.findRecord('user-attribute', 'canManageNotes')]);\n\n        // create the relationship\n        await Promise.all(workersToAdd.map(worker => Promise.all([this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageTimesheets,\n          worker\n        }).save(), this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageNotes,\n          worker\n        }).save()])));\n      }\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_settingsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token) {\n    const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price-subcontractor';\n    return new _rsvp.default.Promise((resolve, reject) => {\n      // eslint-disable-next-line ember/no-jquery\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/users/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _controller, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.{basePath,users.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUser\", _descriptor7, this);\n    }\n    get isLoading() {\n      return this.model.users.isRunning || this.model.workers.isRunning;\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUser\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@ember/object\", \"@glimmer/tracking\", \"portal/routes/entity/settings/people/users/user\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _object, _tracking, _user) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/settings/people/users/user\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_settingsPermissionsVisible\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_financialReportingPermissionsVisible\", _descriptor12, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n\n            // you can only modify your own user\n            if (this.userIsYou) {\n              this.user.firstName = changeset.firstName;\n              this.user.lastName = changeset.lastName;\n              this.user.email = changeset.email;\n              this.user.phoneNumber = changeset.phoneNumber;\n              yield this.user.save();\n              return;\n            }\n            const wasNew = Boolean(this.user.isNew);\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            let userId;\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token, this.newFeatureFlags.canUseBuildaPrice, this.newFeatureFlags.canUseFinancialReporting);\n            userId = response.newUserId;\n            this.router.transitionTo(`${this.model.basePath}.users.user`, userId);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong saving the user'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.userIsYou ? this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('entity.settings.people.users.user.areYouSureYouWantToDeleteThisUser'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted yourself, go back to index to refresh permissions and entities\n            if (this.userIsYou) this.router.transitionTo('index');else {\n              // if you have deleted someone else, go back to the users index to reload the users list\n              this.router.transitionTo(`${this.model.basePath}.users.index`);\n              this.notifications.success('Successfully deleted user');\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.userIsYou ? this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('shared.notification.Something went wrong deleting the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const entityAttributesToAdd = [];\n            const entityAttributesToRemove = [];\n            const workersToAdd = [];\n            if (changeset.isCompanyAdministrator) {\n              entityAttributesToAdd.push(..._user.administratorAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.administratorAttributes);\n            }\n            if (changeset.canManageEverything) {\n              entityAttributesToAdd.push(..._user.managerAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.managerAttributes);\n            }\n            if (changeset.canViewBills) {\n              entityAttributesToAdd.push(..._user.canViewBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBillsAttributes);\n            }\n            if (changeset.canManageBills) {\n              entityAttributesToAdd.push(..._user.canManageBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageBillsAttributes);\n            }\n            if (changeset.canViewInvoices) {\n              entityAttributesToAdd.push(..._user.canViewInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewInvoicesAttributes);\n            }\n            if (changeset.canManageInvoices) {\n              entityAttributesToAdd.push(..._user.canManageInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageInvoicesAttributes);\n            }\n            if (changeset.canApproveInvoices) {\n              entityAttributesToAdd.push(..._user.canApproveInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canApproveInvoicesAttributes);\n            }\n            if (changeset.canViewPurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canViewPurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewPurchaseOrdersAttributes);\n            }\n            if (changeset.canManagePurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canManagePurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManagePurchaseOrdersAttributes);\n            }\n            if (changeset.canViewStagePayments) {\n              entityAttributesToAdd.push(..._user.canViewStagePaymentsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewStagePaymentsAttributes);\n            }\n            if (changeset.canManageStagePayments) {\n              entityAttributesToAdd.push(..._user.canManageStagePaymentsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageStagePaymentsAttributes);\n            }\n            if (changeset.canApprovePurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canApprovePurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canApprovePurchaseOrdersAttributes);\n            }\n            if (changeset.canViewTimesheets) {\n              entityAttributesToAdd.push(..._user.canViewTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewTimesheetsAttributes);\n            }\n            if (changeset.canManageTimesheets) {\n              entityAttributesToAdd.push(..._user.canManageTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageTimesheetsAttributes);\n            }\n            if (changeset.canViewProjects) {\n              entityAttributesToAdd.push(..._user.canViewProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProjectsAttributes);\n            }\n            if (changeset.canManageProjects) {\n              entityAttributesToAdd.push(..._user.canManageProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProjectsAttributes);\n            }\n            if (changeset.canViewTasks) {\n              entityAttributesToAdd.push(..._user.canViewTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewTasksAttributes);\n            }\n            if (changeset.canManageTasks) {\n              entityAttributesToAdd.push(..._user.canManageTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageTasksAttributes);\n            }\n            if (changeset.canViewBudgets) {\n              entityAttributesToAdd.push(..._user.canViewBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetsAttributes);\n            }\n            if (changeset.canManageBudgets) {\n              entityAttributesToAdd.push(..._user.canManageBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageBudgetsAttributes);\n            }\n            if (changeset.canViewQuotes) {\n              entityAttributesToAdd.push(..._user.canViewQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewQuotesAttributes);\n            }\n            if (changeset.canViewProgress) {\n              entityAttributesToAdd.push(..._user.canViewProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProgressAttributes);\n            }\n            if (changeset.canManageProgress) {\n              entityAttributesToAdd.push(..._user.canManageProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProgressAttributes);\n            }\n            if (changeset.canManageQuotes) {\n              entityAttributesToAdd.push(..._user.canManageQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageQuotesAttributes);\n            }\n            if (changeset.canViewProducts) {\n              entityAttributesToAdd.push(..._user.canViewProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProductsAttributes);\n            }\n            if (changeset.canManageProducts) {\n              entityAttributesToAdd.push(..._user.canManageProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProductsAttributes);\n            }\n            if (changeset.canViewFileStorage) {\n              entityAttributesToAdd.push(..._user.canViewFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewFileStorageAttributes);\n            }\n            if (changeset.canManageFileStorage) {\n              entityAttributesToAdd.push(..._user.canManageFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageFileStorageAttributes);\n            }\n            if (changeset.canManageWorkers) {\n              entityAttributesToAdd.push(..._user.canManageWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageWorkersAttributes);\n            }\n            if (changeset.canViewWorkers) {\n              entityAttributesToAdd.push(..._user.canViewWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewWorkersAttributes);\n            }\n            if (changeset.canViewPayrollReports) {\n              entityAttributesToAdd.push(..._user.canViewPayrollReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewPayrollReportsAttributes);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              entityAttributesToAdd.push(..._user.canViewBudgetReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetReportsAttributes);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              entityAttributesToAdd.push(..._user.canViewBudgetLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetLabourHourReportsAttributes);\n            }\n            if (changeset.canViewQuoteReports) {\n              entityAttributesToAdd.push(..._user.canViewQuoteReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewQuoteReportsAttributes);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              entityAttributesToAdd.push(..._user.canViewCostReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewCostReportsAttributes);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              entityAttributesToAdd.push(..._user.canViewCostLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewCostLabourHourReportsAttributes);\n            }\n            if (changeset.canViewChargeupReports) {\n              entityAttributesToAdd.push(..._user.canViewChargeupReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewChargeupReportsAttributes);\n            }\n            if (changeset.canViewProgressReports) {\n              entityAttributesToAdd.push(..._user.canViewProgressReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProgressReportsAttributes);\n            }\n            if (changeset.canViewAccessReports) {\n              entityAttributesToAdd.push(..._user.canViewAccessReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewAccessReportsAttributes);\n            }\n            if (changeset.canEstimate) {\n              entityAttributesToAdd.push(..._user.canManageEstimatesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageEstimatesAttributes);\n            }\n            if (changeset.canManageEstimateSettings) {\n              entityAttributesToAdd.push(..._user.canManageEstimateSettingsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageEstimateSettingsAttributes);\n            }\n            if (changeset.canViewSchedulingReports) {\n              entityAttributesToAdd.push(..._user.canViewSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewSchedulingReportsAttributes);\n            }\n            if (changeset.canManageSchedulingReports) {\n              entityAttributesToAdd.push(..._user.canManageSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageSchedulingReportsAttributes);\n            }\n            if (changeset.canUseReportBuilderReport) {\n              entityAttributesToAdd.push(..._user.canUseReportBuilderReportAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canUseReportBuilderReportAttributes);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              entityAttributesToAdd.push(..._user.canCreateHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canCreateHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              entityAttributesToAdd.push(..._user.canManageHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageIntegrations) {\n              entityAttributesToAdd.push(..._user.canManageIntegrationsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageIntegrationsAttributes);\n            }\n            if (changeset.canViewUsers) {\n              entityAttributesToAdd.push(..._user.canViewUsersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewUsersAttributes);\n            }\n            if (changeset.canManageUsers) {\n              entityAttributesToAdd.push(..._user.canManageUsersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageUsersAttributes);\n            }\n            if (changeset.canViewFinancialReporting) {\n              entityAttributesToAdd.push(..._user.canViewFinancialReportingAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewFinancialReportingAttributes);\n            }\n            if (changeset.canManageFinancialReporting) {\n              entityAttributesToAdd.push(..._user.canManageFinancialReportingAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageFinancialReportingAttributes);\n            }\n            if (changeset.canViewInvoicingReports) {\n              entityAttributesToAdd.push(..._user.canViewInvoicingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewInvoicingReportsAttributes);\n            }\n\n            // workers are set every time\n            workersToAdd.push(...changeset.workers);\n            yield Promise.all([this.handleEntityAttributes([...new Set(entityAttributesToAdd)], [...new Set(entityAttributesToRemove)]), this.handleWorkers([...new Set(workersToAdd)])]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token, this.newFeatureFlags.canUseBuildaPrice, this.newFeatureFlags.canUseFinancialReporting);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get permissionsDescription() {\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBuildaPrice')) {\n        return this.intl.t('shared.people-editor.userPermissionsExplanation');\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseFinancialReporting')) {\n        return this.intl.t('entity.settings.people.users.user.userPermissionsAreRulesThatSayWhatAUserCanAndCannotDoInTheSystem');\n      }\n      return false;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.users.user.New user') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning || this.model.permissionsChangeset.isRunning || this.model.workers.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports'],\n        [this.intl.t('common.Chargeup')]: ['canViewChargeupReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Costs')]: ['canViewCostFinancialReports', 'canViewBills', 'canViewTimesheets'],\n        [this.intl.t('shared.report.Forecast breakdown')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Labour hours')]: ['canViewBudgetLabourHourReports', 'canViewCostLabourHourReports', 'canViewProgressReports'],\n        [this.intl.t('common.Position')]: ['canViewBudgetFinancialReports', 'canViewBudgetLabourHourReports', 'canViewCostFinancialReports', 'canViewCostLabourHourReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('shared.report.Work in progress')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Invoicing')]: ['canViewInvoicingReports'],\n        [this.intl.t('common.Cost to complete')]: ['canViewQuoteReports', 'canViewProgressReports', 'canViewChargeupReports', 'canViewInvoicingReports'],\n        ['Access']: ['canViewAccessReports']\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => this.permissionsChangeset[p]));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canEstimate, this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimateSettings, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewProjects, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports, this.permissionsChangeset.canManageSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      const workerCount = this.model.workers.last.value.toArray().filter(w => this.model.user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets')).length;\n      const permissionCount = [this.permissionsChangeset.canManageBills, this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canManageNotes, this.permissionsChangeset.canViewBills, this.permissionsChangeset.canViewTimesheets, this.permissionsChangeset.canViewNotes, this.permissionsChangeset.canViewInvoices, this.permissionsChangeset.canManageInvoices, this.permissionsChangeset.canApproveInvoices, this.permissionsChangeset.canViewPurchaseOrders, this.permissionsChangeset.canManagePurchaseOrders, this.permissionsChangeset.canApprovePurchaseOrders, this.permissionsChangeset.canViewStagePayments, this.permissionsChangeset.canManageStagePayments].filter(attribute => attribute).length;\n      return permissionCount + workerCount;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canUseReportBuilderReport, this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewPayrollReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewAccessReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get settingsPermissionsCount() {\n      return [this.permissionsChangeset.canManageWorkers, this.permissionsChangeset.canViewWorkers, this.permissionsChangeset.canManageIntegrations, this.permissionsChangeset.canViewUsers, this.permissionsChangeset.canManageUsers].filter(attribute => attribute).length;\n    }\n    get settingsPermissionsVisible() {\n      if (this._settingsPermissionsVisible != null) return this._settingsPermissionsVisible;\n      return this.settingsPermissionsCount > 0;\n    }\n    set settingsPermissionsVisible(value) {\n      this._settingsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get financialReportingPermissionsCount() {\n      return [this.permissionsChangeset.canViewFinancialReporting, this.permissionsChangeset.canManageFinancialReporting].filter(attribute => attribute).length;\n    }\n    get financialReportingPermissionsVisible() {\n      if (this._financialReportingPermissionsVisible != null) return this._financialReportingPermissionsVisible;\n      return this.financialReportingPermissionsCount > 0;\n    }\n    set financialReportingPermissionsVisible(value) {\n      this._financialReportingPermissionsVisible = value;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get userIsYou() {\n      return this.user === this.sessionData.user;\n    }\n    get canEditUser() {\n      return this.user.isNew || this.userIsYou;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    get canManageUserPermissions() {\n      return !this.userIsYou && this.newFeatureFlags.includesFeatureFlags('canManageUsers');\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('user-entity-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-entity-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkers(workersToAdd) {\n      const existingWorkerAttributes = await this.store.simpleQuery('user-worker-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n\n      // remove all the old worker attributes\n      await Promise.all(existingWorkerAttributes.map(pa => pa.destroyRecord()));\n      if (workersToAdd.length) {\n        // setup the new workers\n        const [canManageTimesheets, canManageNotes] = await Promise.all([this.store.findRecord('user-attribute', 'canManageTimesheets'), this.store.findRecord('user-attribute', 'canManageNotes')]);\n\n        // create the relationship\n        await Promise.all(workersToAdd.map(worker => Promise.all([this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageTimesheets,\n          worker\n        }).save(), this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageNotes,\n          worker\n        }).save()])));\n      }\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_settingsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"_financialReportingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token, canUseBuildaPrice, canUseFinancialReporting) {\n    // TODO it would be good if we could refactor this to be generic or do it server side\n    let url;\n    if (canUseBuildaPrice) url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price';else if (canUseFinancialReporting) url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/financials';else throw new Error('No module available');\n    return new _rsvp.default.Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.{basePath,workers.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"disabledWorkersVisible\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"session\", _descriptor6, this);\n      _defineProperty(this, \"queryParams\", ['filter']);\n      _defineProperty(this, \"copyAuthCode\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          // we don't have a code to copy\n          if (!worker.authCode) return;\n          navigator.clipboard.writeText(worker.authCode);\n          // wait one second to show the \"copied\" pop up\n          yield new Promise(resolve => setTimeout(resolve, 750));\n        }\n      }), null, \"copyAuthCode\", null));\n    }\n    get isLoading() {\n      return this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"disabledWorkersVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"jquery\", \"portal/config/environment\", \"@ember/service\", \"portal/routes/entity/settings/people/workers/worker\", \"@ember/object\", \"ember-changeset\", \"@glimmer/tracking\", \"moment\", \"portal/utils/profit-margin\", \"portal/utils/get-default-language\"], function (_exports, _asyncArrowRuntime, _controller, _jquery, _environment, _service, _worker, _object, _emberChangeset, _tracking, _moment, _profitMargin, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"portal/routes/entity/settings/people/workers/worker\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"moment\",0,\"portal/utils/profit-margin\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}', 'worker.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor9, this);\n      _initializerDefineProperty(this, \"backdateChargeOutRateChangeSet\", _descriptor0, this);\n      _initializerDefineProperty(this, \"backdateCostRateChangeSet\", _descriptor1, this);\n      _defineProperty(this, \"languages\", _getDefaultLanguage.languages);\n      _defineProperty(this, \"saveWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (workerChangeset) {\n          try {\n            yield workerChangeset.validate();\n            if (!workerChangeset.isValid) return;\n            const wasNew = Boolean(this.worker.isNew);\n            yield workerChangeset.save();\n\n            // let workers see everything by default\n            if (wasNew) yield this.handleEntityAttributes(_worker.workerAttributes, []);\n            if (wasNew) {\n              yield this.store.simpleQuery('worker', {\n                entity: this.sessionData.entity.id\n              });\n              this.router.transitionTo(`${this.model.basePath}.workers.worker`, this.worker.id);\n            }\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong saving the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"saveWorker\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (permissionChangeset) {\n          try {\n            yield permissionChangeset.validate();\n            if (!permissionChangeset.isValid) return;\n\n            // if you can see all he projects\n            if (permissionChangeset.get('canSeeProjectsAndTasks')) yield this.handleEntityAttributes(_worker.workerAttributes, []);else yield this.handleEntityAttributes([], _worker.workerAttributes);\n            if (permissionChangeset.get('canCreateHealthAndSafety')) yield this.handleEntityAttributes(_worker.workerHealthAndSafetyAttributes, []);else yield this.handleEntityAttributes([], _worker.workerHealthAndSafetyAttributes);\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong saving the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const confirmMessage = this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.areYouSureYouWantToDeleteTheWorker') : this.intl.t('entity.settings.people.workers.worker.areYouSureYouWantToDisableTheWorker');\n            if (!confirm(confirmMessage)) return;\n            if (this.canDeleteWorker) {\n              yield this.worker.destroyRecord();\n            } else {\n              this.worker.isActive = false;\n              yield this.handleEntityAttributes([], [..._worker.workerAttributes, ..._worker.workerHealthAndSafetyAttributes]);\n              yield this.worker.save();\n            }\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.Successfully deleted worker') : this.intl.t('entity.settings.people.workers.worker.Successfully disabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.Something went wrong deleting the worker') : this.intl.t('entity.settings.people.workers.worker.somethingWentWrongDisablingTheWorker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n      _defineProperty(this, \"enableWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.worker.isActive = true;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n            yield this.worker.save();\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully enabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong enabling the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"enableWorker\", null));\n      _defineProperty(this, \"validateChargeOutRateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue ?? oldValue;\n        if (key === 'startDate' && this.backdateChargeOutRateChangeSet.endDate && value) {\n          if (Date.parse(value) > Date.parse(this.backdateChargeOutRateChangeSet.endDate)) {\n            return this.intl.t('validation.startDateShouldBeBeforeEndDate');\n          }\n        }\n        if (key === 'endDate' && this.backdateChargeOutRateChangeSet.startDate && value) {\n          if (Date.parse(value) < Date.parse(this.backdateChargeOutRateChangeSet.startDate)) {\n            return this.intl.t('validation.endDateShouldBeAfterStartDate');\n          }\n        }\n        if (key === 'chargeOutRate') {\n          return value >= 0 || this.intl.t('validation.chargeOutRate');\n        }\n        return true;\n      });\n      _defineProperty(this, \"validateCostRateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue ?? oldValue;\n        if (key === 'startDate' && this.backdateCostRateChangeSet.endDate && value) {\n          if (Date.parse(value) > Date.parse(this.backdateCostRateChangeSet.endDate)) {\n            return this.intl.t('validation.startDateShouldBeBeforeEndDate');\n          }\n        }\n        if (key === 'endDate' && this.backdateCostRateChangeSet.startDate && value) {\n          if (Date.parse(value) < Date.parse(this.backdateCostRateChangeSet.startDate)) {\n            return this.intl.t('validation.endDateShouldBeAfterStartDate');\n          }\n        }\n        if (key === 'costRate') {\n          return value >= 0 || this.intl.t('validation.costRate');\n        }\n        return true;\n      });\n      _defineProperty(this, \"backdateChargeOutRateMap\", {\n        startDate: this.validateChargeOutRateContent,\n        endDate: this.validateChargeOutRateContent,\n        chargeOutRate: this.validateChargeOutRateContent\n      });\n      _defineProperty(this, \"backdateCostRateMap\", {\n        startDate: this.validateCostRateContent,\n        endDate: this.validateCostRateContent,\n        costRate: this.validateCostRateContent\n      });\n      _defineProperty(this, \"backdateChargeOutRate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateChargeOutRateChangeSet.validate();\n            if (!this.backdateChargeOutRateChangeSet.isValid) return;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n\n            // perform the backdate\n            const result = yield this.portalApi.authPost('/backdate-charge-out-rates', {\n              entityId: this.sessionData.entity.id,\n              chargeOutRates: [{\n                workerId: this.worker.id,\n                chargeOutRate: this.backdateChargeOutRateChangeSet.get('chargeOutRate')\n              }],\n              startDate: this.backdateChargeOutRateChangeSet.startDate ? (0, _moment.default)(this.backdateChargeOutRateChangeSet.startDate).format('YYYY-MM-DD') : undefined,\n              endDate: this.backdateChargeOutRateChangeSet.endDate ? (0, _moment.default)(this.backdateChargeOutRateChangeSet.endDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateChargeOutRateChangeSet = null;\n            this.notifications.success(this.intl.t('shared.people-editor.workers.worker.xTimesheetsBackdated', {\n              number: result.numberOfTimesheetsUpdated,\n              timesheet: result.numberOfTimesheetsUpdated === 1 ? 'timesheet' : 'timesheets'\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.people-editor.workers.worker.somethingWentWrongBackdatingTimesheets'),\n              error\n            });\n          }\n        }\n      }), null, \"backdateChargeOutRate\", null));\n      _defineProperty(this, \"backdateCostRate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateCostRateChangeSet.validate();\n            if (!this.backdateCostRateChangeSet.isValid) return;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n\n            // perform the backdate\n            const result = yield this.portalApi.authPost('/backdate-cost-rates', {\n              entityId: this.sessionData.entity.id,\n              costRates: [{\n                workerId: this.worker.id,\n                costRate: this.backdateCostRateChangeSet.get('costRate')\n              }],\n              startDate: this.backdateCostRateChangeSet.startDate ? (0, _moment.default)(this.backdateCostRateChangeSet.startDate).format('YYYY-MM-DD') : undefined,\n              endDate: this.backdateCostRateChangeSet.endDate ? (0, _moment.default)(this.backdateCostRateChangeSet.endDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateCostRateChangeSet = null;\n            this.notifications.success(this.intl.t('shared.people-editor.workers.worker.xTimesheetsBackdated', {\n              number: result.numberOfTimesheetsUpdated,\n              timesheet: result.numberOfTimesheetsUpdated === 1 ? 'timesheet' : 'timesheets'\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.people-editor.workers.worker.somethingWentWrongBackdatingTimesheets'),\n              error\n            });\n          }\n        }\n      }), null, \"backdateCostRate\", null));\n      _defineProperty(this, \"resetWorkerAuthCode\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield generateAuthCodeAjax({\n              workerId: this.worker.id\n            }, this.session.data.authenticated.access_token);\n            yield this.store.findRecord('worker', this.worker.id);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongSettingWorkerLoginCode'),\n              error\n            });\n          }\n        }\n      }), null, \"resetWorkerAuthCode\", null));\n      _initializerDefineProperty(this, \"copiedAuthCode\", _descriptor10, this);\n      _defineProperty(this, \"reloadEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.getEmployees.perform(this.sessionData.entity);\n            yield this.model.accountingPlatformEmployees.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongReloadingXeroEmployees'),\n              error\n            });\n          }\n        }\n      }), null, \"reloadEmployees\", null));\n      _defineProperty(this, \"reloadEarningsRates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.getEarningRates.perform(this.sessionData.entity);\n            if (this.accountingPlatform.activePlatform === 'xero') {\n              yield this.model.xeroEarningsRates.perform();\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongReloadingXeroEarningsRates'),\n              error\n            });\n          }\n        }\n      }), null, \"reloadEarningsRates\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.worker.isNew ? this.intl.t('entity.settings.people.workers.worker.New worker') : this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageWorkers');\n    }\n    get canUseWorkerType() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseWorkerType');\n    }\n    get canUsePayRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUsePayRate');\n    }\n    get canUseCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseCostRate');\n    }\n    get canUseWorkerCostCalculator() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseWorkerCostCalculator');\n    }\n    get canUseChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseChargeOutRate');\n    }\n    get canUseBackdateChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseBackdateChargeOutRate');\n    }\n    get canUseBackdateCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseBackdateCostRate');\n    }\n    get isRunning() {\n      return this.model.worker.isRunning || this.model.workersTimesheets.isRunning || this.model.workerChangeset.isRunning || this.model.labourCostCalculators.isRunning || this.model.profitMargin.isRunning;\n    }\n    get worker() {\n      return this.model.worker.last.value;\n    }\n    get workerTypes() {\n      return [{\n        label: 'Hourly worker',\n        value: false\n      }, {\n        label: 'Contractor',\n        value: true\n      }];\n    }\n    get canDeleteWorker() {\n      return this.model.workersTimesheets.last.value.length === 0;\n    }\n    get effectiveProfitMargin() {\n      const calculatedValue = (0, _profitMargin.calculatePercentage)(this.sessionData.entity.effectiveProfitMargin.labourPercentage.type, this.model.workerChangeset.last.value.costRate, this.model.workerChangeset.last.value.chargeOutRate);\n      return calculatedValue;\n    }\n    setDefaultChargeOutRate() {\n      if (!this.model.workerChangeset.last.value.chargeOutRate && this.model.workerChangeset.last.value.costRate) this.setDefaultEffectiveMargin();\n    }\n    setDefaultEffectiveMargin() {\n      const costRate = Number(this.model.workerChangeset.last.value.costRate);\n      const calculatedValue = (0, _profitMargin.calculateValue)(this.sessionData.entity.effectiveProfitMargin.labourPercentage.type, Number.isFinite(costRate) && costRate > 0 ? costRate : 0, this.sessionData.entity.effectiveProfitMargin.labourPercentage.value);\n      this.model.workerChangeset.last.value.set('chargeOutRate', calculatedValue);\n    }\n    initBackdateChargeOutRateChangeset() {\n      this.backdateChargeOutRateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null,\n        endDate: new Date(),\n        chargeOutRate: this.model.workerChangeset.last.value.chargeOutRate\n      }, this.validateChargeOutRateContent, this.backdateChargeOutRateMap);\n    }\n    initBackdateCostRateChangeset() {\n      this.backdateCostRateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null,\n        endDate: new Date(),\n        costRate: this.model.workerChangeset.last.value.costRate\n      }, this.validateCostRateContent, this.backdateCostRateMap);\n    }\n    copyAuthCode() {\n      if (!this.worker.authCode) return;\n      navigator.clipboard.writeText(this.worker.authCode);\n      this.copiedAuthCode = true;\n      setTimeout(() => this.copiedAuthCode = false, 1500);\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('worker-entity-attribute', {\n        worker: this.worker.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-entity-attribute', {\n          entity: this.sessionData.entity,\n          worker: this.worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"backdateChargeOutRateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"backdateCostRateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultChargeOutRate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultChargeOutRate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateChargeOutRateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateChargeOutRateChangeset\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateCostRateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateCostRateChangeset\"), _class2.prototype), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"copiedAuthCode\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"copyAuthCode\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"copyAuthCode\"), _class2.prototype), _class2);\n  function generateAuthCodeAjax(payload, token) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-worker-code',\n        data: JSON.stringify(payload),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/profile\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/email-validator\", \"moment\", \"portal/utils/get-default-language\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _emailValidator, _moment, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"portal/utils/email-validator\",0,\"moment\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"passwordModalVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"termsOfServiceModalVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"oldPassword\", _descriptor1, this);\n      _initializerDefineProperty(this, \"newPassword\", _descriptor10, this);\n      _initializerDefineProperty(this, \"confirmPassword\", _descriptor11, this);\n      _initializerDefineProperty(this, \"userCanManageHealthAndSafety\", _descriptor12, this);\n      _defineProperty(this, \"languages\", _getDefaultLanguage.languages);\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateUserContent.bind(this),\n        lastName: this.validateUserContent.bind(this),\n        email: this.validateUserContent.bind(this),\n        language: (_key, val) => Boolean(val) || 'Please provide a valid language'\n      });\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.validate();\n          if (user.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            user.execute();\n            yield user.save();\n            const hasHAndS = this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin', 'entityCanUseHealthAndSafety');\n            if (hasHAndS) yield this.addOrRemoveHAndSPerm(this.userCanManageHealthAndSafety);\n            this.notifications.success(this.intl.t('entity.settings.profile.User details saved successfully'));\n            this.intl.setLocale([user.language]);\n            _moment.default.locale(user.language.toLowerCase());\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.profile.somethingWentWrongWhileUpdatingDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n            this.router.transitionTo('index');\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"changePassword\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const currentPassword = this.oldPassword;\n          const password = this.newPassword;\n          const confirmPassword = this.confirmPassword;\n          if (password !== confirmPassword) {\n            this.notifications.warning(this.intl.t('entity.settings.profile.Passwords do not match'));\n            return;\n          }\n          try {\n            const payload = {\n              data: {\n                id: this.sessionData.user.id,\n                type: 'users',\n                attributes: {\n                  password\n                }\n              },\n              meta: {\n                currentPassword\n              }\n            };\n            yield this.buildaPrice.changePassword(payload);\n            this.notifications.success(this.intl.t('entity.settings.profile.Password changed successfully'));\n            yield this.closePasswordModal.perform();\n          } catch (error) {\n            const message = error?.responseJSON?.errors?.[0]?.title;\n            if (error.status === 400 && message) {\n              this.notifications.error({\n                message,\n                error\n              });\n              return;\n            }\n            this.notifications.error({\n              message: this.intl.t('entity.settings.profile.somethingWentWrongWhileHangingPassword'),\n              error\n            });\n            this.passwordModalVisible = false;\n          }\n        }\n      }), null, \"changePassword\", null));\n      _defineProperty(this, \"closePasswordModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.passwordModalVisible = false;\n          this.oldPassword = null;\n          this.newPassword = null;\n          this.confirmPassword = null;\n        }\n      }), null, \"closePasswordModal\", null));\n    }\n    get isLoading() {\n      return this.model.user.isRunning || this.model.terms.isRunning;\n    }\n    get user() {\n      return this.sessionData.user;\n    }\n    initUserCanManageHealthAndSafety() {\n      this.userCanManageHealthAndSafety = this.model.user.lastSuccessful.value?.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageHealthAndSafety', 'canCreateHealthAndSafety');\n    }\n    validateUserContent(key, newVal, oldVal, _changes, _content) {\n      const value = (newVal ?? oldVal) || '';\n      if (key === 'firstName') {\n        return value.length > 1 || this.intl.t('validation.firstName');\n      }\n      if (key === 'lastName') {\n        return value.length > 0 || this.intl.t('validation.lastName');\n      }\n      if (key === 'email' && newVal) {\n        return (0, _emailValidator.default)(newVal) || this.intl.t('validation.Email');\n      }\n    }\n    async addOrRemoveHAndSPerm(userCanManageHealthAndSafety) {\n      const [[canCreateHealthAndSafety, canManageHealthAndSafety], existingEntityAttributes] = await Promise.all([this.store.query('user-attribute', {\n        filter: {\n          and: [{\n            field: '_id',\n            op: 'IN',\n            value: ['canManageHealthAndSafety', 'canCreateHealthAndSafety']\n          }]\n        },\n        sort: 'attribute'\n      }).then(r => r.toArray()), this.store.query('user-entity-attribute', {\n        filter: {\n          and: [{\n            field: 'user',\n            op: 'EQ',\n            value: this.model.user.lastSuccessful.value.id\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }, {\n            field: 'attribute',\n            op: 'IN',\n            value: ['canManageHealthAndSafety', 'canCreateHealthAndSafety']\n          }]\n        }\n      }).then(r => r.toArray())]);\n      if (userCanManageHealthAndSafety) {\n        // add the perms only if they do not already exist\n        const hasManage = existingEntityAttributes.some(attr => attr.belongsTo('attribute').id() === 'canManageHealthAndSafety');\n        const hasCreate = existingEntityAttributes.some(attr => attr.belongsTo('attribute').id() === 'canCreateHealthAndSafety');\n        if (!hasManage) {\n          await this.store.createRecord('user-entity-attribute', {\n            entity: this.sessionData.entity,\n            user: this.model.user.lastSuccessful.value,\n            attribute: canManageHealthAndSafety\n          }).save();\n        }\n        if (!hasCreate) {\n          await this.store.createRecord('user-entity-attribute', {\n            entity: this.sessionData.entity,\n            user: this.model.user.lastSuccessful.value,\n            attribute: canCreateHealthAndSafety\n          }).save();\n        }\n      } else {\n        // remove the perms\n        await Promise.all(existingEntityAttributes.map(attr => attr.destroyRecord()));\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"passwordModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"termsOfServiceModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"oldPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"newPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"confirmPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"userCanManageHealthAndSafety\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"initUserCanManageHealthAndSafety\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initUserCanManageHealthAndSafety\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/suppliers\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/initiate-password-reset\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"portal/utils/email-validator\"], function (_exports, _controller, _service, _object, _jquery, _environment, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    queryParams: ['email'],\n    actions: {\n      resetPassword() {\n        const email = (0, _object.get)(this, 'email');\n        if (!email) {\n          (0, _object.get)(this, 'notifications').warning('Please enter an email address.');\n          return;\n        }\n        if (!(0, _emailValidator.default)(email)) {\n          (0, _object.get)(this, 'notifications').warning('Please enter a valid email address.');\n          return;\n        }\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/initiate-password-reset';\n        const callback = _environment.default.urls.app + '/reset-password';\n        const payload = {\n          callback,\n          email: email.toLowerCase()\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        (0, _object.set)(this, 'isResettingPassword', true);\n        return _jquery.default.ajax({\n          contentType: 'application/json',\n          method: 'POST',\n          url,\n          data: JSON.stringify(payload),\n          headers\n        }).then(() => {\n          (0, _object.set)(this, 'isResettingPassword', false);\n          (0, _object.get)(this, 'notifications').success(`Please check your inbox for a password reset link (If you do not receive the password reset email check your spam folder).`, 6000);\n        }, reason => {\n          (0, _object.set)(this, 'isResettingPassword', false);\n          if (reason.status === 400) {\n            (0, _object.get)(this, 'notifications').error(reason.responseJSON.errors[0].title);\n          } else if (reason.status === 500) {\n            (0, _object.get)(this, 'notifications').error('Sorry, a password reset email could not be sent. Please contact support or try again later.');\n          } else {\n            this.send('error', reason);\n          }\n        });\n      }\n    }\n  });\n});","define(\"portal/controllers/no-access\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _controller, _object, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"orgSelectorOpen\", _descriptor3, this);\n    }\n    signOut() {\n      this.session.invalidate();\n    }\n    changeEntity({\n      id\n    }) {\n      this.sessionData.changeEntity(id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"orgSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"signOut\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"signOut\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"changeEntity\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/reset-password\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@ember/runloop\", \"jquery\", \"portal/config/environment\"], function (_exports, _controller, _service, _object, _runloop, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    queryParams: ['token', 'email'],\n    tokenExpired: false,\n    actions: {\n      resetPasswordForm() {\n        const token = (0, _object.get)(this, 'token');\n        const password = (0, _object.get)(this, 'newPassword');\n        const passwordConfirmation = (0, _object.get)(this, 'confirmPassword');\n        const notifications = (0, _object.get)(this, 'notifications');\n        notifications.clearAll();\n        if (!token) {\n          notifications.error('Password could not be reset. Please click on the link in the email and try again.');\n          return;\n        }\n        if (!password) {\n          notifications.warning('Please enter a new password.');\n          return;\n        }\n        if (password !== passwordConfirmation) {\n          notifications.warning('Passwords do not match.');\n          return;\n        }\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/reset-password';\n        const payload = {\n          password,\n          token\n        };\n        (0, _object.set)(this, 'isResettingPassword', true);\n        return _jquery.default.ajax({\n          contentType: 'application/json',\n          method: 'PATCH',\n          url,\n          data: JSON.stringify(payload)\n        }).then(data => {\n          (0, _runloop.run)(() => {\n            (0, _object.set)(this, 'isResettingPassword', false);\n            notifications.success('Your password has been reset.');\n            (0, _object.get)(this, 'session.session').authenticate('authenticator:push-session', data);\n            this.router.transitionTo('index');\n          });\n        }, reason => {\n          (0, _runloop.run)(() => {\n            (0, _object.set)(this, 'isResettingPassword', false);\n            if (reason.status === 400) {\n              notifications.error(reason.responseJSON.errors[0].title);\n              (0, _object.set)(this, 'tokenExpired', true);\n            } else {\n              this.send('error', reason);\n            }\n          });\n        });\n      },\n      handleRequestPasswordReset() {\n        (0, _object.set)(this, 'tokenExpired', false);\n        this.router.transitionTo('initiate-password-reset', {\n          queryParams: {\n            email: (0, _object.get)(this, 'email').toLowerCase() || ''\n          }\n        });\n      }\n    }\n  });\n});","define(\"portal/controllers/terms-of-service\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    actions: {\n      continue() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const user = (0, _object.get)(this, 'model.user');\n        const terms = (0, _object.get)(user, 'hasAcceptedTerms');\n        notifications.clearAll();\n        if (!terms) {\n          notifications.error('You must agree to the terms and conditions before using the Portal.');\n          return;\n        }\n        (0, _object.set)(this, 'isSubmitting', true);\n        user.save().then(() => this.router.transitionTo('index'), err => this.send('error', err)).finally(() => (0, _object.set)(this, 'isSubmitting', false));\n      }\n    }\n  });\n});","define(\"portal/data-adapter\", [\"exports\", \"@ember-data/debug/data-adapter\"], function (_exports, _dataAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dataAdapter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/debug/data-adapter\"eaimeta@70e063a35619d71f\n});","define(\"portal/formats\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    time: {\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    date: {\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    number: {\n      compact: {\n        notation: 'compact'\n      },\n      EUR: {\n        style: 'currency',\n        currency: 'EUR'\n      },\n      USD: {\n        style: 'currency',\n        currency: 'USD'\n      },\n      NZD: {\n        style: 'currency',\n        currency: 'NZD'\n      },\n      CNY: {\n        style: 'currency',\n        currency: 'CNY'\n      },\n      AUD: {\n        style: 'currency',\n        currency: 'AUD'\n      },\n      GBP: {\n        style: 'currency',\n        currency: 'GBP'\n      }\n    }\n  };\n});","define(\"portal/helpers/-base\", [\"exports\", \"ember-moment/helpers/-base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _base.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/-base\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _and.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/and\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/app-version\", [\"exports\", \"@ember/component/helper\", \"portal/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _helper, _environment, _regexp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.appVersion = appVersion;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"portal/config/environment\",0,\"ember-cli-app-version/utils/regexp\"eaimeta@70e063a35619d71f\n  function appVersion(_, hash = {}) {\n    const version = _environment.default.APP.version;\n    // e.g. 1.0.0-alpha.1+4jds75hf\n\n    // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n    let versionOnly = hash.versionOnly || hash.hideSha;\n    let shaOnly = hash.shaOnly || hash.hideVersion;\n    let match = null;\n    if (versionOnly) {\n      if (hash.showExtended) {\n        match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n      }\n      // Fallback to just version\n      if (!match) {\n        match = version.match(_regexp.versionRegExp); // 1.0.0\n      }\n    }\n    if (shaOnly) {\n      match = version.match(_regexp.shaRegExp); // 4jds75hf\n    }\n    return match ? match[0] : version;\n  }\n  var _default = _exports.default = (0, _helper.helper)(appVersion);\n});","define(\"portal/helpers/assign\", [\"exports\", \"ember-assign-helper/helpers/assign\"], function (_exports, _assign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _assign.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-assign-helper/helpers/assign\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/bool\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function bool([param]) {\n    return !!param;\n  });\n});","define(\"portal/helpers/camel-case-words\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.camelCaseWords = camelCaseWords;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function camelCaseWords([words]) {\n    return words.split(' ').map(word => {\n      return word[0].toUpperCase() + word.slice(1);\n    }).join(' ');\n  }\n  var _default = _exports.default = (0, _helper.helper)(camelCaseWords);\n});","define(\"portal/helpers/camelize\", [\"exports\", \"ember-cli-string-helpers/helpers/camelize\"], function (_exports, _camelize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"camelize\", {\n    enumerable: true,\n    get: function () {\n      return _camelize.camelize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _camelize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/camelize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/cancel-all\", [\"exports\", \"ember-concurrency/helpers/cancel-all\"], function (_exports, _cancelAll) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _cancelAll.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/cancel-all\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/capitalize\", [\"exports\", \"ember-cli-string-helpers/helpers/capitalize\"], function (_exports, _capitalize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"capitalize\", {\n    enumerable: true,\n    get: function () {\n      return _capitalize.capitalize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _capitalize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/capitalize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset-get\", [\"exports\", \"ember-changeset/helpers/changeset-get\"], function (_exports, _changesetGet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changesetGet.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset-get\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset-set\", [\"exports\", \"ember-changeset/helpers/changeset-set\"], function (_exports, _changesetSet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changesetSet\", {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.changesetSet;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset-set\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset\", [\"exports\", \"ember-changeset/helpers/changeset\"], function (_exports, _changeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changeset\", {\n    enumerable: true,\n    get: function () {\n      return _changeset.changeset;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changeset.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/chunk-callback\", [\"exports\", \"lodash\", \"portal/config/environment\", \"portal/utils/collection-to-array\"], function (_exports, _lodash, _environment, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = chunkCallback;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\",0,\"portal/config/environment\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  /**\n   * In Node 11+ a default request size limit of 81920 bytes was introduced.\n   * In requests with large arrays, you can easily exceed the limit.\n   * This function is intended to keep request size bellow this limit, by creating multiple requests.\n   * @param {array} list - the array of items to be chunked\n   * @param {number} chunkSize - the chunk size\n   * @param {function} callback - the callback to be run on each chunk\n   * @returns {promise}\n   */\n  function chunkCallback(list = [], chunkSize = _environment.default.chunkCallbackSize, callback = () => null) {\n    const chunks = _lodash.default.chunk(list, chunkSize);\n    return Promise.all(chunks.map(callback)).then(results => results.reduce((arr, item) => [...arr, ...(0, _collectionToArray.default)(item)], []));\n  }\n});","define(\"portal/helpers/classify\", [\"exports\", \"ember-cli-string-helpers/helpers/classify\"], function (_exports, _classify) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"classify\", {\n    enumerable: true,\n    get: function () {\n      return _classify.classify;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _classify.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/classify\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/convert-to-title-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertToTitleCase = convertToTitleCase;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function convertToTitleCase([str]) {\n    return str?.replace(/\\w\\S*/g, txt => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());\n  }\n  var _default = _exports.default = (0, _helper.helper)(convertToTitleCase);\n});","define(\"portal/helpers/dasherize\", [\"exports\", \"ember-cli-string-helpers/helpers/dasherize\"], function (_exports, _dasherize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"dasherize\", {\n    enumerable: true,\n    get: function () {\n      return _dasherize.dasherize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dasherize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/dasherize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/date-ago\", [\"exports\", \"@ember/component/helper\", \"moment\"], function (_exports, _helper, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dateAgo = dateAgo;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"moment\"eaimeta@70e063a35619d71f\n  function dateAgo(params) {\n    const thatMoment = params[0];\n    return (0, _moment.default)(thatMoment).fromNow();\n  }\n  var _default = _exports.default = _helper.default.helper(dateAgo);\n});","define(\"portal/helpers/element\", [\"exports\", \"ember-element-helper/helpers/element\"], function (_exports, _element) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _element.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-element-helper/helpers/element\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ellipsis-characters\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ellipsisTextCharacters = ellipsisTextCharacters;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ellipsisTextCharacters(params) {\n    const [text = '', maxCharacters = 100] = params;\n    let truncatedText = text.substr(0, maxCharacters);\n    if (truncatedText.length !== text.length) truncatedText += '…';\n    return truncatedText;\n  }\n  var _default = _exports.default = (0, _helper.helper)(ellipsisTextCharacters);\n});","define(\"portal/helpers/ellipsis-words\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ellipsisTextWords = ellipsisTextWords;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ellipsisTextWords(params) {\n    const [text = '', maxWords = 30] = params;\n    const words = text.split(' ');\n    const truncatedWords = words.slice(0, maxWords);\n    let truncatedString = truncatedWords.join(' ');\n    if (truncatedWords.length !== words.length) truncatedString += '…';\n    return truncatedString;\n  }\n  var _default = _exports.default = (0, _helper.helper)(ellipsisTextWords);\n});","define(\"portal/helpers/ember-power-calendar-day-classes\", [\"exports\", \"ember-power-calendar/helpers/ember-power-calendar-day-classes\"], function (_exports, _emberPowerCalendarDayClasses) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerCalendarDayClasses.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/helpers/ember-power-calendar-day-classes\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-equal\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-equal\"], function (_exports, _emberPowerSelectIsEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsEqual.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-equal\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-group\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-group\"], function (_exports, _emberPowerSelectIsGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsGroup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-group\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-selected-present\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-selected-present\"], function (_exports, _emberPowerSelectIsSelectedPresent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsSelectedPresent.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-selected-present\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ensure-safe-component\", [\"exports\", \"@embroider/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _util.EnsureSafeComponentHelper;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/util\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/eq\"], function (_exports, _eq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _eq.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/eq\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/excludes-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.excludesFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/excludes-some-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.excludesSomeFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/file-size-to-string\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.fileSizeToString = fileSizeToString;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function fileSizeToString(params) {\n    let bytes = params[0];\n    let si = params[1] || false;\n    let dp = params[2] || 1;\n    const thresh = si ? 1000 : 1024;\n    if (Math.abs(bytes) < thresh) {\n      return bytes + ' B';\n    }\n    const units = si ? ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] : ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];\n    let u = -1;\n    const r = 10 ** dp;\n    do {\n      bytes /= thresh;\n      ++u;\n    } while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);\n    return bytes.toFixed(dp) + ' ' + units[u];\n  }\n  var _default = _exports.default = _helper.default.helper(fileSizeToString);\n});","define(\"portal/helpers/format-date\", [\"exports\", \"ember-intl/helpers/format-date\"], function (_exports, _formatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-date\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-duration\", [\"exports\", \"@ember/component/helper\", \"portal/utils/duration-input\"], function (_exports, _helper, _durationInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"portal/utils/duration-input\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(_durationInput.formatDuration);\n});","define(\"portal/helpers/format-message\", [\"exports\", \"ember-intl/helpers/format-message\"], function (_exports, _formatMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-message\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-number\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.formatNumber = formatNumber;\n  _exports.parseNumber = parseNumber;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  const MINUS_SIGN = '\\u2212\\u2009';\n  const DASH = '\\u2013';\n  const MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;\n  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;\n  function formatNumber(params, options) {\n    options = options || {};\n    var [formatAs, number, rawNumber] = standardizeInput(params);\n\n    // Defaults\n\n    // NaN\n    if (isNaN(number)) {\n      return finalize('', formatAs, number, rawNumber, options);\n    }\n\n    // Too large or small\n    if (number < MIN_SAFE_INTEGER || number > MAX_SAFE_INTEGER) {\n      return finalize('#', formatAs, number, rawNumber, options);\n    }\n    if (options.abs) {\n      number = Math.abs(number);\n    }\n\n    // Convert sigfigs option to a places option\n    const places = calcPlaces(number, formatAs, options);\n\n    // First round the number\n    const rounded = round(number, places);\n\n    // Dash zero (after rounding)\n    if (options.dashZero !== false && Number(rounded) === 0) {\n      return finalize(DASH, formatAs, rounded, rawNumber, options);\n    }\n\n    // Add zeros to meet decimal places requirement\n    const padded = pad(rounded, places);\n\n    // Add commas\n    const commaed = addCommas(padded);\n\n    // Nice minus sign and slight space\n    const formatted = formatNegativeSign(commaed);\n    return finalize(formatted, formatAs, rounded, rawNumber, options);\n  }\n  function finalize(formatted, formatAs, number, rawNumber, options) {\n    if (typeof formatted === 'string' && formatted.match(/\\d/) !== null) {\n      formatted = applyDecoration(formatted, formatAs, options.currencySymbol);\n    }\n    if (!options.flags) {\n      return formatted;\n    }\n    if (formatAs === 'percentage') {\n      number /= 100;\n    }\n    const res = {\n      formatted,\n      raw: rawNumber,\n      parsedInput: number,\n      isNaN: typeof formatted !== 'string' || formatted.match(/\\d/) === null,\n      isZero: rawNumber === 0,\n      roundsToZero: number === 0,\n      isNegative: !isNaN(number) && number < 0\n    };\n    return res;\n  }\n  function standardizeInput(input) {\n    let formatAs, value;\n    if (!Array.isArray(input) || input.length === 1) {\n      value = Array.isArray(input) ? input[0] : input;\n      formatAs = 'number';\n    } else {\n      [formatAs, value] = input;\n    }\n    formatAs = typeof formatAs === 'string' ? formatAs.toLowerCase() : 'number';\n    const rawValue = value;\n    if (typeof value !== 'string') {\n      value = value == null || typeof value === 'boolean' ? NaN : Number(value);\n    } else if (value === '-' || value === DASH) {\n      value = 0;\n    } else {\n      value = parseFloat(value.replace(MINUS_SIGN, '-').replace(/[^\\d.-]*/g, ''));\n    }\n    if (formatAs === 'percentage' && !isNaN(value)) {\n      value *= 100;\n    }\n    return [formatAs, value, rawValue];\n  }\n  function calcPlaces(number, formatAs, options) {\n    if (typeof options.places === 'number' && formatAs !== 'integer') {\n      return options.places;\n    }\n    if (typeof options.sigfigs === 'number') {\n      return options.sigfigs - Math.abs(Math.floor(number)).toString().length;\n    }\n    if (formatAs === 'integer') {\n      return 0;\n    }\n    return 2;\n  }\n  function round(number, places) {\n    const factor = Math.pow(10, places);\n    return Math.round(number * factor) / factor;\n  }\n  function pad(number, places) {\n    // Convert to string\n    let string = number.toString();\n    if (places > 0) {\n      // Add a decimal point, if one doesn't already exist\n      if (string.indexOf('.') === -1) {\n        string += '.';\n      }\n\n      // Find the decimal point\n      const pointIndex = string.indexOf('.');\n\n      // Keep adding zeros until we reach the end\n      while (string.length <= pointIndex + places) {\n        string += '0';\n      }\n    }\n    return string;\n  }\n  function addCommas(string) {\n    var chars = string.split('');\n    var pointIndex = chars.indexOf('.');\n    var left = [];\n    var right = [];\n    if (pointIndex === -1) {\n      left = chars.reverse();\n    } else {\n      left = chars.slice(0, pointIndex).reverse();\n      right = chars.slice(pointIndex + 1);\n    }\n    string = '';\n\n    // Left of decimal point\n    for (let i = 0, len = left.length; i < len; i++) {\n      if (i >= 3 && i % 3 === 0 && left[i] !== '-') {\n        string = ',' + string;\n      }\n      string = left[i] + string;\n    }\n    if (right.length) {\n      string = string + '.';\n\n      // Right of decimal point\n      for (let j = 0, len = right.length; j < len; j++) {\n        if (j >= 3 && j % 3 === 0) {\n          string = string + ',';\n        }\n        string = string + right[j];\n      }\n    }\n    return string;\n  }\n  function formatNegativeSign(string) {\n    if (string[0] === '-') {\n      string = MINUS_SIGN + string.substr(1);\n    }\n    return string;\n  }\n  function applyDecoration(string, formatAs, currencySymbol = '$') {\n    if (!string) {\n      return '';\n    }\n    switch (formatAs) {\n      case 'percentage':\n        return string + '%';\n      case 'currency':\n        return addCurrencySymbol(string, currencySymbol);\n      case 'number':\n      case 'integer':\n      default:\n        return string;\n    }\n  }\n  function addCurrencySymbol(string, symbol) {\n    // Negative values should be formatted like -$1.50 not $-1.50\n    if (string.indexOf(MINUS_SIGN) === 0) {\n      return MINUS_SIGN + (symbol || '') + string.substr(MINUS_SIGN.length);\n    } else {\n      return (symbol || '') + string;\n    }\n  }\n  function parseNumber(input) {\n    if (typeof input !== 'string') {\n      return input == null || typeof input === 'boolean' ? NaN : Number(input);\n    }\n    const string = input.trim();\n    if (string === '-' || string === DASH) {\n      return 0;\n    }\n    const isPercentage = string.match(/%$/) !== null;\n    const number = parseFloat(string.replace(MINUS_SIGN, '-').replace(/[^\\d.-]*/g, ''));\n    return isPercentage && !isNaN(number) ? number / 100 : number;\n  }\n  var _default = _exports.default = _helper.default.helper(formatNumber);\n});","define(\"portal/helpers/format-relative\", [\"exports\", \"ember-intl/helpers/format-relative\"], function (_exports, _formatRelative) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatRelative.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-relative\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-shortcut\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatShortcut = _exports.default = (_class = class FormatShortcut extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"os\", _descriptor, this);\n    }\n    compute([key, actionName]) {\n      // If it's a touch device without a fine pointer, don't show tooltip\n      if (!this.os.hasKeyboard) {\n        return undefined;\n      }\n      const mod = key.includes('cmd') ? `${this.os.mainModifier} + ` : '';\n      const displayKey = key.replace('cmd+', '').replace('Arrow', '');\n      return `${actionName} (${mod}${displayKey})`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"os\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/helpers/format-time\", [\"exports\", \"ember-intl/helpers/format-time\"], function (_exports, _formatTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatTime.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-time\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/get-file-icon\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getFileIcon = getFileIcon;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function getFileIcon(params) {\n    const fileExtension = params[0];\n    const fileMapper = {\n      image: 'file-image',\n      pdf: 'file-pdf',\n      doc: 'file-word',\n      txt: 'file-word',\n      csv: 'file-csv',\n      gz: 'file-archive',\n      rar: 'file-archive',\n      zip: 'file-archive',\n      '7z': 'file-archive'\n    };\n    return fileMapper[fileExtension] || 'file';\n  }\n  var _default = _exports.default = _helper.default.helper(getFileIcon);\n});","define(\"portal/helpers/gt\", [\"exports\", \"ember-truth-helpers/helpers/gt\"], function (_exports, _gt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _gt.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/gt\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _gte.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/gte\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/html-safe\", [\"exports\", \"@ember/component/helper\", \"@ember/template\"], function (_exports, _helper, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.htmlSafe = htmlSafe;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/template\"eaimeta@70e063a35619d71f\n  function htmlSafe(params) {\n    return (0, _template.htmlSafe)(params ?? '');\n  }\n  var _default = _exports.default = _helper.default.helper(htmlSafe);\n});","define(\"portal/helpers/humanize\", [\"exports\", \"ember-cli-string-helpers/helpers/humanize\"], function (_exports, _humanize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _humanize.default;\n    }\n  });\n  Object.defineProperty(_exports, \"humanize\", {\n    enumerable: true,\n    get: function () {\n      return _humanize.humanize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/humanize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/if-key\", [\"exports\", \"ember-keyboard/helpers/if-key\"], function (_exports, _ifKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ifKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/helpers/if-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ignore-children\", [\"exports\", \"ember-modal-dialog/helpers/ignore-children\"], function (_exports, _ignoreChildren) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ignoreChildren.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/helpers/ignore-children\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/inc\", [\"exports\", \"ember-composable-helpers/helpers/inc\"], function (_exports, _inc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inc.default;\n    }\n  });\n  Object.defineProperty(_exports, \"inc\", {\n    enumerable: true,\n    get: function () {\n      return _inc.inc;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/inc\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/includes-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.includesFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/includes-some-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.includesSomeFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/includes\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function includes([array, value]) {\n    if (!Array.isArray(array)) {\n      return false;\n    }\n    return array.includes(value);\n  });\n});","define(\"portal/helpers/is-active\", [\"exports\", \"ember-router-helpers/helpers/is-active.js\"], function (_exports, _isActive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isActive.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/is-active.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-after\", [\"exports\", \"ember-moment/helpers/is-after\"], function (_exports, _isAfter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isAfter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-after\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isArray.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-array\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-before\", [\"exports\", \"ember-moment/helpers/is-before\"], function (_exports, _isBefore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isBefore.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-before\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-between\", [\"exports\", \"ember-moment/helpers/is-between\"], function (_exports, _isBetween) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isBetween.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-between\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-empty\", [\"exports\", \"ember-truth-helpers/helpers/is-empty\"], function (_exports, _isEmpty) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEmpty.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-empty\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEqual.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-equal\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-hash\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isHash = isHash;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function isHash(params) {\n    return params !== null && typeof params === 'object' && !Array.isArray(params);\n  }\n  var _default = _exports.default = _helper.default.helper(isHash);\n});","define(\"portal/helpers/is-same-or-after\", [\"exports\", \"ember-moment/helpers/is-same-or-after\"], function (_exports, _isSameOrAfter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSameOrAfter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same-or-after\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-same-or-before\", [\"exports\", \"ember-moment/helpers/is-same-or-before\"], function (_exports, _isSameOrBefore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSameOrBefore.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same-or-before\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-same\", [\"exports\", \"ember-moment/helpers/is-same\"], function (_exports, _isSame) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSame.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lowercase\", [\"exports\", \"ember-cli-string-helpers/helpers/lowercase\"], function (_exports, _lowercase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lowercase.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lowercase\", {\n    enumerable: true,\n    get: function () {\n      return _lowercase.lowercase;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/lowercase\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lt.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lt\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lte.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lte\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/map-get\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function mapGet([map, key]) {\n    if (map instanceof Map) {\n      return map.get(key);\n    }\n    return undefined;\n  });\n});","define(\"portal/helpers/math\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.math = math;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function math([operand1, operator, operand2]) {\n    operand1 = parseOperand(operand1);\n    operand2 = parseOperand(operand2);\n    switch (operator) {\n      case '+':\n        return operand1 + operand2;\n      case '-':\n        return operand1 - operand2;\n      case '*':\n        return operand1 * operand2;\n      case '/':\n        return operand1 / operand2;\n      default:\n        throw new Error('Unknown operator: ' + operator);\n    }\n  }\n  function parseOperand(value) {\n    if (isNaN(value) || value === null || value === true) {\n      throw new Error('Expected operand passed to math help to be a number, got ' + value);\n    }\n    if (value !== Infinity) {\n      value = parseFloat(value, 10);\n    }\n    return value;\n  }\n  var _default = _exports.default = _helper.default.helper(math);\n});","define(\"portal/helpers/media\", [\"exports\", \"ember-responsive/helpers/media\"], function (_exports, _media) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _media.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/helpers/media\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-add\", [\"exports\", \"ember-moment/helpers/moment-add\"], function (_exports, _momentAdd) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentAdd.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-add\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-calendar\", [\"exports\", \"ember-moment/helpers/moment-calendar\"], function (_exports, _momentCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentCalendar.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-calendar\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-diff\", [\"exports\", \"ember-moment/helpers/moment-diff\"], function (_exports, _momentDiff) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentDiff.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-diff\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-duration\", [\"exports\", \"ember-moment/helpers/moment-duration\"], function (_exports, _momentDuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentDuration.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-duration\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-format\", [\"exports\", \"ember-moment/helpers/moment-format\"], function (_exports, _momentFormat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFormat.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-format\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-from-now\", [\"exports\", \"ember-moment/helpers/moment-from-now\"], function (_exports, _momentFromNow) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFromNow.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-from-now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-from\", [\"exports\", \"ember-moment/helpers/moment-from\"], function (_exports, _momentFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFrom.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-from\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-subtract\", [\"exports\", \"ember-moment/helpers/moment-subtract\"], function (_exports, _momentSubtract) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentSubtract.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-subtract\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to-date\", [\"exports\", \"ember-moment/helpers/moment-to-date\"], function (_exports, _momentToDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentToDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to-date\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to-now\", [\"exports\", \"ember-moment/helpers/moment-to-now\"], function (_exports, _momentToNow) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentToNow.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to-now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to\", [\"exports\", \"ember-moment/helpers/moment-to\"], function (_exports, _momentTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentTo.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment\", [\"exports\", \"ember-moment/helpers/moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _moment.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-eq\"], function (_exports, _notEq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notEq.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not-eq\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _not.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/now\", [\"exports\", \"ember-moment/helpers/now\"], function (_exports, _now) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _now.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/number-format\", [\"exports\", \"@ember/service\", \"@ember/component/helper\"], function (_exports, _service, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let NumberFormat = _exports.default = (_class = class NumberFormat extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n    }\n    compute([number], options) {\n      return this.numberFormat.format(number, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/helpers/number-to-char\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  class _default extends _helper.default {\n    compute([n]) {\n      const multiplier = Math.ceil(n / 25) || 1;\n      const index = n % 26;\n      const char = String.fromCharCode(index + 'A'.charCodeAt(0));\n      let str = '';\n      for (let i = 0; i < multiplier; i++) str += char;\n      return str;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/helpers/object-at\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.objectAt = objectAt;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function objectAt(params /*, hash*/) {\n    const [array, index] = params;\n    if (!Array.isArray(array)) console.warn('object-at must be passed an array as its first argument');\n    if (isNaN(index)) console.warn('object-at must be passed a number as its second argument');\n    return array.objectAt(index);\n  }\n  var _default = _exports.default = _helper.default.helper(objectAt);\n});","define(\"portal/helpers/on-key\", [\"exports\", \"ember-keyboard/helpers/on-key\"], function (_exports, _onKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _onKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/helpers/on-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _or.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/or\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ordinal-for\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ordinalFor = ordinalFor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ordinalFor(input) {\n    const number = Number(input);\n    if (isNaN(number) || Math.abs(number) === Infinity || number < 0) {\n      return null;\n    }\n    const string = String(number);\n    const lastDigit = string.charAt(string.length - 1);\n    if (string.indexOf('.') > -1 || string.indexOf('e') > -1) {\n      return null;\n    } else if (lastDigit === '1' && string !== '11') {\n      return 'st';\n    } else if (lastDigit === '2' && string !== '12') {\n      return 'nd';\n    } else if (lastDigit === '3' && string !== '13') {\n      return 'rd';\n    } else {\n      return 'th';\n    }\n  }\n  var _default = _exports.default = _helper.default.helper(ordinalFor);\n});","define(\"portal/helpers/page-title\", [\"exports\", \"ember-page-title/helpers/page-title\"], function (_exports, _pageTitle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pageTitle.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/helpers/page-title\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pagination-callback\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = paginationCallback;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  async function paginationCallback(callback) {\n    const fetchPages = async (accumulatedResults = [], page = 1) => {\n      try {\n        const response = await callback(page);\n        if (!response || !response.toArray || !response.meta) {\n          throw new Error('Invalid response structure: Expected { toArray(), meta }');\n        }\n        const updatedResults = [...accumulatedResults, ...response.toArray()];\n        const hasNextPage = response.meta.currentPage < response.meta.totalPages;\n        if (hasNextPage) {\n          return fetchPages(updatedResults, page + 1);\n        }\n        return updatedResults;\n      } catch (error) {\n        throw new Error(`Pagination failed on page ${page}: ${error.message}`);\n      }\n    };\n    return fetchPages();\n  }\n});","define(\"portal/helpers/perform\", [\"exports\", \"ember-concurrency/helpers/perform\"], function (_exports, _perform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _perform.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/perform\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pipe\", [\"exports\", \"ember-composable-helpers/helpers/pipe\"], function (_exports, _pipe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.default;\n    }\n  });\n  Object.defineProperty(_exports, \"pipe\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.pipe;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/pipe\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pluralize\", [\"exports\", \"ember-inflector/helpers/pluralize\"], function (_exports, _pluralize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pluralize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/pluralize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/power-calendar-format-date\", [\"exports\", \"ember-power-calendar/helpers/power-calendar-format-date\"], function (_exports, _powerCalendarFormatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendarFormatDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/helpers/power-calendar-format-date\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/prevent-default\", [\"exports\", \"ember-event-helpers/helpers/prevent-default\"], function (_exports, _preventDefault) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _preventDefault.default;\n    }\n  });\n  Object.defineProperty(_exports, \"preventDefault\", {\n    enumerable: true,\n    get: function () {\n      return _preventDefault.preventDefault;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-event-helpers/helpers/prevent-default\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/profit-type-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // `{{profit-type-label type}}` -> \"margin\" / \"markup\"\n  // `{{profit-type-label type effective=true}}` -> \"Effective margin\" / ...\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([profitType], {\n      effective = false\n    } = {}) {\n      if (profitType === 'MARKUP') return effective ? this.intl.t('common.Effective markup') : this.intl.t('common.markup');\n      return effective ? this.intl.t('common.Effective margin') : this.intl.t('common.margin');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/project-status-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // Accepts the raw enum ('OPEN') or an already capitalised value ('Open'),\n  // because report cells carry the latter.\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([status]) {\n      switch (String(status ?? '').toUpperCase()) {\n        case 'OPEN':\n          return this.intl.t('common.Open');\n        case 'HELD':\n          return this.intl.t('common.Held');\n        case 'CLOSED':\n          return this.intl.t('common.Closed');\n        case 'ARCHIVED':\n          return this.intl.t('common.Archived');\n      }\n      return status;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/range\", [\"exports\", \"ember-composable-helpers/helpers/range\"], function (_exports, _range) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _range.default;\n    }\n  });\n  Object.defineProperty(_exports, \"range\", {\n    enumerable: true,\n    get: function () {\n      return _range.range;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/range\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/replace-with\", [\"exports\", \"ember-router-helpers/helpers/replace-with.js\"], function (_exports, _replaceWith) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _replaceWith.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/replace-with.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/root-url\", [\"exports\", \"ember-router-helpers/helpers/root-url.js\"], function (_exports, _rootUrl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rootUrl.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/root-url.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/round-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.round2dp = round2dp;\n  _exports.round6dp = round6dp;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function round2dp(input) {\n    return Math.round((input + Number.EPSILON) * 100) / 100;\n  }\n  function round6dp(input) {\n    return Math.round((input + Number.EPSILON) * 1000000) / 1000000;\n  }\n});","define(\"portal/helpers/route-params\", [\"exports\", \"ember-router-helpers/helpers/route-params.js\"], function (_exports, _routeParams) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _routeParams.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/route-params.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/singularize\", [\"exports\", \"ember-inflector/helpers/singularize\"], function (_exports, _singularize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _singularize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/singularize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/sort-accounts\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortAccounts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortAccounts(accounts = [], sortKey = 'sortIndex', categoryKey = 'category') {\n    const profitAndLoss = [];\n    const balanceSheet = [];\n    const other = [];\n    accounts.forEach(target => {\n      const category = (0, _object.get)(target, categoryKey);\n      switch (category) {\n        case 'profit-and-loss':\n          profitAndLoss.push(target);\n          break;\n        case 'balance-sheet':\n          balanceSheet.push(target);\n          break;\n        default:\n          other.push(target);\n      }\n    });\n    return [...profitAndLoss.sortBy(sortKey), ...balanceSheet.sortBy(sortKey), ...other.sortBy(sortKey)];\n  }\n});","define(\"portal/helpers/stop-propagation\", [\"exports\", \"ember-event-helpers/helpers/stop-propagation\"], function (_exports, _stopPropagation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _stopPropagation.default;\n    }\n  });\n  Object.defineProperty(_exports, \"stopPropagation\", {\n    enumerable: true,\n    get: function () {\n      return _stopPropagation.stopPropagation;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-event-helpers/helpers/stop-propagation\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/t\", [\"exports\", \"ember-intl/helpers/t\"], function (_exports, _t) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _t.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/t\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/task\", [\"exports\", \"ember-concurrency/helpers/task\"], function (_exports, _task) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _task.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/task\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/timesheet-status-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // A grouping has no status record until someone sets one; until then it\n  // reads as pending.\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([status]) {\n      return status === 'accepted' ? this.intl.t('common.Accepted') : this.intl.t('common.Pending');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/titleize\", [\"exports\", \"ember-cli-string-helpers/helpers/titleize\"], function (_exports, _titleize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.default;\n    }\n  });\n  Object.defineProperty(_exports, \"titleize\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.titleize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/titleize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/toggle-action\", [\"exports\", \"ember-composable-helpers/helpers/toggle-action\"], function (_exports, _toggleAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggleAction.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/toggle-action\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/toggle\", [\"exports\", \"ember-composable-helpers/helpers/toggle\"], function (_exports, _toggle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"toggle\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.toggle;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/toggle\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/transition-to\", [\"exports\", \"ember-router-helpers/helpers/transition-to.js\"], function (_exports, _transitionTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transitionTo.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/transition-to.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/trim\", [\"exports\", \"ember-cli-string-helpers/helpers/trim\"], function (_exports, _trim) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _trim.default;\n    }\n  });\n  Object.defineProperty(_exports, \"trim\", {\n    enumerable: true,\n    get: function () {\n      return _trim.trim;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/trim\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/truncate\", [\"exports\", \"ember-cli-string-helpers/helpers/truncate\"], function (_exports, _truncate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _truncate.default;\n    }\n  });\n  Object.defineProperty(_exports, \"truncate\", {\n    enumerable: true,\n    get: function () {\n      return _truncate.truncate;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/truncate\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/underscore\", [\"exports\", \"ember-cli-string-helpers/helpers/underscore\"], function (_exports, _underscore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _underscore.default;\n    }\n  });\n  Object.defineProperty(_exports, \"underscore\", {\n    enumerable: true,\n    get: function () {\n      return _underscore.underscore;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/underscore\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _unix.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/unix\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/uppercase\", [\"exports\", \"ember-cli-string-helpers/helpers/uppercase\"], function (_exports, _uppercase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _uppercase.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uppercase\", {\n    enumerable: true,\n    get: function () {\n      return _uppercase.uppercase;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/uppercase\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/url-for\", [\"exports\", \"ember-router-helpers/helpers/url-for.js\"], function (_exports, _urlFor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _urlFor.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/url-for.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/utc\", [\"exports\", \"ember-moment/helpers/utc\"], function (_exports, _utc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _utc.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/utc\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/w\", [\"exports\", \"ember-cli-string-helpers/helpers/w\"], function (_exports, _w) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _w.default;\n    }\n  });\n  Object.defineProperty(_exports, \"w\", {\n    enumerable: true,\n    get: function () {\n      return _w.w;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/w\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _xor.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/xor\"eaimeta@70e063a35619d71f\n});","define(\"portal/initializers/am5\", [\"exports\", \"portal/config/environment\", \"@amcharts/amcharts5\"], function (_exports, _environment, am5) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"@amcharts/amcharts5\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'am5',\n    initialize: () => {\n      am5.addLicense(_environment.default.am5LicenseKey);\n    }\n  };\n});","define(\"portal/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"portal/config/environment\"], function (_exports, _initializerFactory, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-app-version/initializer-factory\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  let name, version;\n  if (_environment.default.APP) {\n    name = _environment.default.APP.name;\n    version = _environment.default.APP.version;\n  }\n  var _default = _exports.default = {\n    name: 'App Version',\n    initialize: (0, _initializerFactory.default)(name, version)\n  };\n});","define(\"portal/initializers/deprecation-handler\", [\"exports\", \"portal/utils/deprecation-filter\"], function (_exports, _deprecationFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/deprecation-filter\"eaimeta@70e063a35619d71f\n  // The filter lives in a util rather than here because the test suite installs\n  // it too, and importing an `initializers/` module from the tests tree resolves\n  // a second copy of it — leaving the one ember-load-initializers pulls from the\n  // AMD registry without its default export, which fails the whole tests bundle.\n  function initialize() {\n    (0, _deprecationFilter.installDeprecationFilter)();\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"portal/initializers/ember-cli-mirage\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'ember-cli-mirage',\n    initialize() {}\n  };\n});","define(\"portal/initializers/ember-data-data-adapter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize() {\n    // disables automatic Ember Inspector data adapter registration\n  }\n  var _default = _exports.default = {\n    initialize,\n    name: 'ember-data-data-adapter'\n  };\n});","define(\"portal/initializers/ember-data\", [\"exports\", \"@ember-data/request-utils/deprecation-support\"], function (_exports, _deprecationSupport) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/request-utils/deprecation-support\"eaimeta@70e063a35619d71f\n  /*\n    This code initializes EmberData in an Ember application.\n  */\n  var _default = _exports.default = {\n    name: 'ember-data',\n    initialize(application) {\n      application.registerOptionsForType('serializer', {\n        singleton: false\n      });\n      application.registerOptionsForType('adapter', {\n        singleton: false\n      });\n    }\n  };\n});","define(\"portal/initializers/ember-responsive-breakpoints\", [\"exports\", \"ember-responsive/initializers/responsive\"], function (_exports, _responsive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/initializers/responsive\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _responsive.default;\n});","define(\"portal/initializers/ember-simple-auth\", [\"exports\", \"ember-simple-auth/initializers/ember-simple-auth\"], function (_exports, _emberSimpleAuth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberSimpleAuth.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/initializers/ember-simple-auth\"eaimeta@70e063a35619d71f\n});","define(\"portal/initializers/engines\", [\"exports\", \"ember-engines/initializers/engines\"], function (_exports, _engines) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _engines.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function () {\n      return _engines.initialize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-engines/initializers/engines\"eaimeta@70e063a35619d71f\n});","define(\"portal/initializers/init-domain\", [\"exports\", \"portal/config/environment\", \"portal/utils/favicon-title\", \"portal/utils/platform\"], function (_exports, _environment, _faviconTitle, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"portal/utils/favicon-title\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'init-domain',\n    initialize: () => {\n      const {\n        name,\n        favicon,\n        apiUrl,\n        authenticationUrl\n      } = (0, _platform.getDefaultPlatform)();\n      if (name) (0, _faviconTitle.changeTitle)(name);\n      if (favicon) (0, _faviconTitle.changeFavicon)(favicon);\n      if (authenticationUrl) _environment.default.oidc.authenticationURL = authenticationUrl;\n      if (apiUrl) _environment.default.urls.api = apiUrl;\n    }\n  };\n});","define(\"portal/initializers/mobile-drag-drop\", [\"exports\", \"mobile-drag-drop\", \"mobile-drag-drop/scroll-behaviour\"], function (_exports, _mobileDragDrop, _scrollBehaviour) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"mobile-drag-drop\",0,\"mobile-drag-drop/scroll-behaviour\"eaimeta@70e063a35619d71f\n  // sets up the polyfill for the html drag drop api\n  var _default = _exports.default = {\n    name: 'init-mobile-drag-drop',\n    initialize: () => {\n      (0, _mobileDragDrop.polyfill)({\n        dragImageTranslateOverride: _scrollBehaviour.scrollBehaviourDragImageTranslateOverride\n      });\n    }\n  };\n});","define(\"portal/initializers/new-relic\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'new-relic',\n    initialize: () => {\n      if (document) {\n        const element = document.createElement('script');\n        element.setAttribute('type', 'text/javascript');\n        if (_environment.default.environment === 'production') {\n          element.setAttribute('src', 'https://s3.ap-southeast-2.amazonaws.com/public.assets.buildaprice.co.nz/new-relic/newrelic.prod.min.js');\n          document.body.appendChild(element);\n        }\n        if (_environment.default.environment === 'staging') {\n          element.setAttribute('src', 'https://s3.ap-southeast-2.amazonaws.com/public.assets.buildaprice.co.nz/new-relic/newrelic.staging.min.js');\n          document.body.appendChild(element);\n        }\n      }\n    }\n  };\n});","define(\"portal/initializers/responsive\", [\"exports\", \"ember-responsive/initializers/responsive\"], function (_exports, _responsive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/initializers/responsive\"eaimeta@70e063a35619d71f\n  /**\n   * Ember responsive initializer\n   *\n   * Supports auto injecting media service app-wide.\n   *\n   * Generated by the ember-responsive addon. Customize initialize to change\n   * injection.\n   */\n  var _default = _exports.default = {\n    name: 'responsive',\n    initialize: _responsive.initialize\n  };\n});","define(\"portal/initializers/restore-array-extensions\", [\"exports\", \"@ember/array\"], function (_exports, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function initialize() {\n    // Keep legacy array APIs available while Ember's built-in prototype extension\n    if (typeof Array.prototype.pushObject !== 'function') {\n      _array.NativeArray.apply(Array.prototype, true);\n    }\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"portal/initializers/update-check\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'update-check',\n    initialize: () => {\n      if (window.Worker) {\n        const myWorker = new Worker('/assets/update-check-842bcfc2e55bff3468d9b7cc2cb618ef.js');\n        myWorker.onmessage = e => {\n          if (e.data === 'update-available') {\n            document.body.insertAdjacentHTML('afterbegin', '<div id=\"appUpdateNotification\" ' + 'class=\"btn btn-info text-white w-100 rounded-0\" ' + 'onclick=\"window.location.reload(true);\">' + 'Application update available. Save your work and click to update.</div>');\n            myWorker.terminate();\n          }\n        };\n      }\n    }\n  };\n});","define(\"portal/initializers/urls\", [\"exports\", \"portal/config/environment\", \"portal/utils/path-resolver\"], function (_exports, _environment, _pathResolver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"portal/utils/path-resolver\"eaimeta@70e063a35619d71f\n  function initialize() {\n    _environment.default.urls.app = (0, _pathResolver.default)(_environment.default.urls.app);\n    _environment.default.urls.api = (0, _pathResolver.default)(_environment.default.urls.api);\n  }\n  var _default = _exports.default = {\n    name: 'urls',\n    initialize\n  };\n});","define(\"portal/instance-initializers/add-modals-container\", [\"exports\", \"ember-modal-dialog/instance-initializers/add-modals-container\"], function (_exports, _addModalsContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/instance-initializers/add-modals-container\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'add-modals-container',\n    initialize: _addModalsContainer.default\n  };\n});","define(\"portal/metrics-adapters/base\", [\"exports\", \"ember-metrics/metrics-adapters/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _base.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-metrics/metrics-adapters/base\"eaimeta@70e063a35619d71f\n});","define(\"portal/metrics-adapters/google-analytics-four\", [\"exports\", \"ember-metrics/metrics-adapters/google-analytics-four\"], function (_exports, _googleAnalyticsFour) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _googleAnalyticsFour.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-metrics/metrics-adapters/google-analytics-four\"eaimeta@70e063a35619d71f\n});","define(\"portal/mixins/edit-record\", [\"exports\", \"@ember/object/mixin\", \"@ember/service\", \"@ember/object\"], function (_exports, _mixin, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _mixin.default.create({\n    isSaving: false,\n    isDeleting: false,\n    errors: [],\n    notifications: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    messages: {\n      save: {\n        success: 'The record was saved successfully.',\n        error: 'The record failed to save.'\n      },\n      delete: {\n        success: 'The record was deleted successfully.',\n        error: 'The record was not deleted.'\n      }\n    },\n    actions: {\n      save: function () {\n        var record = (0, _object.get)(this, 'record');\n        var errors = (0, _object.get)(this, 'errors');\n\n        // Clear existing errors\n        errors.forEach(error => {\n          (0, _object.get)(this, 'notifications').clear(error);\n        });\n\n        // Tell the user\n        (0, _object.set)(this, 'isSaving', true);\n        record.save().then(() => {\n          // Tell the user\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').success({\n            message: (0, _object.get)(this, 'messages.save.success'),\n            autoClear: true\n          });\n\n          // Leave\n          var route = (0, _object.get)(this, 'transitionToOnSave');\n          if (route) {\n            this.router.transitionTo(route);\n          }\n        }, () => {\n          // Tell the user\n          (0, _object.set)(this, 'isSaving', false);\n          var error = (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'messages.save.error'));\n\n          // Save the error to be cleared later\n          errors.pushObject(error);\n        });\n      },\n      delete: function () {\n        var record = (0, _object.get)(this, 'record');\n        var errors = (0, _object.get)(this, 'errors');\n\n        // Clear existing errors\n        errors.forEach(error => {\n          (0, _object.get)(this, 'notifications').clear(error);\n        });\n\n        // Tell the user\n        (0, _object.set)(this, 'isDeleting', true);\n        record.destroyRecord().then(() => {\n          // Tell the user\n          (0, _object.set)(this, 'isDeleting', false);\n          (0, _object.get)(this, 'notifications').success({\n            message: (0, _object.get)(this, 'messages.delete.success'),\n            autoClear: true\n          });\n\n          // Leave\n          var route = (0, _object.get)(this, 'transitionToOnDelete');\n          if (route) {\n            this.router.transitionTo(route);\n          }\n        }, () => {\n          // Tell the user\n          (0, _object.set)(this, 'isDeleting', false);\n          var error = (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'messages.delete.error'));\n\n          // Save the error to be cleared later\n          errors.pushObject(error);\n        });\n      }\n    }\n  });\n});","define(\"portal/mixins/menu-route\", [\"exports\", \"@ember/object/mixin\", \"@ember/object/evented\", \"@ember/object\", \"@ember/debug\", \"@ember/service\"], function (_exports, _mixin, _evented, _object, _debug, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/object/evented\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _mixin.default.create({\n    mediaEvents: (0, _service.inject)(),\n    media: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    /**\n     * A reference to the route to redirect to when the viewport is desktop-sized.\n     * @type {string}\n     * @required\n     */\n    defaultRoute: null,\n    defaultRouteModel: null,\n    transitionArgs: (0, _object.computed)('defaultRoute', 'defaultRouteModel', function () {\n      return [(0, _object.get)(this, 'defaultRoute'), (0, _object.get)(this, 'defaultRouteModel')].filter(i => i != null);\n    }),\n    /**\n     * Check the `defaultOption` has been provided.\n     *\n     * @returns {void}\n     */\n    init() {\n      this._super(...arguments);\n      if (!(0, _object.get)(this, 'defaultRoute')) {\n        (false && (0, _debug.warn)('Menu route mixin expects the defaultRoute field to be set.', false, {\n          id: 'generic-warning'\n        }));\n      }\n    },\n    /**\n     * Handles a user visiting a menu route with a desktop-sized viewport. In this case we\n     * simply want to redirect them to the default option and allow them to choose an\n     * alternative from a sidebar.\n     *\n     * @returns {void}\n     */\n    redirect() {\n      (0, _object.get)(this, 'router').transitionTo(...(0, _object.get)(this, 'transitionArgs'));\n    },\n    /**\n     * Handles the sceanario where a user visits a menu route with a mobile- or\n     * tablet-sized viewport and then enlarges it.\n     */\n    registerViewportModeChangeListener: (0, _evented.on)('activate', function () {\n      (0, _object.get)(this, 'mediaEvents').on('mediaMatchesDidChange', this, this.handleViewportModeChange);\n    }),\n    deregisterViewModeChangeListener: (0, _evented.on)('deactivate', function () {\n      (0, _object.get)(this, 'mediaEvents').off('mediaMatchesDidChange', this, this.handleViewportModeChange);\n    }),\n    handleViewportModeChange() {\n      if ((0, _object.get)(this, 'media.isDesktop')) {\n        (0, _object.get)(this, 'router').replaceWith(...(0, _object.get)(this, 'transitionArgs'));\n      }\n    }\n  });\n});","define(\"portal/mixins/scroll-route\", [\"exports\", \"@ember/runloop\", \"@ember/object/mixin\", \"@ember/object\", \"jquery\"], function (_exports, _runloop, _mixin, _object, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\",0,\"@ember/object/mixin\",0,\"@ember/object\",0,\"jquery\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _mixin.default.create({\n    actions: {\n      didTransition() {\n        this._super(...arguments);\n\n        // Scroll the page the next time it finishes rendering.\n        (0, _runloop.scheduleOnce)('afterRender', this, () => {\n          const scrollHeight = (0, _object.get)(this, 'scrollHeight') || 0;\n          (0, _jquery.default)(window).scrollTop(scrollHeight);\n        });\n      },\n      willTransition() {\n        this._super(...arguments);\n\n        // Save the scroll height for when you return to the same route.\n        (0, _object.set)(this, 'scrollHeight', (0, _jquery.default)(window).scrollTop());\n      }\n    }\n  });\n});","define(\"portal/models/account-map\", [\"exports\", \"@ember-data/model\", \"portal/utils/calc-map-balance\", \"@ember/object\"], function (_exports, _model, _calcMapBalance, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/utils/calc-map-balance\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _object.computed)('sourceBalance', 'inverted', 'step'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"account\", _descriptor, this);\n      _initializerDefineProperty(this, \"system\", _descriptor2, this);\n      _initializerDefineProperty(this, \"systemId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"externalId\", _descriptor4, this);\n      _initializerDefineProperty(this, \"name\", _descriptor5, this);\n      _initializerDefineProperty(this, \"code\", _descriptor6, this);\n      _initializerDefineProperty(this, \"inverted\", _descriptor7, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n    }\n    /*\n     * This is to support the importer pages. To better understand, look at:\n     * app/controllers/entity/financials/import/data.js\n     * app/utils/balance-calculator.js\n     * app/utils/calc-map-balance.js\n     *\n     * This computed property was being set from addValue() within balance-calculator.js but had\n     * issues when trying to set a second time.\n     */\n    get value() {\n      const source = this.sourceBalance;\n      return (0, _calcMapBalance.default)(this, source);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"account\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"system\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"systemId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"externalId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"inverted\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec1], Object.getOwnPropertyDescriptor(_class2.prototype, \"value\"), _class2.prototype), _class2);\n});","define(\"portal/models/account\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('boolean'), _dec1 = (0, _model.attr)('number'), _dec10 = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.attr)('date'), _dec13 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"code\", _descriptor2, this);\n      _initializerDefineProperty(this, \"label\", _descriptor3, this);\n      _initializerDefineProperty(this, \"description\", _descriptor4, this);\n      _initializerDefineProperty(this, \"category\", _descriptor5, this);\n      _initializerDefineProperty(this, \"debitCredit\", _descriptor6, this);\n      _initializerDefineProperty(this, \"periodic\", _descriptor7, this);\n      _initializerDefineProperty(this, \"format\", _descriptor8, this);\n      _initializerDefineProperty(this, \"status\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isHeading\", _descriptor0, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor12, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor13, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"label\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"category\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"debitCredit\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"periodic\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"format\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isHeading\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/attachment-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/attachment-project-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('attachment-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"attachment\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/attachment\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/utils/sanitize-filename\", \"portal/models/base-model\", \"@glimmer/tracking\"], function (_exports, _model, _service, _sanitizeFilename, _baseModel, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.shortcutsToMime = _exports.mimeToHumanType = _exports.isMimeSame = _exports.humanTypes = _exports.extensionToMime = _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/utils/sanitize-filename\",0,\"portal/models/base-model\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // A collection of types we're likely to encounter\n  // http://www.iana.org/assignments/media-types/media-types.xhtml\n  const extensionToMime = _exports.extensionToMime = {\n    aac: 'audio/aac',\n    abw: 'application/x-abiword',\n    avi: 'video/x-msvideo',\n    csv: 'text/csv',\n    doc: 'application/msword',\n    docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n    gif: 'image/gif',\n    jpeg: 'image/jpeg',\n    jpg: 'image/jpeg',\n    mp3: 'audio/mpeg',\n    mpeg: 'video/mpeg',\n    odp: 'application/vnd.oasis.opendocument.presentation',\n    ods: 'application/vnd.oasis.opendocument.spreadsheet',\n    odt: 'application/vnd.oasis.opendocument.text',\n    png: 'image/png',\n    pdf: 'application/pdf',\n    ppt: 'application/vnd.ms-powerpoint',\n    pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n    rtf: 'application/rtf',\n    tif: 'image/tiff',\n    tiff: 'image/tiff',\n    txt: 'text/plain',\n    weba: 'audio/webm',\n    webm: 'video/webm',\n    webp: 'image/webp',\n    xls: 'application/vnd.ms-excel',\n    xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n    xml: 'application/xml',\n    gz: 'application/gzip',\n    rar: 'application/vnd.rar',\n    zip: 'application/zip',\n    '7z': 'application/x-7z-compressed'\n  };\n  const shortcutsToMime = _exports.shortcutsToMime = {\n    audio: ['audio/*'],\n    image: ['image/*'],\n    video: ['video/*'],\n    text: ['text/*'],\n    document: [extensionToMime.csv, extensionToMime.doc, extensionToMime.docx, extensionToMime.odp, extensionToMime.ods, extensionToMime.odt, extensionToMime.pdf, extensionToMime.ppt, extensionToMime.pptx, extensionToMime.rtf, extensionToMime.xls, extensionToMime.xlsx, extensionToMime.xml],\n    archive: [extensionToMime.gz, extensionToMime.rar, extensionToMime.zip, extensionToMime['7z']]\n  };\n  const humanTypes = _exports.humanTypes = {\n    audio: 'Audio',\n    document: 'Document',\n    presentation: 'Presentation',\n    spreadsheet: 'Spreadsheet',\n    image: 'Image',\n    video: 'Video',\n    archive: 'Archive'\n  };\n  const mimeToHumanType = _exports.mimeToHumanType = {\n    'audio/aac': humanTypes.audio,\n    'application/x-abiword': humanTypes.document,\n    'video/x-msvideo': humanTypes.video,\n    'text/csv': humanTypes.spreadsheet,\n    'application/msword': humanTypes.document,\n    'application/vnd.openxmlformats-officedocument.wordprocessingml.document': humanTypes.document,\n    'image/gif': humanTypes.image,\n    'image/jpeg': humanTypes.image,\n    'audio/mpeg': humanTypes.audio,\n    'video/mpeg': humanTypes.video,\n    'application/vnd.oasis.opendocument.presentation': humanTypes.presentation,\n    'application/vnd.oasis.opendocument.spreadsheet': humanTypes.spreadsheet,\n    'application/vnd.oasis.opendocument.text': humanTypes.document,\n    'image/png': humanTypes.image,\n    'application/pdf': humanTypes.document,\n    'application/vnd.ms-powerpoint': humanTypes.presentation,\n    'application/vnd.openxmlformats-officedocument.presentationml.presentation': humanTypes.presentation,\n    'application/rtf': humanTypes.document,\n    'image/tiff': humanTypes.image,\n    'text/plain': humanTypes.document,\n    'audio/webm': humanTypes.audio,\n    'video/webm': humanTypes.video,\n    'image/webp': humanTypes.image,\n    'application/vnd.ms-excel': humanTypes.spreadsheet,\n    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': humanTypes.spreadsheet,\n    'application/xml': humanTypes.document,\n    'application/gzip': humanTypes.archive,\n    'application/vnd.rar': humanTypes.archive,\n    'application/zip': humanTypes.archive,\n    'application/x-7z-compressed': humanTypes.archive\n  };\n  const isMimeSame = (testMime, checkMime) => {\n    const regex = new RegExp(`^${testMime.replace('.', '\\\\.').replace('*', '.*').replace('/', '\\\\/')}$`);\n    return regex.test(checkMime);\n  };\n  _exports.isMimeSame = isMimeSame;\n  const toBase64 = file => new Promise((resolve, reject) => {\n    const reader = new FileReader();\n\n    // It so happens that Data URLs are base64 encoded.\n    // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL\n    reader.readAsDataURL(file);\n    reader.onload = () => {\n      // trim the data:something/something;base64,\n      const base64 = reader.result.split(',').pop();\n      resolve(base64);\n    };\n    reader.onerror = error => reject(error);\n  });\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'allEntityAttachments'\n  }), _dec0 = (0, _model.hasMany)('link-attachment-to-project', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.hasMany)('link-attachment-to-task', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.hasMany)('link-attachment-to-entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      // send this attribute via adapterOptions.meta\n      _initializerDefineProperty(this, \"data\", _descriptor2, this);\n      // base64\n      _initializerDefineProperty(this, \"filename\", _descriptor3, this);\n      _initializerDefineProperty(this, \"extension\", _descriptor4, this);\n      _initializerDefineProperty(this, \"fileType\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hash\", _descriptor6, this);\n      _initializerDefineProperty(this, \"size\", _descriptor7, this);\n      // bytes\n      _initializerDefineProperty(this, \"description\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"projects\", _descriptor10, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor11, this);\n      _initializerDefineProperty(this, \"entities\", _descriptor12, this);\n    }\n    static async fromFileInput(file, store, entity) {\n      // we can not trust the file names coming from the system are valid\n      const filename = (0, _sanitizeFilename.default)(file.name);\n      const extension = filename.split('.').pop();\n      const fileType = file.type;\n      const data = await toBase64(file);\n      return store.createRecord('attachment', {\n        filename,\n        extension,\n        fileType,\n        data,\n        entity\n      });\n    }\n    get href() {\n      return this._meta?.href;\n    }\n    get humanType() {\n      const humanType = mimeToHumanType[this.fileType] || 'File';\n      return humanType;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"data\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"filename\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"extension\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"fileType\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"hash\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"size\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"projects\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"entities\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/base-attachment-model\", [\"exports\", \"portal/models/base-model\", \"portal/utils/sanitize-filename\"], function (_exports, _baseModel, _sanitizeFilename) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.shortcutsToMime = _exports.mimeToHumanType = _exports.isMimeSame = _exports.humanTypes = _exports.extensionToMime = _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/models/base-model\",0,\"portal/utils/sanitize-filename\"eaimeta@70e063a35619d71f\n  // A collection of types we're likely to encounter\n  // http://www.iana.org/assignments/media-types/media-types.xhtml\n  const extensionToMime = _exports.extensionToMime = {\n    aac: 'audio/aac',\n    abw: 'application/x-abiword',\n    avi: 'video/x-msvideo',\n    csv: 'text/csv',\n    doc: 'application/msword',\n    docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n    gif: 'image/gif',\n    jpeg: 'image/jpeg',\n    jpg: 'image/jpeg',\n    mp3: 'audio/mpeg',\n    mpeg: 'video/mpeg',\n    odp: 'application/vnd.oasis.opendocument.presentation',\n    ods: 'application/vnd.oasis.opendocument.spreadsheet',\n    odt: 'application/vnd.oasis.opendocument.text',\n    png: 'image/png',\n    pdf: 'application/pdf',\n    ppt: 'application/vnd.ms-powerpoint',\n    pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n    rtf: 'application/rtf',\n    tif: 'image/tiff',\n    tiff: 'image/tiff',\n    txt: 'text/plain',\n    weba: 'audio/webm',\n    webm: 'video/webm',\n    webp: 'image/webp',\n    xls: 'application/vnd.ms-excel',\n    xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n    xml: 'application/xml',\n    gz: 'application/gzip',\n    rar: 'application/vnd.rar',\n    zip: 'application/zip',\n    '7z': 'application/x-7z-compressed'\n  };\n  const shortcutsToMime = _exports.shortcutsToMime = {\n    audio: ['audio/*'],\n    image: ['image/*'],\n    video: ['video/*'],\n    text: ['text/*'],\n    document: [extensionToMime.csv, extensionToMime.doc, extensionToMime.docx, extensionToMime.odp, extensionToMime.ods, extensionToMime.odt, extensionToMime.pdf, extensionToMime.ppt, extensionToMime.pptx, extensionToMime.rtf, extensionToMime.xls, extensionToMime.xlsx, extensionToMime.xml],\n    archive: [extensionToMime.gz, extensionToMime.rar, extensionToMime.zip, extensionToMime['7z']]\n  };\n  const humanTypes = _exports.humanTypes = {\n    audio: 'Audio',\n    document: 'Document',\n    presentation: 'Presentation',\n    spreadsheet: 'Spreadsheet',\n    image: 'Image',\n    video: 'Video',\n    archive: 'Archive'\n  };\n  const mimeToHumanType = _exports.mimeToHumanType = {\n    'audio/aac': humanTypes.audio,\n    'application/x-abiword': humanTypes.document,\n    'video/x-msvideo': humanTypes.video,\n    'text/csv': humanTypes.spreadsheet,\n    'application/msword': humanTypes.document,\n    'application/vnd.openxmlformats-officedocument.wordprocessingml.document': humanTypes.document,\n    'image/gif': humanTypes.image,\n    'image/jpeg': humanTypes.image,\n    'audio/mpeg': humanTypes.audio,\n    'video/mpeg': humanTypes.video,\n    'application/vnd.oasis.opendocument.presentation': humanTypes.presentation,\n    'application/vnd.oasis.opendocument.spreadsheet': humanTypes.spreadsheet,\n    'application/vnd.oasis.opendocument.text': humanTypes.document,\n    'image/png': humanTypes.image,\n    'application/pdf': humanTypes.document,\n    'application/vnd.ms-powerpoint': humanTypes.presentation,\n    'application/vnd.openxmlformats-officedocument.presentationml.presentation': humanTypes.presentation,\n    'application/rtf': humanTypes.document,\n    'image/tiff': humanTypes.image,\n    'text/plain': humanTypes.document,\n    'audio/webm': humanTypes.audio,\n    'video/webm': humanTypes.video,\n    'image/webp': humanTypes.image,\n    'application/vnd.ms-excel': humanTypes.spreadsheet,\n    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': humanTypes.spreadsheet,\n    'application/xml': humanTypes.document,\n    'application/gzip': humanTypes.archive,\n    'application/vnd.rar': humanTypes.archive,\n    'application/zip': humanTypes.archive,\n    'application/x-7z-compressed': humanTypes.archive\n  };\n  const isMimeSame = (testMime, checkMime) => {\n    const regex = new RegExp(`^${testMime.replace('.', '\\\\.').replace('*', '.*').replace('/', '\\\\/')}$`);\n    return regex.test(checkMime);\n  };\n  _exports.isMimeSame = isMimeSame;\n  const toBase64 = file => new Promise((resolve, reject) => {\n    const reader = new FileReader();\n\n    // It so happens that Data URLs are base64 encoded.\n    // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL\n    reader.readAsDataURL(file);\n    reader.onload = () => {\n      // trim the data:something/something;base64,\n      const base64 = reader.result.split(',').pop();\n      resolve(base64);\n    };\n    reader.onerror = error => reject(error);\n  });\n  class BaseAttachmentsModel extends _baseModel.default {\n    get data() {\n      return this._data;\n    }\n    set data(value) {\n      this._data = value;\n    }\n    get filename() {\n      return this._meta?.filename || this._filename;\n    }\n    set filename(value) {\n      this._filename = value;\n    }\n    get extension() {\n      return this._meta?.extension || this._extension;\n    }\n    set extension(value) {\n      this._extension = value;\n    }\n    get href() {\n      if (this._meta?.href) return this._meta.href;\n      if (!this.data || !this.fileType) return undefined;\n      return `data:${this.fileType};base64,${this.data}`;\n    }\n    get fileType() {\n      return this._meta?.fileType || this._fileType;\n    }\n    set fileType(value) {\n      this._fileType = value;\n    }\n    get size() {\n      return this._meta?.size || this._size;\n    }\n    set size(value) {\n      this._size = value;\n    }\n    get previewHref() {\n      if (!this.href) return undefined;\n      if (this.href.includes('data')) return this.href;\n      const separator = this.href.includes('?') ? '&' : '?';\n      return `${this.href}${separator}download=false#navpanes=0&view=FitH`;\n    }\n    get attachmentInfo() {\n      return {\n        fileType: this.fileType,\n        filename: this.filename,\n        href: this.href,\n        id: this.id,\n        size: this.size,\n        previewHref: this.previewHref\n      };\n    }\n    async save(options = {}) {\n      const {\n        meta,\n        ...adapterOptions\n      } = options.adapterOptions || {};\n      if (this.isNew) {\n        adapterOptions.meta = {\n          data: this.data,\n          filename: this.filename,\n          fileType: this.fileType,\n          extension: this.extension,\n          ...meta\n        };\n      }\n      return super.save({\n        ...options,\n        adapterOptions\n      });\n    }\n    static async fromFileInput(file, store, entity) {\n      // we can not trust the file names coming from the system are valid\n      const filename = (0, _sanitizeFilename.default)(file.name);\n      const extension = filename.split('.').pop();\n      const fileType = file.type;\n      const size = file.size;\n      const data = await toBase64(file);\n      return store.createRecord('attachment', {\n        filename,\n        extension,\n        fileType,\n        size,\n        data,\n        entity\n      });\n    }\n    get humanType() {\n      const humanType = mimeToHumanType[this.fileType] || 'File';\n      return humanType;\n    }\n  }\n  _exports.default = BaseAttachmentsModel;\n});","define(\"portal/models/base-model\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _BaseModel;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let BaseModel = _exports.default = (_class = (_BaseModel = class BaseModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_meta\", _descriptor, this);\n    }\n    safeBelongsToValue(relationName) {\n      // halt if the record has been severed from the store\n      if (this.isDestroyed || this.isDestroying || this.isDeleted) {\n        return null;\n      }\n      return this.belongsTo(relationName).value();\n    }\n    safeHasManyToValue(relationName) {\n      // halt if the record has been severed from the store\n      if (this.isDestroyed || this.isDestroying || this.isDeleted) {\n        return null;\n      }\n      return this.hasMany(relationName).value();\n    }\n    toJSON() {\n      const serialized = this.serialize({\n        includeId: true\n      });\n      const obj = {\n        ...serialized.data.attributes,\n        id: serialized.data.id\n      };\n      Object.entries(serialized.data.relationships).forEach(([key, value]) => {\n        if (Array.isArray(value.data)) {\n          obj[key] = value.data.map(relationship => relationship.id);\n          return;\n        }\n        obj[key] = value.data?.id;\n      });\n      return obj;\n    }\n  }, _defineProperty(_BaseModel, \"requiredMetaFields\", []), _BaseModel), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_meta\", [_model.attr], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/models/bill-attachment\", [\"exports\", \"@ember-data/model\", \"portal/models/base-attachment-model\"], function (_exports, _model, _baseAttachmentModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-attachment-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('bill', {\n    async: true,\n    inverse: 'attachments'\n  }), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseAttachmentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"bill\", _descriptor, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"bill\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/bill-item\", [\"exports\", \"portal/models/base-model\", \"@ember-data/model\", \"@ember/object\"], function (_exports, _baseModel, _model, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"portal/models/base-model\",0,\"@ember-data/model\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 1\n  }), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.belongsTo)('bill', {\n    async: true,\n    inverse: 'items'\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.belongsTo)('purchase-order-item', {\n    async: true,\n    inverse: null\n  }), _dec14 = (0, _object.computed)('quantity', 'unitPrice'), _dec15 = (0, _object.computed)('glAccount.label'), _dec16 = (0, _object.computed)('isMapped', 'project.id', 'task.id'), _dec17 = (0, _object.computed)('task', 'task.{parent,project}', 'project', 'isMapped'), _dec18 = (0, _object.computed)('isDeleted', 'description', 'productCode', 'quantity', 'unitPrice'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"description\", _descriptor, this);\n      _initializerDefineProperty(this, \"productCode\", _descriptor2, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitTaxAmount\", _descriptor4, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor6, this);\n      _initializerDefineProperty(this, \"reported\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor9, this);\n      _initializerDefineProperty(this, \"bill\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"project\", _descriptor10, this);\n      _initializerDefineProperty(this, \"task\", _descriptor11, this);\n      _initializerDefineProperty(this, \"glAccount\", _descriptor12, this);\n      _initializerDefineProperty(this, \"purchaseOrderItem\", _descriptor13, this);\n    }\n    get isMapped() {\n      return this._meta?.isMapped;\n    }\n    set isMapped(value) {\n      // Do nothing\n    }\n    get totalPrice() {\n      return (this.quantity || 0) * (this.unitPrice || 0);\n    }\n    get glAccountLabel() {\n      const glAccount = this.belongsTo('glAccount').value();\n      if (!glAccount) return '–';\n      return glAccount.label;\n    }\n\n    // you can map when the item is not mapped OR you can see the project or task it is mapped to\n    get canMap() {\n      const isMapped = this.isMapped;\n      if (!isMapped) return true;\n      const canSeeProject = Boolean(this.belongsTo('project').id());\n      const canSeeTask = Boolean(this.belongsTo('task').id());\n      return canSeeProject || canSeeTask;\n    }\n    get assignment() {\n      const assignments = [];\n      const task = this.belongsTo('task').value();\n      const project = this.belongsTo('project').value();\n      if (task?.id) {\n        const handleTask = task => {\n          assignments.unshift(task.name);\n          const parent = task.belongsTo?.('parent')?.value?.();\n          if (parent?.id) {\n            handleTask(parent);\n          } else {\n            const project = task.belongsTo?.('project')?.value?.();\n            if (project?.name) {\n              assignments.unshift(project.name);\n            }\n          }\n        };\n        handleTask(task);\n      } else if (project?.id) {\n        assignments.unshift(project.name);\n      } else if (this.isMapped) {\n        return 'Assigned to a project or task you can not see';\n      }\n      return assignments.join(' > ') || ' – ';\n    }\n\n    // To be valid, an item must have:\n    // * A product code or/and a description\n    // * A quantity (may be zero, but not null|undefined)\n    // * A unitPrice (may be zero, but not null|undefined)\n    get isValid() {\n      if (this.isDeleted) return true;\n      return (this.productCode || this.description) && this.quantity != null && this.unitPrice !== null;\n    }\n\n    // we need this because, for valid to determine whether quantity has to be negative or positive\n    get billType() {\n      return this.belongsTo('bill').value()?.billType;\n    }\n    get allocations() {\n      const allocations = this._meta?.allocationPath ?? [];\n      return [allocations];\n    }\n    get purchaseOrderMatchingStatus() {\n      const purchaseOrderDetails = this._meta?.purchaseOrder;\n      let hasError = false;\n      let hasWarning = false;\n      const messages = [];\n      if (!purchaseOrderDetails) {\n        hasError = true;\n        messages.push(`Item is not mapped to po item.`);\n        return {\n          class: hasError ? 'text-danger' : 'text-warning',\n          title: messages.join('</br>')\n        };\n      }\n      const billedQuantity = Number(this.quantity) + Number(purchaseOrderDetails.quantityInOtherBills);\n      const quantityOrdered = Number(purchaseOrderDetails.quantityOrdered);\n      const quantityDelivered = Number(purchaseOrderDetails.quantityDelivered);\n      if (!purchaseOrderDetails.unitPriceMatches) {\n        hasError = true;\n        messages.push(`UnitPrice Status: does not match.`);\n      }\n      if (quantityOrdered !== null) {\n        if (billedQuantity > quantityOrdered) {\n          hasError = true;\n          messages.push(`Ordered Status : billed quantity ${billedQuantity} is more then what has been ordered ${quantityOrdered}.`);\n        } else if (billedQuantity < quantityOrdered) {\n          hasWarning = true;\n          messages.push(`Ordered Status : billed quantity ${billedQuantity} is less then what has been ordered ${quantityOrdered}.`);\n        }\n      }\n      if (quantityDelivered != null) {\n        if (billedQuantity > quantityDelivered) {\n          hasError = true;\n          messages.push(`Delivery Status : billed quantity ${billedQuantity} is more then what has been delivered ${quantityDelivered}.`);\n        } else if (billedQuantity < quantityDelivered) {\n          hasWarning = true;\n          messages.push(`Delivery Status : billed quantity ${billedQuantity} is less then what has been delivered ${quantityDelivered}.`);\n        }\n      }\n      if (!hasError && !hasWarning) return null;\n      return {\n        class: hasError ? 'text-danger' : 'text-warning',\n        title: messages.join('</br>')\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"productCode\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitTaxAmount\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"reported\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"bill\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"glAccount\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderItem\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totalPrice\", [_dec14], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"glAccountLabel\", [_dec15], Object.getOwnPropertyDescriptor(_class2.prototype, \"glAccountLabel\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canMap\", [_dec16], Object.getOwnPropertyDescriptor(_class2.prototype, \"canMap\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"assignment\", [_dec17], Object.getOwnPropertyDescriptor(_class2.prototype, \"assignment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isValid\", [_dec18], Object.getOwnPropertyDescriptor(_class2.prototype, \"isValid\"), _class2.prototype), _class2);\n});","define(\"portal/models/bill\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"@ember/service\", \"portal/models/base-model\", \"portal/config/environment\", \"portal/validators/bill\"], function (_exports, _model, _object, _service, _baseModel, _environment, _bill) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/models/base-model\",0,\"portal/config/environment\",0,\"portal/validators/bill\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec7 = (0, _model.attr)('string', {\n    defaultValue: 'MATERIALS'\n  }), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.attr)('string', {\n    defaultValue: 'BILL'\n  }), _dec15 = (0, _model.attr)('number'), _dec16 = (0, _model.attr)('number'), _dec17 = (0, _model.attr)('string'), _dec18 = (0, _model.attr)('date'), _dec19 = (0, _model.attr)('date'), _dec20 = (0, _model.belongsTo)('invoice-auto-map-directive', {\n    async: true,\n    inverse: null\n  }), _dec21 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec22 = (0, _model.belongsTo)('purchase-order', {\n    async: true,\n    inverse: null\n  }), _dec23 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec24 = (0, _model.hasMany)('bill-item', {\n    async: true,\n    inverse: 'bill'\n  }), _dec25 = (0, _model.hasMany)('bill-attachment', {\n    async: true,\n    inverse: 'bill'\n  }), _dec26 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,totalPrice}'), _dec27 = (0, _object.computed)('xeroInvoiceId', 'xeroCreditNoteId'), _dec28 = (0, _object.computed)('quickbooksBillId', 'quickbooksCreditNoteId'), _dec29 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,isMapped,project,task}'), _dec30 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,canMap}'), _dec31 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,dateCreated}'), _dec32 = (0, _object.computed)('xeroInvoiceId', 'xeroCreditNoteId'), _dec33 = (0, _object.computed)('quickbooksBillId', 'quickbooksCreditNoteId'), _dec34 = (0, _object.computed)('billNumber', 'name', 'issuer', 'allocationType', 'issueDate', 'dueDate', 'activeItems.[]', 'items.[]', 'items.@each.{isDeleted,isValid}'), _dec35 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,isMapped}'), _dec36 = (0, _object.computed)('totalPrice'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      _initializerDefineProperty(this, \"reference\", _descriptor4, this);\n      _initializerDefineProperty(this, \"billNumber\", _descriptor5, this);\n      _initializerDefineProperty(this, \"issuer\", _descriptor6, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"status\", _descriptor9, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"ipsId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"notes\", _descriptor10, this);\n      _initializerDefineProperty(this, \"eaccountsFileName\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isAutoMapped\", _descriptor12, this);\n      _initializerDefineProperty(this, \"xeroInvoiceId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"xeroCreditNoteId\", _descriptor14, this);\n      _initializerDefineProperty(this, \"quickbooksBillId\", _descriptor15, this);\n      _initializerDefineProperty(this, \"quickbooksCreditNoteId\", _descriptor16, this);\n      _initializerDefineProperty(this, \"billType\", _descriptor17, this);\n      _initializerDefineProperty(this, \"taxAmount\", _descriptor18, this);\n      _initializerDefineProperty(this, \"subtotal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"source\", _descriptor20, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor21, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor22, this);\n      _initializerDefineProperty(this, \"directiveUsed\", _descriptor23, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor24, this);\n      _initializerDefineProperty(this, \"purchaseOrder\", _descriptor25, this);\n      _initializerDefineProperty(this, \"issuerContact\", _descriptor26, this);\n      _initializerDefineProperty(this, \"items\", _descriptor27, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor28, this);\n    }\n    get statusLabel() {\n      switch (this.status) {\n        case 'DRAFT':\n          return this.intl.t('common.Draft');\n        case 'ACCEPTED':\n          return this.intl.t('common.Accepted');\n        case 'ARCHIVED':\n          return this.intl.t('common.Archived');\n        case 'HELD':\n          return this.intl.t('common.Held');\n        case 'PAID':\n          return this.intl.t('common.Paid');\n      }\n      return null;\n    }\n    get typeLabel() {\n      switch (this.billType) {\n        case 'BILL':\n          return this.intl.t('common.Bill');\n        case 'CREDIT_NOTE':\n          return this.intl.t('common.Credit note');\n      }\n      return null;\n    }\n    get activeItems() {\n      if (this.isDestroyed || this.isDestroying || this.isDeleted) {\n        return [];\n      }\n      const items = this.safeHasManyToValue('items')?.toArray() || [];\n      const availableItems = items.length > 0 ? items : this.safeHasManyToValue('items')?.toArray() || [];\n      return availableItems.filter(item => item && !(0, _object.get)(item, 'isDeleted'));\n    }\n    get totalPrice() {\n      let totalPrice = 0;\n      for (const item of (0, _object.get)(this, 'activeItems')) {\n        totalPrice += item?.totalPrice || 0;\n      }\n      return totalPrice;\n    }\n    get xeroLinked() {\n      return this.xeroInvoiceId || this.xeroCreditNoteId;\n    }\n    set xeroLinked(value) {\n      return value;\n    }\n    get quickbooksLinked() {\n      return this.quickbooksBillId || this.quickbooksCreditNoteId;\n    }\n    set quickbooksLinked(value) {\n      return value;\n    }\n    get fullyMapped() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return activeItems.length > 0 && activeItems.every(item => (0, _object.get)(item, 'isMapped') || (0, _object.get)(item, 'project.id') || (0, _object.get)(item, 'task.id') || item.allocations.some(allocation => allocation.length));\n    }\n    get canMap() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return activeItems.length > 0 && activeItems.every(item => (0, _object.get)(item, 'canMap'));\n    }\n    get sortedItems() {\n      return [...(0, _object.get)(this, 'activeItems')].sort((left, right) => {\n        return ((0, _object.get)(left, 'dateCreated')?.getTime?.() || 0) - ((0, _object.get)(right, 'dateCreated')?.getTime?.() || 0);\n      });\n    }\n    get myAttachments() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const billAttachments = this.safeHasManyToValue('attachments')?.toArray() || [];\n      return billAttachments.map(item => item.attachmentInfo);\n    }\n    get xeroDeeplinkPath() {\n      const xeroInvoiceId = (0, _object.get)(this, 'xeroInvoiceId');\n      const xeroCreditNoteId = (0, _object.get)(this, 'xeroCreditNoteId');\n      if (xeroInvoiceId) {\n        return `&redirecturl=/AccountsPayable/Edit.aspx?InvoiceID=${xeroInvoiceId}`;\n      } else if (xeroCreditNoteId) {\n        return `&redirecturl=/AccountsPayable/ViewCreditNote.aspx?creditNoteID=${xeroCreditNoteId}`;\n      }\n      return '';\n    }\n    xeroDeeplinkUrl(entityXeroCompanyId) {\n      if (!this.xeroDeeplinkPath) return '';\n      return `https://go.xero.com/organisationlogin/default.aspx?shortcode=${entityXeroCompanyId}${this.xeroDeeplinkPath}`;\n    }\n    get quickbooksDeeplinkPath() {\n      const quickbooksBillId = (0, _object.get)(this, 'quickbooksBillId');\n      const quickbooksCreditNoteId = (0, _object.get)(this, 'quickbooksCreditNoteId');\n      if (quickbooksBillId) {\n        return `${_environment.default.urls.quickbooksUrl}/app/bill?txnId=${quickbooksBillId}`;\n      } else if (quickbooksCreditNoteId) {\n        return `${_environment.default.urls.quickbooksUrl}/app/vendorcredit?txnId=${quickbooksCreditNoteId}`;\n      }\n      return '';\n    }\n    get accountingPackageUrl() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        return this.xeroDeeplinkUrl(this.xeroIntegration.companyId);\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        return this.quickbooksDeeplinkPath;\n      }\n      return '';\n    }\n    get isValid() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return ((0, _object.get)(this, 'billNumber') || (0, _object.get)(this, 'name')) && (0, _object.get)(this, 'issuer') && ['MATERIALS', 'SUBCONTRACTORS', 'LABOUR'].includes((0, _object.get)(this, 'allocationType')) && (0, _object.get)(this, 'issueDate') && (0, _object.get)(this, 'dueDate') && activeItems.length > 0 && activeItems.every(it => (0, _object.get)(it, 'isValid'));\n    }\n\n    // TODO this is meant to mirror the validator\n    // TODO this approach is crap - we can't use the validator directly... maybe write a function to run the validator\n    get newIsValid() {\n      if (!this.billNumber || typeof this.billNumber !== 'string' || this.billNumber.trim() === '') {\n        return false;\n      }\n      if (this.billNumber.length > 100) {\n        return false;\n      }\n      if (!this.issuer) return false;\n      if (!this.belongsTo('issuerContact').id()) return false;\n      if (!this.issueDate) return false;\n      if (!this.dueDate) return false;\n      if (!this.status || !_bill.VALID_STATUSES.includes(this.status)) {\n        return false;\n      }\n      if (!this.allocationType || !_bill.VALID_ALLOCATION_TYPES.includes(this.allocationType)) {\n        return false;\n      }\n      if (this.billType === 'CREDIT_NOTE' && this.totalPrice >= 0 || this.billType !== 'CREDIT_NOTE' && this.totalPrice <= 0) {\n        return false;\n      }\n      return true;\n    }\n    get isMapped() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return activeItems.length > 0 && activeItems.every(it => (0, _object.get)(it, 'isMapped'));\n    }\n    get isCreditNote() {\n      return (0, _object.get)(this, 'totalPrice') < 0;\n    }\n    get hasDuplicate() {\n      return this._meta?.hasDuplicate;\n    }\n    get isAcceptedButNotSyncedToAccountingPlatform() {\n      const isNotSynced = Boolean(!this.xeroInvoiceId && !this.xeroCreditNoteId && !this.quickbooksBillId && !this.quickbooksCreditNoteId && this.status === 'ACCEPTED');\n      return isNotSynced;\n    }\n    get allocations() {\n      const allocations = this._meta?.allocationPath ?? [];\n      return allocations.filter(a => Array.isArray(a) && a.length);\n    }\n    get isInvoiced() {\n      return this._meta?.isInvoiced ?? false;\n    }\n    get purchaseOrderDetails() {\n      return this._meta?.purchaseOrder;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"reference\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"billNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"issuer\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"ipsId\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"notes\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsFileName\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"isAutoMapped\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"xeroInvoiceId\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"xeroCreditNoteId\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksBillId\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksCreditNoteId\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"billType\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"taxAmount\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"subtotal\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"directiveUsed\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrder\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"issuerContact\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totalPrice\", [_dec26], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"xeroLinked\", [_dec27], Object.getOwnPropertyDescriptor(_class2.prototype, \"xeroLinked\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quickbooksLinked\", [_dec28], Object.getOwnPropertyDescriptor(_class2.prototype, \"quickbooksLinked\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"fullyMapped\", [_dec29], Object.getOwnPropertyDescriptor(_class2.prototype, \"fullyMapped\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canMap\", [_dec30], Object.getOwnPropertyDescriptor(_class2.prototype, \"canMap\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortedItems\", [_dec31], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortedItems\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"xeroDeeplinkPath\", [_dec32], Object.getOwnPropertyDescriptor(_class2.prototype, \"xeroDeeplinkPath\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quickbooksDeeplinkPath\", [_dec33], Object.getOwnPropertyDescriptor(_class2.prototype, \"quickbooksDeeplinkPath\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isValid\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"isValid\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isMapped\", [_dec35], Object.getOwnPropertyDescriptor(_class2.prototype, \"isMapped\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isCreditNote\", [_dec36], Object.getOwnPropertyDescriptor(_class2.prototype, \"isCreditNote\"), _class2.prototype), _class2);\n});","define(\"portal/models/budget-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('budget-version', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('budget-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"version\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor6, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('changes').value()?.toArray?.() || [];\n    }\n    get labourDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.labourDiff, 0);\n    }\n    get manHoursDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.manHoursDiff, 0);\n    }\n    get materialsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.materialsDiff, 0);\n    }\n    get subcontractorsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.subcontractorsDiff, 0);\n    }\n    get sumsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.sumsDiff, 0);\n    }\n\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task) {\n      return this.store.createRecord('budget-change', {\n        changeSet: this,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/budget-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"labourDiff\", _descriptor, this);\n      _initializerDefineProperty(this, \"manHoursDiff\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsDiff\", _descriptor3, this);\n      _initializerDefineProperty(this, \"subcontractorsDiff\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sumsDiff\", _descriptor5, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"task\", _descriptor7, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"labourDiff\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"manHoursDiff\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDiff\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDiff\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sumsDiff\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/budget-version-value\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('budget-version', {\n    async: true,\n    inverse: 'values'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"labour\", _descriptor2, this);\n      _initializerDefineProperty(this, \"manHours\", _descriptor3, this);\n      _initializerDefineProperty(this, \"materials\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractors\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sums\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"project\", _descriptor8, this);\n      _initializerDefineProperty(this, \"task\", _descriptor9, this);\n      _initializerDefineProperty(this, \"version\", _descriptor0, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"labour\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"manHours\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"materials\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractors\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sums\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/budget-version\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.hasMany)('budget-version-value', {\n    async: true,\n    inverse: 'version'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"versionNumber\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor6, this);\n      _initializerDefineProperty(this, \"values\", _descriptor7, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('values').value()?.toArray?.() || [];\n    }\n    get labour() {\n      return this.valuesArray.reduce((total, v) => total + (v.labour || 0), 0);\n    }\n    get manHours() {\n      return this.valuesArray.reduce((total, v) => total + (v.manHours || 0), 0);\n    }\n    get materials() {\n      return this.valuesArray.reduce((total, v) => total + (v.materials || 0), 0);\n    }\n    get subcontractors() {\n      return this.valuesArray.reduce((total, v) => total + (v.subcontractors || 0), 0);\n    }\n    get sums() {\n      return this.valuesArray.reduce((total, v) => total + (v.sums || 0), 0);\n    }\n    get total() {\n      return this.labour + this.materials + this.subcontractors + this.sums;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"versionNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/contact\", [\"exports\", \"moment\", \"@ember-data/model\", \"@ember/service\", \"portal/config/environment\", \"portal/models/base-model\"], function (_exports, _moment, _model, _service, _environment, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('number'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('number'), _dec12 = (0, _model.attr)('array'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      // attributes\n      _initializerDefineProperty(this, \"name\", _descriptor4, this);\n      _initializerDefineProperty(this, \"contactPerson\", _descriptor5, this);\n      _initializerDefineProperty(this, \"contactNumber\", _descriptor6, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor7, this);\n      _initializerDefineProperty(this, \"address\", _descriptor8, this);\n      _initializerDefineProperty(this, \"eaccountsSupplierCode\", _descriptor9, this);\n      _initializerDefineProperty(this, \"xeroContactId\", _descriptor0, this);\n      _initializerDefineProperty(this, \"quickbooksContactId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"quickbooksVendorId\", _descriptor10, this);\n      _initializerDefineProperty(this, \"paymentTermType\", _descriptor11, this);\n      // enum: ['OFFOLLOWINGMONTH', 'DAYSAFTERBILLDATE', 'DAYSAFTERBILLMONTH', 'OFCURRENTMONTH;\n      _initializerDefineProperty(this, \"paymentTermDay\", _descriptor12, this);\n      _initializerDefineProperty(this, \"salesPaymentTermType\", _descriptor13, this);\n      // enum: ['DAYS_AFTER_ISSUE_DATE', 'DAYS_AFTER_ISSUE_MONTH', 'OF_CURRENT_MONTH', 'OF_FOLLOWING_MONTH'],\n      _initializerDefineProperty(this, \"salesPaymentTermDay\", _descriptor14, this);\n      _initializerDefineProperty(this, \"aliases\", _descriptor15, this);\n      _initializerDefineProperty(this, \"defaultBillAllocationType\", _descriptor16, this);\n      // relationships\n      _initializerDefineProperty(this, \"entity\", _descriptor17, this);\n    }\n    // computed\n    get hasValidPurchasePaymentTerm() {\n      return this.paymentTermType && this.paymentTermDay;\n    }\n    get getPurchaseDisplayPaymentTermType() {\n      switch (this.paymentTermType) {\n        case 'OFFOLLOWINGMONTH':\n          return this.intl.t('shared.contacts.of the following month');\n        case 'DAYSAFTERBILLDATE':\n          return this.intl.t('shared.contacts.day(s) after the bill date');\n        case 'DAYSAFTERBILLMONTH':\n          return this.intl.t('shared.contacts.day(s) after the end of the bill month');\n        case 'OFCURRENTMONTH':\n          return this.intl.t('shared.contacts.of the current month');\n        default:\n          return '';\n      }\n    }\n    get purchaseDisplayPaymentTerm() {\n      return this.hasValidPurchasePaymentTerm ? `${this.paymentTermDay} ${this.getPurchaseDisplayPaymentTermType}` : this.intl.t('shared.contacts.No payment terms');\n    }\n    get hasValidSalesPaymentTerm() {\n      return this.salesPaymentTermType && this.salesPaymentTermDay;\n    }\n    get getSalesDisplayPaymentTermType() {\n      switch (this.salesPaymentTermType) {\n        case 'OF_FOLLOWING_MONTH':\n          return this.intl.t('shared.contacts.of the following month');\n        case 'DAYS_AFTER_ISSUE_DATE':\n          return this.intl.t('shared.contacts.day(s) after the issue date');\n        case 'DAYS_AFTER_ISSUE_MONTH':\n          return this.intl.t('shared.contacts.day(s) after the end of the issue month');\n        case 'OF_CURRENT_MONTH':\n          return this.intl.t('shared.contacts.of the current month');\n        default:\n          return '';\n      }\n    }\n    get salesDisplayPaymentTerm() {\n      return this.hasValidSalesPaymentTerm ? `${this.salesPaymentTermDay} ${this.getSalesDisplayPaymentTermType}` : this.intl.t('shared.contacts.No payment terms');\n    }\n    getBillDueDate(issueDate) {\n      if (!this.hasValidPurchasePaymentTerm) return;\n      switch (this.paymentTermType) {\n        case 'OFFOLLOWINGMONTH':\n          return (0, _moment.default)(issueDate).add(1, 'month').date(this.paymentTermDay).toDate();\n        case 'DAYSAFTERBILLDATE':\n          return (0, _moment.default)(issueDate).add(this.paymentTermDay, 'day').toDate();\n        case 'DAYSAFTERBILLMONTH':\n          return (0, _moment.default)(issueDate).add(1, 'month').date(this.paymentTermDay).toDate();\n        case 'OFCURRENTMONTH':\n          return (0, _moment.default)(issueDate).date(this.paymentTermDay).toDate();\n      }\n    }\n    get isContactLinkedToAccountingPlatform() {\n      return Boolean(this.xeroContactId || this.quickbooksContactId || this.quickbooksVendorId);\n    }\n    get isLinkedToActiveAccountingPlatform() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        return Boolean(this.xeroContactId);\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        return Boolean(this.quickbooksContactId || this.quickbooksVendorId);\n      }\n      return false;\n    }\n    get viewContactUrl() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        if (!this.xeroContactId) return '';\n        return `https://go.xero.com/organisationlogin/default.aspx?shortcode=${this.xeroIntegration.companyId}&redirecturl=/Contacts/View/${this.xeroContactId}`;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        if (this.quickbooksContactId) {\n          return `${_environment.default.urls.quickbooksUrl}/app/customerdetail?nameId=${this.quickbooksContactId}`;\n        } else if (this.quickbooksVendorId) {\n          return `${_environment.default.urls.quickbooksUrl}/app/vendordetail?nameId=${this.quickbooksVendorId}`;\n        }\n      }\n      return '';\n    }\n    get viewContactLabel() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        if (!this.xeroContactId) return '';\n        return `View in Xero`;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        if (this.quickbooksContactId) {\n          return 'View in QuickBooks contact';\n        } else if (this.quickbooksVendorId) {\n          return 'View in QuickBooks vendor';\n        }\n      }\n      return '';\n    }\n\n    // this property tells if contact is being used in invoices or purchase orders\n    get isLinkedToResources() {\n      return this._meta?.isLinkedToResources;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"contactPerson\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"contactNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsSupplierCode\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"xeroContactId\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksContactId\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksVendorId\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermType\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermDay\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"salesPaymentTermType\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"salesPaymentTermDay\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"aliases\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"defaultBillAllocationType\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/dashboard-module\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('boolean'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.hasMany)('link-dashboard-module-kpi', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _dec10 = (0, _model.hasMany)('link-dashboard-module-account', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _dec11 = (0, _model.hasMany)('link-dashboard-module-entity-group', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _dec12 = (0, _model.hasMany)('link-dashboard-module-entity', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"title\", _descriptor, this);\n      _initializerDefineProperty(this, \"visualiser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"positionX\", _descriptor3, this);\n      _initializerDefineProperty(this, \"positionY\", _descriptor4, this);\n      _initializerDefineProperty(this, \"periodType\", _descriptor5, this);\n      _initializerDefineProperty(this, \"includeCurrentEntity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"user\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor0, this);\n      _initializerDefineProperty(this, \"kpis\", _descriptor1, this);\n      _initializerDefineProperty(this, \"accounts\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entityGroups\", _descriptor11, this);\n      _initializerDefineProperty(this, \"entities\", _descriptor12, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"title\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"visualiser\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"positionX\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"positionY\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"periodType\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"includeCurrentEntity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"kpis\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"accounts\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroups\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"entities\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/eaccounts-invoice-integration\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('boolean'), _dec3 = (0, _model.attr)('array'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'eaccountsInvoiceIntegration'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"eaccountsLink\", _descriptor, this);\n      _initializerDefineProperty(this, \"allowed\", _descriptor2, this);\n      _initializerDefineProperty(this, \"requests\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsLink\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"allowed\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"requests\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-group\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.hasMany)('link-entity-group-member', {\n    async: true,\n    inverse: 'entityGroup'\n  }), _dec9 = (0, _model.hasMany)('link-entity-group-can-be-accessed-by', {\n    async: true,\n    inverse: 'entityGroup'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"consolidation\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor6, this);\n      _initializerDefineProperty(this, \"parentEntity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"members\", _descriptor8, this);\n      _initializerDefineProperty(this, \"canBeAccessedBy\", _descriptor9, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"consolidation\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"parentEntity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"members\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"canBeAccessedBy\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-invoice-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('number'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('array'), _dec13 = (0, _model.attr)('boolean'), _dec14 = (0, _model.attr)('boolean'), _dec15 = (0, _model.attr)('boolean'), _dec16 = (0, _model.attr)('boolean'), _dec17 = (0, _model.attr)('boolean'), _dec18 = (0, _model.attr)('boolean'), _dec19 = (0, _model.attr)('boolean'), _dec20 = (0, _model.attr)('date'), _dec21 = (0, _model.attr)('date'), _dec22 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"invoicePrefix\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceFooterNotes\", _descriptor2, this);\n      _initializerDefineProperty(this, \"nextInvoiceNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"paymentTermType\", _descriptor4, this);\n      // enum: ['DAYS_AFTER_ISSUE_DATE', 'DAYS_AFTER_ISSUE_MONTH', 'OF_CURRENT_MONTH', 'OF_FOLLOWING_MONTH'],\n      _initializerDefineProperty(this, \"paymentTermDay\", _descriptor5, this);\n      _initializerDefineProperty(this, \"creditNotePrefix\", _descriptor6, this);\n      _initializerDefineProperty(this, \"creditNoteFooterNotes\", _descriptor7, this);\n      _initializerDefineProperty(this, \"nextCreditNoteNumber\", _descriptor8, this);\n      _initializerDefineProperty(this, \"breakdownNotes\", _descriptor9, this);\n      _initializerDefineProperty(this, \"firstGroupBy\", _descriptor0, this);\n      _initializerDefineProperty(this, \"materialsDetail\", _descriptor1, this);\n      _initializerDefineProperty(this, \"labourDetail\", _descriptor10, this);\n      _initializerDefineProperty(this, \"subcontractorsDetail\", _descriptor11, this);\n      _initializerDefineProperty(this, \"timesheetDetails\", _descriptor12, this);\n      _initializerDefineProperty(this, \"includeBillable\", _descriptor13, this);\n      _initializerDefineProperty(this, \"includeInvoiced\", _descriptor14, this);\n      _initializerDefineProperty(this, \"includeLabourBillsProfitMargins\", _descriptor15, this);\n      _initializerDefineProperty(this, \"includeMaterialBillsProfitMargins\", _descriptor16, this);\n      _initializerDefineProperty(this, \"includeSubcontractorBillsProfitMargins\", _descriptor17, this);\n      _initializerDefineProperty(this, \"includeTimesheetsProfitMargins\", _descriptor18, this);\n      _initializerDefineProperty(this, \"includeTimesheetsCostMargins\", _descriptor19, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor20, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor21, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor22, this);\n    }\n    static defaultOptionsRecord(store, entity) {\n      return store.createRecord('entity-invoice-option', {\n        entity: entity,\n        nextInvoiceNumber: 10000,\n        invoicePrefix: 'INV-',\n        nextCreditNoteNumber: 10000,\n        creditNotePrefix: 'CN-',\n        breakdownNotes: '',\n        firstGroupBy: 'TASK',\n        materialsDetail: 'TOTAL',\n        labourDetail: 'TOTAL',\n        subcontractorsDetail: 'TOTAL',\n        timesheetDetails: []\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"invoicePrefix\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceFooterNotes\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"nextInvoiceNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermDay\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"creditNotePrefix\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"creditNoteFooterNotes\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"nextCreditNoteNumber\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"breakdownNotes\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"firstGroupBy\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDetail\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"labourDetail\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDetail\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"timesheetDetails\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"includeBillable\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"includeInvoiced\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"includeLabourBillsProfitMargins\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"includeMaterialBillsProfitMargins\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"includeSubcontractorBillsProfitMargins\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsProfitMargins\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsCostMargins\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-product\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string', {\n    defaultValue: 'EntityProduct'\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"productLibraryIdentifier\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sku\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"source\", _descriptor5, this);\n      _initializerDefineProperty(this, \"supplierName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor7, this);\n      _initializerDefineProperty(this, \"currency\", _descriptor8, this);\n      _initializerDefineProperty(this, \"manufacturer\", _descriptor9, this);\n      _initializerDefineProperty(this, \"usage\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor12, this);\n      _initializerDefineProperty(this, \"task\", _descriptor13, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"productLibraryIdentifier\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sku\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"supplierName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"currency\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"manufacturer\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"usage\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"@ember/service\", \"portal/models/base-model\", \"portal/utils/collection-to-array\"], function (_exports, _model, _object, _service, _baseModel, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/models/base-model\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('array'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('date'), _dec14 = (0, _model.attr)('date'), _dec15 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec16 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec17 = (0, _model.belongsTo)('profit-margin', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.belongsTo)('labour-cost-calculator', {\n    async: true,\n    inverse: null\n  }), _dec19 = (0, _model.hasMany)('link-entity-to-entity-attribute', {\n    async: true,\n    inverse: 'entity'\n  }), _dec20 = (0, _model.hasMany)('project', {\n    async: true,\n    inverse: 'entity'\n  }), _dec21 = (0, _model.hasMany)('pricing-connection', {\n    async: true,\n    inverse: 'entity'\n  }), _dec22 = (0, _model.hasMany)('financial-option', {\n    async: true,\n    inverse: 'entity'\n  }), _dec23 = (0, _model.hasMany)('eaccounts-invoice-integration', {\n    async: true,\n    inverse: 'entity'\n  }), _dec24 = (0, _model.hasMany)('xero-connection', {\n    async: true,\n    inverse: 'entity'\n  }), _dec25 = (0, _model.hasMany)('quickbooks-oauth2-connection', {\n    async: true,\n    inverse: 'entity'\n  }), _dec26 = (0, _model.hasMany)('attachment', {\n    async: true,\n    inverse: 'entity'\n  }), _dec27 = (0, _model.hasMany)('link-attachment-to-entity', {\n    async: true,\n    inverse: 'entity'\n  }), _dec28 = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec29 = (0, _model.belongsTo)('stage-payment-option', {\n    async: true,\n    inverse: null\n  }), _dec30 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec31 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec32 = (0, _object.computed)('myAttachments', 'activeProjects.@each.allAttachments'), _dec33 = (0, _object.computed)('activeProjects.@each.{budgetTotalManhours,budgetTotalLabour,budgetTotalMaterials,budgetTotalSubcontractors,budgetTotalSums,budgetTotalTotal}'), _dec34 = (0, _object.computed)('activeProjects.@each.{quoteTotalManhours,quoteTotalLabour,quoteTotalMaterials,quoteTotalSubcontractors,quoteTotalSums,quoteTotalTotal}'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"name\", _descriptor3, this);\n      _initializerDefineProperty(this, \"region\", _descriptor4, this);\n      _initializerDefineProperty(this, \"system\", _descriptor5, this);\n      _initializerDefineProperty(this, \"canChangeSystem\", _descriptor6, this);\n      _initializerDefineProperty(this, \"firstClosedPeriod\", _descriptor7, this);\n      _initializerDefineProperty(this, \"balanceDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"identityProviders\", _descriptor9, this);\n      _initializerDefineProperty(this, \"brand\", _descriptor0, this);\n      _initializerDefineProperty(this, \"cbPlanId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"cbCustomerId\", _descriptor10, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor11, this);\n      _initializerDefineProperty(this, \"address\", _descriptor12, this);\n      _initializerDefineProperty(this, \"businessNumber\", _descriptor13, this);\n      _initializerDefineProperty(this, \"taxNumber\", _descriptor14, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor15, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor16, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor17, this);\n      _initializerDefineProperty(this, \"partner\", _descriptor18, this);\n      _initializerDefineProperty(this, \"profitMargin\", _descriptor19, this);\n      _initializerDefineProperty(this, \"defaultLabourCostCalculator\", _descriptor20, this);\n      _initializerDefineProperty(this, \"attributes\", _descriptor21, this);\n      _initializerDefineProperty(this, \"projects\", _descriptor22, this);\n      _initializerDefineProperty(this, \"pricingConnection\", _descriptor23, this);\n      _initializerDefineProperty(this, \"financialOptions\", _descriptor24, this);\n      _initializerDefineProperty(this, \"eaccountsInvoiceIntegration\", _descriptor25, this);\n      _initializerDefineProperty(this, \"xeroConnection\", _descriptor26, this);\n      _initializerDefineProperty(this, \"quickBooksConnection\", _descriptor27, this);\n      _initializerDefineProperty(this, \"allEntityAttachments\", _descriptor28, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor29, this);\n      _initializerDefineProperty(this, \"companyLogo\", _descriptor30, this);\n      _initializerDefineProperty(this, \"stagePaymentOption\", _descriptor31, this);\n      _initializerDefineProperty(this, \"purchasesGlAccount\", _descriptor32, this);\n      _initializerDefineProperty(this, \"salesGlAccount\", _descriptor33, this);\n    }\n    // load methods\n    async loadProfitMargins() {\n      const profitMarginRef = this.belongsTo('profitMargin');\n      if (!profitMarginRef.id()) return null;\n      return profitMarginRef.load();\n    }\n    async loadStagePaymentOptions() {\n      await this.belongsTo('stagePaymentOption').load();\n    }\n    async loadCompanyLogo() {\n      await this.belongsTo('companyLogo').load();\n    }\n\n    /* computed */\n    get activeProjectTasks() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      return this.activeProjects.flatMap(project => project.activeTasks);\n    }\n    get myAttachments() {\n      const linkAttachmentToEntityRecords = this.safeHasManyToValue('attachments') || [];\n      const attachmentIds = linkAttachmentToEntityRecords.map(item => (0, _object.get)(item, 'attachment.id'));\n      return this.store.peekAll('attachment')?.toArray().filter(item => attachmentIds.includes(item.id));\n    }\n    get allAttachments() {\n      const allProjectAttachments = this.activeProjects.flatMap(project => project.allAttachments);\n      return [...this.myAttachments, ...allProjectAttachments].sort((a, b) => a.dateCreated - b.dateCreated);\n    }\n    get activeProjects() {\n      // Read through the reference: an async hasMany property is a\n      // PromiseManyArray, which has no filter.\n      return this.safeHasManyToValue('projects')?.filter(c => ['OPEN'].includes(c.status)) || [];\n    }\n    get effectiveProfitMargin() {\n      const profitMargin = this.belongsTo('profitMargin').value();\n\n      // if we don't have a profit margin on the entity provide a default profit type\n      // this should be the only place we provide a default profit type\n      // all records will eventually inherit this value\n      return {\n        profitType: profitMargin?.type || 'MARGIN',\n        labourPercentage: {\n          value: profitMargin?.labourPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        additionalLabourMargin: {\n          value: profitMargin?.additionalLabourMargin ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        materialsPercentage: {\n          value: profitMargin?.materialsPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        subcontractorsPercentage: {\n          value: profitMargin?.subcontractorsPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        sumsPercentage: {\n          value: profitMargin?.sumsPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        }\n      };\n    }\n    get budgetTotal() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const projects = this.get('activeProjects') || [];\n      return projects.reduce((total, v) => {\n        total.manHours += v.get('budgetTotalManhours') || 0;\n        total.labour += v.get('budgetTotalLabour') || 0;\n        total.materials += v.get('budgetTotalMaterials') || 0;\n        total.subcontractors += v.get('budgetTotalSubcontractors') || 0;\n        total.sums += v.get('budgetTotalSums') || 0;\n        total.total += v.get('budgetTotalTotal') || 0;\n        return total;\n      }, {\n        manHours: 0,\n        labour: 0,\n        materials: 0,\n        subcontractors: 0,\n        sums: 0,\n        total: 0\n      });\n    }\n    get quoteTotal() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const projects = this.get('activeProjects') || [];\n      return projects.reduce((total, v) => {\n        total.manHours += v.get('quoteTotalManhours') || 0;\n        total.labour += v.get('quoteTotalLabour') || 0;\n        total.materials += v.get('quoteTotalMaterials') || 0;\n        total.subcontractors += v.get('quoteTotalSubcontractors') || 0;\n        total.sums += v.get('quoteTotalSums') || 0;\n        total.total += v.get('quoteTotalTotal') || 0;\n        return total;\n      }, {\n        manHours: 0,\n        labour: 0,\n        materials: 0,\n        subcontractors: 0,\n        sums: 0,\n        total: 0\n      });\n    }\n    get gst() {\n      let gstValue = 0.15;\n      switch (this.sessionData.entity.region) {\n        case 'AUS':\n          gstValue = 0.1;\n          break;\n        case 'NZL':\n          gstValue = 0.15;\n          break;\n        default:\n          break;\n      }\n      return gstValue;\n    }\n    get entityLinkedAttributes() {\n      const attributes = (0, _collectionToArray.default)(this.attributes);\n      return attributes.map(item => item.belongsTo('attribute').id());\n    }\n    get calEducationCouponCode() {\n      return this._meta?.calEducationCouponCode;\n    }\n    includesSomeClaims(...checks) {\n      return checks.some(c => this.entityLinkedAttributes.includes(c));\n    }\n    includesClaims(...checks) {\n      return checks.every(c => this.entityLinkedAttributes.includes(c));\n    }\n    excludesSomeClaims(...checks) {\n      return !checks.some(c => this.entityLinkedAttributes.includes(c));\n    }\n    excludesClaims(...checks) {\n      return checks.every(c => !this.entityLinkedAttributes.includes(c));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"region\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"system\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"canChangeSystem\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"firstClosedPeriod\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"balanceDate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"identityProviders\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"brand\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"cbPlanId\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"cbCustomerId\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"businessNumber\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"taxNumber\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"partner\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"profitMargin\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"defaultLabourCostCalculator\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"attributes\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"projects\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"pricingConnection\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"financialOptions\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsInvoiceIntegration\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"xeroConnection\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"quickBooksConnection\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"allEntityAttachments\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, \"companyLogo\", [_dec28], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, \"stagePaymentOption\", [_dec29], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, \"purchasesGlAccount\", [_dec30], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, \"salesGlAccount\", [_dec31], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"allAttachments\", [_dec32], Object.getOwnPropertyDescriptor(_class2.prototype, \"allAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"budgetTotal\", [_dec33], Object.getOwnPropertyDescriptor(_class2.prototype, \"budgetTotal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quoteTotal\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"quoteTotal\"), _class2.prototype), _class2);\n});","define(\"portal/models/estimate\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricingJobId\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pricingMerchantName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pricingMerchantId\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"status\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"project\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricingJobId\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pricingMerchantName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pricingMerchantId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/financial-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'financialOptions'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"balanceDate\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstClosedPeriod\", _descriptor2, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"balanceDate\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstClosedPeriod\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/gl-account\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/config/environment\"], function (_exports, _model, _service, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"name\", _descriptor3, this);\n      _initializerDefineProperty(this, \"code\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroAccountId\", _descriptor5, this);\n      _initializerDefineProperty(this, \"quickbooksAccountId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"taxRate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n    }\n    get isLinkedToAccountingPlatform() {\n      return Boolean(this.xeroAccountId || this.quickbooksAccountId);\n    }\n    get isLinkedToActiveAccountingPlatform() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        return Boolean(this.xeroAccountId);\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        return Boolean(this.quickbooksAccountId);\n      }\n      return false;\n    }\n    get viewGlAccountUrl() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        if (!this.xeroAccountId) return '';\n        return `https://go.xero.com/organisationlogin/default.aspx?shortcode=${this.xeroIntegration.companyId}&redirecturl=/GeneralLedger/ChartOfAccounts.aspx?q=${this.code}`;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        if (this.quickbooksAccountId) {\n          return `${_environment.default.urls.quickbooksUrl}/app/chartofaccounts`;\n        }\n      }\n      return '';\n    }\n    get label() {\n      // we need filter this because, quickbooks does not have code\n      const values = [this.code, this.name].filter(Boolean);\n      return values.join(' - ');\n    }\n    get searchField() {\n      return `${this.code ?? ''} ${this.name ?? ''}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroAccountId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksAccountId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"taxRate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/import\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('date'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('boolean'), _dec6 = (0, _model.attr)('boolean'), _dec7 = (0, _model.attr)('array'), _dec8 = (0, _model.attr)('array'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"date\", _descriptor, this);\n      _initializerDefineProperty(this, \"system\", _descriptor2, this);\n      _initializerDefineProperty(this, \"systemId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"includesProfitAndLoss\", _descriptor4, this);\n      _initializerDefineProperty(this, \"includesBalanceSheet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"includesOtherData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"externalBalances\", _descriptor7, this);\n      _initializerDefineProperty(this, \"manualBalances\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"importer\", _descriptor10, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"system\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"systemId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"includesProfitAndLoss\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"includesBalanceSheet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"includesOtherData\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"externalBalances\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"manualBalances\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"importer\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/index\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  class _default extends _model.default {\n    // write a custom toJSON method that includes the record id in the serialized object\n    toJSON() {\n      const serialized = this.serialize({\n        includeId: true\n      });\n      const obj = {\n        ...serialized.data.attributes,\n        id: serialized.data.id\n      };\n      Object.entries(serialized.data.relationships).forEach(([key, value]) => {\n        if (Array.isArray(value.data)) {\n          obj[key] = value.data.map(relationship => relationship.id);\n          return;\n        }\n        obj[key] = value.data?.id;\n      });\n      return obj;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/models/invoice-attachment\", [\"exports\", \"@ember-data/model\", \"portal/models/base-attachment-model\"], function (_exports, _model, _baseAttachmentModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-attachment-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: 'attachments'\n  }), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseAttachmentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"invoice\", _descriptor, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"invoice\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice-auto-map-directive\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      _initializerDefineProperty(this, \"kind\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n    }\n    /**\n     * A lower case version of the value for duplicate comparison.\n     */\n    get lowerValue() {\n      return (this.value || '').toLowerCase();\n    }\n    get isValid() {\n      return Boolean(this.value && this.belongsTo('project').id() && this.belongsTo('entity').id() && this.kind);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"kind\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice-invoice-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('array'), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.attr)('boolean'), _dec9 = (0, _model.attr)('boolean'), _dec0 = (0, _model.attr)('boolean'), _dec1 = (0, _model.attr)('boolean'), _dec10 = (0, _model.attr)('boolean'), _dec11 = (0, _model.attr)('boolean'), _dec12 = (0, _model.attr)('date'), _dec13 = (0, _model.attr)('date'), _dec14 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec15 = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"breakdownNotes\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstGroupBy\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsDetail\", _descriptor3, this);\n      _initializerDefineProperty(this, \"labourDetail\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractorsDetail\", _descriptor5, this);\n      _initializerDefineProperty(this, \"timesheetDetails\", _descriptor6, this);\n      _initializerDefineProperty(this, \"includeBillable\", _descriptor7, this);\n      _initializerDefineProperty(this, \"includeInvoiced\", _descriptor8, this);\n      _initializerDefineProperty(this, \"includeLabourBillsProfitMargins\", _descriptor9, this);\n      _initializerDefineProperty(this, \"includeMaterialBillsProfitMargins\", _descriptor0, this);\n      _initializerDefineProperty(this, \"includeSubcontractorBillsProfitMargins\", _descriptor1, this);\n      _initializerDefineProperty(this, \"includeTimesheetsProfitMargins\", _descriptor10, this);\n      _initializerDefineProperty(this, \"includeTimesheetsCostMargins\", _descriptor11, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor12, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor13, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor14, this);\n      _initializerDefineProperty(this, \"invoice\", _descriptor15, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"breakdownNotes\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstGroupBy\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDetail\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"labourDetail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDetail\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"timesheetDetails\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"includeBillable\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"includeInvoiced\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"includeLabourBillsProfitMargins\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"includeMaterialBillsProfitMargins\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"includeSubcontractorBillsProfitMargins\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsProfitMargins\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsCostMargins\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"invoice\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('number'), _dec8 = (0, _model.attr)('string', {\n    defaultValue: 'ALL'\n  }), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('string', {\n    defaultValue: 'ALL'\n  }), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.hasMany)('link-invoice-item-to-project', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.hasMany)('link-invoice-item-to-task', {\n    async: true,\n    inverse: null\n  }), _dec14 = (0, _model.hasMany)('link-invoice-item-to-timesheet', {\n    async: true,\n    inverse: null\n  }), _dec15 = (0, _model.hasMany)('link-invoice-item-to-bill-item', {\n    async: true,\n    inverse: null\n  }), _dec16 = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: 'items'\n  }), _dec17 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"code\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor5, this);\n      _initializerDefineProperty(this, \"taxRate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor7, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allocationDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"contractType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"projects\", _descriptor12, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor13, this);\n      _initializerDefineProperty(this, \"timesheets\", _descriptor14, this);\n      _initializerDefineProperty(this, \"billItems\", _descriptor15, this);\n      _initializerDefineProperty(this, \"invoice\", _descriptor16, this);\n      _initializerDefineProperty(this, \"glAccount\", _descriptor17, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor18, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"taxRate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"allocationDate\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"contractType\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"projects\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"timesheets\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"billItems\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"invoice\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"glAccount\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/models/base-model\"], function (_exports, _model, _service, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec3 = (0, _model.attr)('string', {\n    defaultValue: 'INVOICE'\n  }), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.hasMany)('invoice-item', {\n    async: true,\n    inverse: 'invoice'\n  }), _dec13 = (0, _model.hasMany)('invoice-attachment', {\n    async: true,\n    inverse: 'invoice'\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceNumber\", _descriptor2, this);\n      _initializerDefineProperty(this, \"status\", _descriptor3, this);\n      _initializerDefineProperty(this, \"invoiceType\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroInvoiceId\", _descriptor5, this);\n      _initializerDefineProperty(this, \"quickbooksInvoiceId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor1, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor10, this);\n      _initializerDefineProperty(this, \"toContact\", _descriptor11, this);\n      _initializerDefineProperty(this, \"referencedInvoice\", _descriptor12, this);\n      _initializerDefineProperty(this, \"items\", _descriptor13, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor14, this);\n    }\n    get totalPrice() {\n      return (this.safeHasManyToValue('items')?.toArray() || []).reduce((acc, item) => acc + (item.unitPrice || 0) * (item.quantity || 0), 0);\n    }\n    get statusLabel() {\n      switch (this.status) {\n        case 'COMPLETED':\n          return this.intl.t('common.Completed');\n        case 'AWAITING_APPROVAL':\n          return this.intl.t('common.Awaiting approval');\n        case 'DRAFT':\n          return this.intl.t('common.Draft');\n        case 'APPROVED':\n          return this.intl.t('common.Approved');\n      }\n      return null;\n    }\n    get typeLabel() {\n      switch (this.invoiceType) {\n        case 'INVOICE':\n          return this.intl.t('common.Invoice');\n        case 'CREDIT_NOTE':\n          return this.intl.t('common.Credit note');\n      }\n      return null;\n    }\n    get xeroDeepLinkPath() {\n      switch (this.invoiceType) {\n        case 'INVOICE':\n          return `&redirecturl=/AccountsReceivable/Edit.aspx?InvoiceID=${this.xeroInvoiceId}`;\n        case 'CREDIT_NOTE':\n          return `&redirecturl=/AccountsReceivable/EditCreditNote.aspx?creditNoteID=${this.xeroInvoiceId}`;\n      }\n      return null;\n    }\n    get myAttachments() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const invoiceAttachments = this.safeHasManyToValue('attachments')?.toArray() || [];\n      return invoiceAttachments.map(item => item.attachmentInfo);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceNumber\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceType\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroInvoiceId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksInvoiceId\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"toContact\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"referencedInvoice\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/ips-connection\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let IpsConnectionModel = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class = class IpsConnectionModel extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ipsEmail\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor2, this);\n      _initializerDefineProperty(this, \"disabledAt\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"ipsEmail\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contactEmail\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"disabledAt\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/models/ips-document\", [\"exports\", \"moment\", \"@ember-data/model\"], function (_exports, _moment, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"externalId\", _descriptor, this);\n      _initializerDefineProperty(this, \"filename\", _descriptor2, this);\n      _initializerDefineProperty(this, \"email\", _descriptor3, this);\n      _initializerDefineProperty(this, \"status\", _descriptor4, this);\n      _initializerDefineProperty(this, \"invoiceNumber\", _descriptor5, this);\n      _initializerDefineProperty(this, \"senderName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"recipient\", _descriptor0, this);\n      _initializerDefineProperty(this, \"manager\", _descriptor1, this);\n    }\n    get displayAge() {\n      return (0, _moment.default)(this.dateCreated).fromNow();\n    }\n    get displayStatus() {\n      return this.status.split('_').map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join(' ');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"externalId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"filename\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"email\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceNumber\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"senderName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"recipient\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"manager\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/itm-supplier\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactPerson\", _descriptor2, this);\n      _initializerDefineProperty(this, \"contactNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor4, this);\n      _initializerDefineProperty(this, \"address\", _descriptor5, this);\n      _initializerDefineProperty(this, \"eaccountsSupplierCode\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"contactPerson\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"contactNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsSupplierCode\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/kpi\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"introLine\", _descriptor2, this);\n      _initializerDefineProperty(this, \"description\", _descriptor3, this);\n      _initializerDefineProperty(this, \"strategies\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor5, this);\n      _initializerDefineProperty(this, \"format\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"active\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor0, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"introLine\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"strategies\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"format\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"active\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/labour-cost-calculator-item\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"portal/models/base-model\"], function (_exports, _model, _object, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'percentOfPayRate'\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec5 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('labour-cost-calculator', {\n    async: true,\n    inverse: 'items'\n  }), _dec8 = (0, _object.computed)('value', 'valueType', 'calculator'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"label\", _descriptor, this);\n      // enum['minutesPerDay', 'daysPerYear', 'percentOfPayRate']\n      _initializerDefineProperty(this, \"valueType\", _descriptor2, this);\n      _initializerDefineProperty(this, \"value\", _descriptor3, this);\n      _initializerDefineProperty(this, \"enabled\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isSystem\", _descriptor5, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"calculator\", _descriptor7, this);\n    }\n    /* computed */\n    get percentage() {\n      switch (this.valueType) {\n        case 'minutesPerDay':\n          return this.value / 60 / (this.belongsTo('calculator').value()?.workingHoursPerDay || Infinity);\n        case 'daysPerYear':\n          return this.value / (this.belongsTo('calculator').value()?.annualWorkingDays || Infinity);\n        case 'percentOfPayRate':\n          return this.value;\n        default:\n          return 0;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"label\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"valueType\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"enabled\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"isSystem\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"calculator\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"percentage\", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, \"percentage\"), _class2.prototype), _class2);\n});","define(\"portal/models/labour-cost-calculator\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"lodash\", \"portal/models/base-model\"], function (_exports, _model, _object, _lodash, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"lodash\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 8\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 5\n  }), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('worker', {\n    async: true,\n    inverse: 'costCalculatorUsed'\n  }), _dec6 = (0, _model.hasMany)('labour-cost-calculator-item', {\n    async: true,\n    inverse: 'calculator'\n  }), _dec7 = (0, _object.computed)('workingDaysPerWeek'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"label\", _descriptor, this);\n      _initializerDefineProperty(this, \"workingHoursPerDay\", _descriptor2, this);\n      _initializerDefineProperty(this, \"workingDaysPerWeek\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"usedBy\", _descriptor5, this);\n      _initializerDefineProperty(this, \"items\", _descriptor6, this);\n    }\n    get sortedItems() {\n      const systemItems = [];\n      const otherItems = [];\n      this.items.forEach(item => {\n        if (item.isDeleted) return; // omit deleted items\n\n        (item.isSystem ? systemItems : otherItems).push(item);\n      });\n      return [..._lodash.default.sortBy(systemItems, 'label'), ..._lodash.default.sortBy(otherItems, 'dateCreated')];\n    }\n    get annualWorkingDays() {\n      return this.workingDaysPerWeek * 52;\n    }\n    get extraCostPercentage() {\n      return this.sortedItems.filterBy('enabled', true).reduce((total, item) => total += item.percentage, 0);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"label\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"workingHoursPerDay\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"workingDaysPerWeek\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"usedBy\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"annualWorkingDays\", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, \"annualWorkingDays\"), _class2.prototype), _class2);\n});","define(\"portal/models/link-attachment-to-entity\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-attachment-to-project\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"project\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-attachment-to-purchase-order\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('purchase-order', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"purchaseOrder\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrder\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-attachment-to-task\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"task\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-account\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'accounts'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"account\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"account\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-entity-group\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'entityGroups'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-entity\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'entities'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-kpi\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('kpi', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'kpis'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"kpi\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"kpi\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-entity-group-can-be-accessed-by\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: 'canBeAccessedBy'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-entity-group-member\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: 'members'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-entity-to-entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'attributes'\n  }), _dec2 = (0, _model.belongsTo)('entity-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-invoice-item-to-bill-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _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      (false && !(typeof cacheName === 'string') && (0, _debug.assert)('A cache name is required.', typeof cacheName === 'string'));\n      (false && !(key != null) && (0, _debug.assert)('A key is required.', key != null));\n      const cachePath = `_cache.${cacheName}`;\n      let cache = (0, _object.get)(this, cachePath);\n      if (!cache || !(0, _array.isArray)(cache)) {\n        (0, _object.set)(this, cachePath, []);\n        cache = (0, _object.get)(this, cachePath);\n      }\n      const existing = cache.find(obj => _lodash.default.isEqual((0, _object.get)(obj, 'key'), key));\n      if (existing) {\n        (0, _object.set)(existing, 'value', value);\n      } else {\n        cache.pushObject({\n          key,\n          value\n        });\n      }\n    },\n    lookup(cacheName, key) {\n      (false && !(typeof cacheName === 'string') && (0, _debug.assert)('A cache name is required.', typeof cacheName === 'string'));\n      (false && !(key != null) && (0, _debug.assert)('A key is required.', key != null));\n      const cache = (0, _object.get)(this, `_cache.${cacheName}`);\n      if (!cache) {\n        return undefined;\n      }\n      const record = cache.find(obj => _lodash.default.isEqual((0, _object.get)(obj, 'key'), key));\n      return record ? (0, _object.get)(record, 'value') : undefined;\n    },\n    clear(cacheName, key) {\n      (false && !(typeof cacheName === 'string') && (0, _debug.assert)('A cache name is required.', typeof cacheName === 'string'));\n      const cache = (0, _object.get)(this, '_cache.' + cacheName);\n      if (!cache) {\n        return false;\n      }\n      if ((0, _utils.isEmpty)(key)) {\n        (0, _object.set)(this, `_cache.${cacheName}`, []);\n        return true;\n      }\n      const record = cache.find(obj => _lodash.default.isEqual((0, _object.get)(obj, 'key'), key));\n      if (record) {\n        cache.removeObject(record);\n      }\n      return Boolean(record);\n    }\n  });\n});","define(\"portal/services/chargebee\", [\"exports\", \"jquery\", \"portal/config/environment\", \"@ember/service\", \"@glimmer/tracking\", \"lodash\"], function (_exports, _jquery, _environment, _service, _tracking, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  /* global Chargebee */\n  0; //eaimeta@70e063a35619d71f0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subscriptionIsChanging\", _descriptor5, this);\n      _defineProperty(this, \"subscriptionChanging\", null);\n    }\n    /**\n     * Says whether the Chargebee integration is ready to use, which needs the entity to\n     * have a Chargebee customer.\n     */\n    get ready() {\n      return Boolean(this.sessionData.entity?.cbCustomerId);\n    }\n    async open(entityId = this.sessionData.entity.id) {\n      if (!this.ready) return;\n      const currentEntityAttributes = this.sessionData.entity.hasMany('attributes').ids();\n      this.subscriptionChanging = null;\n      const portalSession = await getChargebeePortalSession(this.session.data.authenticated.access_token, entityId);\n      const instance = Chargebee.init({\n        site: portalSession.site\n      });\n      instance.logout();\n      instance.setPortalSession(portalSession);\n      const portal = instance.createChargebeePortal();\n      portal.open({\n        // this has the disadvantage of possibly reloading the page while the subscription window is still open\n        // however, this process generally takes around 10-15 seconds and reloading the window isn't a massive issue\n        close: this.handleClose.bind(this),\n        subscriptionChanged: () => {\n          this.subscriptionChanging = handleSubscriptionChange(this.sessionData.entity, new Date(), currentEntityAttributes);\n        }\n      });\n    }\n    async openIpsAddonCheckout(entityId = this.sessionData.entity.id) {\n      if (!this.ready) return;\n      const currentEntityAttributes = this.sessionData.entity.hasMany('attributes').ids();\n      this.subscriptionChanging = null;\n      const hostedPage = await this.portalApiV2.authPost('/chargebee/ips-addon/checkout', {\n        entity: entityId\n      });\n      const instance = Chargebee.init({\n        site: hostedPage.site\n      });\n      instance.logout();\n      instance.openCheckout({\n        hostedPage: () => Promise.resolve(hostedPage),\n        success: () => {\n          this.subscriptionChanging = handleSubscriptionChange(this.sessionData.entity, new Date(), currentEntityAttributes);\n        },\n        close: () => {\n          // checkout was cancelled without purchasing, nothing to apply\n          if (!this.subscriptionChanging) return;\n          this.handleClose();\n        }\n      });\n    }\n    async handleClose() {\n      try {\n        this.subscriptionIsChanging = true;\n        if (this.subscriptionChanging) {\n          await this.subscriptionChanging;\n        }\n      } finally {\n        // considering the large number of computed properties this change effects\n        // reloading the entire page is easier and safer\n        await new Promise(resolve => setTimeout(resolve, 10000));\n        location.reload();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subscriptionIsChanging\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n  async function handleSubscriptionChange(entity, subscriptionChangedMoment, currentEntityAttributes, waitTime = 500, attempts = 0) {\n    // if we've been trying for more than a minute resolve the promise\n    if (attempts * waitTime > 10000) return;\n    await entity.reload();\n    const latestEntityAttributes = entity.hasMany('attributes').ids();\n\n    // an upgrade adds attributes where a downgrade removes them\n    if (_lodash.default.xor(currentEntityAttributes, latestEntityAttributes).length > 0) return;\n\n    // if the entity hasn't been updated, wait for the timeout and try again\n    await new Promise(resolve => setTimeout(() => resolve(), waitTime));\n    return handleSubscriptionChange(entity, subscriptionChangedMoment, currentEntityAttributes, waitTime, attempts + 1);\n  }\n  function getChargebeePortalSession(accessToken, entityId) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        method: 'POST',\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/get-customer-portal-session`,\n        headers: {\n          Authorization: `Bearer ${accessToken}`\n        },\n        contentType: 'application/json',\n        accepts: 'application/json',\n        data: JSON.stringify({\n          entity: entityId\n        })\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/services/cookies\", [\"exports\", \"ember-cookies/services/cookies\"], function (_exports, _cookies) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _cookies.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cookies/services/cookies\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/dialog\", [\"exports\", \"@ember/service\", \"html-js-confirm\"], function (_exports, _service, _htmlJsConfirm) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"html-js-confirm\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // WARNING:\n  // Never use this directly. It is intended for the \"builda-price-client-addon\".\n  let _class = _exports.default = (_dec = (0, _service.inject)('notifications'), _class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_notifications\", _descriptor, this);\n      _defineProperty(this, \"notifications\", this._notifications);\n      _defineProperty(this, \"confirm\", _htmlJsConfirm.default);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"_notifications\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/ember-elsewhere\", [\"exports\", \"ember-elsewhere/services/ember-elsewhere\"], function (_exports, _emberElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/services/ember-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/engine-data\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionId\", _descriptor, this);\n      _initializerDefineProperty(this, \"jobId\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"jobId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class2);\n});","define(\"portal/services/financial-portal-period-selector\", [\"exports\", \"@ember/service\", \"@ember/object/evented\", \"@glimmer/tracking\", \"moment\"], function (_exports, _service, _evented, _tracking, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@glimmer/tracking\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default.extend(_evented.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_period\", _descriptor, this);\n    }\n    get period() {\n      return this._period;\n    }\n    set period(value) {\n      if (this._period !== value) {\n        this._period = value;\n        // emit the signal for the route to intercept\n        this.trigger('periodChanged');\n      }\n    }\n    get date() {\n      return (0, _moment.default)(this.period, 'YYYY-MM').endOf('month').toDate();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"_period\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().subtract(1, 'month').format('YYYY-MM');\n    }\n  }), _class2);\n});","define(\"portal/services/help-center\", [\"exports\", \"@ember/service\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _service, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  /* global zE */\n  var _default = _exports.default = _service.default.extend({\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    helpCenterInitialized: false,\n    helpCenterActive: false,\n    labels: [],\n    activateHelpCenter: (0, _object.observer)('session.data.authenticated', 'helpCenterActive', function () {\n      const initialized = (0, _object.get)(this, 'helpCenterInitialized');\n      if (initialized) return;\n      const active = (0, _object.get)(this, 'helpCenterActive');\n      const loggedIn = (0, _object.get)(this, 'session.data.authenticated');\n      if (loggedIn && active) this.initializeHelpCenter();\n    }),\n    initializeHelpCenter() {\n      const user = (0, _object.get)(this, 'sessionData.user');\n      if (!user) return;\n      // Nothing to support against a fake server, and the widget would sit in\n      // the corner of every screenshot and product shot recorded on Mirage.\n      if (_environment.default.environment === 'test' || _environment.default['ember-cli-mirage']?.enabled) return;\n      const accessToken = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      if (!accessToken || (0, _object.get)(this, 'helpCenterInitialized')) return;\n\n      /* eslint-disable */\n      // Start of buildaprice Zendesk Widget script\n      window.zEmbed || function (e, t) {\n        var n,\n          o,\n          d,\n          i,\n          s,\n          a = [],\n          r = document.createElement(\"iframe\");\n        window.zEmbed = function () {\n          a.push(arguments);\n        }, window.zE = window.zE || window.zEmbed, r.src = \"javascript:false\", r.title = \"\", r.role = \"presentation\", (r.frameElement || r).style.cssText = \"display: none\", d = document.getElementsByTagName(\"script\"), d = d[d.length - 1], d.parentNode.insertBefore(r, d), i = r.contentWindow, s = i.document;\n        try {\n          o = s;\n        } catch (e) {\n          n = document.domain, r.src = 'javascript:var d=document.open();d.domain=\"' + n + '\";void(0);', o = s;\n        }\n        o.open()._l = function () {\n          var e = this.createElement(\"script\");\n          n && (this.domain = n), e.id = \"js-iframe-async\", e.src = \"https://assets.zendesk.com/embeddable_framework/main.js\", this.t = +new Date(), this.zendeskHost = \"buildaprice.zendesk.com\", this.zEQueue = a, this.body.appendChild(e);\n        }, o.write('<body onload=\"document._l();\">'), o.close();\n      }();\n      // End of buildaprice Zendesk Widget script\n      /* eslint-enable */\n\n      (0, _object.set)(this, 'helpCenterInitialized', true);\n      const labels = (0, _object.get)(this, 'labels');\n      if (labels.length) this.setLabels(...labels);\n      if ((0, _object.get)(this, 'helpCenterActive')) this.showHelpCenter();\n      this.identify();\n    },\n    identify() {\n      const user = (0, _object.get)(this, 'sessionData.user');\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.identify) {\n          zE.identify({\n            name: (0, _object.get)(user, 'fullName'),\n            email: (0, _object.get)(user, 'email'),\n            organisation: (0, _object.get)(entity, 'name')\n          });\n        } else {\n          zE(function () {\n            zE.identify({\n              name: (0, _object.get)(user, 'fullName'),\n              email: (0, _object.get)(user, 'email'),\n              organisation: (0, _object.get)(entity, 'name')\n            });\n          });\n        }\n      }\n    },\n    setLabels(...args) {\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.setHelpCenterSuggestions) {\n          zE.setHelpCenterSuggestions({\n            labels: args\n          });\n        } else {\n          zE(function () {\n            zE.setHelpCenterSuggestions({\n              labels: args\n            });\n          });\n        }\n      }\n      (0, _object.set)(this, 'labels', args);\n    },\n    showHelpCenter() {\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.show) {\n          zE.show();\n        } else {\n          zE(function () {\n            zE.show();\n          });\n        }\n      }\n      (0, _object.set)(this, 'helpCenterActive', true);\n    },\n    hideHelpCenter() {\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.hide) {\n          zE.hide();\n        } else {\n          zE(function () {\n            zE.hide();\n          });\n        }\n      }\n      (0, _object.set)(this, 'helpCenterActive', false);\n    },\n    openHelpCenter() {\n      if ((0, _object.get)(this, 'helpCenterActive')) {\n        if (zE.activate) {\n          zE.activate();\n        } else {\n          zE(function () {\n            zE.activate();\n          });\n        }\n      }\n    }\n  });\n});","define(\"portal/services/intl\", [\"exports\", \"ember-intl/services/intl\"], function (_exports, _intl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _intl.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/services/intl\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/services/invoiced-costs\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"confirmingDelete\", _descriptor, this);\n      _initializerDefineProperty(this, \"deleteTitle\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deleteMessage\", _descriptor3, this);\n      _defineProperty(this, \"_resolveConfirmation\", void 0);\n      _defineProperty(this, \"requestDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          isInvoiced,\n          title,\n          message,\n          deleteCb\n        }) {\n          if (!isInvoiced) return deleteCb();\n          this.deleteTitle = title;\n          this.deleteMessage = message;\n          this.confirmingDelete = true;\n          const isConfirmed = yield new Promise(resolve => {\n            this._resolveConfirmation = resolve;\n          });\n          if (isConfirmed) yield deleteCb();\n        }\n      }), null, \"requestDelete\", null));\n    }\n    confirmDelete() {\n      this.confirmingDelete = false;\n      if (this._resolveConfirmation) {\n        this._resolveConfirmation(true);\n        this._resolveConfirmation = null;\n      }\n    }\n    dismissDelete() {\n      this.confirmingDelete = false;\n      if (this._resolveConfirmation) {\n        this._resolveConfirmation(false);\n        this._resolveConfirmation = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"confirmingDelete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"deleteTitle\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deleteMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"confirmDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"confirmDelete\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"dismissDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"dismissDelete\"), _class2.prototype), _class2);\n});","define(\"portal/services/ips\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function attachmentToFile(attachment) {\n    const binary = atob(attachment.data);\n    const bytes = Uint8Array.from(binary, char => char.charCodeAt(0));\n    return new File([bytes], attachment.filename, {\n      type: attachment.fileType\n    });\n  }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      // the meter reads this, so a refused upload can correct it in place\n      _initializerDefineProperty(this, \"latestUsage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dismissedAlert\", _descriptor8, this);\n      _defineProperty(this, \"uploadPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          attachments = [],\n          validationErrors = [],\n          error\n        }) {\n          if (!this.ready) return false;\n          validationErrors.forEach(validationError => this.notifications.error(validationError));\n          if (error || !attachments.length) {\n            if (error) {\n              this.notifications.error({\n                message: this.intl.t('services.ips.somethingWentWrongWhileSubmittingFilesToIPS'),\n                error\n              });\n            }\n            return false;\n          }\n          try {\n            yield this.buildaPrice.submitFilesToIPS(this.sessionData.entity.id, attachments.map(attachmentToFile));\n            this.notifications.success(this.intl.t('services.ips.Files submitted to IPS'));\n            return true;\n          } catch (submitError) {\n            // the refusal carries the usage that caused it, so no refetch needed\n            const refusedUsage = submitError?.responseJSON?.detail?.ipsUsage;\n            if (refusedUsage) {\n              this.latestUsage = refusedUsage;\n              this.notifications.error({\n                message: refusedUsage.hasActiveTerm ? this.intl.t('services.ips.ipsDocumentAllowanceUsed') : this.intl.t('services.ips.couldNotImportPdfBills')\n              });\n              return false;\n            }\n            this.notifications.error({\n              message: this.intl.t('services.ips.somethingWentWrongWhileSubmittingFilesToIPS'),\n              error: submitError\n            });\n            return false;\n          }\n        }\n      }), null, \"uploadPdf\", null));\n    }\n    /**\n     * Says whether IPS is ready to use, which needs the entity to have an ips_connection.\n     * Unknown until usage has been fetched.\n     */\n    get ready() {\n      return Boolean(this.newFeatureFlags.includesFeatureFlags('entityCanUseIPS') && this.latestUsage?.isConnected);\n    }\n    get canSubmitDocuments() {\n      const usage = this.latestUsage;\n      if (!this.ready) return false;\n      if (!usage.hasActiveTerm) return false;\n      return usage.isMetered || usage.used < usage.limit;\n    }\n    async getIpsContactInfo() {\n      return await this.portalApiV2.authGet('/ips/contact-info', {\n        entityId: this.sessionData.entity.id\n      });\n    }\n    async getUsage() {\n      this.latestUsage = await this.portalApiV2.authGet('/ips/usage', {\n        entityId: this.sessionData.entity.id\n      });\n      return this.latestUsage;\n    }\n    async updateIpsContactEmail(body) {\n      return await this.portalApiV2.authPatch(`/ips/contact-email`, body);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"latestUsage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dismissedAlert\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class2);\n});","define(\"portal/services/keyboard\", [\"exports\", \"ember-keyboard/services/keyboard\"], function (_exports, _keyboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _keyboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/services/keyboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/media-events\", [\"exports\", \"@ember/object/evented\", \"@ember/object\", \"@ember/service\"], function (_exports, _evented, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/evented\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  /**\n   * Provides an evented wrapper around the media service.\n   */\n  var _default = _exports.default = _service.default.extend(_evented.default, {\n    media: (0, _service.inject)(),\n    mediaMatchesDidChange: (0, _object.observer)('media', 'media.matches.[]', function () {\n      this.trigger('mediaMatchesDidChange');\n    }),\n    // This one took me a while.\n    // https://guides.emberjs.com/v2.10.0/object-model/observers/#toc_unconsumed-computed-properties-do-not-trigger-observers\n    consumeMediaService: (0, _evented.on)('init', function () {\n      (0, _object.get)(this, 'media');\n    })\n  });\n});","define(\"portal/services/media\", [\"exports\", \"ember-responsive/services/media\"], function (_exports, _media) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/services/media\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _media.default;\n});","define(\"portal/services/metrics\", [\"exports\", \"ember-metrics/services/metrics\"], function (_exports, _metrics) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _metrics.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-metrics/services/metrics\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/mobile-menu\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  class _default extends _service.default {\n    toggleMenu() {\n      document.getElementById('mobile-side-menu__overlay').classList.toggle('mobile-side-menu__overlay--visible');\n      document.getElementById('mobile-side-menu').classList.toggle('mobile-side-menu--visible');\n    }\n    closeMenu() {\n      document.getElementById('mobile-side-menu__overlay').classList.remove('mobile-side-menu__overlay--visible');\n      document.getElementById('mobile-side-menu').classList.remove('mobile-side-menu--visible');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/services/modal-dialog\", [\"exports\", \"@ember/object\", \"@ember/service\", \"portal/config/environment\", \"ember-modal-dialog/utils/config-utils\"], function (_exports, _object, _service, _environment, _configUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"ember-modal-dialog/utils/config-utils\"eaimeta@70e063a35619d71f\n  function computedFromConfig(prop) {\n    return (0, _object.computed)(function () {\n      return _environment.default['ember-modal-dialog'] && _environment.default['ember-modal-dialog'][prop];\n    });\n  }\n  var _default = _exports.default = _service.default.extend({\n    hasEmberTether: computedFromConfig('hasEmberTether'),\n    hasLiquidWormhole: computedFromConfig('hasLiquidWormhole'),\n    hasLiquidTether: computedFromConfig('hasLiquidTether'),\n    destinationElementId: (0, _object.computed)(function () {\n      return (0, _configUtils.getDestinationElementIdFromConfig)(_environment.default);\n    })\n  });\n});","define(\"portal/services/modules\", [\"exports\", \"@ember/service\", \"portal/utils/favicon-title\", \"portal/utils/platform\"], function (_exports, _service, _faviconTitle, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/utils/favicon-title\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // TODO delete the partner module and all routes\n  // TODO entirely delete bunnings concepts\n  // TODO delete following modules/routes/feature flags: partner, building, pricing, PM promo\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor() {\n      super(...arguments);\n\n      // once to init the title bar on refresh\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"platform\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"_onRouteDidChange\", void 0);\n      this.onRouteDidChange();\n      this._onRouteDidChange = this.onRouteDidChange.bind(this);\n      this.router.on('routeDidChange', this._onRouteDidChange);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.router.off('routeDidChange', this._onRouteDidChange);\n    }\n    onRouteDidChange() {\n      let pre = '';\n      const host = window.location.host;\n      if (host.includes('localhost')) pre = '🟢';\n      if (host.includes('staging')) pre = '🟠';\n      const moduleRoutes = Object.values(this.modules).map(m => m.slug);\n      const bannedRoutes = ['index', 'entity'];\n      let usableRoutes = this.router.currentRouteName.split('.').filter((r, i) => {\n        // only filter module names from module-ish routes so we don't clash with actual route names\n        const couldBeModule = i <= 2;\n        if (couldBeModule) {\n          return !moduleRoutes.includes(r) && !bannedRoutes.includes(r);\n        }\n        return !bannedRoutes.includes(r);\n      }).map(r => r.split(/-|_/).map((w, i) => i === 0 ? w.charAt(0).toUpperCase() + w.substring(1) : w).join(' '));\n      const thisRoute = usableRoutes[usableRoutes.length - 1];\n      if (usableRoutes.length > 3) {\n        usableRoutes = [usableRoutes[0],\n        // the parent route\n        '...', usableRoutes[usableRoutes.length - 1] // the current route\n        ];\n      }\n\n      // only bother with breadcrumbs if we're deeper than 2 routes\n      const routeBreadcrumbs = usableRoutes.length > 2 ? ` > ${usableRoutes.join(' > ')}` : '';\n      if (this.currentModule) {\n        const title = `${pre} ${thisRoute} - ${this.currentModule.name}${routeBreadcrumbs}`;\n        (0, _faviconTitle.changeTitle)(title);\n        (0, _faviconTitle.changeFavicon)(this.currentModule.favicon);\n      } else {\n        const title = `${pre} ${thisRoute} - ${this.platform.platform.name}${routeBreadcrumbs}`;\n        (0, _faviconTitle.changeTitle)(title);\n        (0, _faviconTitle.changeFavicon)(this.platform.platform.favicon);\n      }\n    }\n    get modules() {\n      const modules = {\n        BUILDA_PRICE: {\n          slug: 'builda-price',\n          name: this.intl.t('common.Project management'),\n          brand: 'Builda Price',\n          logo: _platform.BRANDING.BUILDA_PRICE.logo,\n          favicon: _platform.BRANDING.BUILDA_PRICE.favicon,\n          outsideLink: undefined,\n          badge: undefined\n        },\n        FINANCIALS: {\n          slug: 'financials',\n          name: this.intl.t('common.Financial portal'),\n          brand: 'Step Accounts',\n          logo: _platform.BRANDING.STEP.logo,\n          favicon: _platform.BRANDING.STEP.favicon,\n          outsideLink: undefined,\n          badge: undefined\n        },\n        BUILDA_PRICE_PROMO: {\n          slug: undefined,\n          name: this.intl.t('common.Project management'),\n          brand: 'Builda Price',\n          logo: _platform.BRANDING.BUILDA_PRICE.logo,\n          favicon: _platform.BRANDING.BUILDA_PRICE.favicon,\n          outsideLink: 'https://www.buildaprice.co.nz',\n          badge: 'UPGRADE'\n        }\n      };\n\n      // in some branding scenarios module branding is overridden\n      switch (this.sessionData.entity?.brand) {\n        case 'BUILDA_PRICE':\n          modules.FINANCIALS.brand = undefined;\n          modules.FINANCIALS.favicon = _platform.BRANDING.BUILDA_PRICE.favicon;\n          modules.FINANCIALS.icon = 'chart-line';\n          modules.FINANCIALS.logo = _platform.BRANDING.BUILDA_PRICE.logo;\n          modules.FINANCIALS.name = this.intl.t('common.Benchmarking');\n          modules.BUILDA_PRICE.brand = undefined;\n          modules.BUILDA_PRICE.icon = 'hammer';\n          break;\n        case 'STEP':\n          break;\n        case 'APB':\n          modules.FINANCIALS.brand = 'APB';\n          modules.FINANCIALS.favicon = _platform.BRANDING.APB.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.APB.logo;\n          break;\n        case 'TPB':\n          modules.BUILDA_PRICE.brand = 'TPB';\n          modules.BUILDA_PRICE.favicon = _platform.BRANDING.TPB.favicon;\n          modules.BUILDA_PRICE.logo = _platform.BRANDING.TPB.logo;\n          modules.FINANCIALS.brand = 'TPB';\n          modules.FINANCIALS.favicon = _platform.BRANDING.TPB.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.TPB.logo;\n          break;\n        case 'STEP_UP':\n          modules.BUILDA_PRICE.brand = undefined;\n          modules.BUILDA_PRICE.favicon = _platform.BRANDING.STEP_UP.favicon;\n          modules.BUILDA_PRICE.logo = _platform.BRANDING.STEP_UP.logo;\n          modules.FINANCIALS.brand = undefined;\n          modules.FINANCIALS.favicon = _platform.BRANDING.STEP_UP.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.STEP_UP.logo;\n          break;\n        case 'ITM':\n          modules.FINANCIALS.favicon = _platform.BRANDING.ITM.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.ITM.logo;\n          break;\n        case 'ATTENTION_SAFETY':\n          modules.FINANCIALS.brand = undefined;\n          modules.FINANCIALS.favicon = _platform.BRANDING.ATTENTION_SAFETY.favicon;\n          modules.FINANCIALS.icon = 'chart-line';\n          modules.FINANCIALS.logo = _platform.BRANDING.ATTENTION_SAFETY.logo;\n          modules.FINANCIALS.name = this.intl.t('common.Benchmarking');\n          modules.BUILDA_PRICE.brand = undefined;\n          modules.BUILDA_PRICE.favicon = _platform.BRANDING.ATTENTION_SAFETY.favicon;\n          modules.BUILDA_PRICE.icon = 'hammer';\n          modules.BUILDA_PRICE.logo = _platform.BRANDING.ATTENTION_SAFETY.logo;\n          break;\n      }\n      return modules;\n    }\n    get currentModule() {\n      const routes = this.router.currentRouteName.split('.');\n      // the module is always the second route, after entity\n      const moduleRoute = routes[1];\n      switch (moduleRoute) {\n        case 'financials':\n          return this.modules.FINANCIALS;\n        case 'builda-price':\n          return this.modules.BUILDA_PRICE;\n        default:\n          return undefined;\n      }\n    }\n    get allowedModules() {\n      const allowedModules = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBuildaPrice')) allowedModules.push(this.modules.BUILDA_PRICE);\n      if (this.newFeatureFlags.includesFeatureFlags('canUseFinancialReporting')) allowedModules.push(this.modules.FINANCIALS);\n      if (this.newFeatureFlags.includesFeatureFlags('isAPBCustomer') && this.newFeatureFlags.excludesFeatureFlags('canUseBuildaPrice')) allowedModules.push(this.modules.BUILDA_PRICE_PROMO);\n      return allowedModules;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"platform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/moment\", [\"exports\", \"ember-moment/services/moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _moment.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/services/moment\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/new-feature-flags\", [\"exports\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/collection-to-array\"], function (_exports, _service, _object, _lodash, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n    }\n    /* HELPERS SECTION START */\n    includesFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.every(check => typeof this[check] === 'function' ? this[check](...args) : this[check]);\n    }\n    includesSomeFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.some(check => typeof this[check] === 'function' ? this[check](...args) : this[check]);\n    }\n    excludesFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.every(check => typeof this[check] === 'function' ? !this[check](...args) : !this[check]);\n    }\n    excludesSomeFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.some(check => typeof this[check] === 'function' ? !this[check](...args) : !this[check]);\n    }\n    /* HELPERS SECTION END */\n\n    /* ENTITY SECTION START */\n    /* entity data start */\n    get entity() {\n      return this.sessionData.entity;\n    }\n    get entities() {\n      // TODO remove allowed entities when we have a better way to do this\n      return this.sessionData.allowedEntities;\n    }\n    /* entity data end */\n\n    /* entity modules start */\n    get entityCanUseCrystalPayroll() {\n      if (this.entity?.includesClaims('v1CrystalPayrollDisabled') && this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseCrystalPayroll') && this.entity?.excludesClaims('v1CrystalPayrollDisabled');\n    }\n    get entityCanUseKeypay() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseKeypay');\n    }\n    get entityCanUsePartner() {\n      if (this.entity?.includesClaims('v1PartnerDisabled') && this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUsePartner') &&\n      // this is awkward but we don't need to do anything about it at the moment\n      this.entity?.includesClaims('canManageIPSDocuments') && this.entity?.excludesClaims('v1PartnerDisabled');\n    }\n    get entityCanUseOldPricing() {\n      if (this.entity?.includesClaims('v1PricingDisabled') && this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUsePricing') && this.entity?.excludesClaims('v1PricingDisabled');\n    }\n    get entityIsParent() {\n      // if you don't have a parent, you are a parent\n      return !this.sessionData.entity?.belongsTo('parent').id();\n    }\n    get entityCanUseStrategies() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseStrategies') && this.entity?.excludesClaims('v1StrategiesDisabled');\n    }\n    get entityIsItm() {\n      // TODO this should probably be a permission but it's contained to a ITM specific report\n      const itmEntityId = '552ef9b81a54227852a57c20';\n      return [this.entity?.id, this.entity.belongsTo('parent').id()].includes(itmEntityId);\n    }\n    get entityIsItmParent() {\n      // TODO this should probably be a permission but it's contained to a ITM specific report\n      const itmEntityId = '552ef9b81a54227852a57c20';\n      return [this.entity?.id].includes(itmEntityId);\n    }\n    get entityCanUseFinancialReporting() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseFinancialReporting') && this.entity?.excludesClaims('v1FinancialReportingDisabled');\n    }\n    get entityCanUseBuildaPrice() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseBuildaPrice') && this.entity?.excludesClaims('v1BuildaPriceDisabled');\n    }\n    /* entity modules end */\n\n    /* entity features start */\n    get entityCanUseCarters() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseCarters');\n    }\n    get entityCanUseIPS() {\n      return this.entityCanUseBills || this.entityCanUseStatements;\n    }\n\n    // statements ride the Doc Flow free allowance, so access comes from Bills\n    get entityCanUseStatements() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseStatements');\n    }\n    get entityCanUsePlaceMakers() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return (this.entityCanUseOldPricing || this.entityCanUseBuildaPrice) && this.entity?.includesClaims('canUsePlaceMakers');\n    }\n    get entityCanUseSmartPayroll() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseSmartPayroll');\n    }\n    get entityCanUseItmInvoiceIntegration() {\n      if (this.sessionData.isUsingAdminMode) return true;\n\n      // there are no specific ITM related feature flags currently\n      return this.entityCanUseBuildaPrice || this.entityCanUseOldPricing;\n    }\n    get entityCanUseBills() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseBills');\n    }\n    get entityCanUsePurchaseOrders() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUsePurchaseOrders');\n    }\n    get entityCanUseInvoices() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseInvoicing');\n    }\n    get entityCanUseStagePayments() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseStagePayments');\n    }\n    get entityCanUseDashboards() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseDashboards');\n    }\n    get entityCanUseEstimates() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return (this.entityCanUseOldPricing || this.entityCanUseBuildaPrice) && this.entity?.includesClaims('canUseEstimates');\n    }\n    get entityCanUseNotes() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseNotes');\n    }\n    get entityCanUseClientReports() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseClientReport');\n    }\n    get entityCanUseProjectFinancials() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProjectFinancials');\n    }\n    get entityCanUseForecastReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseForecastReport');\n    }\n    get entityCanUseProfitMarginsReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProfitMarginsReport');\n    }\n    get entityCanUseLabourHoursReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseLabourHoursReport');\n    }\n    get entityCanUseBudgetReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseBudgetReport');\n    }\n    get entityCanUseQuoteReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseQuoteReport');\n    }\n    get entityCanUsePositionReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUsePositionReport');\n    }\n    get entityCanUseCostReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseCostReport');\n    }\n    get entityCanUseChargeupReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseChargeupReport');\n    }\n    get entityCanUseInvoicingReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseInvoicingReport');\n    }\n    get entityCanUseWipReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseWIPReport');\n    }\n    get entityCanUseScheduling() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseScheduling');\n    }\n    get entityCanUseTimesheets() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseTimesheets');\n    }\n    get entityCanUseFileStorage() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseFileStorage');\n    }\n    get entityCanUseProducts() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProducts');\n    }\n    get entityCanUseProjectProgress() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProjectProgress');\n    }\n    get entityCanUseCsvTaskFileUploader() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseCsvTaskFileUploader');\n    }\n    get entityCanUseHealthAndSafety() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseHealthAndSafety');\n    }\n    get entityCanUseClientPortal() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseClientPortal');\n    }\n    get entityCanUseGeofencing() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseGeofencing');\n    }\n    get entityHasSubcontractorPackage() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entity?.includesClaims('canUseHealthAndSafety') && this.entity?.excludesClaims('canUseBills', 'canUseClientPortal', 'canUseCsvTaskFileUploader', 'canUseDashboards', 'canUseEstimates', 'canUseFileStorage', 'canUseIPS', 'canUseNotes', 'canUseProjectFinancials', 'canUseScheduling', 'canUseTimesheets')) return true;\n      return false;\n    }\n    get entityIsCalStudent() {\n      if (this.entity?.cbPlanId === 'builda-price-cal-education-AUD-Monthly') {\n        return true;\n      }\n      return false;\n    }\n    get entityHasSupport() {\n      // people on the education plan don't get support\n      if (this.entityIsCalStudent) return false;\n\n      // people who are on chargebee get support\n      if (!this.entity?.cbPlanId) return true;\n      if (this.entity?.includesClaims('canUseSupport')) return true;\n      return false;\n    }\n    get isAPBCustomer() {\n      if (this.entity?.brand === 'APB') return true;\n      return false;\n    }\n    /* entity features end */\n    /* ENTITY SECTION END */\n\n    /* USER/WORKER SECTION START */\n    /* user/worker data start */\n    get user() {\n      // the currently logged in user\n      return this.sessionData.user;\n    }\n    get worker() {\n      // the currently logged in worker (in the case of worker login)\n      return this.sessionData.workerPseudoUser;\n    }\n    get projectAttributes() {\n      return this.user?.hasMany('projectAttributes')?.value()?.filter(pa => pa.belongsTo('entity').id() === this.entity?.id) || [];\n    }\n    get taskAttributes() {\n      return this.user?.hasMany('taskAttributes')?.value()?.filter(pa => pa.belongsTo('entity').id() === this.entity?.id) || [];\n    }\n    get userIsWorker() {\n      return Boolean(this.sessionData.workerPseudoUser);\n    }\n    get userIsAdmin() {\n      return this.session?.data?.authenticated?.user?.role === 'admin';\n    }\n    get userIsPartner() {\n      // deal with partners :(\n      // if the entity has a partner, and the user has can manage on the partner, they can also manage this entity\n      const partnerId = this.entity?.belongsTo('partner').id();\n      if (partnerId) {\n        if (this.user?.includesClaimsAboutEntity(partnerId, 'canManageEntity')) return true;\n      }\n      return false;\n    }\n    get userIsEntityAdmin() {\n      if (this.userIsAdmin || this.userIsPartner || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEntity')) return true;\n      return false;\n    }\n    get userIsEntityMember() {\n      // in the case of worker login, check the worker belongs to the entity\n      if (this.userIsWorker) return this.worker.belongsTo('entity').value() === this.sessionData.entity;\n\n      // otherwise, check the user belongs to the entity\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewEntity');\n    }\n    get userCanViewEntity() {\n      return this.userIsEntityAdmin || this.userIsEntityMember;\n    }\n    get userHasPricingRole() {\n      return Boolean(this.user?.pricingRole);\n    }\n    get userIsClient() {\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'hasClientRole');\n    }\n    /* user/worker data end */\n\n    /* user/worker modules start */\n    get canUsePartner() {\n      // this module is only available to entity admins because the only feature in it is admin based\n      return this.entityCanUsePartner && this.userIsEntityAdmin;\n    }\n    get canUseOldPricing() {\n      if (!this.entityCanUseOldPricing) return false;\n      if (!this.userCanViewEntity) return false;\n\n      // entity admins can use old pricing\n      if (this.userIsEntityAdmin) return true;\n\n      // need to check if the users has an old school pricing permission\n      // and a role\n      // this will prevent newly created users from accessing old modules\n      if (this.userHasPricingRole && this.user?.includesClaimsAboutEntity(this.entity?.id, 'canUsePricing')) return true;\n      return false;\n    }\n    get canUseFinancialReporting() {\n      if (!this.entityCanUseFinancialReporting) return false;\n      if (!this.userCanViewEntity) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseStrategies() {\n      if (!this.entityCanUseStrategies) return false;\n      if (!this.userCanViewEntity) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canDeleteStrategies', 'canViewStrategies')) return true;\n      return false;\n    }\n    get canUseBuildaPrice() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (!this.userCanViewEntity) return false;\n\n      // entity admins can use bp\n      if (this.userIsEntityAdmin) return true;\n\n      // workers can use bp\n      if (this.userIsWorker) return true;\n\n      // people who can see all projects can use bp\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjects', 'canManageProjects')) return true;\n\n      // people with access to at least one project can use bp\n      let canUseProjects = false;\n      this.projectAttributes.forEach(pa => {\n        if (pa.belongsTo('entity').id() !== this.entity?.id) return;\n        const attribute = pa.belongsTo('attribute').id();\n        if (['canViewProjects', 'canManageProjects'].includes(attribute)) canUseProjects = true;\n      });\n      if (canUseProjects) return true;\n      return false;\n    }\n    get hasAccessToPortal() {\n      // check if the user and entity has access to any modules\n      return this.canUsePartner || this.canUseFinancialReporting || this.canUseOldPricing || this.canUseBuildaPrice;\n    }\n    /* user/worker modules end */\n\n    /* user/worker features start */\n    get canUseWorkerType() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUsePayRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUseCostRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUseWorkerCostCalculator() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUseChargeOutRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    canUseBackdateChargeOutRate(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTimesheets')) return true;\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTimesheets')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseBackdateCostRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    canUseWorkerJobAllocation(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTimesheets')) return true;\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTimesheets')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseScheduling() {\n      if (!this.entityCanUseScheduling) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // currently only users with entity level scheduling management can access scheduling\n      // once we introduce project/task filtering this will change\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageSchedulingReports', 'canViewSchedulingReports')) return true;\n\n      // check if the user has scheduling permission for any projects\n      if (this.projectAttributes.some(pa => ['canManageSchedulingReports', 'canViewSchedulingReports'].includes(pa.belongsTo('attribute').id()))) return true;\n\n      // check if the user has scheduling permission for any tasks\n      if (this.taskAttributes.some(ta => ['canManageSchedulingReports', 'canViewSchedulingReports'].includes(ta.belongsTo('attribute').id()))) return true;\n      return false;\n    }\n    canViewBudgetFinancialReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage budget reports\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewQuoteReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewProgressReports(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this._canUseEntityProgressReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageProgressReports', 'canViewProgressReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProgressReports', 'canViewProgressReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewCostFinancialReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewAccessReports(resource) {\n      // access reports are built from geofencing data\n      if (!this.entityCanUseGeofencing) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageAccessReports', 'canViewAccessReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageAccessReports', 'canViewAccessReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewChargeupReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this._canUseEntityChargeupReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageChargeupReports', 'canViewChargeupReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageProjects(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can manage all tasks\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProjects')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // if you are a project admin for the project you can manage tasks\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProjects');\n      }\n      return false;\n    }\n    canUseProjects(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can manage all tasks\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjects', 'canManageProjects')) return true;\n\n      // at the top level project resources are not passed here. We need to eval if any of the user permissions include a canViewProjects for this company\n      let canUseProjects = false;\n      this.projectAttributes.forEach(pa => {\n        if (pa.belongsTo('entity').id() !== this.entity?.id) return;\n        const attribute = pa.belongsTo('attribute').id();\n        if (['canViewProjects', 'canManageProjects'].includes(attribute)) canUseProjects = true;\n      });\n      if (canUseProjects) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // if you are a project admin for the project you can view tasks\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewProjects', 'canManageProjects');\n      }\n      if (this.userIsClient) return true;\n      return false;\n    }\n    canManageTasks(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can manage all tasks\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTasks')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTasks')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // if you can manage the project or tasks you can manage the task\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageTasks')) return true;\n            if (this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTasks')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseTasks(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can view all tasks\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks')) return true;\n      if (!resource) {\n        // check if we have permission on any projects\n        if (this.projectAttributes.some(pa => ['canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks'].includes(pa.belongsTo('attribute').id()))) return true;\n\n        // check if we have permission on any tasks\n        if (this.taskAttributes.some(ta => ['canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks'].includes(ta.belongsTo('attribute').id()))) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            // if you are a project admin for the project you can view tasks\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks')) return true;\n\n            // check if we have permission on any project tasks\n            if (this.taskAttributes.some(ta => {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              return isForProject && ['canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks'].includes(ta.belongsTo('attribute').id());\n            })) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canViewProjects = this.user?.includesSomeClaimsAboutProject((0, _object.get)(resource, 'project.id'), 'canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks');\n            // if you can view the project or tasks you can view the tasks\n            if (canViewProjects || this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canViewTasks')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageTaskBudgets(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTaskBudgets')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageTaskBudgets')) return true;\n            return this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTaskBudgets');\n          }\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTaskBudgets');\n      }\n      return false;\n    }\n    canManageTaskQuotes(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageTaskQuotes')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageTaskQuotes')) return true;\n            return this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTaskQuotes');\n          }\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTaskQuotes');\n      }\n      return false;\n    }\n    canUseTaskBudgets(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTaskBudgets', 'canManageTaskBudgets')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canViewTaskBudgets', 'canManageTaskBudgets')) return true;\n            return this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canViewTaskBudgets', 'canManageTaskBudgets');\n          }\n        case 'project':\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewTaskBudgets', 'canManageTaskBudgets');\n      }\n      return false;\n    }\n    canUseTaskQuotes(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTaskQuotes', 'canManageTaskQuotes')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canViewTaskQuotes', 'canManageTaskQuotes')) return true;\n            return this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canViewTaskQuotes', 'canManageTaskQuotes');\n          }\n        case 'project':\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewTaskQuotes', 'canManageTaskQuotes');\n      }\n      return false;\n    }\n    canUseQuoteVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjectQuoteVersions', 'canManageProjectQuoteVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewProjectQuoteVersions', 'canManageProjectQuoteVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageQuoteVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageProjectQuoteVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProjectQuoteVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canUseBudgetVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjectBudgetVersions', 'canManageProjectBudgetVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewProjectBudgetVersions', 'canManageProjectBudgetVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageBudgetVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageProjectBudgetVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesClaimsAboutProject(modelId(resource), 'canManageProjectBudgetVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageProgressVersions(resource) {\n      if (!this.entityCanUseProjectProgress) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProjectProgressVersions', 'canManageEntity')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesClaimsAboutProject(modelId(resource), 'canManageProjectProgressVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageProfitMargin(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      switch (modelName(resource)) {\n        case 'entity':\n          return this.user?.includesClaimsAboutEntity(modelId(resource), 'canManageProjects', 'canManageTaskQuotes');\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutEntity((0, _object.get)(resource, 'entity.id'), 'canManageProjects', 'canManageTaskQuotes')) return true;\n            return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageProjects', 'canManageTaskQuotes');\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageProjects', 'canManageTaskQuotes')) return true;\n            return this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTasks', 'canManageTaskQuotes');\n          }\n      }\n      return false;\n    }\n    canUseEstimates(resource) {\n      if (!this.entityCanUseEstimates) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have permission at the entity level to manage estimates\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageEstimates', 'canViewEstimates')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // check if you can manage estimates for the project\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageEstimates', 'canViewEstimates');\n      }\n      return false;\n    }\n    canManageEstimates(resource) {\n      if (!this.entityCanUseEstimates) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have permission at the entity level to manage estimates\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEstimates')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // check if you can manage estimates for the project\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageEstimates');\n      }\n      return false;\n    }\n    get canUseTimesheets() {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // handle worker pseudo user\n      // worker can always view the timesheets tab\n      if (this.userIsWorker) return true;\n      let canManageTimesheets = false;\n      let canSeeProjects = false;\n      let hasWorker = false;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTimesheets', 'canManageTimesheets')) canManageTimesheets = true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewProjects')) canSeeProjects = true;\n      this.projectAttributes.forEach(wa => {\n        if (wa.belongsTo('entity').id() !== this.entity?.id) return;\n        if (wa.belongsTo('attribute').id() === 'canManageTimesheets') canManageTimesheets = true;\n        if (['canViewProjects', 'canManageProjects'].includes(wa.belongsTo('attribute').id())) canSeeProjects = true;\n      });\n      this.taskAttributes.forEach(wa => {\n        if (wa.belongsTo('entity').id() !== this.entity?.id) return;\n        if (wa.belongsTo('attribute').id() === 'canManageTimesheets') canManageTimesheets = true;\n      });\n      this.user?.hasMany('workerAttributes').value()?.forEach(wa => {\n        if (wa.belongsTo('entity').id() === this.entity?.id) hasWorker = true;\n      });\n      if (canManageTimesheets && canSeeProjects) return true;\n      if (hasWorker && canSeeProjects) return true;\n      return false;\n    }\n    get canUseReportBuilder() {\n      // some entities are always allowed to use report builder\n      const entityWhiteList = ['691d037bee15361ca3c55065'];\n\n      // hide the report builder from new companies\n      const reportBuilderDeprecationDate = new Date('2025-10-30');\n      const entityCreatedDate = this.entity?.dateCreated;\n      if (entityCreatedDate > reportBuilderDeprecationDate && !entityWhiteList.includes(this.entity?.id)) return false;\n      if (!this.entityCanUseTimesheets && !this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEntity')) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canUseReportBuilderReport')) return true;\n      return false;\n    }\n    get canUseProjectProgressReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityProgressReports || this._canUseProjectProgressReports;\n    }\n    get canUseProjectQuoteReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityQuoteReports || this._canUseProjectQuoteReports;\n    }\n    get canUseProjectBudgetReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityBudgetReports || this._canUseProjectBudgetReports;\n    }\n    get canUseProjectCostReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityCostReports || this._canUseProjectCostReports;\n    }\n    get canUseProjectTasks() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityTasks || this._canUseProjectTasks;\n    }\n    get _canUseEntityTasks() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTasks', 'canManageTasks');\n    }\n    get _canUseEntityProjects() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjects', 'canManageProjects');\n    }\n    get _canUseEntityBudgetReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n    }\n    get _canUseEntityBudgetLabourHourReports() {\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetLabourHourReports');\n    }\n    get _canUseEntityCostReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageCostReports', 'canViewCostFinancialReports');\n    }\n    get _canUseEntityCostLabourHourReports() {\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewCostLabourHourReports');\n    }\n    get _canUseEntityProgressReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProgressReports', 'canViewProgressReports');\n    }\n    get _canUseEntityQuoteReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageQuoteReports', 'canViewQuoteReports');\n    }\n    get _canUseEntityChargeupReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageChargeupReports', 'canViewChargeupReports');\n    }\n    get _canUseEntityInvoicingReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageInvoicingReports', 'canViewInvoicingReports');\n    }\n    get _canUseEntityClientReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageClientReports', 'canViewClientReports');\n    }\n    get _canUseProjectTasks() {\n      return this.projectAttributes.some(pa => ['canViewTasks', 'canManageTasks'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectBudgetReports() {\n      return this.projectAttributes.some(pa => ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectBudgetLabourHourReports() {\n      return this.projectAttributes.some(pa => pa.belongsTo('attribute').id() === 'canViewBudgetLabourHourReports');\n    }\n    get _canUseProjectCostReports() {\n      return this.projectAttributes.some(pa => ['canManageCostReports', 'canViewCostFinancialReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectCostLabourHourReports() {\n      return this.projectAttributes.some(pa => pa.belongsTo('attribute').id() === 'canViewCostLabourHourReports');\n    }\n    get _canUseProjectProgressReports() {\n      return this.projectAttributes.some(pa => ['canManageProgressReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectQuoteReports() {\n      return this.projectAttributes.some(pa => ['canManageQuoteReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectChargeupReports() {\n      return this.projectAttributes.some(pa => ['canManageChargeupReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectInvoicingReports() {\n      return this.projectAttributes.some(pa => ['canViewInvoicingReports', 'canManageInvoicingReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get canUseEntityWIPReport() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (!this.entityCanUseWipReport || !this.entityCanUseInvoices) return false;\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      if (canUseEntityBudgetReports && canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityCostReports && canUseEntityInvoicingReports) return true;\n      if ((this.projectAttributes.some(pa => ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityBudgetReports) && (this.projectAttributes.some(pa => ['canManageQuoteReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityQuoteReports) && (this.projectAttributes.some(pa => ['canManageProgressReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityProgressReports) && (this.projectAttributes.some(pa => ['canManageCostReports', 'canViewCostFinancialReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityCostReports) && (this.projectAttributes.some(pa => ['canManageInvoicingReports', 'canViewInvoicingReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityInvoicingReports)) return true;\n      return false;\n    }\n    canUseProjectWIPReport(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (!this.entityCanUseWipReport) return false;\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      if (canUseEntityBudgetReports && canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityCostReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            if ((canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityCostReports || canUseProjectCostReports)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectQuoteReport(resource) {\n      if (!this.entityCanUseQuoteReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskQuoteReports = canUseEntityQuoteReports || canUseProjectQuoteReports;\n            let canUseTaskChargeupReports = canUseEntityChargeupReports || canUseProjectChargeupReports;\n            let canUseTasks = canUseEntityTasks || canUseProjectTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskQuoteReports && canUseTaskChargeupReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseQuoteReport(resource) {\n      if (!this.entityCanUseQuoteReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectCostReport(resource) {\n      if (!this.entityCanUseCostReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      const canUseEntityTimesheets = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTimesheets', 'canManageTimesheets');\n      const canUseEntityBills = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewBills', 'canManageBills');\n      if (canUseEntityCostReports && canUseEntityTasks && canUseEntityTimesheets && canUseEntityBills) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            const canUseProjectTimesheets = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseProjectBills = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBills', 'canViewBills');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectTasks || canUseEntityTasks) && (canUseProjectTimesheets || canUseEntityTimesheets) && (canUseProjectBills || canUseEntityBills)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            let canUseTaskTimesheets = canUseProjectTimesheets || canUseEntityTimesheets;\n            let canUseTaskBills = canUseProjectBills || canUseEntityBills;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskTimesheets) canUseTaskTimesheets = ['canManageTimesheets', 'canViewTimesheets'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBills) canUseTaskTimesheets = ['canManageBills', 'canViewBills'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTasks && canUseTaskTimesheets && canUseTaskBills) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseCostReport(resource) {\n      if (!this.entityCanUseCostReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      const canUseEntityTimesheets = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTimesheets', 'canManageTimesheets');\n      const canUseEntityBills = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewBills', 'canManageBills');\n      if (canUseEntityCostReports && canUseEntityTasks && canUseEntityTimesheets && canUseEntityBills) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            const canUseProjectTimesheets = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseProjectBills = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBills', 'canViewBills');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectTasks || canUseEntityTasks) && (canUseProjectTimesheets || canUseEntityTimesheets) && (canUseProjectBills || canUseEntityBills)) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseProjectTimesheets = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseProjectBills = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageBills', 'canViewBills');\n            const canUseTaskCostReports = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseTaskTasks = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseTaskTimesheets = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseTaskBills = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageBills', 'canViewBills');\n            if ((canUseTaskCostReports || canUseProjectCostReports || canUseEntityCostReports) && (canUseTaskTasks || canUseProjectTasks || canUseEntityTasks) && (canUseTaskTimesheets || canUseProjectTimesheets || canUseEntityTimesheets) && (canUseTaskBills || canUseProjectBills || canUseEntityBills)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectBudgetReport(resource) {\n      if (!this.entityCanUseBudgetReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseBudgetReport(resource) {\n      if (!this.entityCanUseBudgetReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseTaskCostReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseTaskBudgetReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseTaskTasks = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseTaskCostReports || canUseProjectCostReports || canUseEntityCostReports) && (canUseTaskBudgetReports || canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseTaskTasks || canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectClientReport(resource) {\n      if (!this.entityCanUseClientReports) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityClientReports = this._canUseEntityClientReports;\n      if (canUseEntityClientReports || canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityInvoicingReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectClientReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageClientReports', 'canViewClientReports');\n            if (canUseProjectClientReports || (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityInvoicingReports || canUseProjectInvoicingReports)) return true;\n\n            // check if a single task grants either the client-report claim\n            // directly, or all four base report claims together — a user with,\n            // say, quote access on one task and progress access on a different\n            // task should not qualify just because both flags ended up true\n            const projectTaskIds = new Set(resource.hasMany('tasks').ids());\n            const attributeIdsByTask = new Map();\n            for (const ta of this.taskAttributes) {\n              const taskId = ta.belongsTo('task').id();\n              if (!projectTaskIds.has(taskId)) continue;\n              if (!attributeIdsByTask.has(taskId)) {\n                attributeIdsByTask.set(taskId, new Set());\n              }\n              attributeIdsByTask.get(taskId).add(ta.belongsTo('attribute').id());\n            }\n            for (const attributeIds of attributeIdsByTask.values()) {\n              const taskHasClientReports = canUseEntityClientReports || canUseProjectClientReports || attributeIds.has('canManageClientReports') || attributeIds.has('canViewClientReports');\n              const taskHasQuoteReports = canUseEntityQuoteReports || canUseProjectQuoteReports || attributeIds.has('canManageQuoteReports') || attributeIds.has('canViewQuoteReports');\n              const taskHasProgressReports = canUseEntityProgressReports || canUseProjectProgressReports || attributeIds.has('canManageProgressReports') || attributeIds.has('canViewProgressReports');\n              const taskHasChargeupReports = canUseEntityChargeupReports || canUseProjectChargeupReports || attributeIds.has('canManageChargeupReports') || attributeIds.has('canViewChargeupReports');\n              const taskHasInvoicingReports = canUseEntityInvoicingReports || canUseProjectInvoicingReports || attributeIds.has('canManageInvoicingReports') || attributeIds.has('canViewInvoicingReports');\n              if (taskHasClientReports || taskHasQuoteReports && taskHasProgressReports && taskHasChargeupReports && taskHasInvoicingReports) return true;\n            }\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectClientReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageClientReports', 'canViewClientReports');\n            const canUseTaskQuoteReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseTaskProgressReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseTaskChargeupReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseTaskInvoicingReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseTaskClientReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageClientReports', 'canViewClientReports');\n            if (canUseTaskClientReports || canUseProjectClientReports || (canUseTaskQuoteReports || canUseProjectQuoteReports || canUseEntityQuoteReports) && (canUseTaskProgressReports || canUseProjectProgressReports || canUseEntityProgressReports) && (canUseTaskChargeupReports || canUseProjectChargeupReports || canUseEntityChargeupReports) && (canUseTaskInvoicingReports || canUseProjectInvoicingReports || canUseEntityInvoicingReports)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseInvoicingReport(resource) {\n      if (!this.entityCanUseBudgetReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityInvoicingReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectInvoicingReports || canUseEntityInvoicingReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseTaskInvoicingReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseTaskTasks = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseTaskInvoicingReports || canUseProjectInvoicingReports || canUseEntityInvoicingReports) && (canUseTaskTasks || canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseEntityForecastReport() {\n      if (!this.entityCanUseForecastReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if ((this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports) && (this._canUseEntityQuoteReports || this._canUseProjectQuoteReports)) return true;\n      return false;\n    }\n    canUseProjectForecastReport(resource) {\n      if (!this.entityCanUseForecastReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectProgressReports || canUseEntityProgressReports) && (canUseProjectQuoteReports || canUseEntityQuoteReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskQuoteReports = canUseProjectQuoteReports || canUseEntityQuoteReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTaskQuoteReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseForecastReport(resource) {\n      if (!this.entityCanUseForecastReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectProgressReports || canUseEntityProgressReports) && (canUseProjectQuoteReports || canUseEntityQuoteReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseEntityProfitMarginReport() {\n      if (!this.entityCanUseProfitMarginsReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if ((this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports) && (this._canUseEntityChargeupReports || this._canUseProjectChargeupReports)) return true;\n      return false;\n    }\n    get canUseEntityLabourHourReport() {\n      if (!this.entityCanUseLabourHoursReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseLabourHourPermissions = (this._canUseEntityCostLabourHourReports || this._canUseProjectCostLabourHourReports) && (this._canUseEntityBudgetLabourHourReports || this._canUseProjectBudgetLabourHourReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports);\n      if (canUseLabourHourPermissions || (this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports)) return true;\n      return false;\n    }\n    canUseProjectProfitMarginReport(resource) {\n      if (!this.entityCanUseProfitMarginsReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskChargeupReports = canUseProjectChargeupReports || canUseEntityChargeupReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTaskChargeupReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProfitMarginReport(resource) {\n      if (!this.entityCanUseProfitMarginsReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUSeEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectChargeupReport(resource) {\n      if (!this.entityCanUseChargeupReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskQuoteReports = canUseProjectQuoteReports || canUseEntityQuoteReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskChargeupReports = canUseProjectChargeupReports || canUseEntityChargeupReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskQuoteReports && canUseTaskProgressReports && canUseTaskChargeupReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseChargeupReport(resource) {\n      if (!this.entityCanUseChargeupReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseEntityPositionReport() {\n      if (!this.entityCanUsePositionReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if ((this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports) && (this._canUseEntityChargeupReports || this._canUseProjectChargeupReports) && (this._canUseEntityQuoteReports || this._canUseProjectQuoteReports)) return true;\n      return false;\n    }\n    canUseDashboardReport() {\n      if (!this.entityCanUseDashboards) return false;\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (\n      //Forecast used\n      this.useProjectProgressReports ||\n      //Current position\n      this.canUseProjectQuoteReports && this.canUseProjectQuoteReports && this.canUseProjectCostReports ||\n      //Forecast position\n      this.canUseProjectBudgetReports ||\n      //Recent timesheets\n      this.canUseTimesheets ||\n      //Recent bills\n      this.canUseBills ||\n      //Recent tasks\n      this.canUseProjectTasks ||\n      //Recent projects\n      this.canUseProjects() ||\n      //Recent purchase orders\n      this.canUsePurchaseOrders() ||\n      //Recent Invoices\n      this.canUseInvoices()) return true;\n      return false;\n    }\n    canUseProjectPositionReport(resource) {\n      if (!this.entityCanUsePositionReport) return false;\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskChargeupReports = canUseProjectChargeupReports || canUseEntityChargeupReports;\n            let canUseTaskQuoteReports = canUseProjectQuoteReports || canUseEntityQuoteReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTaskChargeupReports && canUseTaskQuoteReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUsePositionReport(resource) {\n      if (!this.entityCanUsePositionReport) return false;\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectLabourHourReport(resource) {\n      if (!this.entityCanUseLabourHoursReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      const canUseEntityLabourHourReports = this._canUseEntityCostLabourHourReports && this._canUseEntityBudgetLabourHourReports && canUseEntityProgressReports;\n      if (canUseEntityLabourHourReports) return true;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostLabourHourReports = this.user?.includesClaimsAboutProject(modelId(resource), 'canViewCostLabourHourReports');\n            const canUseProjectBudgetLabourHourReports = this.user?.includesClaimsAboutProject(modelId(resource), 'canViewBudgetLabourHourReports');\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((this._canUseEntityCostLabourHourReports || canUseProjectCostLabourHourReports) && (this._canUseEntityBudgetLabourHourReports || canUseProjectBudgetLabourHourReports) && (canUseEntityProgressReports || canUseProjectProgressReports)) return true;\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseEntityInvoicingReport() {\n      if (!this.entityCanUseInvoicingReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityProjects = this._canUseEntityProjects;\n      if (canUseEntityInvoicingReports && canUseEntityProjects) return true;\n      return false;\n    }\n    canUseProjectInvoicingReport(resource) {\n      if (!this.entityCanUseInvoicingReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityInvoicingReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityInvoicingReports || canUseProjectInvoicingReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskInvoicingReports = canUseEntityInvoicingReports || canUseProjectInvoicingReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskInvoicingReports) canUseTaskInvoicingReports = ['canManageInvoicingReports', 'canViewInvoicingReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskInvoicingReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseLabourHourReport(resource) {\n      if (!this.entityCanUseLabourHoursReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseReportProjectPage() {\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseTasks = this._canUseEntityTasks || this._canUseProjectTasks;\n      const canUseLabourHourReports = (this._canUseEntityCostLabourHourReports || this._canUseProjectCostLabourHourReports) && (this._canUseEntityBudgetLabourHourReports || this._canUseProjectBudgetLabourHourReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports);\n      if (canUseLabourHourReports) return true;\n      if (canUseTasks && (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewQuoteReports', 'canViewChargeupReports', 'canViewProgressReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewCostFinancialReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewInvoicingReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewClientReports'))) return true;\n      if (canUseTasks && (this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewQuoteReports', 'canViewChargeupReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => 'canViewCostFinancialReports' === pa.belongsTo('attribute').id()) || this.projectAttributes.some(pa => 'canViewInvoicingReports' === pa.belongsTo('attribute').id()) || this.projectAttributes.some(pa => 'canViewClientReports' === pa.belongsTo('attribute').id()))) return true;\n      if (this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewQuoteReports', 'canViewChargeupReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => 'canViewCostFinancialReports' === pa.belongsTo('attribute').id()) || this.taskAttributes.some(pa => 'canViewInvoicingReports' === pa.belongsTo('attribute').id()) || this.taskAttributes.some(pa => 'canViewClientReports' === pa.belongsTo('attribute').id())) return true;\n      return false;\n    }\n    get canManagePayroll() {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // you can only run payroll if you have permission to view or manage payroll\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewPayrollReports', 'canManagePayrollReports')) return true;\n      return false;\n    }\n    get canUsePayroll() {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // you can only run payroll if you have permission to manage payroll\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManagePayrollReports', 'canViewPayrollReports')) return true;\n      return false;\n    }\n    get canUseNotes() {\n      if (!this.entityCanUseNotes) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage notes\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewNotes', 'canManageNotes')) return true;\n      return false;\n    }\n    get canManageNotes() {\n      if (!this.entityCanUseNotes) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage notes\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageNotes')) return true;\n      return false;\n    }\n    get canUseBills() {\n      if (!this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage bills\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewBills', 'canManageBills')) return true;\n      return false;\n    }\n    get canUseLegacyBills() {\n      const legacyBillsDeprecationDate = new Date('2026-08-24');\n      const entityCreatedDate = this.entity?.dateCreated;\n      return entityCreatedDate < legacyBillsDeprecationDate;\n    }\n    get canUseStatements() {\n      if (!this.entityCanUseStatements) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // TODO not sure verify before merging\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBills')) return true;\n      return false;\n    }\n    get canManageBills() {\n      if (!this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage bills\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBills')) return true;\n      return false;\n    }\n    canManageTimesheets(resource) {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // handle worker pseudo user\n      if (this.userIsWorker) {\n        switch (modelName(resource)) {\n          // the only situation where a worker can can manage timesheets is if it's their own timesheet\n          case 'timesheet':\n            // this can be passed proxy objects so we need to use old school getters\n            return (0, _object.get)(resource, 'worker.id') === this.worker.id;\n          case 'worker':\n            return modelId(resource) === this.worker.id;\n          default:\n            return false;\n        }\n      }\n\n      // check if you have canManageTimesheets at the entity\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTimesheets')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTimesheets');\n        case 'timesheet':\n          {\n            // if a user has can manage timesheets for the project they can manage the timesheet\n            // this can be passed proxy objects so we need to use old school getters\n            if (this.user?.includesClaimsAboutProject((0, _object.get)(resource, 'project.id'), 'canManageTimesheets')) return true;\n            // otherwise, check if user has access to worker\n            return this.user?.includesClaimsAboutWorker(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'worker.id'), 'canManageTimesheets');\n          }\n        case 'worker':\n          {\n            // check if user has access to worker\n            return this.user?.includesClaimsAboutWorker(\n            // this can be passed proxy objects so we need to use old school getters\n            modelId(resource), 'canManageTimesheets');\n          }\n        default:\n          return false;\n      }\n    }\n    get canManageEstimatesSettings() {\n      if (!this.entityCanUseEstimates) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage estimates settings\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEstimatesSettings');\n    }\n    canManageUsers(resource) {\n      if (!this.entityCanUseBuildaPrice && !this.entityCanUseFinancialReporting) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageUsers')) return true;\n      switch (modelName(resource)) {\n        case 'user':\n          // users technically can manage themselves but they cant edit permissions for themselves\n          // this can be passed proxy objects so we need to use old school getters\n          return modelId(resource) === this.user?.id;\n      }\n      return false;\n    }\n    canUseUsers(resource) {\n      if (!this.entityCanUseBuildaPrice && !this.entityCanUseFinancialReporting) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can view all users\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageUsers', 'canViewUsers')) return true;\n      switch (modelName(resource)) {\n        case 'user':\n          // users technically can manage themselves but they cant edit permissions for themselves\n          // this can be passed proxy objects so we need to use old school getters\n          return modelId(resource) === this.user?.id;\n      }\n      return false;\n    }\n    canManageSubcontractors(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageUsers')) return true;\n      switch (modelName(resource)) {\n        case 'user':\n          // users technically can manage themselves but they cant edit permissions for themselves\n          // this can be passed proxy objects so we need to use old school getters\n          return modelId(resource) === this.user?.id;\n      }\n      return false;\n    }\n    canUseSubcontractors(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can view all users\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageUsers', 'canViewUsers')) return true;\n      switch (modelName(resource)) {\n        case 'user':\n          // users technically can manage themselves but they cant edit permissions for themselves\n          // this can be passed proxy objects so we need to use old school getters\n          return modelId(resource) === this.user?.id;\n      }\n      return false;\n    }\n    canManageWorkers(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      if (this.userIsWorker) {\n        switch (modelName(resource)) {\n          // workers can manage themselves\n          case 'worker':\n            return modelId(resource) === this.worker.id;\n          default:\n            return false;\n        }\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageWorkers');\n        case 'worker':\n          return this.user?.includesClaimsAboutWorker(modelId(resource), 'canManageWorkers');\n      }\n      return false;\n    }\n    canManageTaskProgress(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEntity')) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProjectProgressVersions', 'canManageTaskProgress')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageProjectProgressVersions', 'canManageTaskProgress')) return true;\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTaskProgress')) return true;\n            return false;\n          }\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProjectProgressVersions', 'canManageTaskProgress')) return true;\n            return false;\n          }\n      }\n      return false;\n    }\n    canUseWorkers(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageWorkers', 'canViewWorkers')) return true;\n      if (this.userIsWorker) {\n        switch (modelName(resource)) {\n          // workers can manage themselves\n          case 'worker':\n            return modelId(resource) === this.worker.id;\n          default:\n            return false;\n        }\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageWorkers', 'canViewWorkers');\n        case 'worker':\n          return this.user?.includesSomeClaimsAboutWorker(modelId(resource), 'canManageWorkers', 'canViewWorkers');\n      }\n      return false;\n    }\n    get canManageSuppliers() {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage contacts\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageSuppliers', 'canManageBills', 'canManageInvoices', 'canManageProducts', 'canManagePurchaseOrders');\n    }\n    get canUseSuppliers() {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // Darren wants this hidden behind the billing feature\n      if (!this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBills', 'canManageInvoices', 'canManageProducts', 'canManagePurchaseOrders', 'canManageSuppliers', 'canViewBills', 'canViewInvoices', 'canViewProducts', 'canViewPurchaseOrders', 'canViewSuppliers');\n    }\n    get canUseXeroIntegration() {\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageIntegrations', 'canViewIntegrations', 'canManageBills', 'canManagePayrollReports', 'canViewPayrollReports')) return true;\n      return false;\n    }\n    get canUseQuickbooksIntegration() {\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageIntegrations', 'canViewIntegrations', 'canManageBills', 'canManagePayrollReports', 'canViewPayrollReports')) return true;\n      return false;\n    }\n    get canSeeNewBuildaPriceMigrationButton() {\n      // only show the button to admins\n      if (!this.userIsEntityAdmin) return false;\n\n      // only show the button if you have both new and old BP\n      return this.entityCanUseBuildaPrice && this.entityCanUseOldPricing;\n    }\n    get canUsePlaceMakers() {\n      if (!this.entityCanUsePlaceMakers) return false;\n      if (this.userIsEntityAdmin) return true;\n      return false;\n    }\n    get canUseItmInvoiceIntegration() {\n      if (!this.entityCanUseItmInvoiceIntegration) return false;\n      if (this.userIsEntityAdmin) return true;\n      return false;\n    }\n    canUseDocumentsPage() {\n      if (!this.entityCanUseFileStorage) return false;\n      if (this.userIsEntityAdmin) return true;\n      const entityAttributes = (0, _collectionToArray.default)(this.user?.get('entityAttributes')).filter(ta => ta.belongsTo('entity').value() === this.sessionData.entity);\n      const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n      const groupedTaskAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('taskAttributes')).filter(ta => ta.belongsTo('entity').value() === this.sessionData.entity), ta => ta.belongsTo('task').id());\n      const attachmentAttributes = (0, _collectionToArray.default)(this.user?.get('attachmentAttributes')).filter(ta => ta.belongsTo('entity').value() === this.sessionData.entity);\n      const canUseFileStorage = ['canViewFileStorage', 'canManageFileStorage'].some(c => entityAttributes.some(ea => ea.belongsTo('attribute').id() === c) || Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)) || Object.values(groupedTaskAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n      const canUseProjects = ['canManageProjects', 'canViewProjects'].some(c => entityAttributes.some(ea => ea.belongsTo('attribute').id() === c) || Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n      const canUseAttachments = ['canViewFileStorage', 'canManageFileStorage'].some(c => attachmentAttributes.some(aa => aa.belongsTo('attribute').id() === c));\n      if (canUseProjects && canUseFileStorage || canUseAttachments) return true;\n      return false;\n    }\n    canUseProgressPage(project) {\n      if (!project) return false;\n      if (!this.entityCanUseProjectProgress) return false;\n      if (this.userIsEntityAdmin) return true;\n      let canViewTasks = this.user?.includesSomeClaimsAboutEntity((0, _object.get)(project, 'entity.id'), 'canViewTasks', 'canManageTasks');\n      let canViewProjectProgress = this.user?.includesSomeClaimsAboutEntity((0, _object.get)(project, 'entity.id'), 'canViewProjectProgressVersions', 'canManageProjectProgressVersions', 'canViewTaskProgress', 'canManageTaskProgress');\n      if (canViewTasks && canViewProjectProgress) return true;\n      if (!canViewTasks) canViewTasks = this.user?.includesSomeClaimsAboutProject(modelId(project), 'canViewTasks', 'canManageTasks');\n      if (!canViewProjectProgress) canViewProjectProgress = this.user?.includesSomeClaimsAboutProject(modelId(project), 'canViewProjectProgressVersions', 'canManageProjectProgressVersions', 'canViewTaskProgress', 'canManageTaskProgress');\n      if (canViewTasks && canViewProjectProgress) return true;\n\n      // check the project tasks to see if you have permission to a task\n      let tasksCanViewProjectProgress;\n      for (const taskId of project.hasMany('tasks').ids()) {\n        const taskCanViewTasks = canViewTasks || ['canViewTasks', 'canManageTasks'].some(a => this.taskAttributes.some(ta =>\n        // the attribute is for this projects task\n        ta.belongsTo('task').id() === taskId &&\n        // the attribute matches the check\n        ta.belongsTo('attribute').id() === a));\n        const taskCanViewProjectProgress = canViewProjectProgress || ['canViewProjectProgressVersions', 'canManageProjectProgressVersions', 'canViewTaskProgress', 'canManageTaskProgress'].some(a => this.taskAttributes.some(ta =>\n        // the attribute is for this projects task\n        ta.belongsTo('task').id() === taskId &&\n        // the attribute matches the check\n        ta.belongsTo('attribute').id() === a));\n\n        // you need access to view the task and the progress\n        if (taskCanViewTasks && taskCanViewProjectProgress) {\n          tasksCanViewProjectProgress = true;\n          break;\n        }\n      }\n      if (tasksCanViewProjectProgress) return true;\n      return false;\n    }\n    canUseStagePayments(resource) {\n      if (!this.entityCanUseStagePayments) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageStagePayments', 'canViewStagePayments')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageStagePayments', 'canViewStagePayments')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProducts(resource) {\n      if (!this.entityCanUseProducts) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProducts', 'canViewProducts')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProducts', 'canViewProducts')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageProducts', 'canViewProducts')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProducts', 'canViewProducts')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageStagePayments(resource) {\n      if (!this.entityCanUseProducts) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageStagePayments')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageStagePayments')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageProducts(resource) {\n      if (!this.entityCanUseProducts) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProducts')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProducts')) return true;\n            break;\n          }\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject((0, _object.get)(resource, 'project.id'), 'canManageProducts')) return true;\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProducts')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUsePurchaseOrders(resource) {\n      if (!this.entityCanUsePurchaseOrders) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManagePurchaseOrders', 'canViewPurchaseOrders')) return true;\n      if (!resource) {\n        const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n        const canUsePurchaseOrders = ['canViewPurchaseOrders', 'canManagePurchaseOrders'].some(c => Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n        if (canUsePurchaseOrders) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManagePurchaseOrders', 'canViewPurchaseOrders')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseInvoices(resource) {\n      if (!this.entityCanUseInvoices) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageInvoices', 'canViewInvoices')) return true;\n      if (!resource) {\n        const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n        const canUseInvoices = ['canViewInvoices', 'canManageInvoices'].some(c => Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n        if (canUseInvoices) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoices', 'canViewInvoices')) return true;\n          }\n      }\n      return false;\n    }\n    canManageInvoices(resource) {\n      if (!this.entityCanUseInvoices) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageInvoices')) return true;\n      if (!resource) {\n        const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n        const canManageInvoices = ['canManageInvoices'].some(c => Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n        if (canManageInvoices) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageInvoices')) return true;\n          }\n      }\n      return false;\n    }\n    canManagePurchaseOrders(resource) {\n      if (!this.entityCanUsePurchaseOrders) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManagePurchaseOrders')) return true;\n      if (!resource) {\n        const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n        const canManagePurchaseOrders = ['canManagePurchaseOrders'].some(c => Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n        if (canManagePurchaseOrders) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManagePurchaseOrders')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canApproveInvoices(resource) {\n      if (!this.entityCanUseInvoices) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canApproveInvoices')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canApproveInvoices')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canApprovePurchaseOrders(resource) {\n      if (!this.entityCanUsePurchaseOrders) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canApprovePurchaseOrders')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canApprovePurchaseOrders')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseFileStorage(resource) {\n      if (!this.entityCanUseFileStorage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageFileStorage', 'canViewFileStorage')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageFileStorage', 'canViewFileStorage')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // if you can manage the project file storage you can manage the task\n            const canUseProject = this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageFileStorage', 'canViewFileStorage');\n            if (canUseProject || this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageFileStorage', 'canViewFileStorage')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageFileStorage(resource) {\n      if (!this.entityCanUseFileStorage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageFileStorage')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageFileStorage')) return true;\n            break;\n          }\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject((0, _object.get)(resource, 'project.id'), 'canManageFileStorage')) return true;\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageFileStorage')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseIntegrations() {\n      // Darren has decided integrations are only applicable if you have a feature that uses them\n      if (!this.entityCanUseTimesheets && !this.entityCanUseBills && !this.entityCanUseEstimates && !this.entityCanUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageIntegrations')) return true;\n      return false;\n    }\n    canUseHealthAndSafety(project) {\n      if (!project) return false;\n      if (!this.entityCanUseHealthAndSafety) return false;\n      if (this.userIsAdmin || this.userIsPartner) return true;\n\n      // check if you have entity permission\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canCreateHealthAndSafety', 'canManageHealthAndSafety')) return true;\n      if (this.user?.includesSomeClaimsAboutProject(modelId(project), 'canCreateHealthAndSafety', 'canManageHealthAndSafety')) return true;\n      return false;\n    }\n    canUseClientPortal(_resource) {\n      if (!this.entityCanUseClientPortal) return false;\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can view all users\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageUsers', 'canViewUsers')) return true;\n      return false;\n    }\n\n    // TODO new FP flags\n    get canUseFPDashboard() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPKpis() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPItmCustomerPAndL() {\n      if (!this.canUseFinancialReporting) return false;\n      if (!this.entityIsItm) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPProfitAndLoss() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPBalanceSheet() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPOtherData() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPPersonalData() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPDataAvailability() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPImportManager() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.entityIsItmParent) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPStrategies() {\n      if (!this.canUseStrategies) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canDeleteStrategies')) return true;\n      return false;\n    }\n    get canUseFPReportingPeriod() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPChartOfAccounts() {\n      if (!this.canUseFinancialReporting) return false;\n      if (!this.entityIsParent) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPKpisConfig() {\n      if (!this.canUseFinancialReporting) return false;\n      if (!this.entityIsParent) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPGroups() {\n      if (!this.canUseFinancialReporting) return false;\n      if (!this.entityIsParent) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get userCanNotEditFPGroups() {\n      // this used to be implemented, but it isn't anymore\n      return false;\n    }\n    get userCanSeeFPBreakdown() {\n      if (this.userIsEntityAdmin) return true;\n      return false;\n    }\n    get canUseProjectCopy() {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // TODO this will be expanded with the release of JSON:API v2\n      if (this.userIsEntityAdmin) return true;\n      return false;\n    }\n    /* user/worker features end */\n    /* USER/WORKER SECTION END */\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n  // there could be a cleaner way of doing this like comparing instanceof\n  // but this is easy and it works\n  const modelName = resource => {\n    // this can be passed proxy objects so we need to use old school getters\n    return resource ? (0, _object.get)(resource, '_internalModel.modelName') || (0, _object.get)(resource, 'constructor.modelName') : '';\n  };\n  const modelId = resource => {\n    // this can be passed proxy objects so we need to use old school getters\n    return resource ? (0, _object.get)(resource, 'id') : '';\n  };\n});","define(\"portal/services/notifications\", [\"exports\", \"@ember/service\", \"@ember/debug\", \"@ember/object\", \"@ember/runloop\", \"ember\", \"portal/config/environment\"], function (_exports, _service, _debug, _object, _runloop, _ember, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/debug\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"ember\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _service.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"list\", []);\n      _defineProperty(this, \"defaultClearDuration\", 3500);\n      this.handleWindowMessage = this.handleWindowMessage.bind(this);\n    }\n    /**\n     * Public API\n     */\n    info(...args) {\n      return this.showProxy('info', ...args);\n    }\n    warning(...args) {\n      return this.showProxy('warning', ...args);\n    }\n    success(...args) {\n      return this.showProxy('success', ...args);\n    }\n    error(...args) {\n      if (_environment.default.environment === 'development') {\n        console.error(...args);\n      }\n      return this.showProxy('error', ...args);\n    }\n\n    /**\n     * Show proxy by type\n     */\n    showProxy(type, options, duration) {\n      options = options || {};\n      if (typeof options === 'string') {\n        options = {\n          message: options\n        };\n      }\n      options.type = type;\n      return this.show(options, duration);\n    }\n\n    /**\n     * Show a new notification\n     */\n    show(options, duration = this.defaultClearDuration) {\n      options = options || {};\n      if (typeof options === 'string') {\n        options = {\n          message: options\n        };\n      }\n      const {\n        message,\n        type = 'info',\n        autoClear = arguments.length > 1 || options.type === 'success',\n        clearDuration = duration\n      } = options;\n      (false && !(message) && (0, _debug.assert)('A notification message must be set.', message));\n      const notification = _object.default.create({\n        message,\n        type,\n        autoClear,\n        clearDuration\n      });\n      this.list.pushObject(notification);\n      if ((0, _object.get)(notification, 'autoClear')) {\n        this.setupAutoClear(notification);\n      }\n      return notification;\n    }\n\n    /**\n     * Automatically clear after delay\n     */\n    setupAutoClear(notification) {\n      if (_ember.default.testing) return;\n      (0, _runloop.later)(() => {\n        if (this.list.indexOf(notification) !== -1 && !(0, _object.get)(notification, 'dismiss')) {\n          this.clear(notification);\n        }\n      }, (0, _object.get)(notification, 'clearDuration'));\n    }\n\n    /**\n     * Clear a notification with dismiss animation\n     */\n    clear(notification) {\n      (false && !(notification) && (0, _debug.assert)('The notification to clear must be provided.', notification));\n      (0, _object.set)(notification, 'dismiss', true);\n\n      // Delay actual removal for animation\n      (0, _runloop.later)(() => this.list.removeObject(notification), 500);\n    }\n\n    /**\n     * Clear all notifications\n     */\n    clearAll() {\n      this.list.forEach(notification => this.clear(notification));\n    }\n\n    /**\n     * Handle window messages for notifications\n     */\n    handleWindowMessage(event) {\n      if (!event.data.isBpNotification) return;\n      this[event.data.type](...event.data.options);\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/services/number-format\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.CURRENCY = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const CURRENCY = _exports.CURRENCY = {\n    NZL: 'NZD',\n    AUS: 'AUD',\n    USA: 'USD',\n    GBR: 'GBP'\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    format(number, _options) {\n      const options = {\n        ..._options\n      };\n      const emptyPlaceholder = options.emptyPlaceholder || '–';\n      if (isNaN(Number(number))) {\n        return emptyPlaceholder || null;\n      }\n      if (options.dashZero && Number(number) === 0) {\n        return emptyPlaceholder;\n      }\n      if (options.style === 'currency') {\n        const region = this.sessionData.entity?.region;\n        if (region) {\n          options.currency = CURRENCY[region];\n        } else {\n          // we can't render currency without a region\n          options.style = 'decimal';\n        }\n      }\n\n      // There is bug on Mdn for local 'en-AU' with currency any currency except 'AUD'\n      // It shows AUD 123 without '$'\n      return this.intl.formatNumber(number, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/os\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  class OSService extends _service.default {\n    get isMac() {\n      return /Mac|iPod|iPhone|iPad/.test(navigator.platform);\n    }\n    get mainModifier() {\n      return this.isMac ? '⌘' : 'Ctrl';\n    }\n    get hasKeyboard() {\n      return window.matchMedia('(pointer: fine)').matches;\n    }\n  }\n  _exports.default = OSService;\n});","define(\"portal/services/oss-engine-data\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"projectId\", _descriptor, this);\n      _initializerDefineProperty(this, \"accessToken\", _descriptor2, this);\n      _initializerDefineProperty(this, \"user\", _descriptor3, this);\n    }\n    setProjectId(newProject) {\n      this.projectId = newProject;\n    }\n    setAccessToken(accessToken) {\n      this.accessToken = accessToken;\n    }\n    setUser(user) {\n      this.user = user;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"projectId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accessToken\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _class2);\n});","define(\"portal/services/page-title\", [\"exports\", \"ember-page-title/services/page-title\"], function (_exports, _pageTitle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pageTitle.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/services/page-title\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/pdf-export\", [\"exports\", \"@ember/service\", \"portal/utils/download\", \"portal/config/environment\"], function (_exports, _service, _download, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const HTML_TO_PDF_SERVICE_URL = _environment.default.urls.htmlToPdfService;\n  function minifyHTML(html) {\n    return html.replace(/>\\s+</g, '><');\n  }\n  const DEFAULT_PDF_OPTIONS = {\n    format: 'A4',\n    landscape: false,\n    scale: 1,\n    includeMargins: true,\n    margins: {\n      top: 20,\n      right: 20,\n      bottom: 20,\n      left: 20\n    }\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n    }\n    async generatePdf(id, title, hideClass, options = {}) {\n      const originalElement = document.getElementById(id);\n      const element = originalElement.cloneNode(true);\n      const classNames = new Set([':root', 'body', 'html']); // always take the global page styles\n\n      (function transverseParents(element) {\n        const parent = element.parentElement;\n        if (!parent) return;\n        for (const className of parent.classList) classNames.add(className);\n        transverseParents(parent);\n      })(originalElement);\n      (function transverseChildren(element, originalElement) {\n        const isCanvas = element.nodeName === 'CANVAS';\n\n        // if the element is a canvas we need to encode it as an image\n        if (isCanvas) {\n          const imageData = originalElement.toDataURL('image/png');\n          const img = document.createElement('img');\n          const rect = originalElement.getBoundingClientRect();\n          img.src = imageData;\n          img.width = rect.width;\n          img.height = rect.height;\n          element.parentNode.replaceChild(img, element);\n          element = img;\n        }\n        const isInput = element.nodeName === 'INPUT';\n        if (isInput) {\n          element.setAttribute('value', element.value);\n        }\n        classNames.add(element.tagName.toLowerCase());\n        for (const className of element.classList) classNames.add(className);\n        for (let i = 0; i < element.children.length; i++) transverseChildren(element.children[i], originalElement.children[i]);\n      })(element, originalElement);\n      const cssRules = [];\n      for (const styleSheet of document.styleSheets) {\n        try {\n          for (const cssRule of styleSheet.cssRules) {\n            // we only care about style rules\n            if (!(cssRule instanceof CSSStyleRule)) continue;\n\n            // check if our elements have this class\n            let hasClassName;\n            for (const className of classNames) {\n              hasClassName = cssRule.selectorText?.includes(className);\n              if (hasClassName) break;\n            }\n            if (hasClassName) cssRules.push(cssRule.cssText);\n          }\n        } catch (_) {\n          // doesn't work cross origin and we don't want cross origin sheets anyway\n        }\n      }\n      if (title) {\n        const titleElement = document.createElement('h1');\n        titleElement.innerText = title;\n        // to make title not to wrap into multiple lines\n        titleElement.style.whiteSpace = 'nowrap';\n        element.insertBefore(titleElement, element.firstChild);\n      }\n\n      // must go at the end for priority\n      if (hideClass) cssRules.push(`.${hideClass} { display: none !important; }`);\n      const cssHtml = `<style>${cssRules.join('\\n')}</style>`;\n      const htmlContent = minifyHTML(cssHtml + element.outerHTML);\n\n      // compress the body\n      const body = {\n        ...DEFAULT_PDF_OPTIONS,\n        ...options,\n        htmlContent\n      };\n      const stream = new Blob([JSON.stringify(body)], {\n        type: 'application/json'\n      }).stream();\n      const compressedReadableStream = stream.pipeThrough(new CompressionStream('gzip') // eslint-disable-line no-undef\n      );\n      const compressedResponse = new Response(compressedReadableStream);\n      const bodyBlob = await compressedResponse.blob();\n      const res = await fetch(HTML_TO_PDF_SERVICE_URL, {\n        method: 'POST',\n        body: bodyBlob,\n        headers: {\n          Accept: 'application/pdf',\n          'Content-Type': 'application/json',\n          'Content-Encoding': 'gzip'\n        }\n      });\n      const blob = await res.blob();\n      return blob;\n    }\n    async generateAndDownloadPdf(id, name = 'untitled.pdf', title, hideClass, options = {}) {\n      const blob = await this.generatePdf(id, title, hideClass, options);\n      (0, _download.download)(blob, name, blob.type);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/placemakers\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"qs\", \"portal/config/environment\", \"ember-local-storage\", \"jquery\"], function (_exports, _asyncArrowRuntime, _object, _service, _tracking, _qs, _environment, _emberLocalStorage, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"qs\",0,\"portal/config/environment\",0,\"ember-local-storage\",0,\"jquery\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PlacemakersService = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class = class PlacemakersService extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _defineProperty(this, \"localStorage\", (0, _emberLocalStorage.storageFor)('pm-callback'));\n      _defineProperty(this, \"initialize\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          (0, _object.set)(this, 'isInitialized', false);\n          const entityId = this.sessionData.entity.id;\n          try {\n            // We only expect there to be one result here so just take first one.\n            const queryResult = yield this.store.query('pm-connection', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: entityId\n                }]\n              },\n              fields: {\n                'pm-connections': '_meta.isConnected'\n              }\n            });\n            let integrationOptions = queryResult.toArray()[0];\n            if (!integrationOptions) {\n              integrationOptions = this.store.createRecord('pm-connection', {\n                entity: this.sessionData.entity\n              });\n            }\n            this._entityId = entityId;\n            (0, _object.set)(this, 'integrationOptions', integrationOptions);\n          } finally {\n            (0, _object.set)(this, 'isInitialized', true);\n          }\n        }\n      }), {\n        drop: true\n      }, \"initialize\", null));\n      // Triggers initialize to run again if entity changes in session data.\n      _defineProperty(this, \"updateOnEntityChange\", (0, _object.observer)('sessionData.entity.id', function () {\n        this.initialize.perform();\n      }));\n      _defineProperty(this, \"_entityId\", null);\n      _initializerDefineProperty(this, \"integrationOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isInitialized\", _descriptor6, this);\n      _defineProperty(this, \"updateOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (key, value) {\n          this.integrationOptions[key] = value;\n          yield this.integrationOptions.save();\n        }\n      }), {\n        enqueue: true\n      }, \"updateOption\", null));\n    }\n    init() {\n      super.init(...arguments);\n      this.initialize.perform();\n    }\n    // Not @computed: isConnected on the model is a native getter over the _meta\n    // attr, which a classic dependent key cannot observe. Autotracking picks up\n    // isInitialized, integrationOptions and _meta on its own.\n    get isConnected() {\n      return Boolean(this.isInitialized && this.integrationOptions?.isConnected);\n    }\n    syncPriceBookNow(entityId = this.sessionData.entity.id) {\n      return this.syncPriceBookNowAjax(this.session.data.authenticated.access_token, entityId);\n    }\n    async disconnect(entityId = this.sessionData.entity.id) {\n      await this.disconnectAjax(this.session.data.authenticated.access_token, entityId);\n\n      // Optimistic update\n      (0, _object.set)(this, 'integrationOptions.isConnected', false);\n    }\n\n    /**\n     * Can be called from outside. Lives here to keep logic in one place, will cause navigation.\n     * @param {string | undefined} entityId\n     * @return {void}\n     */\n    initiatePMConnection(entityId = this.sessionData.entity.id) {\n      const {\n        clientId,\n        scope,\n        baseURL,\n        authPath\n      } = _environment.default.placemakers;\n      const authURL = baseURL + authPath;\n      const params = _qs.default.stringify({\n        response_type: 'code',\n        scope,\n        client_id: clientId,\n        redirect_uri: _environment.default.urls.app + `/complete-pm-auth`,\n        state: this.encodeState({\n          entityId,\n          nonce: new Date().getTime()\n        })\n      });\n      const pmAuthAddress = `${authURL}?${params}`;\n      window.location.assign(pmAuthAddress);\n    }\n    handlePmError(error) {\n      if (error.status === 401) {\n        // if this has happened the API has dropped the token and we are no longer authenticated\n        this.notifications.error('Your connection with PlaceMakers has been lost. Please connect again');\n        (0, _object.set)(this, 'integrationOptions.isConnected', false);\n        error.wasAuthenticationError = true;\n      }\n      throw error;\n    }\n    disconnectAjax(accessToken, entityId) {\n      return new Promise((resolve, reject) => {\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/pm-integration/disconnect';\n        _jquery.default.ajax({\n          url,\n          method: 'POST',\n          data: JSON.stringify({\n            entity: entityId\n          }),\n          contentType: 'application/json',\n          headers: {\n            Authorization: 'Bearer ' + accessToken\n          }\n        }).then(resolve, reject);\n      }).catch(this.handlePmError.bind(this));\n    }\n    syncPriceBookNowAjax(accessToken, entityId) {\n      return new Promise((resolve, reject) => {\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/pm-integration/sync-price-book';\n        _jquery.default.ajax({\n          url,\n          method: 'POST',\n          data: JSON.stringify({\n            entity: entityId\n          }),\n          contentType: 'application/json',\n          headers: {\n            Authorization: 'Bearer ' + accessToken\n          }\n        }).then(resolve, reject);\n      }).catch(this.handlePmError.bind(this));\n    }\n\n    /**\n     * Turns object into base64 encoded JSON\n     * @param {Object} obj\n     * @return {String}\n     */\n    encodeState(obj) {\n      return btoa(JSON.stringify(obj));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"integrationOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isInitialized\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n});","define(\"portal/services/platform\", [\"exports\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get brand() {\n      return this.sessionData.entity?.brand;\n    }\n    get platform() {\n      const platforms = (0, _platform.getPlatforms)();\n      let platform = (0, _platform.getDefaultPlatform)();\n      switch (this.brand) {\n        case 'BUILDA_PRICE':\n          platform = platforms.BUILDA_PRICE;\n          break;\n        case 'STEP':\n          platform = platforms.STEP;\n          break;\n        case 'APB':\n          platform = platforms.APB;\n          break;\n        case 'TPB':\n          platform = platforms.TPB;\n          break;\n        case 'ITM':\n          platform = platforms.ITM;\n          break;\n        case 'ATTENTION_SAFETY':\n          platform = platforms.ATTENTION_SAFETY;\n          break;\n        case 'STEP_UP':\n          platform = platforms.STEP_UP;\n          break;\n      }\n      return platform;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/portal-api-v2\", [\"exports\", \"@ember/service\", \"portal/config/environment\", \"jquery\", \"rsvp\"], function (_exports, _service, _environment, _jquery, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  /* eslint-disable ember/no-jquery */\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    authPost(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPostForm(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: payload,\n          processData: false,\n          contentType: false\n        }).then(resolve, reject);\n      });\n    }\n    authGet(path, payload, token = this.session.data.authenticated.access_token) {\n      if (payload) return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          }\n        }).then(resolve, reject);\n      });\n    }\n    authPostHtml(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`,\n            Accept: 'text/plain'\n          },\n          data: JSON.stringify(payload),\n          dataType: 'text',\n          contentType: 'application/json; charset=UTF-8'\n        }).then(resolve, reject);\n      });\n    }\n    authDelete(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'DELETE',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPatch(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'PATCH',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPut(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'PUT',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authGetBlob(path, payload, token = this.session.data.authenticated.access_token) {\n      if (payload) return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`,\n            Accept: 'application/pdf',\n            contentType: 'application/json'\n          },\n          data: payload,\n          xhrFields: {\n            responseType: 'blob'\n          }\n        }).then(resolve, reject);\n      });\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`,\n            Accept: 'application/pdf',\n            contentType: 'application/json'\n          },\n          xhrFields: {\n            responseType: 'blob'\n          }\n        }).then(resolve, reject);\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/portal-api\", [\"exports\", \"@ember/service\", \"portal/config/environment\", \"jquery\", \"rsvp\"], function (_exports, _service, _environment, _jquery, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  /* eslint-disable ember/no-jquery */\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    authPost(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authGet(path, payload, token = this.session.data.authenticated.access_token) {\n      if (payload) return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          }\n        }).then(resolve, reject);\n      });\n    }\n    authDelete(path, payload) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'DELETE',\n          headers: {\n            Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPatch(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'PATCH',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authGetExcel(path, payload, token = this.session.data.authenticated.access_token) {\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          xhrFields: {\n            responseType: 'blob'\n          },\n          data: JSON.stringify(payload),\n          contentType: 'application/json',\n          accept: 'application/vnd.ms-excel'\n        }).then(resolve, reject);\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/power-calendar\", [\"exports\", \"ember-power-calendar/services/power-calendar\"], function (_exports, _powerCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendar.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/services/power-calendar\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/pricing\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.PortalPricingError = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const FIVE_MINUTES = 5000 * 60;\n  const IDENTITY_TOKEN_URL = '/pricing-session';\n  class PortalPricingError extends Error {}\n  _exports.PortalPricingError = PortalPricingError;\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    async portalApiPostHandler(url, payload) {\n      try {\n        return await this.portalApi.authPost(url, payload);\n      } catch (err) {\n        if (err?.responseJSON?.errors?.length) {\n          const message = err.responseJSON.errors[0].title;\n          throw new PortalPricingError(message);\n        }\n        throw err;\n      }\n    }\n    async getUnlinkedEstimates() {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApi.authGet('/buildaprice/unlinked-estimates', {\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getSessionId() {\n      const entityId = this.sessionData.entity.id;\n      if (entityId === this._cachedSession?.entityId && this._cachedSession?.timestamp > new Date(new Date().getTime() - FIVE_MINUTES)) {\n        return this._cachedSession.sessionId;\n      }\n      const {\n        sessionId\n      } = await this.portalApiPostHandler(IDENTITY_TOKEN_URL, {\n        entity: entityId\n      });\n      this._cachedSession = {\n        sessionId,\n        timestamp: new Date(),\n        entityId\n      };\n      return sessionId;\n    }\n    async createPrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/create', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async duplicatePrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/duplicate', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async editPrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/edit', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getMerchantList() {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/merchant/get', {\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async deletePrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/delete', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getTemplates(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/template/get', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async addTemplates(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/add-templates', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getPreloadedQuotes(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/get-preloaded-quotes', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async importMaterialsFromQuote(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/import-materials-from-quote', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async importMaterialsFromFile(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/import-materials-from-file', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async createTasksFromEstimate(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/create-tasks-from-estimate', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getImportStatus(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/get-import-status', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/quickbooks\", [\"exports\", \"@ember/service\", \"@ember/object\", \"portal/config/environment\", \"qs\"], function (_exports, _service, _object, _environment, _qs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"qs\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const URLS = {\n    connect: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/connect',\n    disconnect: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/disconnect',\n    getAccounts: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/accounts',\n    updateQuickBooksContacts: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/contacts',\n    getEmployees: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/employees',\n    syncBill: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/bill',\n    syncInvoice: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/invoice',\n    createTimesheets: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/timesheets',\n    createContact: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/create-contact'\n  };\n  let QuickBooks = _exports.default = (_class = class QuickBooks extends _service.default {\n    get companyId() {\n      return this.connection?.quickbooksRealmId;\n    }\n    get companyName() {\n      return this.connection?.quickbooksCompanyName;\n    }\n    get isConnected() {\n      return this.connection?.isConnected;\n    }\n    get _canUse() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseQuickbooksIntegration');\n    }\n    get quickbooksUrl() {\n      if (this.ready) return _environment.default.urls.quickbooksUrl;\n      return '';\n    }\n    get connection() {\n      return this.sessionData.entity?.hasMany('quickBooksConnection').value()?.[0];\n    }\n    get _portalApiToken() {\n      return this.session.data.authenticated.access_token;\n    }\n    get ready() {\n      return this._canUse && this.companyId && this.isConnected;\n    }\n    async connect() {\n      const payload = {\n        entityId: this.sessionData.entity.id,\n        redirectUrl: window.location.toString()\n      };\n      const initQuickbooksResponse = await this.connectAjax(this._portalApiToken, payload);\n      const {\n        consentUrl\n      } = initQuickbooksResponse;\n      window.location.assign(consentUrl);\n    }\n    async disconnect() {\n      await this.disconnectAjax(this._portalApiToken, this.sessionData.entity.id);\n      await this.store.findRecord('quickbooks-oauth2-connection', this.connection.id, {\n        reload: true\n      });\n      window.location.reload();\n    }\n    updateContacts(entity, contact) {\n      const contactId = contact?.id;\n      return this.updateQuickBooksContactsAjax(this._portalApiToken, entity.id, contactId);\n    }\n    createContact(entity, contact) {\n      const contactId = contact?.id;\n      return this.createContactInQuickbooksAjax(this._portalApiToken, entity.id, contactId);\n    }\n    async getAccounts(entity) {\n      try {\n        return this.getQuickBooksAccountsAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info('No quickBooks accounts found');\n        throw error;\n      }\n    }\n    async getEmployees(entity) {\n      try {\n        return this.getQuickBooksEmployeesAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info('No employees found');\n      }\n    }\n    async sendBill(bill) {\n      try {\n        const response = await this.sendBillToQuickbooks(this._portalApiToken, bill.id);\n        await bill.reload();\n        return response;\n      } catch (error) {\n        return error?.detail || error?.error;\n      }\n    }\n    sendBills(invoices) {\n      return Promise.all(invoices.map(i => this.sendBill(i)));\n    }\n    async sendInvoice(invoice, options) {\n      try {\n        await this.sendInvoiceToQuickbooks(this._portalApiToken, invoice.id, options);\n        await invoice.reload();\n        this.notifications.success('Successfully sent to QuickBooks');\n      } catch (error) {\n        if (error.error === 'QUICKBOOKS_VALIDATION_EXCEPTION') {\n          const combinedMessage = error.detail.join('\\n');\n          this.notifications.warning({\n            message: combinedMessage,\n            clearDuration: 7000\n          });\n          return;\n        }\n        this.notifications.error('Failed to send invoice to QuickBooks');\n      }\n    }\n    createTimesheets(query) {\n      return this.createTimesheetsAjax(this._portalApiToken, query);\n    }\n    handleQuickbooksFetchRequest(callback) {\n      return async (...args) => {\n        try {\n          return await callback(...args);\n        } catch (error) {\n          const status = error?.status ?? error?.response?.status ?? error?.errors?.[0]?.status;\n          const bodyError = error?.response?.data?.error ?? error?.data?.error ?? error?.error;\n          const isQuickbooksAuthError = status === 401 || bodyError === 'Auth error';\n          if (isQuickbooksAuthError) {\n            const address = `${_environment.default.urls.app}/${this.sessionData.entity.id}/settings/integrations`;\n            error.wasAuthenticationError = true;\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: `${'Your QuickBooks organisation has been disconnected'} ${this.intl.t('common.Go to')} <a href=\"${address}\">settings</a> ${this.intl.t('common.to reconnect')}`\n            });\n            await this.sessionData.entity.reload();\n            (0, _object.get)(this, 'sessionData').notifyPropertyChange('entity');\n            return;\n          }\n          throw error;\n        }\n      };\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      this.connectAjax = connectAjax;\n      this.disconnectAjax = disconnectAjax;\n      this.updateQuickBooksContactsAjax = this.handleQuickbooksFetchRequest(updateQuickBooksContacts);\n      this.getQuickBooksAccountsAjax = this.handleQuickbooksFetchRequest(getQuickBooksAccounts);\n      this.getQuickBooksEmployeesAjax = this.handleQuickbooksFetchRequest(getQuickBooksEmployeesFromQuickbooks);\n      this.sendBillToQuickbooks = this.handleQuickbooksFetchRequest(sendBillToQuickbooks);\n      this.sendCreditNoteToQuickbooks = this.handleQuickbooksFetchRequest(sendCreditNoteToQuickbooks);\n      this.sendInvoiceToQuickbooks = this.handleQuickbooksFetchRequest(sendInvoiceToQuickbooks);\n      this.createTimesheetsAjax = this.handleQuickbooksFetchRequest(createTimesheetsInQuickbooks);\n      this.createContactInQuickbooksAjax = this.handleQuickbooksFetchRequest(createContactInQuickbooks);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  async function updateQuickBooksContacts(portalApiToken, entity, supplier) {\n    const query = _qs.default.stringify({\n      entity,\n      contact: supplier\n    });\n    return fetchRequestWithToken(`${URLS.updateQuickBooksContacts}?${query}`, portalApiToken, 'POST');\n  }\n  async function getQuickBooksAccounts(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getAccounts}/${entityId}`, portalApiToken, 'GET');\n  }\n  async function getQuickBooksEmployeesFromQuickbooks(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getEmployees}/${entityId}`, portalApiToken, 'GET');\n  }\n  async function sendBillToQuickbooks(portalApiToken, billId) {\n    return fetchRequestWithToken(`${URLS.syncBill}/${billId}`, portalApiToken, 'POST');\n  }\n  async function sendCreditNoteToQuickbooks(portalApiToken, billId) {\n    return fetchRequestWithToken(`${URLS.syncCreditNote}/${billId}`, portalApiToken, 'POST');\n  }\n  async function sendInvoiceToQuickbooks(portalApiToken, invoiceId, options) {\n    return fetchRequestWithToken(`${URLS.syncInvoice}/${invoiceId}`, portalApiToken, 'POST', options);\n  }\n  async function createTimesheetsInQuickbooks(portalApiToken, query) {\n    return fetchRequestWithToken(`${URLS.createTimesheets}`, portalApiToken, 'POST', query);\n  }\n  async function createContactInQuickbooks(portalApiToken, entityId, contactId) {\n    return fetchRequestWithToken(URLS.createContact, portalApiToken, 'POST', {\n      entity: entityId,\n      contact: contactId\n    });\n  }\n  async function connectAjax(portalApiToken, payload) {\n    return fetchRequestWithToken(URLS.connect, portalApiToken, 'POST', payload);\n  }\n  async function disconnectAjax(portalApiToken, entityId) {\n    const response = await fetch(`${URLS.disconnect}/${entityId}`, {\n      method: 'POST',\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`\n      }\n    });\n    if (!response.ok) {\n      const error = await response.text();\n      throw error;\n    }\n    return response.text();\n  }\n  async function fetchRequestWithToken(url, portalApiToken, method = 'GET', body) {\n    const response = await fetch(url, {\n      method,\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`,\n        'Content-Type': 'application/json'\n      },\n      ...(body ? {\n        body: JSON.stringify(body)\n      } : {})\n    });\n    if (response.status === 204) {\n      if (!response.ok) throw {\n        status: response.status\n      };\n      return null;\n    }\n    const contentType = response.headers.get('Content-Type') || '';\n    const responseData = contentType.includes('application/json') ? await response.json() : await response.text();\n    if (!response.ok) throw responseData;\n    return responseData;\n  }\n});","define(\"portal/services/reports-download\", [\"exports\", \"@ember/service\", \"portal/utils/csv-builder\", \"portal/utils/download\", \"portal/models/attachment\", \"@ember/object\"], function (_exports, _service, _csvBuilder, _download, _attachment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\",0,\"portal/utils/csv-builder\",0,\"portal/utils/download\",0,\"portal/models/attachment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor, this);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n    }\n    async downloadAsPdf(id, fileName, title, hideClass, config) {\n      await this.pdfExport.generateAndDownloadPdf(id, `${fileName}.pdf`, title, hideClass, config);\n    }\n    async downloadAndSavePdf(id, fileName, title, hideClass, config, resource) {\n      const _fileName = `${fileName}.pdf`;\n      // generate blob\n      const blob = await this.pdfExport.generatePdf(id, title, hideClass, config);\n      (0, _download.download)(blob, _fileName, blob.type);\n\n      //save file to db and attach to project\n      try {\n        const file = new File([blob], _fileName, {\n          type: blob.type\n        });\n        const attachment = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n        await attachment.save({\n          adapterOptions: {\n            meta: {\n              data: attachment.data\n            }\n          }\n        });\n        switch (modelName(resource)) {\n          case 'entity':\n            {\n              await this.store.createRecord('link-attachment-to-entity', {\n                attachment: attachment,\n                entity: resource\n              }).save();\n              break;\n            }\n          case 'project':\n            {\n              await this.store.createRecord('link-attachment-to-project', {\n                attachment: attachment,\n                project: resource\n              }).save();\n              break;\n            }\n          case 'task':\n            {\n              await this.store.createRecord('link-attachment-to-task', {\n                attachment: attachment,\n                task: resource\n              }).save();\n              break;\n            }\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: 'Something went wrong while saving file',\n          error\n        });\n      }\n    }\n    async downloadAsCsv(fileName, thead, tfoot, title, data, resource = null) {\n      const blob = this.generateReportDataForCSV(fileName, thead, tfoot, title, data);\n      (0, _download.download)(blob, fileName, blob.type);\n      if (resource) {\n        try {\n          const file = new File([blob], `${fileName}.csv`, {\n            type: 'text/csv'\n          });\n          const attachment = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n          await attachment.save({\n            adapterOptions: {\n              meta: {\n                data: attachment.data\n              }\n            }\n          });\n          switch (modelName(resource)) {\n            case 'entity':\n              {\n                await this.store.createRecord('link-attachment-to-entity', {\n                  attachment: attachment,\n                  entity: resource\n                }).save();\n                break;\n              }\n            case 'project':\n              {\n                await this.store.createRecord('link-attachment-to-project', {\n                  attachment: attachment,\n                  project: resource\n                }).save();\n                break;\n              }\n            case 'task':\n              {\n                await this.store.createRecord('link-attachment-to-task', {\n                  attachment: attachment,\n                  task: resource\n                }).save();\n                break;\n              }\n          }\n        } catch (error) {\n          this.notifications.error({\n            message: 'Something went wrong while saving file',\n            error\n          });\n        }\n      }\n    }\n    generateReportDataForCSV(fileName, thead, tfoot, title, data) {\n      const csv = [[title]];\n      if (thead) csv.push(thead);\n      const formatValue = item => {\n        const {\n          format,\n          value\n        } = item;\n        switch (format) {\n          case 'PERCENTAGE':\n            return this.numberFormat.format(value, {\n              style: 'percent',\n              maximumSignificantDigits: 2,\n              dashZero: true\n            });\n          case 'CURRENCY':\n            return this.numberFormat.format(value, {\n              style: 'currency',\n              dashZero: true\n            });\n          default:\n            return value;\n        }\n      };\n\n      // data is coming as array of arrays\n      const dataRows = function processRows(data) {\n        const csvRow = [];\n        const children = [];\n        for (const dataRow of data) {\n          if (Array.isArray(dataRow)) {\n            children.push(...processRows(dataRow));\n          } else {\n            const value = formatValue(dataRow);\n            csvRow.push(value);\n          }\n        }\n        return [csvRow, ...children];\n      }(data);\n      csv.push(...dataRows);\n      if (tfoot && tfoot.length) {\n        const footRows = function processRows(data) {\n          const csvRow = [];\n          const children = [];\n          for (const dataRow of data) {\n            if (Array.isArray(dataRow)) {\n              children.push(...processRows(dataRow));\n            } else {\n              const value = formatValue(dataRow);\n              csvRow.push(value);\n            }\n          }\n          return [csvRow, ...children];\n        }(tfoot);\n        csv.push(...footRows);\n      }\n      return (0, _csvBuilder.generateCSVBlob)(csv, fileName);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n  const modelName = resource => {\n    // this can be passed proxy objects so we need to use old school getters\n    return resource ? (0, _object.get)(resource, '_internalModel.modelName') || (0, _object.get)(resource, 'constructor.modelName') : '';\n  };\n});","define(\"portal/services/session-data\", [\"exports\", \"@ember/service\", \"ember-local-storage\", \"@glimmer/tracking\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"moment\", \"portal/utils/get-default-language\"], function (_exports, _service, _emberLocalStorage, _tracking, _object, _jquery, _environment, _moment, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"ember-local-storage\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/object\",0,\"moment\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function isDestroyingOrDestroyed(owner) {\n    return owner?.isDestroying || owner?.isDestroyed;\n  }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      // TODO eventually use this service directly\n      _initializerDefineProperty(this, \"financialPortalPeriodSelector\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"user\", _descriptor7, this);\n      _initializerDefineProperty(this, \"workerPseudoUser\", _descriptor8, this);\n      // the currently selected entity\n      _initializerDefineProperty(this, \"entity\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entities\", _descriptor0, this);\n    }\n    get period() {\n      return this.financialPortalPeriodSelector.period;\n    }\n    set period(value) {\n      this.financialPortalPeriodSelector.period = value;\n    }\n    // but because of the poorly implemented parent entity concept, this is required\n    // we should fix the existing feature flags and permissions services to not\n    // use the parent entity id as some kind of state\n    get allowedEntities() {\n      return (this.entities || []).filter(e => {\n        // workers and admins don't have to deal with this bs\n        if (this.workerPseudoUser || this.user?.role === 'admin') return true;\n        if (this.user?.role === 'partner') {\n          // partners need all the entities (including the ones they don't have view access to)\n          // besides the parent entity for their main company. This is pretty hacky, but we will\n          // hardcode this until this flow is refactored.\n          const bpLicenseeParentEntityId = '5f88bd41bcf03b06f0878ddd';\n          return e.id !== bpLicenseeParentEntityId;\n        }\n\n        // filter the entities that the user has access to\n        return this.user?.includesSomeClaimsAboutEntity(e.id, 'canViewEntity');\n      });\n    }\n    async _initEntity(entityId) {\n      const entity = await this.store.findRecord('entity', entityId, {\n        // these records are needed to evaluate access control\n        include: 'attributes,financialOptions,pricingConnection,eaccountsInvoiceIntegration,xeroConnection,projects,quickBooksConnection,profitMargin',\n        adapterOptions: {\n          fields: {\n            entities: '_meta.calEducationCouponCode'\n          }\n        }\n      });\n      await this.store.query('entity-attribute', {});\n      this.entity = entity;\n    }\n    async _initEntities() {\n      // this should only be waited for if you need to\n      const entities = await this.store.query('entity', {\n        include: 'attributes'\n      }).then(e => e.toArray());\n      this.entities = entities;\n      return entities;\n    }\n    async _initUser(user) {\n      // if you're logged in with a worker code load the worker\n      if (user.isWorkerPseudoUser) {\n        const loadedWorker = await this.store.findRecord('worker', user.worker._id, {\n          include: 'entityAttributes,projectAttributes,taskAttributes'\n        });\n        this.workerPseudoUser = loadedWorker;\n        const language = loadedWorker?.language ?? (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)();\n        this.intl.setLocale([language]);\n\n        // moment does not have support for zh-Hans\n        const momentLocal = language.toLowerCase().startsWith('zh') ? 'zh-cn' : language;\n        _moment.default.locale(momentLocal);\n        return;\n      }\n      const loadedUser = await this.store.findRecord('user', user.id, {\n        include: 'entityAttributes,entityGroups,pricingRoles,projectAttributes,taskAttributes,workerAttributes'\n      });\n      this.user = loadedUser;\n      // set language\n      const language = this.user.language ?? (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)();\n      this.intl.setLocale([language]);\n\n      // moment does not have support for zh-Hans\n      const momentLocal = language.toLowerCase().startsWith('zh') ? 'zh-cn' : language;\n      _moment.default.locale(momentLocal);\n    }\n    async initApp(entityId = this.persistedSettings.get('lastEntity')) {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.session)) return;\n      const {\n        user\n      } = this.session.data.authenticated;\n      // TODO to prevent throwing an error to the user we should check if we're\n      // still authenticated before making any requests using the json api\n\n      // load the authenticated user and their permissions\n      // we do this first to make sure we're still authenticated\n      try {\n        await this._initUser(user);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens the user is not authenticated\n        await this.session.invalidate();\n        return;\n      }\n\n      // this should only be waited for if you need to\n      const entitiesPromise = this._initEntities();\n\n      // only wait for entities when we don't have a previously loaded entity to load\n      if (!entityId) {\n        await entitiesPromise;\n        if (isDestroyingOrDestroyed(this)) return;\n\n        // due to the allowed entities concept you must use the filtered list when assuming the\n        // first entity to select\n        // this needs to happen after the user is loaded\n        entityId = this.allowedEntities[0]?.id;\n      }\n\n      // this will happen when you don't have access to any entities\n      if (!entityId) return this.router.transitionTo('no-access');\n\n      // load the selected entity\n      try {\n        await this._initEntity(entityId);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens we don't have access for the entity\n        // dump our last logged in entity and restart\n        this.persistedSettings.set('lastEntity', null);\n        return this.initApp();\n      }\n\n      // navigate to the selected entity\n      this.changeEntity(entityId);\n    }\n    async reloadApp(entityId) {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.session)) return;\n      const {\n        user\n      } = this.session.data.authenticated;\n      // TODO to prevent throwing an error to the user we should check if we're\n      // still authenticated before making any requests using the json api\n\n      // we don't need to wait for this\n      this._initEntities();\n\n      // load the authenticated user and their permissions\n      try {\n        await this._initUser(user);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens the user is not authenticated\n        await this.session.invalidate();\n        return;\n      }\n      // load the selected entity\n      try {\n        await this._initEntity(entityId);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens we don't have access for the entity\n        // dump our last logged in entity and restart\n        this.persistedSettings.set('lastEntity', null);\n        return this.initApp();\n      }\n    }\n    changeEntity(entityId) {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.router)) return;\n      this.entity = this.store.peekRecord('entity', entityId);\n      // remember the last selected entity for next time\n      this.persistedSettings.set('lastEntity', entityId);\n      this.router.transitionTo('entity', entityId);\n    }\n\n    // login as admin only feature\n    get isUsingLoginAs() {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.session)) return false;\n      return Boolean(this.session.data.authenticated.originalUserData);\n    }\n    get isUsingAdminMode() {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.persistedSettings)) return false;\n      return this.persistedSettings.get('adminMode');\n    }\n    toggleAdminMode() {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.router) || isDestroyingOrDestroyed(this.persistedSettings)) return;\n      this.persistedSettings.set('adminMode', !this.isUsingAdminMode);\n      this.router.transitionTo('index');\n    }\n    loginAs(user) {\n      this.persistedSettings.set('adminMode', false);\n      const access_token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      _jquery.default.ajax({\n        method: 'post',\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/login-as/${(0, _object.get)(user, 'id')}`,\n        headers: {\n          Authorization: `Bearer ${access_token}`\n        },\n        dataType: 'json'\n      }).then(async authResponse => {\n        authResponse.originalUserData = (0, _object.get)(this, 'session.data.authenticated');\n        await (0, _object.get)(this, 'session').authenticate('authenticator:login-as', authResponse);\n\n        // Reload the application with new user data.\n        location.reload();\n      });\n    }\n    exitLoginAs() {\n      const authenticatedData = (0, _object.get)(this, 'session.data.authenticated');\n      if (!(0, _object.get)(authenticatedData, 'originalUserData')) return console.error('There is no user data to go back to. Just log out.');\n\n      // Reauthenticate using the original user data. This is what will subsequently be saved to local storage\n      const authenticate = (0, _object.get)(this, 'session').authenticate('authenticator:login-as', (0, _object.get)(authenticatedData, 'originalUserData'));\n\n      // Reload the application with new user data.\n      authenticate.then(() => {\n        window.location.reload();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"financialPortalPeriodSelector\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"workerPseudoUser\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entities\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleAdminMode\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleAdminMode\"), _class2.prototype), _class2);\n});","define(\"portal/services/session\", [\"exports\", \"@ember/service\", \"ember-simple-auth/services/session\"], function (_exports, _service, _session) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"ember-simple-auth/services/session\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _session.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    // https://ember-simple-auth.com/api/SessionService.html\n    // This method is called whenever the session goes from being unauthenticated to being authenticated.\n    handleAuthentication(routeAfterAuthentication) {\n      if (!this.data.authenticated.user?.hasAcceptedTerms) {\n        this.router.transitionTo('terms-of-service');\n        return;\n      }\n      super.handleAuthentication(routeAfterAuthentication);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/store\", [\"exports\", \"ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data/store\"eaimeta@70e063a35619d71f\n  class ApplicationStore extends _store.default {\n    simpleQuery(modelName, query, options = {}) {\n      let simpleQuery = {\n        filter: {\n          simple: query\n        }\n      };\n      for (let [key, value] of Object.entries(options)) {\n        simpleQuery[key] = value;\n      }\n      return this.query(modelName, simpleQuery);\n    }\n    simpleQueryRecord(modelName, query, options = {}) {\n      let simpleQuery = {\n        filter: {\n          simple: query\n        }\n      };\n      for (let [key, value] of Object.entries(options)) {\n        simpleQuery[key] = value;\n      }\n      return this.queryRecord(modelName, simpleQuery);\n    }\n  }\n  _exports.default = ApplicationStore;\n});","define(\"portal/services/system-announcements\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const POLL_INTERVAL_MS = 30 * 60 * 1000; // 30 minutes\n  let SystemAnnouncementsService = _exports.default = (_class = class SystemAnnouncementsService extends _service.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"announcementData\", _descriptor3, this);\n      this.pollService();\n    }\n    async checkForData() {\n      if (this.announcementData?.length) {\n        return;\n      }\n      let data = await this.buildaPrice.getSystemAnnouncements(this.intl?.locale?.[0]);\n      let unreadAnnouncements = data.filter(item => !item.archived && !item.read);\n      if (unreadAnnouncements.length) {\n        this.announcementData = unreadAnnouncements;\n      }\n    }\n    async pollService() {\n      try {\n        await this.checkForData();\n      } catch (_) {\n        // ignore error\n      } finally {\n        setTimeout(() => this.pollService(), POLL_INTERVAL_MS);\n      }\n    }\n    async dismissAnnouncementModal() {\n      try {\n        // mark them as read\n        const payload = this.announcementData.map(item => ({\n          systemAnnouncementId: item.id,\n          read: true,\n          archived: true\n        }));\n        await this.buildaPrice.updateSystemAnnouncements(payload);\n      } catch {\n        // ignore error\n      } finally {\n        this.announcementData = null;\n      }\n    }\n    closeAnnouncementModal() {\n      this.announcementData = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"announcementData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"dismissAnnouncementModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"dismissAnnouncementModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeAnnouncementModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeAnnouncementModal\"), _class.prototype), _class);\n});","define(\"portal/services/xero-integration\", [\"exports\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"portal/config/environment\", \"qs\"], function (_exports, _service, _object, _rsvp, _environment, _qs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"portal/config/environment\",0,\"qs\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const XeroAppsEnum = {\n    buildaPrice: 'buildaPrice',\n    stepUp: 'stepUp'\n  };\n  const URLS = {\n    connect: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/connect',\n    disconnect: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/disconnect',\n    oauthCallback: _environment.default.xero.callback,\n    authorizeRedirect: _environment.default.xero.authorizeRedirect,\n    syncBill: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/sync-invoice',\n    syncInvoice: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/xero/push-invoice',\n    syncCreditNote: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/sync-credit-note',\n    updateXeroSuppliers: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/update-suppliers',\n    createXeroContact: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/create-contact',\n    createXeroTimesheets: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/create-timesheets',\n    getAccounts: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-accounts',\n    getEmployees: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-employees',\n    getPayRunCalendars: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-pay-run-calendars',\n    getEarningsRates: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-earnings-rates',\n    getTrackingCategoryOptions: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-tracking-categories',\n    getBalances: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/balances'\n  };\n  let XeroService = _exports.default = (_class = class XeroService extends _service.default {\n    // Shortcuts to outside info\n    get connection() {\n      return this.sessionData.entity?.hasMany('xeroConnection').value()?.[0];\n    }\n    get companyId() {\n      return this.connection?.xeroCompanyId;\n    }\n    get companyName() {\n      return this.connection?.xeroCompanyName;\n    }\n    get _canUse() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseXeroIntegration');\n    }\n    get _portalApiToken() {\n      return this.session.data.authenticated.access_token;\n    }\n\n    /* -------------------------- Public members and functions -------------------------- */\n\n    /**\n     * Says whether the integration is ready to use. To be ready, the user and entity must have\n     * adequate permissions (as dictated by permissions service), and the entity must be set up.\n     */\n    get ready() {\n      return this._canUse && this.companyId;\n    }\n\n    /**\n     * @returns {Promise<void>}\n     */\n    async connect() {\n      const xeroApp = this.sessionData.entity?.brand === 'STEP_UP' ? XeroAppsEnum.stepUp : XeroAppsEnum.buildaPrice;\n      const payload = {\n        entityId: this.sessionData.entity.id,\n        redirectUrl: window.location.toString(),\n        app: xeroApp\n      };\n      const initXeroResponse = await this.connectAjax(this._portalApiToken, payload);\n      const {\n        consentUrl\n      } = initXeroResponse;\n      this.redirectTo(consentUrl);\n    }\n\n    /**\n     * Hands the browser over to Xero's consent screen. Split out of `connect` so\n     * tests can observe the hand-off without leaving the page: `location.assign`\n     * is unforgeable, so it cannot be stubbed in place.\n     * @param {String} url\n     */\n    redirectTo(url) {\n      window.location.assign(url);\n    }\n\n    /**\n     * Disconnects the entity from Xero. If promise resolves, it was successful.\n     * @returns {Promise<void>}\n     */\n    async disconnect() {\n      const entity = this.sessionData.entity;\n      const connections = entity.hasMany('xeroConnection').value()?.toArray() || [];\n      await this.disconnectAjax(this._portalApiToken, entity.id);\n      connections.forEach(connection => connection.unloadRecord());\n    }\n\n    /**\n     * Creates a matching invoice on whichever Xero company has been authenticated.\n     * Rejects immediately if there is no authentication, rejects if anything else goes wrong.\n     * Takes care of notifications.\n     * @param {Bill} bill - The bill to send to Xero\n     * @returns {Promise<null>} Resolves when the invoice is successfully sent to Xero\n     */\n    async sendBill(invoice) {\n      const xeroCreditNoteAccountError = new Error('All credit note items must have a Xero account');\n      try {\n        const totalPrice = invoice.totalPrice;\n        let response;\n        // invoice has a positive total so make an invoice\n        if (totalPrice >= 0) {\n          response = await this.sendBillToXero(this._portalApiToken, invoice.id);\n          // invoice has a negative total so make a credit note\n        } else if (totalPrice < 0) {\n          // account codes are required for each item of a xero credit note\n          const xeroReady = invoice.hasMany('items').value().toArray().every(item => item.belongsTo('glAccount').id());\n          if (xeroReady) {\n            response = await this.sendCreditNoteToXero(this._portalApiToken, invoice.id);\n          } else {\n            throw xeroCreditNoteAccountError;\n          }\n        }\n\n        // Refresh the invoice to make sure we get the xeroInvoiceId is loaded\n        await invoice.reload();\n        return response;\n      } catch (error) {\n        // error has been handled\n        if (error.wasAuthenticationError) return;\n\n        // handle for unmapped items on credit note\n        if (error === xeroCreditNoteAccountError) {\n          this.notifications.warning(error);\n          return;\n        }\n        const isXeroInvoiceValidationError = 'invoice:validation_error' === (0, _object.get)(error, 'errors.0.code');\n        if (isXeroInvoiceValidationError) {\n          this.notifications.warning({\n            message: (0, _object.get)(error, 'errors.0.title'),\n            clearDuration: 5000\n          });\n          return;\n        }\n        this.notifications.error(this.intl.t('services.xero-integration.Failed to send invoice to Xero'));\n        return;\n      }\n    }\n\n    /**\n     * Sends invoices to Xero.\n     * @param {Array} invoices - The invoices you want sent to Xero\n     * @returns {Promise<null>} Resolves when the invoice is successfully sent to Xero\n     */\n    sendBills(invoices) {\n      return _rsvp.Promise.all(invoices.map(i => this.sendBill(i)));\n    }\n\n    /**\n     * Creates a matching invoice on whichever Xero company has been authenticated.\n     * Rejects immediately if there is no authentication, rejects if anything else goes wrong.\n     * Takes care of notifications.\n     * @param {Invoice} invoice - The invoice to send to Xero\n     * @returns {Promise<null>} Resolves when the invoice is successfully sent to Xero\n     */\n    async sendInvoice(invoice, options) {\n      try {\n        await this.sendInvoiceToXero(this._portalApiToken, invoice.id, options);\n\n        // Refresh the invoice to make sure we get the xeroInvoiceId is loaded\n        await invoice.reload();\n        this.notifications.success(this.intl.t('services.xero-integration.Successfully sent to Xero'));\n      } catch (error) {\n        // error has been handled\n        if (error.wasAuthenticationError) return;\n        if (error.error === 'XERO_VALIDATION_EXCEPTION') {\n          const combinedMessage = error.detail.join('\\n');\n          this.notifications.warning({\n            message: combinedMessage,\n            clearDuration: 7000\n          });\n          return;\n        }\n        this.notifications.error(this.intl.t('services.xero-integration.Failed to send invoice to Xero'));\n      }\n    }\n\n    /**\n     * Finds all contacts on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get contacts for\n     * @param {Supplier} supplier - (Optional) The supplier to update\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    updateXeroSuppliers(entity, supplier) {\n      const supplierId = supplier && supplier.id;\n      return this.updateXeroSuppliersAjax(this._portalApiToken, entity.id, supplierId);\n    }\n\n    /**\n     * Creates a Xero contact from a supplier.\n     * @param {Entity} entity - The entity you want to create the contact from\n     * @param {Supplier} supplier - The supplier you want to sent to Xero\n     * @returns {Promise}\n     */\n    createXeroContact(entity, supplier) {\n      const supplierId = supplier && supplier.id;\n      return this.createXeroContactAjax(this._portalApiToken, entity.id, supplierId);\n    }\n    createXeroTimesheets(query) {\n      return this.createXeroTimesheetsAjax(this._portalApiToken, query);\n    }\n\n    /**\n     * Finds all accounts on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getAccounts(entity) {\n      return this.getXeroAccountsAjax(this._portalApiToken, entity.id).catch(error => {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero accounts found'));\n        throw error;\n      });\n    }\n\n    /**\n     * Finds all employees on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getEmployees(entity) {\n      try {\n        return this.getXeroEmployeesAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero employees found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n\n    /**\n     * Finds all xero tracking category options on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getTrackingCategoryOptions(entity) {\n      try {\n        return await this.getXeroTrackingCategoryOptionsAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero category options found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n\n    /**\n     * Finds all pay run calendars on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getPayRunCalendars(entity) {\n      try {\n        const entityId = entity.id;\n        return await this.getXeroPayRunCalendarsAjax(this._portalApiToken, entityId);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero payroll calendars found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n\n    /**\n     * Finds all earnings rates on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getXeroEarningsRates(entity) {\n      try {\n        const entityId = entity.id;\n        return await this.getXeroEarningsRatesAjax(this._portalApiToken, entityId);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero earnings rates found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n    async getXeroBalances(payload) {\n      return this.getXeroBalancesAjax(this._portalApiToken, payload);\n    }\n\n    /**\n     * Handles errors from Ajax functions.\n     * @param {Function} callback The Ajax request to handle\n     * @returns {callback<Promise>} The Ajax request\n     */\n    handleXeroFetchRequest(callback) {\n      return async (...args) => {\n        const intl = this.intl;\n        try {\n          return await callback(...args);\n        } catch (error) {\n          const title = error?.errors?.[0]?.title || error?.title;\n          const status = error?.errors?.[0]?.status || error?.status;\n          if (title === 'Xero Error: Minute rate limit exceeded' && status === '429') {\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: intl.t('services.xero-integration.youHaveExportedTooManyItemsToXeroTooQuicklyPleaseWaitAMinuteBeforeSendingMoreOrExportASmallerBatch') // eslint-disable-line max-len\n            });\n          } else if (status === '403' && ['The entity is not authenticated to Xero', 'The entity has a stale Xero refresh token and must be reconnected', 'A xero connection can not be found for entity'].includes(title)) {\n            const address = `${_environment.default.urls.app}/${this.sessionData.entity.id}/settings/integrations`;\n            error.wasAuthenticationError = true;\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: `${intl.t('services.xero-integration.yourXeroOrganisationHasBeenDisconnected')} ${intl.t('common.Go to')} <a href=\"${address}\">settings</a> ${intl.t('common.to reconnect')}`\n            });\n            await this.sessionData.entity.reload();\n            (0, _object.get)(this, 'sessionData').notifyPropertyChange('entity');\n          }\n          throw error;\n        }\n      };\n    }\n    handleV2XeroFetchRequest(callback) {\n      return async (...args) => {\n        try {\n          return await callback(...args);\n        } catch (error) {\n          const isXeroAuthError = error?.error === 'XERO_AUTH_ERROR';\n          if (isXeroAuthError) {\n            const address = `${_environment.default.urls.app}/${this.sessionData.entity.id}/settings/integrations`;\n            error.wasAuthenticationError = true;\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: `${this.intl.t('services.xero-integration.yourXeroOrganisationHasBeenDisconnected')} ${this.intl.t('common.Go to')} <a href=\"${address}\">settings</a> ${this.intl.t('common.to reconnect')}`\n            });\n            await this.sessionData.entity.reload();\n            (0, _object.get)(this, 'sessionData').notifyPropertyChange('entity');\n            return;\n          }\n          throw error;\n        }\n      };\n    }\n\n    /* -------------------------- Private members and functions -------------------------- */\n    /*\n    Async calls. Add them to context so that they can be mocked in testing.\n    Also declare them outside of context to enforce purity.\n    */\n\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      this.connectAjax = connectAjax;\n      this.disconnectAjax = disconnectAjax;\n      this.sendBillToXero = this.handleXeroFetchRequest(sendBillToXero);\n      this.sendInvoiceToXero = this.handleV2XeroFetchRequest(sendInvoiceToXero);\n      this.sendCreditNoteToXero = this.handleXeroFetchRequest(sendCreditNoteToXero);\n      this.updateXeroSuppliersAjax = this.handleXeroFetchRequest(updateXeroSuppliersAjax);\n      this.createXeroContactAjax = this.handleXeroFetchRequest(createXeroContactAjax);\n      this.createXeroTimesheetsAjax = this.handleXeroFetchRequest(createXeroTimesheetsAjax);\n      this.getXeroAccountsAjax = this.handleXeroFetchRequest(getXeroAccountsAjax);\n      this.getXeroEmployeesAjax = this.handleXeroFetchRequest(getXeroEmployeesAjax);\n      this.getXeroTrackingCategoryOptionsAjax = this.handleXeroFetchRequest(getXeroTrackingCategoryOptionsAjax);\n      this.getXeroBalancesAjax = this.handleXeroFetchRequest(getXeroBalancesAjax);\n      this.getXeroPayRunCalendarsAjax = this.handleXeroFetchRequest(getXeroPayRunCalendarsAjax);\n      this.getXeroEarningsRatesAjax = this.handleXeroFetchRequest(getXeroEarningsRatesAjax);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  /**\n   * Requests that the server send the given invoice to Xero.\n   * @param {String} portalApiToken\n   * @param {String} invoiceId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function sendBillToXero(portalApiToken, invoiceId) {\n    return fetchRequestWithToken(`${URLS.syncBill}/${invoiceId}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * Requests that the server send the given invoice to Xero.\n   * @param {String} portalApiToken\n   * @param {String} invoiceId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function sendInvoiceToXero(portalApiToken, invoiceId, options) {\n    return fetchRequestWithToken(`${URLS.syncInvoice}/${invoiceId}`, portalApiToken, 'POST', options);\n  }\n\n  /**\n   * Requests that the server send the given invoice to Xero.\n   * @param {String} portalApiToken\n   * @param {String} invoiceId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function sendCreditNoteToXero(portalApiToken, invoiceId) {\n    return fetchRequestWithToken(`${URLS.syncCreditNote}/${invoiceId}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero contacts for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entity\n   * @param {String} supplier - (optional)\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function updateXeroSuppliersAjax(portalApiToken, entity, supplier) {\n    const query = _qs.default.stringify({\n      entity,\n      supplier\n    });\n    return fetchRequestWithToken(`${URLS.updateXeroSuppliers}?${query}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * Requests that the server create a Xero contact from the supplier provided.\n   * @param {String} portalApiToken\n   * @param {String} entity\n   * @param {String} supplier\n   * @returns {Promise}\n   */\n  async function createXeroContactAjax(portalApiToken, entity, supplier) {\n    const query = _qs.default.stringify({\n      entity,\n      supplier\n    });\n    return fetchRequestWithToken(`${URLS.createXeroContact}?${query}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * TODO\n   * @param {String} portalApiToken\n   * @param {Object} query\n   * @returns {Promise}\n   */\n  async function createXeroTimesheetsAjax(portalApiToken, query) {\n    return fetchRequestWithToken(`${URLS.createXeroTimesheets}`, portalApiToken, 'POST', query);\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero accounts for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroAccountsAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getAccounts}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero employees for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroEmployeesAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getEmployees}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero category options for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroTrackingCategoryOptionsAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getTrackingCategoryOptions}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero pay run calendars for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroPayRunCalendarsAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getPayRunCalendars}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero pay run calendars for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroEarningsRatesAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getEarningsRates}/${entityId}`, portalApiToken, 'GET');\n  }\n  async function getXeroBalancesAjax(portalApiToken, payload) {\n    return fetchRequestWithToken(`${URLS.getBalances}`, portalApiToken, 'POST', payload);\n  }\n\n  /**\n   * Gets a request token from the server. First step of oauth.\n   * @param {String} portalApiToken\n   * @param {object} payload\n   * @returns {Promise<Object>} Contains `request_token` which needs to be added to the query string when redirecting to Xero\n   */\n  async function connectAjax(portalApiToken, payload) {\n    return fetchRequestWithToken(URLS.connect, portalApiToken, 'POST', payload);\n  }\n  async function disconnectAjax(portalApiToken, entityId) {\n    const response = await fetch(`${URLS.disconnect}/${entityId}`, {\n      method: 'POST',\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`\n      }\n    });\n    if (!response.ok) {\n      const error = await response.text();\n      throw error;\n    }\n    return response.text();\n  }\n\n  /**\n   *\n   * @param {string} url\n   * @param {string} portalApiToken\n   * @param {string} [method='GET'] - The HTTP method. Examples: 'GET', 'POST', 'PUT', 'DELETE'\n   * @param {string} query\n   * @param {string} body\n   * @returns\n   */\n  async function fetchRequestWithToken(url, portalApiToken, method = 'GET', body) {\n    const response = await fetch(url, {\n      method,\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`,\n        'Content-Type': 'application/json'\n      },\n      ...(body ? {\n        body: JSON.stringify(body)\n      } : {})\n    });\n    const contentType = response.headers.get('Content-Type') || '';\n    let responseData;\n    if (contentType.includes('application/json')) {\n      responseData = await response.json();\n    } else {\n      responseData = await response.text();\n    }\n    if (!response.ok) {\n      throw responseData;\n    }\n    return responseData;\n  }\n});","define(\"portal/session-stores/application\", [\"exports\", \"ember-simple-auth/session-stores/adaptive\", \"portal/config/environment\"], function (_exports, _adaptive, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/session-stores/adaptive\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _adaptive.default.extend({\n    // Use a different key when using Mirage, just so we don't have to keep logging back in when switching\n    localStorageKey: _environment.default.useMirage ? 'ember_simple_auth:mirage_session' : 'ember_simple_auth:session'\n  });\n});","define(\"portal/storages/settings\", [\"exports\", \"ember-local-storage/local/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-local-storage/local/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _object.default.extend();\n});","define(\"portal/templates/admin-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"TLdMLr8c\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/admin-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO this entire route isn't setup for mobile because it isn't accessible and it's admin only }}\n  {{#if (media 'isDesktop')}}\n    <TitleBar>\n      <div\n        class='d-flex align-items-center mx-3'\n        {{! ember wormhole id }}\n        id='title-bar__content'\n      ></div>\n  \n    </TitleBar>\n    <div class='page__container'>\n      <ModuleNavigation::Admin />\n  \n      <main class='page__container-content'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <MobileTitleBar>\n      <div class='mobile-title-bar__left'>\n        <FromElsewhere @name='mobile-title-bar-left-content' />\n      </div>\n      <div class='mobile-title-bar__middle'>\n        <FromElsewhere @name='mobile-title-bar-middle-content' />\n      </div>\n      <div class='mobile-title-bar__right'>\n        <FromElsewhere @name='mobile-title-bar-right-content' />\n        <MobileTitleBar::Avatar>\n          <FromElsewhere @name='mobile-title-bar-avatar-content' />\n        </MobileTitleBar::Avatar>\n      </div>\n    </MobileTitleBar>\n    <MobileSideMenu>\n      <FromElsewhere @name='mobile-side-menu-content' />\n    </MobileSideMenu>\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/admin'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"WIsXvq3A\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mx-3\\\"],[14,1,\\\"title-bar__content\\\"],[12],[13],[1,\\\"\\\\n\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,8],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mobile-title-bar__left\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-left-content\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mobile-title-bar__middle\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-middle-content\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mobile-title-bar__right\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-right-content\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,10],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-avatar-content\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[39,11],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-side-menu-content\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,12],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/admin\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"title-bar\\\",\\\"div\\\",\\\"module-navigation/admin\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"mobile-title-bar\\\",\\\"from-elsewhere\\\",\\\"mobile-title-bar/avatar\\\",\\\"mobile-side-menu\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/admin.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/announcements\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Announcements</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"6bjZNnOe\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Announcements\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/announcements.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/announcements/announcement\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <div hidden {{did-insert (perform this.initProps)}} />\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>Details</h3>\n      </div>\n      <PtlInput\n        @type='text'\n        @label='Title'\n        @key='title'\n        @model={{this.announcementChangeset}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n      <PtlInput\n        @type='richtext'\n        @label='Message'\n        @key='message'\n        @model={{this.announcementChangeset}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n        @height='200px'\n      />\n  \n      <PtlInput\n        @type='datetime'\n        @label='Valid from'\n        @key='validFrom'\n        @dependantValidationKeys={{array 'validUntil'}}\n        @model={{this.announcementChangeset}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n      <PtlInput\n        @type='datetime'\n        @label='Valid until'\n        @key='validUntil'\n        @dependantValidationKeys={{array 'validFrom'}}\n        @model={{this.announcementChangeset}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n  \n      <PtlInput\n        @type='checkbox'\n        @label='Important'\n        @key='important'\n        @model={{this.announcementChangeset}}\n        @role='switch'\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n  \n      <h3>Who will see this announcement</h3>\n  \n      <h5 class='m-0 mb-2'>Apply entity presets</h5>\n      <div class='mb-3'>\n        <button\n          type='button'\n          class='btn btn-primary btn-sm'\n          disabled={{this.hasBuildaPriceFeatures}}\n          {{on 'click' this.setBuildaPriceFeatures}}\n        >\n          All Builda Price entities\n        </button>\n        <button\n          type='button'\n          {{on 'click' this.setFinancialPortalFeatures}}\n          disabled={{this.hasFinancialPortalFeatures}}\n          class='btn btn-primary btn-sm ms-2'\n        >\n          All Financial Portal entities\n        </button>\n      </div>\n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>\n          Entity features\n          <sup class='text-danger'>*</sup>\n        </label>\n        <PowerSelectMultiple\n          @options={{this.model.entityAttributes.last.value}}\n          @selected={{this.entityAttributes}}\n          @searchEnabled={{true}}\n          @searchField='id'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this.entityAttributes)}}\n          as |entityAttribute|\n        >\n          {{entityAttribute.description}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <h5 class='m-0 mb-2'>Apply user presets</h5>\n      <div class='mb-3'>\n        <button\n          type='button'\n          class='btn btn-primary btn-sm'\n          disabled={{this.hasEntityManagerFeatures}}\n          {{on 'click' this.setEntityManagerFeatures}}\n        >\n          All entity managers\n        </button>\n        <button\n          type='button'\n          {{on 'click' this.setEntityUserFeatures}}\n          disabled={{this.hasEntityUserFeatures}}\n          class='btn btn-primary btn-sm ms-2'\n        >\n          Everyone on the entity\n        </button>\n      </div>\n  \n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>\n          User permissions\n          <sup class='text-danger'>*</sup>\n        </label>\n        <PowerSelectMultiple\n          @options={{this.model.userAttributes.last.value}}\n          @selected={{this.userAttributes}}\n          @searchEnabled={{true}}\n          @searchField='id'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this.userAttributes)}}\n          as |userAttribute|\n        >\n          {{userAttribute.description}}\n        </PowerSelectMultiple>\n      </div>\n      <PtlInput\n        @type='select'\n        @label=\"User's language\"\n        @key='language'\n        @selectNoBlankOption={{true}}\n        @options={{this.languages}}\n        @model={{this.announcementChangeset}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n  \n      <h5 class='m-0 mb-2'>Further restrict by Chargebee plans</h5>\n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>Required chargebee plans</label>\n        <PowerSelectMultiple\n          @options={{this.sortedChargebeePlans}}\n          @selected={{this.requiredChargebeePlans}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this.requiredChargebeePlans)}}\n          as |chargebeePlan|\n        >\n          {{chargebeePlan.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>Excluded chargebee plans</label>\n        <PowerSelectMultiple\n          @options={{this.sortedChargebeePlans}}\n          @selected={{this._excludedChargebeePlans}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this._excludedChargebeePlans)}}\n          as |chargebeePlan|\n        >\n          {{chargebeePlan.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='d-flex flex-grow-1 mt-3 align-items-center'>\n        <button\n          type='button'\n          class='btn bt-link text-danger text-decoration-underline'\n          {{on\n            'click'\n            (perform this.deleteAnnouncement this.announcementChangeset)\n          }}\n        >\n          {{#if this.deleteAnnouncement.isRunning}}\n            Deleting&hellip;\n          {{else}}\n            Delete announcement\n          {{/if}}\n        </button>\n        <div class='d-flex ms-auto'>\n          <button\n            type='button'\n            class='btn bt-link text-primary text-decoration-underline me-2'\n            disabled={{this.saveAnnouncement.isRunning}}\n            {{on 'click' (fn (mut this.showPreviewModal) true)}}\n          >\n            Preview\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{this.saveAnnouncement.isRunning}}\n            {{on\n              'click'\n              (perform this.saveAnnouncement this.announcementChangeset)\n            }}\n          >\n            {{#if this.saveAnnouncement.isRunning}}\n              <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;\n              {{#if this.announcement.isNew}}\n                creating\n              {{else}}\n                Saving\n              {{/if}}&hellip;\n            {{else}}\n              {{#if this.announcement.isNew}}\n                Create announcement\n              {{else}}\n                Save details\n              {{/if}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </PtlForm>\n  {{/if}}\n  \n  {{#if this.showPreviewModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.showPreviewModal) false}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          Announcements\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <div\n          class='ql-container ql-editor'\n          style='white-space: normal !important;'\n        >\n          <h6 class='mb-2'>{{this.announcement.title}}</h6>\n          {{html-safe this.announcement.message}}\n        </div>\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showPreviewModal) false)}}\n        >\n          {{t 'common.Close'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7JCTfWp2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,4],[[28,[37,5],[[30,0,[\\\"initProps\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n  \\\"],[8,[39,6],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Title\\\",\\\"title\\\",[30,0,[\\\"announcementChangeset\\\"]],true,[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@height\\\"],[\\\"richtext\\\",\\\"Message\\\",\\\"message\\\",[30,0,[\\\"announcementChangeset\\\"]],true,[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null],\\\"200px\\\"]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"datetime\\\",\\\"Valid from\\\",\\\"validFrom\\\",[28,[37,10],[\\\"validUntil\\\"],null],[30,0,[\\\"announcementChangeset\\\"]],[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"datetime\\\",\\\"Valid until\\\",\\\"validUntil\\\",[28,[37,10],[\\\"validFrom\\\"],null],[30,0,[\\\"announcementChangeset\\\"]],[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@role\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Important\\\",\\\"important\\\",[30,0,[\\\"announcementChangeset\\\"]],\\\"switch\\\",[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Who will see this announcement\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"m-0 mb-2\\\"],[12],[1,\\\"Apply entity presets\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasBuildaPriceFeatures\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setBuildaPriceFeatures\\\"]]],null],[12],[1,\\\"\\\\n        All Builda Price entities\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasFinancialPortalFeatures\\\"]]],[24,0,\\\"btn btn-primary btn-sm ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setFinancialPortalFeatures\\\"]]],null],[12],[1,\\\"\\\\n        All Financial Portal entities\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"\\\\n        Entity features\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"entityAttributes\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"entityAttributes\\\"]],true,\\\"id\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"entityAttributes\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"description\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"m-0 mb-2\\\"],[12],[1,\\\"Apply user presets\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasEntityManagerFeatures\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setEntityManagerFeatures\\\"]]],null],[12],[1,\\\"\\\\n        All entity managers\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasEntityUserFeatures\\\"]]],[24,0,\\\"btn btn-primary btn-sm ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setEntityUserFeatures\\\"]]],null],[12],[1,\\\"\\\\n        Everyone on the entity\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"\\\\n        User permissions\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"userAttributes\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"userAttributes\\\"]],true,\\\"id\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"userAttributes\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"User's language\\\",\\\"language\\\",true,[30,0,[\\\"languages\\\"]],[30,0,[\\\"announcementChangeset\\\"]],[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"m-0 mb-2\\\"],[12],[1,\\\"Further restrict by Chargebee plans\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"Required chargebee plans\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"sortedChargebeePlans\\\"]],[30,0,[\\\"requiredChargebeePlans\\\"]],true,\\\"name\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"requiredChargebeePlans\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[3]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"Excluded chargebee plans\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"sortedChargebeePlans\\\"]],[30,0,[\\\"_excludedChargebeePlans\\\"]],true,\\\"name\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"_excludedChargebeePlans\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn bt-link text-danger text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"deleteAnnouncement\\\"]],[30,0,[\\\"announcementChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAnnouncement\\\",\\\"isRunning\\\"]],[[[1,\\\"          Deleting…\\\\n\\\"]],[]],[[[1,\\\"          Delete announcement\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn bt-link text-primary text-decoration-underline me-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showPreviewModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          Preview\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"saveAnnouncement\\\"]],[30,0,[\\\"announcementChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\\n\\\"],[41,[30,0,[\\\"announcement\\\",\\\"isNew\\\"]],[[[1,\\\"              creating\\\\n\\\"]],[]],[[[1,\\\"              Saving\\\\n            \\\"]],[]]],[1,\\\"…\\\\n\\\"]],[]],[[[41,[30,0,[\\\"announcement\\\",\\\"isNew\\\"]],[[[1,\\\"              Create announcement\\\\n\\\"]],[]],[[[1,\\\"              Save details\\\\n\\\"]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showPreviewModal\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,17],[[28,[37,18],[[30,0,[\\\"showPreviewModal\\\"]]],null],false],null],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Announcements\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ql-container ql-editor\\\"],[14,5,\\\"white-space: normal !important;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h6\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[30,0,[\\\"announcement\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,22],[[30,0,[\\\"announcement\\\",\\\"message\\\"]]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showPreviewModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,23],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entityAttribute\\\",\\\"userAttribute\\\",\\\"chargebeePlan\\\",\\\"chargebeePlan\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"array\\\",\\\"h5\\\",\\\"button\\\",\\\"on\\\",\\\"label\\\",\\\"sup\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"modal-dialog\\\",\\\"h6\\\",\\\"html-safe\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/announcements/announcement.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/announcements/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    <Input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      disabled={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      @type='search'\n    />\n    <button\n      type='button'\n      class='btn btn-success text-white text-nowrap m-1'\n      disabled={{this.isLoading}}\n      {{on 'click' this.createNewAnnouncement}}\n    >\n      <FaIcon @icon='plus' />&nbsp;Add\n    </button>\n  </div>\n  \n  {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='admin-console__entity-table-container'>\n      <PaginationTable\n        @tableHeader={{this.announcementsTableHeader}}\n        @tableData={{this.announcementsTableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No announcements'\n        @pageSizes={{this.model.pageSizes}}\n        @pageSize={{this.model.pageSize}}\n        @pageIndex={{this.model.pageNumber}}\n        @onChangePageIndex={{this.onChangePage}}\n        @onChangePageSize={{this.onChangePageSize}}\n        @totalRecords={{this.totalRecords}}\n        @class='table-bordered'\n      />\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"QVM9Rfsg\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,2],[\\\"common.Search\\\"],null]],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[4,[38,3],[\\\"input\\\",[28,[37,4],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"createNewAnnouncement\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\" Add\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"admin-console__entity-table-container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"announcementsTableHeader\\\"]],[30,0,[\\\"announcementsTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No announcements\\\",[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePage\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"div\\\",\\\"input\\\",\\\"t\\\",\\\"on\\\",\\\"perform\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"pagination-table\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/announcements/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/billing-report\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Billing Reports</h2>\n    </header>\n    <h3>ChargeBee billing report</h3>\n    <p>Breakout ChargeBee invoices by customer and Chargebee plans. Report takes\n      about 5 minutes to generate.</p>\n    <PtlForm class='width--medium'>\n  \n      {{#let (changeset this.data this.validationMap) as |dataModel|}}\n        <PtlInput\n          @type='select'\n          @label='Application'\n          @key='site'\n          @selectNoBlankOption={{true}}\n          @options={{this.sites}}\n          @forceValidationVisible={{gt this.generateReport.performCount 0}}\n          @model={{dataModel}}\n        />\n        <PtlInput\n          @type='date'\n          @label='Start date'\n          @key='startDate'\n          @model={{dataModel}}\n          @forceValidationVisible={{gt this.generateReport.performCount 0}}\n          @required={{true}}\n        />\n        <PtlInput\n          @type='date'\n          @label='End date'\n          @key='endDate'\n          @model={{dataModel}}\n          @forceValidationVisible={{gt this.generateReport.performCount 0}}\n          @required={{true}}\n        />\n        <div class='d-flex flex-grow-1 mt-3 align-items-center'>\n          <div class='d-flex ms-auto'>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.generateReport.isRunning}}\n              {{on 'click' (perform this.generateReport dataModel)}}\n            >\n              {{#if this.generateReport.isRunning}}\n                <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;\n                Generating &hellip;\n              {{else}}\n                Generate and email report\n              {{/if}}\n            </button>\n          </div>\n        </div>\n      {{/let}}\n    </PtlForm>\n  </article>\n  */\n  {\n    \"id\": \"zLrCcm/O\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Billing Reports\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"ChargeBee billing report\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Breakout ChargeBee invoices by customer and Chargebee plans. Report takes\\\\n    about 5 minutes to generate.\\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,5],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[44,[[28,[37,7],[[30,0,[\\\"data\\\"]],[30,0,[\\\"validationMap\\\"]]],null]],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@forceValidationVisible\\\",\\\"@model\\\"],[\\\"select\\\",\\\"Application\\\",\\\"site\\\",true,[30,0,[\\\"sites\\\"]],[28,[37,9],[[30,0,[\\\"generateReport\\\",\\\"performCount\\\"]],0],null],[30,1]]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",\\\"Start date\\\",\\\"startDate\\\",[30,1],[28,[37,9],[[30,0,[\\\"generateReport\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",\\\"End date\\\",\\\"endDate\\\",[30,1],[28,[37,9],[[30,0,[\\\"generateReport\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3 align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"generateReport\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"generateReport\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generateReport\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\\n              Generating …\\\\n\\\"]],[]],[[[1,\\\"              Generate and email report\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"dataModel\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"ptl-form\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"if\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/billing-report.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/demo-entity\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='p-3 d-flex flex-column gap-3'>\n    <p class='m-0'>\n      Clicking the button will cause the demo entity to be deleted and recreated.\n      This will delete all the data on the demo entity!\n    </p>\n  \n    <LinkTo @route='entity' @model='6a4b2171ba65212da862ffe5'>\n      Demo entity source\n      <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n    </LinkTo>\n  \n    <LinkTo @route='entity' @model='6a4b21965c807f2d9482b936'>\n      Demo entity\n      <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n    </LinkTo>\n  \n    <button\n      class='btn btn-danger text-white'\n      type='button'\n      {{on 'click' (perform this.model.regenerateDemoEntity)}}\n      disabled={{this.model.regenerateDemoEntity.isRunning}}\n    >\n      {{#if this.model.regenerateDemoEntity.isRunning}}\n        Regenerating&hellip;\n      {{else}}\n        Regenerate demo entity\n      {{/if}}\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"uZI+wvBI\",\n    \"block\": \"[[[10,0],[14,0,\\\"p-3 d-flex flex-column gap-3\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n    Clicking the button will cause the demo entity to be deleted and recreated.\\\\n    This will delete all the data on the demo entity!\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity\\\",\\\"6a4b2171ba65212da862ffe5\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    Demo entity source\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity\\\",\\\"6a4b21965c807f2d9482b936\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    Demo entity\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"model\\\",\\\"regenerateDemoEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"model\\\",\\\"regenerateDemoEntity\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"regenerateDemoEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"      Regenerating…\\\\n\\\"]],[]],[[[1,\\\"      Regenerate demo entity\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/demo-entity.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/entities\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Entities</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"+gp9+z2T\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Entities\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/entities.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/entities/entity\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n      </div>\n  \n      <PtlInput\n        @type='powerSelect'\n        @label='Parent company'\n        @key='parent'\n        @options={{this.parentEntityOptions}}\n        @optionKeys={{array 'name'}}\n        @model={{this.model.entityChangeset.last.value}}\n        @searchEnabled={{true}}\n        @searchField='name'\n        @allowClear={{true}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <PtlInput\n        @type='text'\n        @label='Name'\n        @key='name'\n        @model={{this.model.entityChangeset.last.value}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <PtlInput\n        @type='select'\n        @label='Region'\n        @key='region'\n        @options={{this.regions}}\n        @required={{true}}\n        @model={{this.model.entityChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <PtlInput\n        @type='select'\n        @label='Brand'\n        @key='brand'\n        @options={{this.brands}}\n        @model={{this.model.entityChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <div class='d-flex flex-grow-1 mt-3'>\n        <button\n          type='button'\n          class='btn btn-primary ms-auto'\n          disabled={{this.saveEntity.isRunning}}\n          {{on\n            'click'\n            (perform this.saveEntity this.model.entityChangeset.last.value)\n          }}\n        >\n          {{#if this.saveEntity.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;\n            {{#if this.entity.isNew}}\n              creating\n            {{else}}\n              Saving\n            {{/if}}&hellip;\n          {{else}}\n            {{#if this.entity.isNew}}\n              Create entity\n            {{else}}\n              Save details\n            {{/if}}\n          {{/if}}\n        </button>\n      </div>\n    </PtlForm>\n  \n    {{#unless this.entity.isNew}}\n      <div class='alert alert-primary width--medium mt-3' role='alert'>\n        <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n        <span class='me-2'>\n          Invite admin user for\n          {{this.model.entityChangeset.last.value.name}}\n        </span>\n        <button\n          type='button'\n          class='btn btn-outline-primary'\n          {{on 'click' (fn (mut this.openInviteUserModal) true)}}\n        >\n          Invite admin user\n        </button>\n      </div>\n  \n      <PtlForm class='width--medium mb-3'>\n        <div class='mb-3'>\n          <h3 class='mb-0'>Features</h3>\n          <p>\n            Entity features are rules that say what a entity can and can't do in\n            the system.\n          </p>\n  \n          <h5 class='mb-3'>Apply presets</h5>\n          <div>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.noFeatures}}\n              {{on 'click' this.clearAllFeatures}}\n            >No features</button>\n            <button\n              type='button'\n              {{on 'click' this.setAllFeatures}}\n              disabled={{this.hasAllFeatures}}\n              class='btn btn-primary ms-2'\n            >All features</button>\n          </div>\n        </div>\n  \n        <div\n          class='d-flex align-items-center mb-3'\n          role='button'\n          {{on\n            'click'\n            (fn\n              (mut this.showBuildaPriceFeatures)\n              (not this.showBuildaPriceFeatures)\n            )\n          }}\n        >\n          <h4 class='m-0'>\n            Builda Price\n          </h4>\n          {{#if this.buildaPricePermissionsCount}}\n            <span class='ms-2 badge bg-info'>\n              {{this.buildaPricePermissionsCount}}\n            </span>\n          {{/if}}\n          <h4 class='m-0 ms-auto'>\n            <FaIcon\n              @icon={{if\n                this.showBuildaPriceFeatures\n                'chevron-down'\n                'chevron-right'\n              }}\n            />\n          </h4>\n        </div>\n        {{#if this.showBuildaPriceFeatures}}\n          <PtlInput\n            @type='checkbox'\n            @label='Can use Builda Price?'\n            @key='canUseBuildaPrice'\n            @description='Lets company use Builda Price module.'\n            @model={{this.model.featuresChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n            disabled={{this.saveFeatures.isRunning}}\n          />\n        {{/if}}\n  \n        <div class='ms-3'>\n          {{#if\n            (and\n              this.showBuildaPriceFeatures\n              this.model.featuresChangeset.last.value.canUseBuildaPrice\n            )\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn (mut this.showGeneralFeatures) (not this.showGeneralFeatures))\n              }}\n            >\n              <h4 class='m-0'>\n                General\n              </h4>\n              {{#if this.generalFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.generalFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showGeneralFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.showGeneralFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use dashboards?'\n                @key='canUseDashboards'\n                @description='Lets company use dashboard features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use documents?'\n                @key='canUseFileStorage'\n                @description='Lets company attach files and documents.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use health and safety?'\n                @key='canUseHealthAndSafety'\n                @description='Lets company use Health and safety module.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use client portal?'\n                @key='canUseClientPortal'\n                @description='Lets company use client portal.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Doc Flow metered billing?'\n                @key='canUseIPS'\n                @description='Lets company process Doc Flow documents beyond the free allowance, for a charge. Doc Flow access itself comes from Bills.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use statements?'\n                @key='canUseStatements'\n                @description='Lets company use statements.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use placemakers integrations?'\n                @key='canUsePlaceMakers'\n                @description='Lets company use place makers integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use carters integrations?'\n                @key='canUseCarters'\n                @description='Lets company use carters integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use support?'\n                @key='canUseSupport'\n                @description='Lets company use support.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use Geofencing features?'\n                @key='canUseGeofencing'\n                @description='Lets company use  Geofencing features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn (mut this.showProjectFeatures) (not this.showProjectFeatures))\n              }}\n            >\n              <h4 class='m-0'>\n                Project\n              </h4>\n              {{#if this.projectsFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.projectsFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showProjectFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.showProjectFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use project financials?'\n                @key='canUseProjectFinancials'\n                @description='Lets company all project related financials'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use project progress?'\n                @key='canUseProjectProgress'\n                @description='Lets company use progress tracking features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use take off uploader tool?'\n                @key='canUseCsvTaskFileUploader'\n                @description='Lets company use take off tool.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use products?'\n                @key='canUseProducts'\n                @description='Lets company use products.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use estimates?'\n                @key='canUseEstimates'\n                @description='Lets company estimates related features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use stage payments?'\n                @key='canUseStagePayments'\n                @description='Lets company use stage payment features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn (mut this.showReportFeatures) (not this.showReportFeatures))\n              }}\n            >\n              <h4 class='m-0'>\n                Reports\n              </h4>\n              {{#if this.reportsFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.reportsFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showReportFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.showReportFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use work in progress report?'\n                @key='canUseWIPReport'\n                @description='Lets company use work in progress report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use forecast report?'\n                @key='canUseForecastReport'\n                @description='Lets company use forecast report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use profit margins report?'\n                @key='canUseProfitMarginsReport'\n                @description='Lets company use profit margins report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use labour hours report?'\n                @key='canUseLabourHoursReport'\n                @description='Lets company use labour hours report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use budget report?'\n                @key='canUseBudgetReport'\n                @description='Lets company use budget report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use quote report?'\n                @key='canUseQuoteReport'\n                @description='Lets company use quote report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use cost report?'\n                @key='canUseCostReport'\n                @description='Lets company use cost report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use chargeup report?'\n                @key='canUseChargeupReport'\n                @description='Lets company use chargeup report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use position report?'\n                @key='canUsePositionReport'\n                @description='Lets company use position report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use Invoicing report?'\n                @key='canUseInvoicingReport'\n                @description='Lets company use invoicing report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use the cost to complete report?'\n                @key='canUseClientReport'\n                @description='Lets company use the cost to complete report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.showSchedulingFeatures)\n                  (not this.showSchedulingFeatures)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                Scheduling\n              </h4>\n              {{#if this.schedulingFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showSchedulingFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.showSchedulingFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use scheduling?'\n                @key='canUseScheduling'\n                @description='Lets company use scheduling.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.showAllocationFeatures)\n                  (not this.showAllocationFeatures)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                Allocations\n              </h4>\n              {{#if this.allocationsFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showAllocationFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.showAllocationFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use timesheets?'\n                @key='canUseTimesheets'\n                @description='Lets company use timesheets.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use crystal payroll integrations?'\n                @key='canUseCrystalPayroll'\n                @description='Lets company use crystal payroll integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use smartly payroll integrations?'\n                @key='canUseSmartPayroll'\n                @description='Lets company use smart payroll integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use keypay integrations?'\n                @key='canUseKeypay'\n                @description='Lets company use keypay integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use notes features?'\n                @key='canUseNotes'\n                @description='Lets company use notes features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use bills features?'\n                @key='canUseBills'\n                @description='Lets company use bills features (incoming invoices).'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use purchase orders?'\n                @key='canUsePurchaseOrders'\n                @description='Lets company use purchase order features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use Invoicing?'\n                @key='canUseInvoicing'\n                @description='Lets company use invoicing features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n        </div>\n  \n        <div\n          class='d-flex align-items-center mb-3'\n          role='button'\n          {{on\n            'click'\n            (fn\n              (mut this.showFinancialPortalFeatures)\n              (not this.showFinancialPortalFeatures)\n            )\n          }}\n        >\n          <h4 class='m-0'>\n            Financial portal\n          </h4>\n          {{#if this.FinancialPortalPermissionsCount}}\n            <span class='ms-2 badge bg-info'>\n              {{this.FinancialPortalPermissionsCount}}\n            </span>\n          {{/if}}\n          <h4 class='m-0 ms-auto'>\n            <FaIcon\n              @icon={{if\n                this.showFinancialPortalFeatures\n                'chevron-down'\n                'chevron-right'\n              }}\n            />\n          </h4>\n        </div>\n  \n        {{#if this.showFinancialPortalFeatures}}\n          <PtlInput\n            @type='checkbox'\n            @label='Can use Financial portal?'\n            @key='canUseFinancialReporting'\n            @description='Lets company use Financial portal.'\n            @model={{this.model.featuresChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n            disabled={{this.saveFeatures.isRunning}}\n          />\n        {{/if}}\n  \n        <div class='d-flex flex-grow-1 mt-2'>\n          <button\n            type='button'\n            class='btn btn-primary ms-auto'\n            disabled={{this.saveFeatures.isRunning}}\n            {{on\n              'click'\n              (perform this.saveFeatures this.model.featuresChangeset.last.value)\n            }}\n          >\n            {{#if this.saveFeatures.isRunning}}\n              Saving features&hellip;\n            {{else}}\n              Save features\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n  \n    {{/unless}}\n  {{/if}}\n  \n  {{#if this.openInviteUserModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div hidden {{did-insert (perform this.initChangeset)}} />\n      <div class='modal-body mt-2'>\n        <PtlInput\n          @type='text'\n          @label='First name'\n          @key='firstName'\n          @model={{this.userChangeSet}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Last name'\n          @key='lastName'\n          @model={{this.userChangeSet}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Email'\n          @key='email'\n          @model={{this.userChangeSet}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Phone number'\n          @key='phoneNumber'\n          @model={{this.userChangeSet}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.inviteUser.isRunning}}\n            {{on 'click' (fn (mut this.openInviteUserModal) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.inviteUser.isRunning}}\n            {{on 'click' (perform this.inviteUser this.userChangeSet)}}\n          >\n            {{#if this.inviteUser.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;Inviting&hellip;\n            {{else}}\n              Invite\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7iUtHQDd\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@forceValidationVisible\\\"],[\\\"powerSelect\\\",\\\"Parent company\\\",\\\"parent\\\",[30,0,[\\\"parentEntityOptions\\\"]],[28,[37,8],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"name\\\",true,[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Name\\\",\\\"name\\\",[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"Region\\\",\\\"region\\\",[30,0,[\\\"regions\\\"]],true,[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"Brand\\\",\\\"brand\\\",[30,0,[\\\"brands\\\"]],[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"saveEntity\\\"]],[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\\n\\\"],[41,[30,0,[\\\"entity\\\",\\\"isNew\\\"]],[[[1,\\\"            creating\\\\n\\\"]],[]],[[[1,\\\"            Saving\\\\n          \\\"]],[]]],[1,\\\"…\\\\n\\\"]],[]],[[[41,[30,0,[\\\"entity\\\",\\\"isNew\\\"]],[[[1,\\\"            Create entity\\\\n\\\"]],[]],[[[1,\\\"            Save details\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"entity\\\",\\\"isNew\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"alert alert-primary width--medium mt-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        Invite admin user for\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"openInviteUserModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        Invite admin user\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,4],[[24,0,\\\"width--medium mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Features\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          Entity features are rules that say what a entity can and can't do in\\\\n          the system.\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Apply presets\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"noFeatures\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"clearAllFeatures\\\"]]],null],[12],[1,\\\"No features\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasAllFeatures\\\"]]],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"setAllFeatures\\\"]]],null],[12],[1,\\\"All features\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showBuildaPriceFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showBuildaPriceFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          Builda Price\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"buildaPricePermissionsCount\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"buildaPricePermissionsCount\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showBuildaPriceFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBuildaPriceFeatures\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Builda Price?\\\",\\\"canUseBuildaPrice\\\",\\\"Lets company use Builda Price module.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[30,0,[\\\"showBuildaPriceFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canUseBuildaPrice\\\"]]],null],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showGeneralFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showGeneralFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              General\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generalFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"generalFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showGeneralFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showGeneralFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use dashboards?\\\",\\\"canUseDashboards\\\",\\\"Lets company use dashboard features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use documents?\\\",\\\"canUseFileStorage\\\",\\\"Lets company attach files and documents.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use health and safety?\\\",\\\"canUseHealthAndSafety\\\",\\\"Lets company use Health and safety module.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use client portal?\\\",\\\"canUseClientPortal\\\",\\\"Lets company use client portal.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Doc Flow metered billing?\\\",\\\"canUseIPS\\\",\\\"Lets company process Doc Flow documents beyond the free allowance, for a charge. Doc Flow access itself comes from Bills.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use statements?\\\",\\\"canUseStatements\\\",\\\"Lets company use statements.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use placemakers integrations?\\\",\\\"canUsePlaceMakers\\\",\\\"Lets company use place makers integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use carters integrations?\\\",\\\"canUseCarters\\\",\\\"Lets company use carters integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use support?\\\",\\\"canUseSupport\\\",\\\"Lets company use support.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Geofencing features?\\\",\\\"canUseGeofencing\\\",\\\"Lets company use  Geofencing features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showProjectFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showProjectFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Project\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectsFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"projectsFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showProjectFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showProjectFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use project financials?\\\",\\\"canUseProjectFinancials\\\",\\\"Lets company all project related financials\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use project progress?\\\",\\\"canUseProjectProgress\\\",\\\"Lets company use progress tracking features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use take off uploader tool?\\\",\\\"canUseCsvTaskFileUploader\\\",\\\"Lets company use take off tool.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use products?\\\",\\\"canUseProducts\\\",\\\"Lets company use products.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use estimates?\\\",\\\"canUseEstimates\\\",\\\"Lets company estimates related features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use stage payments?\\\",\\\"canUseStagePayments\\\",\\\"Lets company use stage payment features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showReportFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showReportFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Reports\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"reportsFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showReportFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showReportFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use work in progress report?\\\",\\\"canUseWIPReport\\\",\\\"Lets company use work in progress report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use forecast report?\\\",\\\"canUseForecastReport\\\",\\\"Lets company use forecast report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use profit margins report?\\\",\\\"canUseProfitMarginsReport\\\",\\\"Lets company use profit margins report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use labour hours report?\\\",\\\"canUseLabourHoursReport\\\",\\\"Lets company use labour hours report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use budget report?\\\",\\\"canUseBudgetReport\\\",\\\"Lets company use budget report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use quote report?\\\",\\\"canUseQuoteReport\\\",\\\"Lets company use quote report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use cost report?\\\",\\\"canUseCostReport\\\",\\\"Lets company use cost report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use chargeup report?\\\",\\\"canUseChargeupReport\\\",\\\"Lets company use chargeup report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use position report?\\\",\\\"canUsePositionReport\\\",\\\"Lets company use position report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Invoicing report?\\\",\\\"canUseInvoicingReport\\\",\\\"Lets company use invoicing report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use the cost to complete report?\\\",\\\"canUseClientReport\\\",\\\"Lets company use the cost to complete report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showSchedulingFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showSchedulingFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Scheduling\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showSchedulingFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showSchedulingFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use scheduling?\\\",\\\"canUseScheduling\\\",\\\"Lets company use scheduling.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showAllocationFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showAllocationFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Allocations\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showAllocationFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showAllocationFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use timesheets?\\\",\\\"canUseTimesheets\\\",\\\"Lets company use timesheets.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use crystal payroll integrations?\\\",\\\"canUseCrystalPayroll\\\",\\\"Lets company use crystal payroll integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use smartly payroll integrations?\\\",\\\"canUseSmartPayroll\\\",\\\"Lets company use smart payroll integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use keypay integrations?\\\",\\\"canUseKeypay\\\",\\\"Lets company use keypay integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use notes features?\\\",\\\"canUseNotes\\\",\\\"Lets company use notes features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use bills features?\\\",\\\"canUseBills\\\",\\\"Lets company use bills features (incoming invoices).\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use purchase orders?\\\",\\\"canUsePurchaseOrders\\\",\\\"Lets company use purchase order features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Invoicing?\\\",\\\"canUseInvoicing\\\",\\\"Lets company use invoicing features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showFinancialPortalFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showFinancialPortalFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          Financial portal\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"FinancialPortalPermissionsCount\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"FinancialPortalPermissionsCount\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showFinancialPortalFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showFinancialPortalFeatures\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Financial portal?\\\",\\\"canUseFinancialReporting\\\",\\\"Lets company use Financial portal.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"saveFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]],[[[1,\\\"            Saving features…\\\\n\\\"]],[]],[[[1,\\\"            Save features\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openInviteUserModal\\\"]],[[[1,\\\"  \\\"],[8,[39,23],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,16],[[28,[37,17],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,24],[[28,[37,12],[[30,0,[\\\"initChangeset\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"First name\\\",\\\"firstName\\\",[30,0,[\\\"userChangeSet\\\"]],true,[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Last name\\\",\\\"lastName\\\",[30,0,[\\\"userChangeSet\\\"]],true,[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Email\\\",\\\"email\\\",[30,0,[\\\"userChangeSet\\\"]],true,[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Phone number\\\",\\\"phoneNumber\\\",[30,0,[\\\"userChangeSet\\\"]],[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"inviteUser\\\"]],[30,0,[\\\"userChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  Inviting…\\\\n\\\"]],[]],[[[1,\\\"            Invite\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"array\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"unless\\\",\\\"fa-icon\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"h5\\\",\\\"not\\\",\\\"h4\\\",\\\"and\\\",\\\"modal-dialog\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/entities/entity.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/entities/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    <Input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      @value={{this.searchString}}\n      disabled={{this.isLoading}}\n      @type='search'\n      autofocus='true'\n    />\n    <button\n      type='button'\n      class='btn btn-success text-white text-nowrap m-1'\n      disabled={{this.isLoading}}\n      {{on 'click' this.goNewEntity}}\n    >\n      <FaIcon @icon='plus' />&nbsp;&nbsp;Add\n    </button>\n  </div>\n  \n  <div class='admin-console__entity-table-container'>\n    <PaginationTable\n      @tableHeader={{this.entityTableHeader}}\n      @tableData={{this.entityTableData}}\n      @noDataText='No entities'\n      @isLoading={{this.model.entities.isRunning}}\n      @pageSizes={{this.pageSizes}}\n      @pageSize={{this.pageSize}}\n      @pageIndex={{this.pageIndex}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  */\n  {\n    \"id\": \"GDWa8S5w\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,2],[\\\"common.Search\\\"],null]],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"search\\\"]],null],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"goNewEntity\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Add\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"admin-console__entity-table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"entityTableHeader\\\"]],[30,0,[\\\"entityTableData\\\"]],\\\"No entities\\\",[30,0,[\\\"model\\\",\\\"entities\\\",\\\"isRunning\\\"]],[30,0,[\\\"pageSizes\\\"]],[30,0,[\\\"pageSize\\\"]],[30,0,[\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"input\\\",\\\"t\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"pagination-table\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/entities/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/licensees\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Licensees</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"xPATBUUo\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Licensees\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/licensees.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/licensees/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end'>\n    <button\n      type='button'\n      class='btn btn-success text-white text-nowrap m-1'\n      disabled={{this.isLoading}}\n      {{on 'click' (fn (mut this.showCreateLicenseeModal) true)}}\n    >\n      <FaIcon @icon='plus' />&nbsp;&nbsp;Create Licensee\n    </button>\n  </div>\n  \n  {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='admin-console__entity-table-container'>\n      <PaginationTable\n        @tableHeader={{this.tableHeader}}\n        @tableData={{this.tableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No Licensees'\n        @class='table-bordered'\n        @hidePagination={{true}}\n      />\n    </div>\n  {{/if}}\n  \n  {{#if this.showCreateLicenseeModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header' {{did-insert (perform this.initChangeset)}}>\n        <h3 class='modal-title'>\n          Create Licensee\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <PtlInput\n          @type='text'\n          @label='Licensee name'\n          @key='licenseeName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          disabled={{this.createNewLicensee.isRunning}}\n        />\n        <PtlInput\n          @type='powerSelectMultiple'\n          @label=\"Licensee's customers\"\n          @key='customers'\n          @optionKeys={{array 'name'}}\n          @options={{this.unclaimedEntities}}\n          @model={{this.licenseeChangeset}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @disabled={{this.createNewLicensee.isRunning}}\n        />\n  \n        <NewComboBox\n          @isLoading={{this.fetchUsers.isRunning}}\n          @list={{this.userList}}\n          @noDataMessage='No users'\n          @onSelect={{this.setUser}}\n          @onSearch={{this.onSearchUser}}\n          @label='Email'\n          @required={{true}}\n          @key='email'\n          @debounce={{this.debounceTime}}\n          @model={{this.licenseeChangeset}}\n          @pageSize={{this.recordPageSize}}\n          @hasNextPage={{this.hasNextUsersPage}}\n          @onLoadMore={{this.fetchUsers}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          @description='An account will be granted access, either by using an existing one or creating a new one.'\n        />\n  \n        <PtlInput\n          @type='text'\n          @label='First name'\n          @key='firstName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          disabled={{this.createNewLicensee.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Last name'\n          @key='lastName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          disabled={{this.createNewLicensee.isRunning}}\n        />\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showCreateLicenseeModal) false)}}\n        >\n          Cancel\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.createNewLicensee.isRunning}}\n          {{on 'click' (perform this.createNewLicensee this.licenseeChangeset)}}\n        >\n          {{#if this.createNewLicensee.isRunning}}\n            Creating &hellip;\n          {{else}}\n            Create Licensee\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"kmNcn3UE\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end\\\"],[12],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"showCreateLicenseeModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Create Licensee\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"admin-console__entity-table-container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,8],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No Licensees\\\",\\\"table-bordered\\\",true]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showCreateLicenseeModal\\\"]],[[[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,3],[[28,[37,4],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"modal-header\\\"],[4,[38,10],[[28,[37,11],[[30,0,[\\\"initChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Create Licensee\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Licensee name\\\",\\\"licenseeName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",\\\"Licensee's customers\\\",\\\"customers\\\",[28,[37,15],[\\\"name\\\"],null],[30,0,[\\\"unclaimedEntities\\\"]],[30,0,[\\\"licenseeChangeset\\\"]],[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,16],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@required\\\",\\\"@key\\\",\\\"@debounce\\\",\\\"@model\\\",\\\"@pageSize\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[[30,0,[\\\"fetchUsers\\\",\\\"isRunning\\\"]],[30,0,[\\\"userList\\\"]],\\\"No users\\\",[30,0,[\\\"setUser\\\"]],[30,0,[\\\"onSearchUser\\\"]],\\\"Email\\\",true,\\\"email\\\",[30,0,[\\\"debounceTime\\\"]],[30,0,[\\\"licenseeChangeset\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"hasNextUsersPage\\\"]],[30,0,[\\\"fetchUsers\\\"]],[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null],\\\"An account will be granted access, either by using an existing one or creating a new one.\\\"]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"First name\\\",\\\"firstName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Last name\\\",\\\"lastName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"showCreateLicenseeModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        Cancel\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"createNewLicensee\\\"]],[30,0,[\\\"licenseeChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]],[[[1,\\\"          Creating …\\\\n\\\"]],[]],[[[1,\\\"          Create Licensee\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"array\\\",\\\"new-combo-box\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/licensees/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/licensees/licensee\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='d-flex align-items-center'>\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n  \n      <div class='ms-auto'>\n  \n      </div>\n    </div>\n  \n    <div class='width--small mb-3'>\n      <div class='d-flex align-items-center justify-content-center mb-3'>\n        <h3 class='m-0'>Licensee users</h3>\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap ms-auto'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddNewLicenseeModal) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;Add new Licensee user\n        </button>\n      </div>\n      <PaginationTable\n        @tableHeader={{this.usersTableHeader}}\n        @tableData={{this.usersTableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No Users'\n        @class='table-bordered'\n        @hidePagination={{true}}\n      />\n    </div>\n  \n    <div class='width--small mb-3'>\n      <div class='d-flex align-items-center justify-content-center mb-3'>\n        <h3 class='m-0'>Licensee customers</h3>\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap ms-auto'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddNewCustomerModal) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;Associate new customers\n        </button>\n      </div>\n      <PaginationTable\n        @tableHeader={{this.tableHeader}}\n        @tableData={{this.tableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No Customers'\n        @class='table-bordered'\n        @hidePagination={{true}}\n      />\n    </div>\n  {{/if}}\n  \n  {{#if this.showAddNewCustomerModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          Associate customers to Licensee\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <PowerSelectMultiple\n          @options={{this.unclaimedEntities}}\n          @selected={{this.newCustomersToAdd}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.addNewCustomerToLicensee.isRunning}}\n          @onChange={{fn (mut this.newCustomersToAdd)}}\n          as |entity|\n        >\n          {{entity.name}}\n          {{#if (includes entity.entityLinkedAttributes 'canUseBuildaPrice')}}\n            - BP\n          {{else if\n            (includes entity.entityLinkedAttributes 'canUseFinancialReporting')\n          }}\n            - FP\n          {{else}}\n            - Disabled\n          {{/if}}\n        </PowerSelectMultiple>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showAddNewCustomerModal) false)}}\n        >\n          Cancel\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewCustomerToLicensee.isRunning}}\n          {{on 'click' (perform this.addNewCustomerToLicensee)}}\n        >\n          {{#if this.addNewCustomerToLicensee.isRunning}}\n            Associating &hellip;\n          {{else}}\n            Associate customers\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showAddNewLicenseeModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div hidden {{did-insert (perform this.initChangeset)}} />\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          Add new licensee user\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <NewComboBox\n          @isLoading={{this.fetchUsers.isRunning}}\n          @list={{this.userList}}\n          @noDataMessage='No users'\n          @onSelect={{this.setUser}}\n          @onSearch={{this.onSearchUser}}\n          @label='Email'\n          @required={{true}}\n          @key='email'\n          @debounce={{this.debounceTime}}\n          @model={{this.licenseeChangeset}}\n          @pageSize={{this.recordPageSize}}\n          @hasNextPage={{this.hasNextUsersPage}}\n          @onLoadMore={{this.fetchUsers}}\n          @forceValidationVisible={{gt this.addNewLicenseeUser.performCount 0}}\n          @description='An account will be granted access, either by using an existing one or creating a new one.'\n        />\n        <PtlInput\n          @type='text'\n          @label='First name'\n          @key='firstName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.addNewLicenseeUser.performCount 0}}\n          disabled={{this.addNewLicenseeUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Last name'\n          @key='lastName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.addNewLicenseeUser.performCount 0}}\n          disabled={{this.addNewLicenseeUser.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showAddNewLicenseeModal) false)}}\n        >\n          Cancel\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewLicenseeUser.isRunning}}\n          {{on 'click' (perform this.addNewLicenseeUser)}}\n        >\n          {{#if this.addNewLicenseeUser.isRunning}}\n            Creating &hellip;\n          {{else}}\n            Create new user\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"IlySBEU1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"width--small mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Licensee users\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewLicenseeModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Add new Licensee user\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"usersTableHeader\\\"]],[30,0,[\\\"usersTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No Users\\\",\\\"table-bordered\\\",true]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"width--small mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Licensee customers\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewCustomerModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Associate new customers\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No Customers\\\",\\\"table-bordered\\\",true]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showAddNewCustomerModal\\\"]],[[[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Associate customers to Licensee\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,12],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"unclaimedEntities\\\"]],[30,0,[\\\"newCustomersToAdd\\\"]],true,\\\"name\\\",true,[30,0,[\\\"addNewCustomerToLicensee\\\",\\\"isRunning\\\"]],[28,[37,7],[[28,[37,8],[[30,0,[\\\"newCustomersToAdd\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,1,[\\\"entityLinkedAttributes\\\"]],\\\"canUseBuildaPrice\\\"],null],[[[1,\\\"          - BP\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,1,[\\\"entityLinkedAttributes\\\"]],\\\"canUseFinancialReporting\\\"],null],[[[1,\\\"          - FP\\\\n\\\"]],[]],[[[1,\\\"          - Disabled\\\\n        \\\"]],[]]]],[]]],[1,\\\"      \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewCustomerModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        Cancel\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewCustomerToLicensee\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"addNewCustomerToLicensee\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewCustomerToLicensee\\\",\\\"isRunning\\\"]],[[[1,\\\"          Associating …\\\\n\\\"]],[]],[[[1,\\\"          Associate customers\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showAddNewLicenseeModal\\\"]],[[[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,15],[[28,[37,14],[[30,0,[\\\"initChangeset\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Add new licensee user\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@required\\\",\\\"@key\\\",\\\"@debounce\\\",\\\"@model\\\",\\\"@pageSize\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[[30,0,[\\\"fetchUsers\\\",\\\"isRunning\\\"]],[30,0,[\\\"userList\\\"]],\\\"No users\\\",[30,0,[\\\"setUser\\\"]],[30,0,[\\\"onSearchUser\\\"]],\\\"Email\\\",true,\\\"email\\\",[30,0,[\\\"debounceTime\\\"]],[30,0,[\\\"licenseeChangeset\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"hasNextUsersPage\\\"]],[30,0,[\\\"fetchUsers\\\"]],[28,[37,17],[[30,0,[\\\"addNewLicenseeUser\\\",\\\"performCount\\\"]],0],null],\\\"An account will be granted access, either by using an existing one or creating a new one.\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"First name\\\",\\\"firstName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,17],[[30,0,[\\\"addNewLicenseeUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Last name\\\",\\\"lastName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,17],[[30,0,[\\\"addNewLicenseeUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewLicenseeModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        Cancel\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"addNewLicenseeUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]],[[[1,\\\"          Creating …\\\\n\\\"]],[]],[[[1,\\\"          Create new user\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"h3\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"power-select-multiple\\\",\\\"includes\\\",\\\"perform\\\",\\\"did-insert\\\",\\\"new-combo-box\\\",\\\"gt\\\",\\\"ptl-input\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/licensees/licensee.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/application\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.sessionData.isUsingLoginAs}}\n    <LoggedInAs />\n  {{/if}}\n  \n  {{#if this.sessionData.isUsingAdminMode}}\n    <AdminMode />\n  {{/if}}\n  \n  {{#if this.chargebee.subscriptionIsChanging}}\n    <ModalDialog\n      @onClose={{fn (mut this.chargebee.subscriptionIsChanging) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <p class='text-center'>Applying changes&hellip;</p>\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.invoicedCosts.confirmingDelete}}\n    <ModalDialog\n      @onClose={{this.invoicedCosts.dismissDelete}}\n      @overlayClass='modal'\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n      @translucentOverlay={{true}}\n    >\n      {{#if this.invoicedCosts.deleteTitle}}\n        <div class='modal-header'>\n          <h3 class='modal-title'>\n            {{this.invoicedCosts.deleteTitle}}\n          </h3>\n        </div>\n      {{/if}}\n  \n      <div class='modal-body'>\n        {{this.invoicedCosts.deleteMessage}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-danger text-white'\n          {{on 'click' this.invoicedCosts.confirmDelete}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.invoicedCosts.dismissDelete}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  <NotificationContainer @notifications={{this.notifications}} />\n  <BasicDropdownWormhole />\n  \n  <div class='body__container'>\n    {{outlet}}\n  </div>\n  */\n  {\n    \"id\": \"TTdDjSny\",\n    \"block\": \"[[[41,[30,0,[\\\"sessionData\\\",\\\"isUsingLoginAs\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"isUsingAdminMode\\\"]],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"chargebee\\\",\\\"subscriptionIsChanging\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,4],[[28,[37,5],[[30,0,[\\\"chargebee\\\",\\\"subscriptionIsChanging\\\"]]],null],false],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"Applying changes…\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoicedCosts\\\",\\\"confirmingDelete\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"invoicedCosts\\\",\\\"dismissDelete\\\"]],\\\"modal\\\",\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoicedCosts\\\",\\\"deleteTitle\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"invoicedCosts\\\",\\\"deleteTitle\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"invoicedCosts\\\",\\\"deleteMessage\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"invoicedCosts\\\",\\\"confirmDelete\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"invoicedCosts\\\",\\\"dismissDelete\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,13],null,[[\\\"@notifications\\\"],[[30,0,[\\\"notifications\\\"]]]],null],[1,\\\"\\\\n\\\"],[8,[39,14],null,null,null],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"body__container\\\"],[12],[1,\\\"\\\\n  \\\"],[46,[28,[37,16],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"if\\\",\\\"logged-in-as\\\",\\\"admin-mode\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"h3\\\",\\\"button\\\",\\\"on\\\",\\\"t\\\",\\\"notification-container\\\",\\\"basic-dropdown-wormhole\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/application.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/complete-pm-auth\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n  */\n  {\n    \"id\": \"i4tRYGuU\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"portal/templates/complete-pm-auth.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/complete-registration-cb\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='bg-dark bg-gradient'>\n    <div\n      class='min-vh-100 container d-flex justify-content-center align-items-center'\n    >\n      <div class='card shadow-lg' style='width: 600px;'>\n        <div class='card-body p-sm-5'>\n          <div class='w-100 d-flex justify-content-center'>\n            <img\n              class='w-50 align-self-center'\n              src={{this.platform.platform.fullLogo}}\n              alt={{this.platform.platform.name}}\n            />\n          </div>\n  \n          {{#if this.model.registrationData.isRunning}}\n            <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n          {{else if this.model.registrationData.value.error}}\n            {{! Handles errors thrown while fetching the registration data }}\n            {{#let this.model.registrationData.value.error as |error|}}\n              <p>\n                {{#if (eq error.code 'MISSING_TOKEN')}}\n                  The registration URL appears to be missing some data. Please\n                  make sure to paste the full link into your browser.\n                {{else if (eq error.code 'UNKNOWN_TOKEN')}}\n                  The registration URL appears to have incorrect data. Please make\n                  sure to paste the full link into your browser.\n                {{else if (eq error.code 'REGISTRATION_RESOLVED')}}\n                  This registration has already been completed. Please\n                  <LinkTo @route='login' class='link'>click here</LinkTo>\n                  to log in.\n                {{else}}\n                  An unknown error occurred.\n                {{/if}}\n              </p>\n            {{/let}}\n  \n          {{else if this.registrationError}}\n            {{! Handles errors thrown when attempting to complete the registration. }}\n            <p>\n              {{#if (eq this.registrationError.code 'REGISTRATION_RESOLVED')}}\n                This registration has already been completed. Please\n                <LinkTo @route='login' class='link'>click here</LinkTo>\n                to log in.\n              {{else}}\n                {{or\n                  this.registrationError.title\n                  'An error occurred while completing registration'\n                }}\n              {{/if}}\n            </p>\n  \n          {{else if this.registrationComplete}}\n            {{! Ready to log in }}\n            <p class='text-center'>\n              Congratulations! Your registration is complete.\n            </p>\n  \n            <div class='w-100 d-flex justify-content-center'>\n              <LinkTo\n                @route='login'\n                @query={{hash email=this.model.registrationData.value.email}}\n                class='btn btn-lg btn-primary'\n              >\n                Click here to go to login\n              </LinkTo>\n            </div>\n  \n          {{else}}\n            {{! Main registration completion form }}\n            {{#let this.model.registrationData.value as |data|}}\n              <form {{on 'submit' (perform this.submit)}}>\n                <p>\n                  Welcome\n                  {{data.firstName}}, thanks for registering\n                  <b>{{data.company}}</b>\n                  with\n                  <b>{{this.platform.platform.name}}</b>. Please fill in the\n                  following info to complete the registration.\n                </p>\n  \n                <p>\n                  You should receive an email from us (at\n                  <b>{{data.email}}</b>) with a code to confirm your email\n                  address.\n                </p>\n  \n                <div class='form-group mb-2'>\n                  <label for='confirmEmailCode'>Confirm email code</label>\n                  <Input\n                    id='confirmEmailCode'\n                    @value={{this.confirmEmailCode}}\n                    class='form-control form-control-lg\n                      {{unless this.confirmEmailCode \"is-invalid\"}}'\n                    placeholder='One time code'\n                  />\n                </div>\n  \n                {{#unless this.confirmEmailCode}}\n                  <div class='d-flex'>\n                    <LoadingButton\n                      type='button'\n                      class='btn btn-secondary btn-sm me-1'\n                      {{on 'click' (perform this.resendEmail)}}\n                      @isLoading={{this.resendEmail.isRunning}}\n                    >Resend confirmation code</LoadingButton>\n                    <button\n                      type='button'\n                      class='btn btn-secondary btn-sm'\n                      {{on 'click' this.openEmailChangeModal}}\n                    >Change email address</button>\n                  </div>\n                {{/unless}}\n  \n                <h2 class='mb-2 mt-3'>Account details</h2>\n                {{#if data.userExists}}\n                  <p>\n                    It looks like we already have an account for\n                    <b>{{data.email}}</b>. The existing account will gain access\n                    to\n                    <b>{{data.company}}</b>.\n                  </p>\n                  <p>\n                    {{#if this.sendPasswordReset.lastSuccessful.value}}\n                      Password reset email sent. Please continue the registration.\n                    {{else if this.sendPasswordReset.isRunning}}\n                      Sending password reset&hellip;\n                    {{else}}\n                      If you don't know your password please\n                      <a\n                        class='link'\n                        href='#'\n                        {{on 'click' (perform this.sendPasswordReset)}}\n                      >\n                        click here to reset your password.\n                      </a>\n                    {{/if}}\n                  </p>\n                {{else}}\n                  <div class='form-group mb-2'>\n                    <label for='password'>Password</label>\n                    <Input\n                      id='password'\n                      class='form-control\n                        {{if\n                          (and this.passwordInvalid this.showValidation)\n                          \"is-invalid\"\n                        }}'\n                      @type='password'\n                      @value={{this.password}}\n                    />\n                    <div class='form-text text-muted'>\n                      Password must be at least 10 characters long.\n                    </div>\n                  </div>\n  \n                  <div class='form-group mb-2'>\n                    <label for='passwordCheck'>Confirm password</label>\n                    <Input\n                      id='passwordCheck'\n                      class='form-control\n                        {{if\n                          (and this.passwordCheckInvalid this.showValidation)\n                          \"is-invalid\"\n                        }}'\n                      @type='password'\n                      @value={{this.passwordCheck}}\n                    />\n                    {{#if (and this.passwordCheckInvalid this.showValidation)}}\n                      <div class='invalid-feedback'>\n                        Passwords must match.\n                      </div>\n                    {{/if}}\n                  </div>\n                {{/if}}\n                <div class='w-100 d-flex justify-content-center'>\n                  <LoadingButton\n                    class='btn btn-primary btn-lg m-3'\n                    @isLoading={{this.submit.isRunning}}\n                    @action={{perform this.submit}}\n                  >\n                    Complete registration\n                  </LoadingButton>\n                </div>\n              </form>\n            {{/let}}\n          {{/if}}\n        </div>\n      </div>\n    </div>\n  </div>\n  \n  {{#if this.showChangeEmailModal}}\n    <ModalDialog\n      @onClose={{this.closeEmailChangeModal}}\n      @containerClass='block-module'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <p>\n        A new confirmation code will be sent and will replace any code sent to the\n        existing address.\n      </p>\n  \n      <div class='form-group'>\n        <label for='newEmail'>New email address</label>\n        <Input\n          id='newEmail'\n          @value={{this.newEmail}}\n          class='text-input text-input--stretch tabular-form-controls__cell\n            {{unless\n              (and this.newEmailIsValid this.showNewEmailValidation)\n              \"is-invalid\"\n            }}'\n          placeholder='your@email.com'\n        />\n      </div>\n  \n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on 'click' this.closeEmailChangeModal}}\n          >\n            Cancel\n          </button>\n  \n          <LoadingButton\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.changeEmail)}}\n            @isLoading={{this.changeEmail.isRunning}}\n          >Submit\n          </LoadingButton>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"gJ2eDHNF\",\n    \"block\": \"[[[10,0],[14,0,\\\"bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"min-vh-100 container d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 600px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"w-100 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,0,\\\"w-50 align-self-center\\\"],[15,\\\"src\\\",[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"fullLogo\\\"]]],[15,\\\"alt\\\",[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"name\\\"]]],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,3],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\",\\\"error\\\"]],[[[44,[[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\",\\\"error\\\"]]],[[[1,\\\"            \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"code\\\"]],\\\"MISSING_TOKEN\\\"],null],[[[1,\\\"                The registration URL appears to be missing some data. Please\\\\n                make sure to paste the full link into your browser.\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"code\\\"]],\\\"UNKNOWN_TOKEN\\\"],null],[[[1,\\\"                The registration URL appears to have incorrect data. Please make\\\\n                sure to paste the full link into your browser.\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"code\\\"]],\\\"REGISTRATION_RESOLVED\\\"],null],[[[1,\\\"                This registration has already been completed. Please\\\\n                \\\"],[8,[39,7],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"login\\\"]],[[\\\"default\\\"],[[[[1,\\\"click here\\\"]],[]]]]],[1,\\\"\\\\n                to log in.\\\\n\\\"]],[]],[[[1,\\\"                An unknown error occurred.\\\\n              \\\"]],[]]]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"registrationError\\\"]],[[[1,\\\"          \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"registrationError\\\",\\\"code\\\"]],\\\"REGISTRATION_RESOLVED\\\"],null],[[[1,\\\"              This registration has already been completed. Please\\\\n              \\\"],[8,[39,7],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"login\\\"]],[[\\\"default\\\"],[[[[1,\\\"click here\\\"]],[]]]]],[1,\\\"\\\\n              to log in.\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[[30,0,[\\\"registrationError\\\",\\\"title\\\"]],\\\"An error occurred while completing registration\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[30,0,[\\\"registrationComplete\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            Congratulations! Your registration is complete.\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"w-100 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[24,0,\\\"btn btn-lg btn-primary\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"login\\\",[28,[37,9],null,[[\\\"email\\\"],[[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\",\\\"email\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              Click here to go to login\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[44,[[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\"]]],[[[1,\\\"            \\\"],[11,\\\"form\\\"],[4,[38,11],[\\\"submit\\\",[28,[37,12],[[30,0,[\\\"submit\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                Welcome\\\\n                \\\"],[1,[30,2,[\\\"firstName\\\"]]],[1,\\\", thanks for registering\\\\n                \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"company\\\"]]],[13],[1,\\\"\\\\n                with\\\\n                \\\"],[10,\\\"b\\\"],[12],[1,[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"name\\\"]]],[13],[1,\\\". Please fill in the\\\\n                following info to complete the registration.\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                You should receive an email from us (at\\\\n                \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"email\\\"]]],[13],[1,\\\") with a code to confirm your email\\\\n                address.\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirmEmailCode\\\"],[12],[1,\\\"Confirm email code\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,1,\\\"confirmEmailCode\\\"],[16,0,[29,[\\\"form-control form-control-lg\\\\n                    \\\",[52,[51,[30,0,[\\\"confirmEmailCode\\\"]]],\\\"is-invalid\\\"]]]],[24,\\\"placeholder\\\",\\\"One time code\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"confirmEmailCode\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"confirmEmailCode\\\"]]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,17],[[24,0,\\\"btn btn-secondary btn-sm me-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"resendEmail\\\"]]],null]],null]],[[\\\"@isLoading\\\"],[[30,0,[\\\"resendEmail\\\",\\\"isRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Resend confirmation code\\\"]],[]]]]],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"openEmailChangeModal\\\"]]],null],[12],[1,\\\"Change email address\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"mb-2 mt-3\\\"],[12],[1,\\\"Account details\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"userExists\\\"]],[[[1,\\\"                \\\"],[10,2],[12],[1,\\\"\\\\n                  It looks like we already have an account for\\\\n                  \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"email\\\"]]],[13],[1,\\\". The existing account will gain access\\\\n                  to\\\\n                  \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"company\\\"]]],[13],[1,\\\".\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordReset\\\",\\\"lastSuccessful\\\",\\\"value\\\"]],[[[1,\\\"                    Password reset email sent. Please continue the registration.\\\\n\\\"]],[]],[[[41,[30,0,[\\\"sendPasswordReset\\\",\\\"isRunning\\\"]],[[[1,\\\"                    Sending password reset…\\\\n\\\"]],[]],[[[1,\\\"                    If you don't know your password please\\\\n                    \\\"],[11,3],[24,0,\\\"link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"sendPasswordReset\\\"]]],null]],null],[12],[1,\\\"\\\\n                      click here to reset your password.\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"]],[]]]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"password\\\"],[12],[1,\\\"Password\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],[[24,1,\\\"password\\\"],[16,0,[29,[\\\"form-control\\\\n                      \\\",[52,[28,[37,21],[[30,0,[\\\"passwordInvalid\\\"]],[30,0,[\\\"showValidation\\\"]]],null],\\\"is-invalid\\\"]]]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"password\\\"]]]],null],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                    Password must be at least 10 characters long.\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"passwordCheck\\\"],[12],[1,\\\"Confirm password\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],[[24,1,\\\"passwordCheck\\\"],[16,0,[29,[\\\"form-control\\\\n                      \\\",[52,[28,[37,21],[[30,0,[\\\"passwordCheckInvalid\\\"]],[30,0,[\\\"showValidation\\\"]]],null],\\\"is-invalid\\\"]]]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"passwordCheck\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"passwordCheckInvalid\\\"]],[30,0,[\\\"showValidation\\\"]]],null],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"invalid-feedback\\\"],[12],[1,\\\"\\\\n                      Passwords must match.\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[10,0],[14,0,\\\"w-100 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,17],[[24,0,\\\"btn btn-primary btn-lg m-3\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\"],[[30,0,[\\\"submit\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"submit\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  Complete registration\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"        \\\"]],[]]]],[]]]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showChangeEmailModal\\\"]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"closeEmailChangeModal\\\"]],\\\"block-module\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      A new confirmation code will be sent and will replace any code sent to the\\\\n      existing address.\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"newEmail\\\"],[12],[1,\\\"New email address\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,1,\\\"newEmail\\\"],[16,0,[29,[\\\"text-input text-input--stretch tabular-form-controls__cell\\\\n          \\\",[52,[51,[28,[37,21],[[30,0,[\\\"newEmailIsValid\\\"]],[30,0,[\\\"showNewEmailValidation\\\"]]],null]],\\\"is-invalid\\\"]]]],[24,\\\"placeholder\\\",\\\"your@email.com\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newEmail\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"closeEmailChangeModal\\\"]]],null],[12],[1,\\\"\\\\n          Cancel\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,17],[[24,0,\\\"btn btn-primary ms-2\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"changeEmail\\\"]]],null]],null]],[[\\\"@isLoading\\\"],[[30,0,[\\\"changeEmail\\\",\\\"isRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Submit\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"error\\\",\\\"data\\\"],false,[\\\"div\\\",\\\"img\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"let\\\",\\\"p\\\",\\\"eq\\\",\\\"link-to\\\",\\\"or\\\",\\\"hash\\\",\\\"form\\\",\\\"on\\\",\\\"perform\\\",\\\"b\\\",\\\"label\\\",\\\"input\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"button\\\",\\\"h2\\\",\\\"a\\\",\\\"and\\\",\\\"modal-dialog\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/templates/complete-registration-cb.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/embed\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='page__container-content'>\n    {{outlet}}\n  </main>\n  */\n  {\n    \"id\": \"ILkP0x2E\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n  \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"main\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/embed.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/embed/error\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'>\n    <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n    <h1 class='mb-0'>Oops</h1>\n    <h3>Something went wrong</h3>\n  </div>\n  */\n  {\n    \"id\": \"YbjMUpOK\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops\\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Something went wrong\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/embed/error.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity-access-denied\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='text-center'>\n    <h1>Entity Access Denied</h1>\n    <p>Sorry, you don't have permission to access this entity.</p>\n  </main>\n  */\n  {\n    \"id\": \"el1S5nQw\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[12],[1,\\\"Entity Access Denied\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Sorry, you don't have permission to access this entity.\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"main\\\",\\\"h1\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity-access-denied.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    {{#if (media 'isDesktop')}}\n      <TitleBar>\n        <div\n          class='d-flex align-items-center mx-3 h-100'\n          {{! ember wormhole id }}\n          id='title-bar__content'\n        ></div>\n      </TitleBar>\n    {{else}}\n      <MobileTitleBar>\n        <div class='mobile-title-bar__left'>\n          <FromElsewhere @name='mobile-title-bar-left-content' />\n        </div>\n        <div class='mobile-title-bar__middle'>\n          <FromElsewhere @name='mobile-title-bar-middle-content' />\n        </div>\n        <div class='mobile-title-bar__right'>\n          <FromElsewhere @name='mobile-title-bar-right-content' />\n          <MobileTitleBar::Avatar>\n            <FromElsewhere @name='mobile-title-bar-avatar-content' />\n          </MobileTitleBar::Avatar>\n        </div>\n      </MobileTitleBar>\n      <MobileSideMenu>\n        <FromElsewhere @name='mobile-side-menu-content' />\n      </MobileSideMenu>\n    {{/if}}\n  \n    {{#if this.systemAnnouncements.announcementData.length}}\n      <ModalDialog\n        data-test-announcements-modal\n        @onClose={{this.systemAnnouncements.closeAnnouncementModal}}\n        @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n      >\n        <div class='modal-header'>\n          <h3 class='modal-title'>\n            {{t 'common.Announcements'}}\n          </h3>\n        </div>\n  \n        <div class='modal-body'>\n          {{#each\n            this.systemAnnouncements.announcementData\n            as |announcement idx|\n          }}\n            {{#if idx}}\n              <hr class='my-2 border-secondary' />\n            {{/if}}\n            <div\n              class='ql-container ql-editor'\n              style='white-space: normal !important;'\n            >\n              <h6 class='mb-2'>{{announcement.title}}</h6>\n              {{html-safe announcement.message}}\n            </div>\n          {{/each}}\n        </div>\n  \n        <div class='modal-footer text-right'>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            data-test-announcements-close\n            {{on 'click' this.systemAnnouncements.closeAnnouncementModal}}\n          >\n            {{t 'common.Close'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary text-white'\n            data-test-announcements-dismiss\n            {{on 'click' this.systemAnnouncements.dismissAnnouncementModal}}\n          >\n            {{t 'common.Dismiss'}}\n          </button>\n        </div>\n      </ModalDialog>\n    {{/if}}\n  \n    {{outlet}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Y2zKSThZ\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[8,[39,3],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mx-3 h-100\\\"],[14,1,\\\"title-bar__content\\\"],[12],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,5],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mobile-title-bar__left\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-left-content\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mobile-title-bar__middle\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-middle-content\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mobile-title-bar__right\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-right-content\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,7],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-avatar-content\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[39,8],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-side-menu-content\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"systemAnnouncements\\\",\\\"announcementData\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,\\\"data-test-announcements-modal\\\",\\\"\\\"]],[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"systemAnnouncements\\\",\\\"closeAnnouncementModal\\\"]],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"common.Announcements\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"systemAnnouncements\\\",\\\"announcementData\\\"]]],null]],null],null,[[[41,[30,2],[[[1,\\\"            \\\"],[10,\\\"hr\\\"],[14,0,\\\"my-2 border-secondary\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"ql-container ql-editor\\\"],[14,5,\\\"white-space: normal !important;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h6\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,16],[[30,1,[\\\"message\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,\\\"data-test-announcements-close\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,18],[\\\"click\\\",[30,0,[\\\"systemAnnouncements\\\",\\\"closeAnnouncementModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[24,\\\"data-test-announcements-dismiss\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,18],[\\\"click\\\",[30,0,[\\\"systemAnnouncements\\\",\\\"dismissAnnouncementModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"common.Dismiss\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,20],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"announcement\\\",\\\"idx\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"media\\\",\\\"title-bar\\\",\\\"div\\\",\\\"mobile-title-bar\\\",\\\"from-elsewhere\\\",\\\"mobile-title-bar/avatar\\\",\\\"mobile-side-menu\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"t\\\",\\\"each\\\",\\\"-track-array\\\",\\\"hr\\\",\\\"h6\\\",\\\"html-safe\\\",\\\"button\\\",\\\"on\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <EmberWormhole @to='title-bar__content'>\n      <TitleBarTabs @tabs={{this.tabs}} />\n      {{#if (includes-feature-flags 'entityIsCalStudent')}}\n        <a\n          href='https://buildaprice.zendesk.com/hc/en-us/categories/11424152235791-Education'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon\n            {{if (includes-feature-flags \"entityHasSupport\") \"me-2\"}}'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='info-circle' />\n        </a>\n      {{/if}}\n  \n      {{#if (includes-feature-flags 'entityHasSupport')}}\n        <a\n          href='https://buildaprice.zendesk.com/hc/en-us'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='question-circle' />\n        </a>\n      {{/if}}\n    </EmberWormhole>\n    <div class='page__container'>\n      {{outlet}}\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-avatar-content'\n      @send={{component\n        'mobile-title-bar/avatar/avatar-link'\n        label='Support'\n        link='https://buildaprice.zendesk.com/hc/en-us'\n      }}\n    />\n  \n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  \n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'mobile-side-bar' tabs=this.tabs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"BaKz5Vzu\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@to\\\"],[\\\"title-bar__content\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@tabs\\\"],[[30,0,[\\\"tabs\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"entityIsCalStudent\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us/categories/11424152235791-Education\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[15,0,[29,[\\\"d-flex align-items-center link-light title-bar__icon\\\\n          \\\",[52,[28,[37,4],[\\\"entityHasSupport\\\"],null],\\\"me-2\\\"]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"entityHasSupport\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,10],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-avatar-content\\\",[50,\\\"mobile-title-bar/avatar/avatar-link\\\",0,null,[[\\\"label\\\",\\\"link\\\"],[\\\"Support\\\",\\\"https://buildaprice.zendesk.com/hc/en-us\\\"]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,10],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"mobile-side-bar\\\",0,null,[[\\\"tabs\\\"],[[30,0,[\\\"tabs\\\"]]]]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"ember-wormhole\\\",\\\"title-bar-tabs\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"main\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"PTLKTgtf\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,6],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/dashboard/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <div class='d-flex flex-column'>\n      {{#if (media 'isDesktop')}}\n        {{#if (includes-feature-flags 'canUseIntegrations' 'canUsePlaceMakers')}}\n          {{#unless this.model.pmConnection.isRunning}}\n            {{#if\n              (and\n                this.model.pmConnection.last.value\n                (not this.model.pmConnection.last.value.isConnected)\n              )\n            }}\n              <div\n                class='alert alert-warning d-flex flex-row align-items-center justify-content-center m-0 mb-3'\n                role='alert'\n              >\n                {{t\n                  'entity.builda-price.dashboard.Your PlaceMakers connection has expired'\n                }}\n                <LinkTo\n                  @route='entity.settings.integrations'\n                  class='btn btn-outline-primary btn-sm ms-2'\n                >{{t 'common.Reconnect'}}</LinkTo>\n              </div>\n            {{/if}}\n          {{/unless}}\n        {{/if}}\n      {{/if}}\n  \n      <ReferralPromotionButton class='mb-3' />\n      <EducationPromotionButton class='mb-3' />\n    </div>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex'>\n        <ReportEngineElementContainer\n          @elements={{this.model.dashboardReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  \n  </article>\n  */\n  {\n    \"id\": \"m6vYcOvy\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[41,[28,[37,4],[\\\"canUseIntegrations\\\",\\\"canUsePlaceMakers\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"pmConnection\\\",\\\"isRunning\\\"]]],[[[41,[28,[37,6],[[30,0,[\\\"model\\\",\\\"pmConnection\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,7],[[30,0,[\\\"model\\\",\\\"pmConnection\\\",\\\"last\\\",\\\"value\\\",\\\"isConnected\\\"]]],null]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-warning d-flex flex-row align-items-center justify-content-center m-0 mb-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"entity.builda-price.dashboard.Your PlaceMakers connection has expired\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,9],[[24,0,\\\"btn btn-outline-primary btn-sm ms-2\\\"]],[[\\\"@route\\\"],[\\\"entity.settings.integrations\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.Reconnect\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,10],[[24,0,\\\"mb-3\\\"]],null,null],[1,\\\"\\\\n    \\\"],[8,[39,11],[[24,0,\\\"mb-3\\\"]],null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"dashboardReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"media\\\",\\\"includes-feature-flags\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\",\\\"t\\\",\\\"link-to\\\",\\\"referral-promotion-button\\\",\\\"education-promotion-button\\\",\\\"loading-icon\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/dashboard/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"H5+Qt3/i\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/communications\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='ms-3 page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"ZudRSC7z\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"ms-3 page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,6],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/communications.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"1iNGsuSj\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,6],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n        {{/if}}\n      </header>\n      <header class='mb-1 pb-2 d-flex flex-row-reverse'>\n        {{#if (includes-feature-flags 'canManageFileStorage')}}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.uploadModalVisible) true)}}\n            data-test-documents-project-add-new-attachments\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Upload'}}\n          </button>\n        {{/if}}\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-documents-project-search\n        />\n      </header>\n      <DocumentsTable\n        @searchString={{this.searchString}}\n        @users={{this.model.users.last.value}}\n        @uploadModalVisible={{this.uploadModalVisible}}\n        @tableData={{this.tableData}}\n        @onUploadComplete={{this.onUploadComplete}}\n        @downloadAttachments={{this.downloadAttachments}}\n        @parent={{this.sessionData.entity}}\n      />\n    </article>\n  {{/if}}\n  */\n  {\n    \"id\": \"LxuhZRn2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-flex flex-row-reverse\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canManageFileStorage\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-documents-project-add-new-attachments\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"uploadModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Upload\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,13],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"data-test-documents-project-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,14],null,[[\\\"@searchString\\\",\\\"@users\\\",\\\"@uploadModalVisible\\\",\\\"@tableData\\\",\\\"@onUploadComplete\\\",\\\"@downloadAttachments\\\",\\\"@parent\\\"],[[30,0,[\\\"searchString\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"uploadModalVisible\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"downloadAttachments\\\"]],[30,0,[\\\"sessionData\\\",\\\"entity\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"documents-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/project-file\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"xPBIZNZN\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/project-file.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/project-file/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n        {{/if}}\n      </header>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n  \n      <header class='mb-1 pb-2 d-flex flex-row-reverse'>\n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageFileStorage'\n          )\n        }}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.uploadModalVisible) true)}}\n            data-test-documents-task-add-new-attachments\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Upload'}}\n          </button>\n        {{/if}}\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-documents-task-search\n        />\n      </header>\n      <DocumentsTable\n        @searchString={{this.searchString}}\n        @users={{this.model.users.last.value}}\n        @uploadModalVisible={{this.uploadModalVisible}}\n        @tableData={{this.tableData}}\n        @onUploadComplete={{this.onUploadComplete}}\n        @downloadAttachments={{this.downloadAttachments}}\n        @project={{this.model.project.last.value}}\n        @parent={{this.model.project.last.value}}\n      />\n    </article>\n  {{/if}}\n  */\n  {\n    \"id\": \"3da+K4at\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-flex flex-row-reverse\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-documents-task-add-new-attachments\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"uploadModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Upload\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,14],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"data-test-documents-task-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,15],null,[[\\\"@searchString\\\",\\\"@users\\\",\\\"@uploadModalVisible\\\",\\\"@tableData\\\",\\\"@onUploadComplete\\\",\\\"@downloadAttachments\\\",\\\"@project\\\",\\\"@parent\\\"],[[30,0,[\\\"searchString\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"uploadModalVisible\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"downloadAttachments\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"page-title-breadcrumbs\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"documents-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/project-file/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/project-file/task-file\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n        {{/if}}\n      </header>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n  \n      <header class='mb-1 pb-2 d-flex flex-row-reverse'>\n        {{#if\n          (includes-feature-flags\n            this.model.task.last.value 'canManageFileStorage'\n          )\n        }}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.uploadModalVisible) true)}}\n            data-test-documents-task-add-new-attachments\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Upload'}}\n          </button>\n        {{/if}}\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-documents-task-search\n        />\n      </header>\n      <DocumentsTable\n        @searchString={{this.searchString}}\n        @users={{this.model.users.last.value}}\n        @uploadModalVisible={{this.uploadModalVisible}}\n        @tableData={{this.tableData}}\n        @onUploadComplete={{this.onUploadComplete}}\n        @downloadAttachments={{this.downloadAttachments}}\n        @project={{this.project}}\n        @parent={{this.model.task.last.value}}\n      />\n    </article>\n  {{/if}}\n  */\n  {\n    \"id\": \"kc3QVGsB\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-flex flex-row-reverse\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-documents-task-add-new-attachments\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"uploadModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Upload\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,14],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"data-test-documents-task-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,15],null,[[\\\"@searchString\\\",\\\"@users\\\",\\\"@uploadModalVisible\\\",\\\"@tableData\\\",\\\"@onUploadComplete\\\",\\\"@downloadAttachments\\\",\\\"@project\\\",\\\"@parent\\\"],[[30,0,[\\\"searchString\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"uploadModalVisible\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"downloadAttachments\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"page-title-breadcrumbs\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"documents-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/project-file/task-file.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Operations::Incoming />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"fT6n+QzL\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/operations/incoming\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"56vSM9T5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills-legacy\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if\n    (eq\n      this.router.currentRouteName\n      'entity.builda-price.operations.incoming.bills-legacy.bill'\n    )\n  }}\n    {{outlet}}\n  {{else}}\n    {{#unless (media 'isDesktop')}}\n      <ToElsewhere\n        @named='mobile-title-bar-middle-content'\n        @send={{component 'mobile-title-bar/page-title' title=(t 'common.Bills')}}\n      />\n    {{/unless}}\n    <article class='m-4'>\n      <div class='border-bottom mb-3 d-flex align-items-center pb-3'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='h1 m-0'>\n            {{t 'common.Bills'}}\n            <sup class='fs-6 text-muted'>LEGACY</sup>\n          </h1>\n        {{/if}}\n  \n        <div class='ms-auto'>\n          {{#if (media 'isDesktop')}}\n            {{! Format toggle, switches between card view and table view }}\n            <div class='invoice-selector__radio'>\n              <input\n                id='condensed-filter--condensed'\n                type='radio'\n                checked={{eq this.condensedView false}}\n                onchange={{fn (mut this.condensedView) false}}\n              />\n              <label for='condensed-filter--condensed'>\n                <FaIcon @icon='list-ul' @fixedWidth={{true}} />\n              </label>\n            </div>\n            <div class='invoice-selector__radio'>\n              <input\n                id='condensed-filter--card'\n                type='radio'\n                checked={{eq this.condensedView true}}\n                onchange={{fn (mut this.condensedView) true}}\n              />\n              <label for='condensed-filter--card'>\n                <FaIcon @icon='table' @fixedWidth={{true}} />\n              </label>\n            </div>\n          {{/if}}\n          {{#if this.hasWriteLevel}}\n            {{! Import dropdown }}\n            <OverlaidDropdown\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.Import a bill'\n              }}\n              @title={{t\n                'entity.builda-price.operations.incoming.bills-legacy.Bill format'\n              }}\n              @class='button--spaced'\n              @buttonClasses='button button--secondary file-input-button'\n            >\n              {{#if (eq this.sessionData.entity.region 'NZL')}}\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.bunnings}}\n                >Bunnings CSV </FileImporter>\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.carters}}\n                >Carters CSV </FileImporter>\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.mitre}}\n                >Mitre 10 CSV </FileImporter>\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.placemakers}}\n                >PlaceMakers CSV</FileImporter>\n              {{/if}}\n              <FileImporter\n                @class='overlaid-dropdown__option'\n                @import={{action 'handleImportInvoices'}}\n                @parser={{this.parsers.xero}}\n              >Xero CSV </FileImporter>\n            </OverlaidDropdown>\n  \n            {{! New bill button }}\n            <button\n              class='button button--add button--spaced'\n              data-test-create-bill-button=''\n              type='button'\n              {{action\n                'transitionToBill'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                'new'\n              }}\n            >\n              {{t 'common.New bill'}}\n            </button>\n          {{/if}}\n        </div>\n  \n      </div>\n  \n      <div\n        class='alert alert-info d-flex align-items-center justify-content-center gap-2 text-center'\n        role='alert'\n      >\n        <span>We have upgraded the bills page with a faster experience.</span>\n        <LinkTo\n          @route='entity.builda-price.operations.incoming.bills'\n          class='alert-link text-decoration-underline'\n        >\n          Try it now!\n        </LinkTo>\n      </div>\n  \n      {{! Multiple invoice actions }}\n      <div class='invoice-selector__controls'>\n        {{#if this.hasWriteLevel}}\n          <div class='invoice-selector__controls-row'>\n            <button\n              class='button button--spaced'\n              disabled={{not this.invoices.length}}\n              type='button'\n              {{action 'toggleInvoicesSelected'}}\n            >\n              {{if\n                (and this.invoices.length this.allInvoicesSelected)\n                (t 'common.Deselect all')\n                (t 'common.Select all')\n              }}\n            </button>\n  \n            <OverlaidDropdown\n              @buttonText={{t 'common.Actions'}}\n              @class='button--spaced'\n              @disabled={{not this.selectedInvoices.length}}\n              @buttonClasses='button button--secondary'\n              data-test-bulk-actions\n              @title={{concat\n                this.selectedInvoices.length\n                ' '\n                (if\n                  (gt this.selectedInvoices.length 1)\n                  (t\n                    'entity.builda-price.operations.incoming.bills-legacy.selected bills'\n                  )\n                  (t\n                    'entity.builda-price.operations.incoming.bills-legacy.selected bill'\n                  )\n                )\n                ' '\n                (t 'common.with')\n                ' '\n                this.selectedInvoiceItems.length\n                ' '\n                (if\n                  (gt this.selectedInvoiceItems.length 1)\n                  (t 'common.items')\n                  (t 'common.item')\n                )\n              }}\n            >\n              {{#if (or this.isAutoMapping this.isSaving this.isXeroLoading)}}\n                <div class='overlaid-dropdown__option text-center'>\n                  <LoadingIcon @type='spinner' />\n                </div>\n              {{else}}\n                {{#unless (eq this.status 'ARCHIVED')}}\n                  {{#unless (eq this.status 'ACCEPTED')}}\n                    {{! Accept button }}\n                    <div\n                      class='overlaid-dropdown__option'\n                      {{action 'acceptSelectedInvoices'}}\n                      data-test-accept-bills=''\n                    >\n                      {{t\n                        'entity.builda-price.operations.incoming.bills-legacy.Accept invoices'\n                      }}\n                    </div>\n                  {{/unless}}\n  \n                  {{! Archive button }}\n                  <div\n                    class='overlaid-dropdown__option'\n                    {{action 'archiveSelectedInvoices'}}\n                    data-test-archive-bills=''\n                  >\n                    {{t\n                      'entity.builda-price.operations.incoming.bills-legacy.Archive invoices'\n                    }}\n                  </div>\n                {{/unless}}\n  \n                {{! Send to Xero button }}\n                {{#if this.xeroIntegration.ready}}\n                  <div\n                    class='overlaid-dropdown__option'\n                    {{action 'sendSelectedInvoicesToXero'}}\n                    data-test-send-bills-to-xero=''\n                  >\n                    {{t 'shared.bill.Send to Xero'}}\n                  </div>\n                {{/if}}\n                {{#if this.quickbooks.ready}}\n                  <div\n                    class='overlaid-dropdown__option'\n                    {{action 'sendSelectedInvoicesToQuickbooks'}}\n                    data-test-send-bills-to-quickbooks=''\n                  >\n                    {{t 'shared.bill.Send to QuickBooks'}}\n                  </div>\n                {{/if}}\n                {{! Auto Mapping button, show if there are any directives to use }}\n                <div\n                  class='overlaid-dropdown__option'\n                  {{action 'autoMapSelected'}}\n                  data-test-auto-map-bills=''\n                >\n                  {{t\n                    'entity.builda-price.operations.incoming.bills-legacy.Allocate (Auto Map)'\n                  }}\n                </div>\n  \n                <div\n                  class='overlaid-dropdown__option'\n                  {{action this.toggleProperty 'allocatingItems'}}\n                  data-test-allocate-items=''\n                >\n                  {{t\n                    'entity.builda-price.operations.incoming.bills-legacy.Allocate (Manually)'\n                  }}\n                </div>\n  \n                <div\n                  class='overlaid-dropdown__option button--delete'\n                  {{action\n                    this.toggleProperty\n                    'invoiceDeleteConfirmModalVisible'\n                  }}\n                  data-test-attempt-delete-bills=''\n                >\n                  {{t 'common.Delete'}}\n                </div>\n              {{/if}}\n            </OverlaidDropdown>\n          </div>\n        {{/if}}\n  \n        <div class='invoice-selector__controls-row float-end'>\n          {{#if this.jsFilterByDate}}\n            <PageFilters::Pill\n              @onClose={{fn (mut this.jsFilterByDate) (not this.jsFilterByDate)}}\n            >\n              {{t 'common.Date range'}}:\n              {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n              {{t 'common.to'}}\n              {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n            </PageFilters::Pill>\n          {{/if}}\n          {{#if (not-eq this.status 'ALL')}}\n            <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n              {{t 'common.Status'}}:\n              {{convert-to-title-case this.status}}\n            </PageFilters::Pill>\n          {{/if}}\n          {{#if this.unallocatedOnly}}\n            <PageFilters::Pill @onClose={{fn (mut this.unallocatedOnly) false}}>\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Unallocated bills'\n              }}\n            </PageFilters::Pill>\n          {{/if}}\n          {{! Filters }}\n          <PageFilters class='button--spaced' @align='right'>\n            {{! Date range }}\n  \n            <PageFilters::Item @label={{t 'common.Date range'}}>\n              <DateRangeSelector\n                @disabled={{if this.jsFilterByDate false true}}\n                @align='right'\n                @startDate={{this.jsStartDate}}\n                @endDate={{this.jsEndDate}}\n                @onApply={{action 'setDateRange'}}\n              />\n            </PageFilters::Item>\n  \n            <PageFilters::Item>\n              <label>\n                <Input\n                  aria-label='All Data'\n                  @type='checkbox'\n                  @checked={{this.jsFilterByDate}}\n                  {{on\n                    'click'\n                    (fn (mut this.jsFilterByDate) (not this.jsFilterByDate))\n                  }}\n                />\n                {{t 'common.Filter by date'}}\n              </label>\n            </PageFilters::Item>\n  \n            {{! Status filter }}\n            <PageFilters::Item @label={{t 'common.Status'}}>\n              <SelectInput\n                @value={{this.status}}\n                @action={{fn (mut this.status)}}\n                @class='select-box'\n                data-test-bill-status-filter\n                as |si|\n              >\n                <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n                <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n                <si.option @value='ACCEPTED'>{{t 'common.Accepted'}}</si.option>\n                <si.option @value='ARCHIVED'>{{t 'common.Archived'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held'}}</si.option>\n                <si.option @value='PAID'>{{t 'common.Paid'}}</si.option>\n              </SelectInput>\n            </PageFilters::Item>\n  \n            {{! Unallocated invoice filter }}\n  \n            <PageFilters::Item>\n              <label>\n                <Input @type='checkbox' @checked={{this.unallocatedOnly}} />\n                {{t\n                  'entity.builda-price.operations.incoming.bills-legacy.Only show unallocated bills'\n                }}\n              </label>\n            </PageFilters::Item>\n          </PageFilters>\n  \n          {{! Search box }}\n          <span class='invoice-selector__controls-search button--spaced'>\n            <FaIcon @icon='search' />\n            <input\n              type='search'\n              value={{this.search}}\n              {{did-insert (action 'setFocus')}}\n              {{on 'input' (action 'onSearchInput')}}\n              class='text-input'\n              placeholder={{t\n                'entity.builda-price.operations.incoming.bills-legacy.supplierReference'\n              }}\n            />\n          </span>\n        </div>\n      </div>\n  \n      <div class='invoice-selector__invoice-list'>\n        {{#if this.condensedView}}\n          {{! Table view }}\n          <ActiveTable\n            @columns={{this.tableColumns}}\n            @sortedBy={{this.sortedBy}}\n            @class='supplier-invoice-table-pm'\n          >\n            <LazyEach\n              @items={{this.invoices}}\n              @automatic={{true}}\n              @emptyText={{t 'common.No bills'}}\n              @itemDisplayName={{t 'common.bills'}}\n              as |invoice identifier|\n            >\n              <SupplierInvoicesPm::InvoiceRow\n                @class={{identifier}}\n                @invoice={{invoice}}\n                @showXeroButton={{this.xeroIntegration.ready}}\n                @hasWriteLevel={{this.hasWriteLevel}}\n                @hasDuplicate={{invoice.hasDuplicate}}\n                @editInvoice={{action\n                  'transitionToBill'\n                  'entity.builda-price.operations.incoming.bills-legacy.bill'\n                  invoice.id\n                }}\n                data-test-bill={{or invoice.id 'new'}}\n                data-test-edit-bill={{or invoice.id 'new'}}\n                @showBadges={{this.showBadgesColumn}}\n              />\n            </LazyEach>\n          </ActiveTable>\n  \n          {{#if (eq this.model.invoices.length this.model.maxNumberOfBills)}}\n            <div class='alert alert-info' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{t\n                  'entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills'\n                }}\n              </span>\n            </div>\n          {{/if}}\n  \n        {{else}}\n  \n          {{! Card based view }}\n          {{#if this.groupedInvoices.length}}\n            <LazyEach\n              @items={{this.groupedInvoices}}\n              @automatic={{true}}\n              @initialNumberOfItemsVisible='3'\n              @increment='2'\n              @itemDisplayName={{t 'common.suppliers'}}\n              as |invoiceGroup groupIdentifier|\n            >\n              <div class='invoice-selector__invoice-title'>\n                <div class='invoice-selector__invoice-line'></div>\n                <div class='invoice-selector__invoice-issuer'>{{or\n                    invoiceGroup.issuer\n                    'Unspecified Issuer'\n                  }}</div>\n                <div class='invoice-selector__invoice-line'></div>\n              </div>\n  \n              <LazyEach\n                @items={{invoiceGroup.invoices}}\n                @automatic={{true}}\n                @initialNumberOfItemsVisible='4'\n                @increment='8'\n                @itemDisplayName={{t 'common.bills'}}\n                as |invoice identifier|\n              >\n                <SupplierInvoicesPm::Invoice\n                  @class={{identifier}}\n                  @invoice={{invoice}}\n                  @xeroReady={{this.xeroIntegration.ready}}\n                  @hasWriteLevel={{this.hasWriteLevel}}\n                  @expandedByDefault={{true}}\n                  @hasDuplicate={{invoice.hasDuplicate}}\n                  @editInvoice={{action\n                    'transitionToBill'\n                    'entity.builda-price.operations.incoming.bills-legacy.bill'\n                    invoice.id\n                  }}\n                  data-test-bill={{or invoice.id 'new'}}\n                />\n              </LazyEach>\n  \n              <span class='{{groupIdentifier}}'></span>\n  \n            </LazyEach>\n  \n            {{#if (eq this.model.invoices.length this.model.maxNumberOfBills)}}\n              <div class='alert alert-info' role='alert'>\n                <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n                <span class='me-2'>\n                  {{t\n                    'entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills'\n                  }}\n                </span>\n              </div>\n            {{/if}}\n  \n          {{else}}\n  \n            {{! Tell the user that there are no invoices (there may not be any, or just none that match the search) }}\n            <div class='error-page error-page--no-data'>\n              <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n              <h3 class='h3 error-page__title'>{{t 'common.No bills'}}</h3>\n            </div>\n          {{/if}}\n        {{/if}}\n      </div>\n    </article>\n  \n    {{! Unmapped accept warning }}\n    {{#if this.unmappedInvoiceWarningModalVisible}}\n      <ModalDialog\n        @overlayClass='modal'\n        @onClose={{fn (mut this.confirmCallback) false}}\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n      >\n        <p>{{t\n            'entity.builda-price.operations.incoming.bills-legacy.youAreAboutToAcceptAnInvoiceThatIsNotCompletelyAllocatedDoYouWantToContinue'\n          }}</p>\n  \n        <footer class='block-module__footer'>\n          <label><Input\n              @type='checkbox'\n              @checked={{this.doNotWarnForUnmappedInvoice}}\n            />\n            {{t 'shared.bill.Do not warn me again'}}</label>\n          <button\n            class='float-end button button--spaced'\n            data-test-confirm-unmapped-bills\n            type='button'\n            {{on 'click' (fn this.confirmCallback true)}}\n          >{{t 'common.Continue'}}</button>\n          <button\n            class='float-end button button--plain button--spaced'\n            type='button'\n            {{on 'click' (fn this.confirmCallback false)}}\n          >{{t 'common.Cancel'}}</button>\n        </footer>\n      </ModalDialog>\n    {{/if}}\n  \n    <ConfirmDelete\n      @visible={{this.invoiceDeleteConfirmModalVisible}}\n      @title={{if\n        this.deleteConfirmText\n        (t 'common.Delete bills')\n        (t 'common.Delete bill')\n      }}\n      @messages={{this.deleteMessages}}\n      @confirmText={{this.deleteConfirmText}}\n      @deleteButtonText={{if\n        this.deleteConfirmText\n        (t 'common.Delete bills')\n        (t 'common.Delete bill')\n      }}\n      @deletingButtonText={{t 'common.Deleting'}}\n      @onDelete={{action 'deleteSelectedInvoices'}}\n      @onCancel={{fn (mut this.invoiceDeleteConfirmModalVisible) false}}\n    ><p>{{t 'shared.estimate.This action cannot be undone'}}</p></ConfirmDelete>\n  \n    {{! Project/task selection modal }}\n    {{#if this.allocatingItems}}\n      <AllocationSelector\n        @onCancel={{action this.set 'allocatingItems' false}}\n        @onAllocateSelected={{action 'allocateSelected'}}\n        @onAllocateAndAcceptSelected={{action 'allocateAndAcceptSelected'}}\n        @onAllocateAcceptAndSendToXeroSelected={{action\n          'allocateAcceptAndSendToXeroSelected'\n        }}\n        @isAllocating={{or this.isAllocating this.isSecondaryAllocating}}\n        @items={{this.selectedInvoiceItems}}\n        @projects={{this.model.projects}}\n        @tasks={{this.model.tasks}}\n        {{! xero }}\n        @xeroIntegration={{this.xeroIntegration}}\n        @isXeroFetching={{this.xeroFetching}}\n        @xeroAccounts={{this.model.xeroAccounts}}\n        @onUpdateXeroAccounts={{action 'updateXeroAccounts'}}\n        {{! quickbooks }}\n        @quickbooksIntegration={{this.quickbooks}}\n        @isQuickbooksFetching={{this.quickbooksFetching}}\n        @quickbooksAccounts={{this.model.quickbooksAccounts}}\n        @onUpdateQuickbooksAccounts={{action 'updateQuickbooksAccounts'}}\n      />\n    {{/if}}\n    {{#if this.unmappedInvoicesToConfirm}}\n      <ModalDialog\n        @overlayClass='modal'\n        @onClose={{fn (mut this.unmappedInvoicesToConfirm) false}}\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n      >\n        <p>\n          <p>\n            {{t\n              'entity.builda-price.operations.incoming.bills-legacy.theFollowingXBillsOfYAreNotCompletelyAllocated'\n              bills=this.unmappedInvoicesToConfirm.length\n              total=this.selectedInvoices.length\n            }}:\n          </p>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n              <th>{{t 'common.Total'}}</th>\n            </tr>\n            {{#each this.unmappedInvoicesToConfirm as |invoice|}}\n              <tr>\n                <td>{{invoice.issuer}}</td>\n                <td>{{invoice.billNumber}}</td>\n                <td>{{invoice.name}}</td>\n                <td>\n                  {{number-format\n                    invoice.totalPrice\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n              </tr>\n            {{/each}}\n          </table>\n        </p>\n  \n        <footer class='block-module__footer'>\n          {{#if this.isXeroLoading}}\n            <LoadingButton\n              @class='button float-end'\n              @isLoading={{true}}\n              @disabled={{true}}\n            />\n          {{else}}\n            <button\n              class='button button--spaced float-end'\n              type='button'\n              {{action 'sendSelectedInvoicesToXero' 'all'}}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Send all'\n              }}\n            </button>\n            <button\n              class='button button--spaced float-end'\n              type='button'\n              {{action 'sendSelectedInvoicesToXero' 'mapped'}}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Send allocated bills only'\n              }}\n            </button>\n          {{/if}}\n  \n          <button\n            class='button button--plain button--spaced'\n            type='button'\n            {{on 'click' (fn (mut this.unmappedInvoicesToConfirm) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </footer>\n      </ModalDialog>\n    {{/if}}\n  \n    {{#if this.importedInvoices.existing.length}}\n      <ModalDialog\n        @overlayClass='modal'\n        @onClose={{fn (mut this.importedInvoices) null}}\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n      >\n        <p>\n          {{t\n            'shared.notification.xOutOfYBillsWereFoundToBeDuplicates'\n            duplicates=this.importedInvoices.existing.length\n            total=(math\n              this.importedInvoices.existing.length\n              '+'\n              this.importedInvoices.new.length\n            )\n          }}:\n        </p>\n  \n        <div class='invoice-editor__import-modal__table-container'>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n            </tr>\n            {{#each this.importedInvoices.existing as |invoice|}}\n              <tr>\n                <td>{{invoice.issuer}}</td>\n                <td>{{invoice.billNumber}}</td>\n                <td>{{invoice.name}}</td>\n              </tr>\n            {{/each}}\n          </table>\n        </div>\n  \n        <footer class='block-module__footer'>\n          {{#if this.importedInvoices.new.length}}\n            <button\n              class='button float-end button--spaced'\n              type='button'\n              {{action 'importInvoices' this.importedInvoices.new}}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Import only new bills'\n              }}\n            </button>\n          {{/if}}\n  \n          <button\n            class='button float-end button--spaced'\n            type='button'\n            {{action 'importInvoices' this.importedInvoices.invoices}}\n          >\n            {{t 'common.Import all'}}\n          </button>\n  \n          <button\n            class='button button--plain button--spaced'\n            type='button'\n            {{on 'click' (fn (mut this.importedInvoices) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </footer>\n      </ModalDialog>\n    {{/if}}\n  \n    {{#if this.invoiceTypeResponseHandlerVisible}}\n      <InvoiceTypeResponseHandler\n        @responses={{this.invoiceResponses}}\n        @onCancel={{action 'onInvoiceTypeResponseHandlerCancel'}}\n      />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"+qwKiNln\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"router\\\",\\\"currentRouteName\\\"]],\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\"],null],[[[1,\\\"  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[28,[37,5],[\\\"isDesktop\\\"],null]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Bills\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-bottom mb-3 d-flex align-items-center pb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1 m-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Bills\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"fs-6 text-muted\\\"],[12],[1,\\\"LEGACY\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"invoice-selector__radio\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,1,\\\"condensed-filter--condensed\\\"],[15,\\\"checked\\\",[28,[37,1],[[30,0,[\\\"condensedView\\\"]],false],null]],[15,\\\"onchange\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"condensedView\\\"]]],null],false],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"condensed-filter--condensed\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"list-ul\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"invoice-selector__radio\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,1,\\\"condensed-filter--card\\\"],[15,\\\"checked\\\",[28,[37,1],[[30,0,[\\\"condensedView\\\"]],true],null]],[15,\\\"onchange\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"condensedView\\\"]]],null],true],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"condensed-filter--card\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"table\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"hasWriteLevel\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@buttonText\\\",\\\"@title\\\",\\\"@class\\\",\\\"@buttonClasses\\\"],[[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Import a bill\\\"],null],[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Bill format\\\"],null],\\\"button--spaced\\\",\\\"button button--secondary file-input-button\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"bunnings\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Bunnings CSV \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"carters\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Carters CSV \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"mitre\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Mitre 10 CSV \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"placemakers\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"PlaceMakers CSV\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"xero\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Xero CSV \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add button--spaced\\\"],[24,\\\"data-test-create-bill-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"transitionToBill\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",\\\"new\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.New bill\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"alert alert-info d-flex align-items-center justify-content-center gap-2 text-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[12],[1,\\\"We have upgraded the bills page with a faster experience.\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,22],[[24,0,\\\"alert-link text-decoration-underline\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.bills\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        Try it now!\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"invoice-selector__controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasWriteLevel\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invoice-selector__controls-row\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"invoices\\\",\\\"length\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"toggleInvoicesSelected\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[52,[28,[37,24],[[30,0,[\\\"invoices\\\",\\\"length\\\"]],[30,0,[\\\"allInvoicesSelected\\\"]]],null],[28,[37,7],[\\\"common.Deselect all\\\"],null],[28,[37,7],[\\\"common.Select all\\\"],null]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,17],[[24,\\\"data-test-bulk-actions\\\",\\\"\\\"]],[[\\\"@buttonText\\\",\\\"@class\\\",\\\"@disabled\\\",\\\"@buttonClasses\\\",\\\"@title\\\"],[[28,[37,7],[\\\"common.Actions\\\"],null],\\\"button--spaced\\\",[28,[37,23],[[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]]],null],\\\"button button--secondary\\\",[28,[37,25],[[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]],\\\" \\\",[52,[28,[37,26],[[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]],1],null],[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.selected bills\\\"],null],[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.selected bill\\\"],null]],\\\" \\\",[28,[37,7],[\\\"common.with\\\"],null],\\\" \\\",[30,0,[\\\"selectedInvoiceItems\\\",\\\"length\\\"]],\\\" \\\",[52,[28,[37,26],[[30,0,[\\\"selectedInvoiceItems\\\",\\\"length\\\"]],1],null],[28,[37,7],[\\\"common.items\\\"],null],[28,[37,7],[\\\"common.item\\\"],null]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,0,[\\\"isAutoMapping\\\"]],[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"isXeroLoading\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,28],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[28,[37,1],[[30,0,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null]],[[[41,[51,[28,[37,1],[[30,0,[\\\"status\\\"]],\\\"ACCEPTED\\\"],null]],[[[1,\\\"                  \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-accept-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"acceptSelectedInvoices\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Accept invoices\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-archive-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"archiveSelectedInvoices\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Archive invoices\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-bills-to-xero\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToXero\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"shared.bill.Send to Xero\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-bills-to-quickbooks\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToQuickbooks\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"shared.bill.Send to QuickBooks\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-auto-map-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"autoMapSelected\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Allocate (Auto Map)\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-allocate-items\\\",\\\"\\\"],[4,[38,19],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"allocatingItems\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Allocate (Manually)\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option button--delete\\\"],[24,\\\"data-test-attempt-delete-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"invoiceDeleteConfirmModalVisible\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-selector__controls-row float-end\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"jsFilterByDate\\\"]],[[[1,\\\"          \\\"],[8,[39,29],null,[[\\\"@onClose\\\"],[[28,[37,13],[[28,[37,14],[[30,0,[\\\"jsFilterByDate\\\"]]],null],[28,[37,23],[[30,0,[\\\"jsFilterByDate\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,30],[[30,0,[\\\"startDate\\\"]],[28,[37,7],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.to\\\"],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,30],[[30,0,[\\\"endDate\\\"]],[28,[37,7],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,31],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"          \\\"],[8,[39,29],null,[[\\\"@onClose\\\"],[[28,[37,13],[[28,[37,14],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,32],[[30,0,[\\\"status\\\"]]],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"unallocatedOnly\\\"]],[[[1,\\\"          \\\"],[8,[39,29],null,[[\\\"@onClose\\\"],[[28,[37,13],[[28,[37,14],[[30,0,[\\\"unallocatedOnly\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Unallocated bills\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,33],[[24,0,\\\"button--spaced\\\"]],[[\\\"@align\\\"],[\\\"right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"\\\\n          \\\"],[8,[39,34],null,[[\\\"@label\\\"],[[28,[37,7],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,35],null,[[\\\"@disabled\\\",\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[[52,[30,0,[\\\"jsFilterByDate\\\"]],false,true],\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,19],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,34],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,12],[[24,\\\"aria-label\\\",\\\"All Data\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"jsFilterByDate\\\"]]],null],[28,[37,23],[[30,0,[\\\"jsFilterByDate\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"jsFilterByDate\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"          \\\"],[8,[39,34],null,[[\\\"@label\\\"],[[28,[37,7],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,37],[[24,\\\"data-test-bill-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,13],[[28,[37,14],[[30,0,[\\\"status\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[1]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"\\\\n          \\\"],[8,[39,34],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"unallocatedOnly\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Only show unallocated bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,1],[14,0,\\\"invoice-selector__controls-search button--spaced\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[16,2,[30,0,[\\\"search\\\"]]],[24,0,\\\"text-input\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.supplierReference\\\"],null]],[24,4,\\\"search\\\"],[4,[38,38],[[28,[37,19],[[30,0],\\\"setFocus\\\"],null]],null],[4,[38,36],[\\\"input\\\",[28,[37,19],[[30,0],\\\"onSearchInput\\\"],null]],null],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"condensedView\\\"]],[[[1,\\\"        \\\"],[8,[39,39],null,[[\\\"@columns\\\",\\\"@sortedBy\\\",\\\"@class\\\"],[[30,0,[\\\"tableColumns\\\"]],[30,0,[\\\"sortedBy\\\"]],\\\"supplier-invoice-table-pm\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,40],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@emptyText\\\",\\\"@itemDisplayName\\\"],[[30,0,[\\\"invoices\\\"]],true,[28,[37,7],[\\\"common.No bills\\\"],null],[28,[37,7],[\\\"common.bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"data-test-bill\\\",[28,[37,27],[[30,2,[\\\"id\\\"]],\\\"new\\\"],null]],[16,\\\"data-test-edit-bill\\\",[28,[37,27],[[30,2,[\\\"id\\\"]],\\\"new\\\"],null]]],[[\\\"@class\\\",\\\"@invoice\\\",\\\"@showXeroButton\\\",\\\"@hasWriteLevel\\\",\\\"@hasDuplicate\\\",\\\"@editInvoice\\\",\\\"@showBadges\\\"],[[30,3],[30,2],[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[30,0,[\\\"hasWriteLevel\\\"]],[30,2,[\\\"hasDuplicate\\\"]],[28,[37,19],[[30,0],\\\"transitionToBill\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,2,[\\\"id\\\"]]],null],[30,0,[\\\"showBadgesColumn\\\"]]]],null],[1,\\\"\\\\n          \\\"]],[2,3]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,1],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"length\\\"]],[30,0,[\\\"model\\\",\\\"maxNumberOfBills\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-info\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"groupedInvoices\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,40],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,0,[\\\"groupedInvoices\\\"]],true,\\\"3\\\",\\\"2\\\",[28,[37,7],[\\\"common.suppliers\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-title\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-line\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-issuer\\\"],[12],[1,[28,[35,27],[[30,4,[\\\"issuer\\\"]],\\\"Unspecified Issuer\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-line\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,40],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,4,[\\\"invoices\\\"]],true,\\\"4\\\",\\\"8\\\",[28,[37,7],[\\\"common.bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,42],[[16,\\\"data-test-bill\\\",[28,[37,27],[[30,6,[\\\"id\\\"]],\\\"new\\\"],null]]],[[\\\"@class\\\",\\\"@invoice\\\",\\\"@xeroReady\\\",\\\"@hasWriteLevel\\\",\\\"@expandedByDefault\\\",\\\"@hasDuplicate\\\",\\\"@editInvoice\\\"],[[30,7],[30,6],[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[30,0,[\\\"hasWriteLevel\\\"]],true,[30,6,[\\\"hasDuplicate\\\"]],[28,[37,19],[[30,0],\\\"transitionToBill\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,6,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[6,7]]]]],[1,\\\"\\\\n\\\\n            \\\"],[10,1],[15,0,[29,[[30,5]]]],[12],[13],[1,\\\"\\\\n\\\\n          \\\"]],[4,5]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,1],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"length\\\"]],[30,0,[\\\"model\\\",\\\"maxNumberOfBills\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-info\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,7],[\\\"common.No bills\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]],[[[1,\\\"    \\\"],[8,[39,45],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"confirmCallback\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.youAreAboutToAcceptAnInvoiceThatIsNotCompletelyAllocatedDoYouWantToContinue\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"doNotWarnForUnmappedInvoice\\\"]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"shared.bill.Do not warn me again\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced\\\"],[24,\\\"data-test-confirm-unmapped-bills\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"confirmCallback\\\"]],true],null]],null],[12],[1,[28,[35,7],[\\\"common.Continue\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"confirmCallback\\\"]],false],null]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[39,48],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"invoiceDeleteConfirmModalVisible\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,7],[\\\"common.Delete bills\\\"],null],[28,[37,7],[\\\"common.Delete bill\\\"],null]],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,7],[\\\"common.Delete bills\\\"],null],[28,[37,7],[\\\"common.Delete bill\\\"],null]],[28,[37,7],[\\\"common.Deleting\\\"],null],[28,[37,19],[[30,0],\\\"deleteSelectedInvoices\\\"],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"invoiceDeleteConfirmModalVisible\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[10,2],[12],[1,[28,[35,7],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocatingItems\\\"]],[[[1,\\\"    \\\"],[8,[39,49],null,[[\\\"@onCancel\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\",\\\"@isAllocating\\\",\\\"@items\\\",\\\"@projects\\\",\\\"@tasks\\\",\\\"@xeroIntegration\\\",\\\"@isXeroFetching\\\",\\\"@xeroAccounts\\\",\\\"@onUpdateXeroAccounts\\\",\\\"@quickbooksIntegration\\\",\\\"@isQuickbooksFetching\\\",\\\"@quickbooksAccounts\\\",\\\"@onUpdateQuickbooksAccounts\\\"],[[28,[37,19],[[30,0],[30,0,[\\\"set\\\"]],\\\"allocatingItems\\\",false],null],[28,[37,19],[[30,0],\\\"allocateSelected\\\"],null],[28,[37,19],[[30,0],\\\"allocateAndAcceptSelected\\\"],null],[28,[37,19],[[30,0],\\\"allocateAcceptAndSendToXeroSelected\\\"],null],[28,[37,27],[[30,0,[\\\"isAllocating\\\"]],[30,0,[\\\"isSecondaryAllocating\\\"]]],null],[30,0,[\\\"selectedInvoiceItems\\\"]],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"tasks\\\"]],[30,0,[\\\"xeroIntegration\\\"]],[30,0,[\\\"xeroFetching\\\"]],[30,0,[\\\"model\\\",\\\"xeroAccounts\\\"]],[28,[37,19],[[30,0],\\\"updateXeroAccounts\\\"],null],[30,0,[\\\"quickbooks\\\"]],[30,0,[\\\"quickbooksFetching\\\"]],[30,0,[\\\"model\\\",\\\"quickbooksAccounts\\\"]],[28,[37,19],[[30,0],\\\"updateQuickbooksAccounts\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"unmappedInvoicesToConfirm\\\"]],[[[1,\\\"    \\\"],[8,[39,45],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"unmappedInvoicesToConfirm\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.theFollowingXBillsOfYAreNotCompletelyAllocated\\\"],[[\\\"bills\\\",\\\"total\\\"],[[30,0,[\\\"unmappedInvoicesToConfirm\\\",\\\"length\\\"]],[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]]]]]],[1,\\\":\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,54],[[28,[37,54],[[30,0,[\\\"unmappedInvoicesToConfirm\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,56],[[30,8,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isXeroLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,57],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button float-end\\\",true,true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToXero\\\",\\\"all\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Send all\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToXero\\\",\\\"mapped\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Send allocated bills only\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"unmappedInvoicesToConfirm\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedInvoices\\\",\\\"existing\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,45],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"importedInvoices\\\"]]],null],null],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"shared.notification.xOutOfYBillsWereFoundToBeDuplicates\\\"],[[\\\"duplicates\\\",\\\"total\\\"],[[30,0,[\\\"importedInvoices\\\",\\\"existing\\\",\\\"length\\\"]],[28,[37,58],[[30,0,[\\\"importedInvoices\\\",\\\"existing\\\",\\\"length\\\"]],\\\"+\\\",[30,0,[\\\"importedInvoices\\\",\\\"new\\\",\\\"length\\\"]]],null]]]]],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__import-modal__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,54],[[28,[37,54],[[30,0,[\\\"importedInvoices\\\",\\\"existing\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedInvoices\\\",\\\"new\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"importInvoices\\\",[30,0,[\\\"importedInvoices\\\",\\\"new\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Import only new bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"importInvoices\\\",[30,0,[\\\"importedInvoices\\\",\\\"invoices\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Import all\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"importedInvoices\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceTypeResponseHandlerVisible\\\"]],[[[1,\\\"    \\\"],[8,[39,59],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"invoiceResponses\\\"]],[28,[37,19],[[30,0],\\\"onInvoiceTypeResponseHandlerCancel\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"si\\\",\\\"invoice\\\",\\\"identifier\\\",\\\"invoiceGroup\\\",\\\"groupIdentifier\\\",\\\"invoice\\\",\\\"identifier\\\",\\\"invoice\\\",\\\"invoice\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"component\\\",\\\"-outlet\\\",\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"h1\\\",\\\"sup\\\",\\\"input\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"fa-icon\\\",\\\"overlaid-dropdown\\\",\\\"file-importer\\\",\\\"action\\\",\\\"button\\\",\\\"span\\\",\\\"link-to\\\",\\\"not\\\",\\\"and\\\",\\\"concat\\\",\\\"gt\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"convert-to-title-case\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"on\\\",\\\"select-input\\\",\\\"did-insert\\\",\\\"active-table\\\",\\\"lazy-each\\\",\\\"supplier-invoices-pm/invoice-row\\\",\\\"supplier-invoices-pm/invoice\\\",\\\"h2\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"footer\\\",\\\"confirm-delete\\\",\\\"allocation-selector\\\",\\\"table\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"number-format\\\",\\\"loading-button\\\",\\\"math\\\",\\\"invoice-type-response-handler\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills-legacy.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Bills')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.incoming.bills-legacy'\n      }}\n    />\n  {{/unless}}\n  \n  <article\n    class='m-4 page-wrapper {{if this.showValidations \"show-validations\"}}'\n  >\n    <div class='mb-2'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <header class='border-bottom mb-3 align-items-center d-flex'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='my-2'>\n          {{this.pageTitle}}\n        </h2>\n      {{/if}}\n  \n      {{#unless this.isEditing}}\n        <div class='ms-auto mb-2 d-flex align-items-center flex-wrap'>\n          {{#if (gt this.model.invoices.length 1)}}\n            <button\n              class='button button--plain button--spaced my-1 invoice-editor__header-navigation-button'\n              disabled={{not this.nextInvoice.previous}}\n              type='button'\n              {{action\n                'transitionTo'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                this.nextInvoice.previous\n              }}\n            >\n              <FaIcon @icon='angle-left' @fixedWidth={{true}} />&nbsp;{{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Previous'\n              }}\n            </button>\n            <button\n              class='button button--plain button--spaced my-1 invoice-editor__header-navigation-button'\n              disabled={{not this.nextInvoice.next}}\n              type='button'\n              {{action\n                'transitionTo'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                this.nextInvoice.next\n              }}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Next'\n              }}&nbsp;<FaIcon @icon='angle-right' @fixedWidth={{true}} />\n            </button>\n          {{/if}}\n          {{#if (includes-feature-flags 'canManageBills')}}\n            <button\n              class='button button--add button--spaced my-1'\n              type='button'\n              {{action\n                'transitionTo'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                'new'\n              }}\n            >{{t 'common.New bill'}}</button>\n          {{/if}}\n        </div>\n  \n      {{/unless}}\n    </header>\n  \n    <div class='d-flex align-items-center flex-wrap'>\n      {{#unless (or this.isEditing this.model.invoice.isNew)}}\n        {{! Badges }}\n        {{! Denotes that this invoice originated from ITM (eAccounts) or Step Connect }}\n        {{#if (or this.model.invoice.eaccountsFileName this.model.invoice.ipsId)}}\n          <IntegrationIcon\n            @imported={{true}}\n            @title={{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.This bill was imported automatically'\n            }}\n            data-test-edi-icon\n          />\n        {{/if}}\n  \n        {{! Denote that the invoice has been sent to Accounting platform }}\n        {{#if\n          (or this.model.invoice.xeroLinked this.model.invoice.quickbooksLinked)\n        }}\n          <IntegrationIcon\n            @exported={{true}}\n            @title={{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.aCopyOfThisBillHasBeenSentToYourAccountingPackage'\n            }}\n            data-test-xero-icon\n          />\n        {{/if}}\n  \n        {{#if this.model.invoice.isAutoMapped}}\n          <FaIcon\n            @icon='magic'\n            @class='integration-icon'\n            @title={{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.Bill was auto mapped'\n            }}\n          />\n        {{/if}}\n  \n        {{! Status }}\n        {{#unless (eq this.model.invoice.status 'DRAFT')}}\n          <span class='button--spaced my-1 d-flex align-items-center'>\n            <span for='invoice-status'>&nbsp;&nbsp;{{t\n                'common.Status'\n              }}:&nbsp;</span>\n            <SelectInput\n              @value={{this.model.invoice.status}}\n              @id='invoice-status'\n              @disabled={{not (includes-feature-flags 'canManageBills')}}\n              @class='tabular-form-controls__cell select-box'\n              @action={{action 'changeStatus'}}\n              as |si|\n            >\n              <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n              <si.option @value='ACCEPTED'>{{t 'common.Accepted'}}</si.option>\n              <si.option @value='ARCHIVED'>{{t 'common.Archived'}}</si.option>\n              <si.option @value='HELD'>{{t 'common.Held'}}</si.option>\n              <si.option @value='PAID'>{{t 'common.Paid'}}</si.option>\n            </SelectInput>\n          </span>\n        {{/unless}}\n      {{/unless}}\n      {{#if (includes-feature-flags 'canManageBills')}}\n        <div class='ms-auto d-flex align-items-center flex-wrap'>\n          {{#unless this.model.invoice.isNew}}\n            {{#if this.isEditing}}\n              {{! Cancel button if in edit or new mode }}\n              <button\n                class='button button--spaced my-1 button--plain'\n                data-test-cancel-edit-button=''\n                type='button'\n                {{action 'cancel'}}\n              >\n                {{t 'common.Cancel'}}\n              </button>\n  \n            {{else}}\n              {{! Cannot use attachments while in edit mode }}\n              <AttachmentDropdownList\n                @buttonClass='button button--spaced my-1 button--plain'\n                @attachments={{this.model.invoice.myAttachments}}\n                @parent={{this.model.invoice}}\n                @onUploadComplete={{action 'attachmentsUploadComplete'}}\n                @onDownloadAttachment={{action 'downloadAttachment'}}\n                @onDeleteAttachment={{action 'deleteAttachment'}}\n                @isDragAndDropVisible={{true}}\n              />\n  \n              {{! Edit button }}\n              <button\n                class='button button--spaced my-1\n                  {{unless this.invoiceIsValid \"invalid\"}}'\n                data-test-edit-button=''\n                type='button'\n                {{action this.set 'isEditing' true}}\n              >\n                {{t 'common.Edit'}}\n              </button>\n  \n              {{#if this.xeroIntegration.ready}}\n                {{! Button that takes you to Xero if the invoice is also in Xero }}\n                {{#if this.model.invoice.xeroLinked}}\n                  <ComboButton\n                    @class='button--spaced my-1'\n                    @buttonText={{t 'common.View in Xero'}}\n                    @title='Xero Actions'\n                    @action={{action\n                      'viewInvoiceInXero'\n                      this.entityXeroCompanyId\n                      this.model.invoice.xeroDeeplinkPath\n                    }}\n                  >\n                    {{#unless this.loadingXero}}\n                      <div\n                        class='overlaid-dropdown__option'\n                        {{action 'sendToXero'}}\n                        data-test-send-to-xero=''\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.bills-legacy.bill.Update in Xero'\n                        }}\n                      </div>\n                    {{else}}\n                      <div class='overlaid-dropdown__option text-center'>\n                        <LoadingIcon @type='spinner' />\n                      </div>\n                    {{/unless}}\n                  </ComboButton>\n                {{else}}\n                  {{! Send to Xero button if the xero integration is set up }}\n                  <LoadingButton\n                    @class='button button--spaced my-1'\n                    @action={{action 'acceptInvoiceAndSendToXero'}}\n                    data-test-send-to-xero\n                    @buttonText={{if\n                      (eq this.model.invoice.status 'DRAFT')\n                      (t\n                        'entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to Xero'\n                      )\n                      (t 'shared.bill.Send to Xero')\n                    }}\n                    @isLoading={{this.loadingXero}}\n                    @disabled={{not this.model.invoice.status 'DRAFT'}}\n                  />\n                {{/if}}\n              {{/if}}\n  \n              {{#if this.quickbooks.ready}}\n                {{#if this.model.invoice.quickbooksLinked}}\n                  <ComboButton\n                    @class='button--spaced my-1'\n                    @buttonText={{t\n                      'entity.settings.contacts.View in QuickBooks'\n                    }}\n                    @title='QuickBooks Actions'\n                    @action={{action\n                      'viewBillInQuickbooks'\n                      this.model.invoice.quickbooksDeeplinkPath\n                    }}\n                  >\n                    {{#unless this.loadingQuickbooks}}\n                      <div\n                        class='overlaid-dropdown__option'\n                        {{action 'sendToQuickBooks'}}\n                        data-test-send-to-xero=''\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.bills-legacy.bill.Update in QuickBooks'\n                        }}\n                      </div>\n                    {{else}}\n                      <div class='overlaid-dropdown__option text-center'>\n                        <LoadingIcon @type='spinner' />\n                      </div>\n                    {{/unless}}\n                  </ComboButton>\n                {{else}}\n                  <LoadingButton\n                    @class='button button--spaced my-1'\n                    @action={{action 'acceptInvoiceAndSendToQuickbooks'}}\n                    @buttonText={{if\n                      (eq this.model.invoice.status 'DRAFT')\n                      (t\n                        'entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to QuickBooks'\n                      )\n                      (t 'shared.bill.Send to QuickBooks')\n                    }}\n                    @isLoading={{this.loadingQuickbooks}}\n                    @disabled={{not this.model.invoice.status 'DRAFT'}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/unless}}\n        </div>\n      {{/if}}\n    </div>\n  \n    <section class='invoice-editor__invoice-info-section'>\n      <div class='invoice-editor__inputs-column'>\n        <div class='invoice-editor__inputs-row'>\n          {{! Supplier }}\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-issuer'\n          >{{t 'common.Issuer'}}</label>\n          {{#if this.isEditing}}\n            <ComboBox\n              @class={{concat\n                'tabular-form-controls__cell text-input'\n                (unless this.model.invoice.issuer ' invalid')\n              }}\n              @key='name'\n              @value={{this.model.invoice.issuer}}\n              @options={{this.issuers}}\n              @onSet={{action 'setInvoiceIssuer'}}\n              data-test-bill-issuer-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{this.model.invoice.issuer}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Invoice Number }}\n          <label class='tabular-form-controls__cell--label' for='invoice-number'>\n            {{t 'common.Bill number'}}\n            {{#if this.model.invoice.hasDuplicate}}\n              <span\n                class='invoice-editor__inputs-row-warning-triangle'\n                data-test-duplicate-warning=''\n              >\n                &nbsp;<InfoPopup\n                  @iconName='exclamation-triangle'\n                  class='text-danger'\n                  @text={{t\n                    'entity.builda-price.operations.incoming.bills-legacy.bill.This bill number has already been used'\n                  }}\n                />\n              </span>\n            {{/if}}\n          </label>\n          {{#if this.isEditing}}\n            <Input\n              id='invoice-number'\n              class={{concat\n                'tabular-form-controls__cell text-input'\n                (unless\n                  (or this.model.invoice.billNumber this.model.invoice.reference)\n                  ' invalid'\n                )\n              }}\n              @value={{this.model.invoice.billNumber}}\n              data-test-bill-number-input\n              autocomplete='off'\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{or this.model.invoice.billNumber '—'}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Invoice Date }}\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-issue-date'\n          >{{t 'common.Issue date'}}</label>\n          {{#if this.isEditing}}\n            <PtlInput\n              @type='date'\n              @containerClass='mb-0'\n              @key='issueDate'\n              @model={{this.model.invoice}}\n              class={{if\n                this.isIssueDateInvalid\n                'text-input invalid'\n                'text-input'\n              }}\n              data-test-bill-issue-date-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{if\n                this.model.invoice.issueDate\n                (moment-format\n                  this.model.invoice.issueDate (t 'date.longWithoutWeekday')\n                )\n                '—'\n              }}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div\n          class='invoice-editor__inputs-row d-flex align-items-start'\n          style='min-heigh:60px'\n        >\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-notes'\n          >{{t 'common.Notes'}}</label>\n          {{#if this.isEditing}}\n            <Textarea\n              id='invoice-notes'\n              class='form-control tabular-form-controls__cell text-input'\n              style='min-height:60px; max-height:60px; margin-top: 3px;'\n              @value={{this.model.invoice.notes}}\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding text-break overflow-auto'\n              style='max-height:60px'\n            >\n              {{or this.model.invoice.notes '—'}}\n            </div>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div class='invoice-editor__inputs-column'>\n        <div class='invoice-editor__inputs-row'>\n          {{! Supplier type }}\n          <label class='tabular-form-controls__cell--label' for='allocate-as'>{{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.Allocate as'\n            }}</label>\n          {{#if this.isEditing}}\n            <span class={{unless this.model.invoice.allocationType 'invalid'}}>\n              <label>\n                <input\n                  type='radio'\n                  name='allocate-as'\n                  checked={{eq this.model.invoice.allocationType 'MATERIALS'}}\n                  onchange={{action\n                    this.set\n                    'model.invoice.allocationType'\n                    'MATERIALS'\n                  }}\n                  data-test-bill-pick-materials=''\n                />\n                {{t 'common.Material'}}\n              </label>\n              &nbsp;&nbsp;\n              <label>\n                <input\n                  type='radio'\n                  name='allocate-as'\n                  checked={{eq\n                    this.model.invoice.allocationType\n                    'SUBCONTRACTORS'\n                  }}\n                  onchange={{action\n                    this.set\n                    'model.invoice.allocationType'\n                    'SUBCONTRACTORS'\n                  }}\n                  data-test-bill-pick-subcontractor=''\n                />\n                {{t 'common.Subcontractor'}}\n              </label>\n              &nbsp;&nbsp;\n              <label>\n                <input\n                  type='radio'\n                  name='allocate-as'\n                  checked={{eq this.model.invoice.allocationType 'LABOUR'}}\n                  onchange={{action\n                    this.set\n                    'model.invoice.allocationType'\n                    'LABOUR'\n                  }}\n                  data-test-bill-pick-labour=''\n                />\n                {{t 'common.Labour'}}\n              </label>\n            </span>\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{#if (eq this.model.invoice.allocationType 'LABOUR')}}\n                {{t 'common.Labour'}}\n              {{else if (eq this.model.invoice.allocationType 'MATERIALS')}}\n                {{t 'common.Materials'}}\n              {{else if (eq this.model.invoice.allocationType 'SUBCONTRACTORS')}}\n                {{t 'common.Subcontractors'}}\n              {{/if}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Reference }}\n          <label class='tabular-form-controls__cell--label' for='invoice-name'>{{t\n              'common.Reference'\n            }}</label>\n          {{#if this.isEditing}}\n            <ComboBox\n              @class={{concat\n                'tabular-form-controls__cell text-input'\n                (unless\n                  (or this.model.invoice.billNumber this.model.invoice.reference)\n                  ' invalid'\n                )\n              }}\n              @key='reference'\n              @value={{this.model.invoice.reference}}\n              @options={{this.references}}\n              @onSet={{action (mut this.model.invoice.reference)}}\n              data-test-bill-name-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{or this.model.invoice.reference '—'}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Due Date }}\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-due-date'\n          >{{t 'common.Due date'}}</label>\n          {{#if this.isEditing}}\n            <PtlInput\n              @type='date'\n              @containerClass='mb-0'\n              class={{if this.isDueDateInvalid 'text-input invalid' 'text-input'}}\n              @key='dueDate'\n              @model={{this.model.invoice}}\n              data-test-bill-due-date-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{if\n                this.model.invoice.dueDate\n                (moment-format\n                  this.model.invoice.dueDate (t 'date.longWithoutWeekday')\n                )\n                '—'\n              }}\n            </div>\n          {{/if}}\n        </div>\n      </div>\n    </section>\n  \n    {{#if (and this.model.invoice.isNew (lt this.newInvoiceStep 1))}}\n      {{! Show a continue button instead of the items when first arriving at a new invoice }}\n      <section>\n        <button\n          class='button float-end'\n          data-test-next-step-button=''\n          type='button'\n          {{action 'nextStep'}}\n        >\n          {{t\n            'entity.builda-price.operations.incoming.bills-legacy.bill.Proceed to create items'\n          }}\n        </button>\n      </section>\n    {{else}}\n      {{! Items section }}\n      <div class='invoice-editor__divider'></div>\n  \n      <section>\n        <span class='h2'>{{t 'common.Items'}}</span>\n        {{#if\n          (and (not this.isEditing) (includes-feature-flags 'canManageBills'))\n        }}\n          {{! Assign items button }}\n          <button\n            class='button button--spaced float-end'\n            disabled={{not this.selectedItems.length}}\n            data-test-allocate-items-button=''\n            type='button'\n            {{action this.set 'allocatingItems' true}}\n          >\n            {{if\n              this.selectedItems.length\n              (t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Allocate selected items'\n              )\n              (t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Select items to allocate'\n              )\n            }}\n          </button>\n          {{! Auto map button }}\n          {{#if this.model.directives.length}}\n            <LoadingButton\n              @class='button button--spaced float-end'\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Auto map'\n              }}\n              @action={{action 'autoMap'}}\n              @isLoading={{this.isAutoMapping}}\n              data-test-auto-map-button\n            />\n          {{/if}}\n        {{/if}}\n  \n        <InvoiceItemTablePm\n          @invoice={{this.model.invoice}}\n          @allSelected={{this.allSelected}}\n          @isSelected={{this.isSelected}}\n          @isEditing={{this.isEditing}}\n          @names={{this.names}}\n          @toggleSelectAll={{action 'toggleSelectAll'}}\n          @toggleSelectItem={{action 'toggleSelectItem'}}\n          @addItem={{action 'addItem'}}\n          @deleteItem={{action 'deleteItem'}}\n          {{! xero }}\n          @xeroAccounts={{this.model.xeroAccounts}}\n          @xeroFetching={{this.xeroFetching}}\n          @xeroIntegration={{this.xeroIntegration}}\n          @setItemXeroAccount={{action 'setItemXeroAccount'}}\n          @updateXeroAccounts={{action 'updateXeroAccounts'}}\n          {{! quickbooks }}\n          @quickbooksAccounts={{this.model.quickbooksAccounts}}\n          @quickbooksFetching={{this.quickbooksFetching}}\n          @quickbooksIntegration={{this.quickbooks}}\n          @setItemQuickbooksAccount={{action 'setItemQuickbooksAccount'}}\n          @updateQuickbooksAccounts={{action 'updateQuickbooksAccounts'}}\n        />\n      </section>\n  \n      {{! Add item button }}\n      {{#if this.isEditing}}\n        <section>\n          <button\n            class='button button--add invoice-editor-center-button button--spaced'\n            data-test-add-item-button=''\n            type='button'\n            {{action 'addItem'}}\n          >\n            {{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.Add another item'\n            }}\n          </button>\n        </section>\n      {{/if}}\n  \n      <div class='invoice-editor__divider'></div>\n  \n      <div class='invoice-editor__footer'>\n        <div class='invoice-editor__inputs-column float-end'>\n          <div class='invoice-editor__inputs-row'>\n            {{! Invoice Total }}\n            <span class='tabular-form-controls__cell--label'>{{t\n                'common.Total'\n              }}</span>\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{number-format\n                this.model.invoice.totalPrice\n                style='currency'\n                dashZero=true\n              }}\n            </div>\n          </div>\n  \n          {{#if (includes-feature-flags 'canManageBills')}}\n            {{#if this.isEditing}}\n              <div class='invoice-editor__inputs-row'>\n                <LoadingButton\n                  @class='button float-end'\n                  @buttonText={{if\n                    this.invoice.isNew\n                    (t 'common.Finish')\n                    (t 'common.Save')\n                  }}\n                  @isLoading={{this.isSaving}}\n                  @action={{action 'save'}}\n                  data-test-save-button\n                />\n              </div>\n            {{else if (eq this.model.invoice.status 'DRAFT')}}\n              <div class='invoice-editor__inputs-row'>\n                <LoadingButton\n                  @class='button float-end'\n                  @action={{action 'acceptInvoice'}}\n                  @isLoading={{this.isAccepting}}\n                  @buttonText={{t\n                    'entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill'\n                  }}\n                  data-test-accept-bill-button\n                />\n              </div>\n            {{/if}}\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showCreditNoteMessage}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showCreditNoteMessage) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{#if this.xeroIntegration.ready}}\n        <p>{{t\n            'entity.builda-price.operations.incoming.bills-legacy.bill.sentToXeroAsCreditNote'\n          }}</p>\n        <p>{{t\n            'entity.builda-price.operations.incoming.bills-legacy.bill.needToAllocateTheCreditNote'\n          }}</p>\n        <div class='block-module__footer'>\n          <div class='pull-right'>\n            <button\n              class='button button--plain button--spaced'\n              type='button'\n              {{action this.set 'showCreditNoteMessage' false}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <LoadingButton\n              @class='button button--spaced'\n              @action={{action 'sendToXero' true}}\n              data-test-send-to-xero\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send'\n              }}\n              @isLoading={{this.loadingXero}}\n              @disabled={{eq this.model.invoice.status 'DRAFT'}}\n            />\n          </div>\n        </div>\n  \n      {{/if}}\n      {{#if this.quickbooks.ready}}\n        <p\n        >{{'The total for this bill is negative. It will therefore be sent to QuickBooks as a \"Credit Note\"'}}</p>\n        <p\n        >{{'You will need to allocate the \"Credit Note\" to an invoice from within in QuickBooks'}}</p>\n        <div class='block-module__footer'>\n          <div class='pull-right'>\n            <button\n              class='button button--plain button--spaced'\n              type='button'\n              {{action this.set 'showCreditNoteMessage' false}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <LoadingButton\n              @class='button button--spaced'\n              @action={{action 'sendToQuickBooks' true}}\n              data-test-send-to-xero\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send'\n              }}\n              @isLoading={{this.loadingQuickbooks}}\n              @disabled={{eq this.model.invoice.status 'DRAFT'}}\n            />\n          </div>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{! Project/task selection modal }}\n  {{#if this.allocatingItems}}\n    <AllocationSelector\n      @onCancel={{action this.set 'allocatingItems' false}}\n      @onAllocateSelected={{action 'allocateSelected'}}\n      @onAllocateAndAcceptSelected={{action 'allocateAndAcceptSelected'}}\n      @onAllocateAcceptAndSendToXeroSelected={{action\n        'allocateAcceptAndSendToXeroSelected'\n      }}\n      @isAllocating={{or this.isAllocating this.isSecondaryAllocating}}\n      @items={{this.selectedItems}}\n      @projects={{this.model.projects}}\n      @tasks={{this.model.tasks}}\n      {{! xero }}\n      @xeroIntegration={{this.xeroIntegration}}\n      @isXeroFetching={{this.xeroFetching}}\n      @xeroAccounts={{this.model.xeroAccounts}}\n      @onUpdateXeroAccounts={{action 'updateXeroAccounts'}}\n      {{! quickbooks }}\n      @quickbooksIntegration={{this.quickbooks}}\n      @quickbooksAccounts={{this.model.quickbooksAccounts}}\n      @isQuickbooksFetching={{this.quickbooksFetching}}\n      @onUpdateQuickbooksAccounts={{action 'updateQuickbooksAccounts'}}\n    />\n  {{/if}}\n  \n  {{! Unmapped accept warning }}\n  {{#if this.unmappedInvoiceWarningModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.unmappedInvoiceWarningModalVisible) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>{{t\n          'entity.builda-price.operations.incoming.bills-legacy.bill.youAreAboutToAcceptAnBillThatIsNotCompletelyAllocatedDoYouWantToContinue'\n        }}</p>\n  \n      <footer class='block-module__footer'>\n        <label><Input\n            @type='checkbox'\n            @checked={{this.doNotWarnForUnmappedInvoice}}\n          />\n          {{t 'shared.bill.Do not warn me again'}}</label>\n        <button\n          class='float-end button button--spaced'\n          type='button'\n          {{action\n            (if\n              (eq this.continueActionAfterUnmappedWarning 'acceptAndSend')\n              'acceptInvoiceAndSendToXero'\n              'acceptInvoice'\n            )\n            true\n          }}\n        >\n          {{t 'common.Continue'}}\n        </button>\n  \n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action (mut this.unmappedInvoiceWarningModalVisible) false}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  <NewSupplierPrompt\n    @visible={{this.newSupplierUpdateVisible}}\n    @close={{action this.set 'newSupplierUpdateVisible' false}}\n    @newSupplier={{this.nextNewSupplier}}\n    @updateSupplier={{action 'updateNewSupplier'}}\n    @isSaving={{this.isSaving}}\n  />\n  \n  {{#if this.invoiceTypeResponseHandlerVisible}}\n    <InvoiceTypeResponseHandler\n      @responses={{this.invoiceResponses}}\n      @onCancel={{action 'onInvoiceTypeResponseHandlerCancel'}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"fhUNhvkx\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Bills\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.incoming.bills-legacy\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[15,0,[29,[\\\"m-4 page-wrapper \\\",[52,[30,0,[\\\"showValidations\\\"]],\\\"show-validations\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 align-items-center d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"pageTitle\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isEditing\\\"]]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto mb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"length\\\"]],1],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced my-1 invoice-editor__header-navigation-button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"nextInvoice\\\",\\\"previous\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"transitionTo\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,0,[\\\"nextInvoice\\\",\\\"previous\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"angle-left\\\",true]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Previous\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced my-1 invoice-editor__header-navigation-button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"nextInvoice\\\",\\\"next\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"transitionTo\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,0,[\\\"nextInvoice\\\",\\\"next\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Next\\\"],null]],[1,\\\" \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"angle-right\\\",true]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,16],[\\\"canManageBills\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add button--spaced my-1\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"transitionTo\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",\\\"new\\\"],null],[12],[1,[28,[35,4],[\\\"common.New bill\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,17],[[30,0,[\\\"isEditing\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isNew\\\"]]],null]],[[[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"eaccountsFileName\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"ipsId\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,18],[[24,\\\"data-test-edi-icon\\\",\\\"\\\"]],[[\\\"@imported\\\",\\\"@title\\\"],[true,[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.This bill was imported automatically\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"xeroLinked\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"quickbooksLinked\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,18],[[24,\\\"data-test-xero-icon\\\",\\\"\\\"]],[[\\\"@exported\\\",\\\"@title\\\"],[true,[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.aCopyOfThisBillHasBeenSentToYourAccountingPackage\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isAutoMapped\\\"]],[[[1,\\\"        \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@class\\\",\\\"@title\\\"],[\\\"magic\\\",\\\"integration-icon\\\",[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Bill was auto mapped\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"button--spaced my-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,\\\"for\\\",\\\"invoice-status\\\"],[12],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[1,\\\": \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@id\\\",\\\"@disabled\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"invoice-status\\\",[28,[37,13],[[28,[37,16],[\\\"canManageBills\\\"],null]],null],\\\"tabular-form-controls__cell select-box\\\",[28,[37,14],[[30,0],\\\"changeStatus\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,16],[\\\"canManageBills\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isNew\\\"]]],[[[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced my-1 button--plain\\\"],[24,\\\"data-test-cancel-edit-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"cancel\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"button button--spaced my-1 button--plain\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\"]],[28,[37,14],[[30,0],\\\"attachmentsUploadComplete\\\"],null],[28,[37,14],[[30,0],\\\"downloadAttachment\\\"],null],[28,[37,14],[[30,0],\\\"deleteAttachment\\\"],null],true]],null],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"button button--spaced my-1\\\\n                \\\",[52,[51,[30,0,[\\\"invoiceIsValid\\\"]]],\\\"invalid\\\"]]]],[24,\\\"data-test-edit-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"isEditing\\\",true],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"xeroLinked\\\"]],[[[1,\\\"                \\\"],[8,[39,23],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@title\\\",\\\"@action\\\"],[\\\"button--spaced my-1\\\",[28,[37,4],[\\\"common.View in Xero\\\"],null],\\\"Xero Actions\\\",[28,[37,14],[[30,0],\\\"viewInvoiceInXero\\\",[30,0,[\\\"entityXeroCompanyId\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"xeroDeeplinkPath\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"loadingXero\\\"]]],[[[1,\\\"                    \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-to-xero\\\",\\\"\\\"],[4,[38,14],[[30,0],\\\"sendToXero\\\"],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Update in Xero\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,24],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,25],[[24,\\\"data-test-send-to-xero\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced my-1\\\",[28,[37,14],[[30,0],\\\"acceptInvoiceAndSendToXero\\\"],null],[52,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to Xero\\\"],null],[28,[37,4],[\\\"shared.bill.Send to Xero\\\"],null]],[30,0,[\\\"loadingXero\\\"]],[28,[37,13],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"quickbooksLinked\\\"]],[[[1,\\\"                \\\"],[8,[39,23],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@title\\\",\\\"@action\\\"],[\\\"button--spaced my-1\\\",[28,[37,4],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null],\\\"QuickBooks Actions\\\",[28,[37,14],[[30,0],\\\"viewBillInQuickbooks\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"quickbooksDeeplinkPath\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"loadingQuickbooks\\\"]]],[[[1,\\\"                    \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-to-xero\\\",\\\"\\\"],[4,[38,14],[[30,0],\\\"sendToQuickBooks\\\"],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Update in QuickBooks\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,24],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,25],null,[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced my-1\\\",[28,[37,14],[[30,0],\\\"acceptInvoiceAndSendToQuickbooks\\\"],null],[52,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to QuickBooks\\\"],null],[28,[37,4],[\\\"shared.bill.Send to QuickBooks\\\"],null]],[30,0,[\\\"loadingQuickbooks\\\"]],[28,[37,13],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"invoice-editor__invoice-info-section\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-issuer\\\"],[12],[1,[28,[35,4],[\\\"common.Issuer\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,28],[[24,\\\"data-test-bill-issuer-input\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@key\\\",\\\"@value\\\",\\\"@options\\\",\\\"@onSet\\\"],[[28,[37,29],[\\\"tabular-form-controls__cell text-input\\\",[52,[51,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issuer\\\"]]],\\\" invalid\\\"]],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issuer\\\"]],[30,0,[\\\"issuers\\\"]],[28,[37,14],[[30,0],\\\"setInvoiceIssuer\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issuer\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-number\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Bill number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"hasDuplicate\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"invoice-editor__inputs-row-warning-triangle\\\"],[14,\\\"data-test-duplicate-warning\\\",\\\"\\\"],[12],[1,\\\"\\\\n               \\\"],[8,[39,30],[[24,0,\\\"text-danger\\\"]],[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"exclamation-triangle\\\",[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.This bill number has already been used\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,31],[[24,1,\\\"invoice-number\\\"],[16,0,[28,[37,29],[\\\"tabular-form-controls__cell text-input\\\",[52,[51,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]]],null]],\\\" invalid\\\"]],null]],[24,\\\"data-test-bill-number-input\\\",\\\"\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]],\\\"—\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-issue-date\\\"],[12],[1,[28,[35,4],[\\\"common.Issue date\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,32],[[16,0,[52,[30,0,[\\\"isIssueDateInvalid\\\"]],\\\"text-input invalid\\\",\\\"text-input\\\"]],[24,\\\"data-test-bill-issue-date-input\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"issueDate\\\",[30,0,[\\\"model\\\",\\\"invoice\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,33],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null],\\\"—\\\"]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row d-flex align-items-start\\\"],[14,5,\\\"min-heigh:60px\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-notes\\\"],[12],[1,[28,[35,4],[\\\"common.Notes\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,34],[[24,1,\\\"invoice-notes\\\"],[24,0,\\\"form-control tabular-form-controls__cell text-input\\\"],[24,5,\\\"min-height:60px; max-height:60px; margin-top: 3px;\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"notes\\\"]]]],null],[1,\\\"\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding text-break overflow-auto\\\"],[14,5,\\\"max-height:60px\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"notes\\\"]],\\\"—\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"allocate-as\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Allocate as\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[10,1],[15,0,[52,[51,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]]],\\\"invalid\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"allocate-as\\\"],[15,\\\"checked\\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"model.invoice.allocationType\\\",\\\"MATERIALS\\\"],null]],[14,\\\"data-test-bill-pick-materials\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Material\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n              \\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"allocate-as\\\"],[15,\\\"checked\\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"model.invoice.allocationType\\\",\\\"SUBCONTRACTORS\\\"],null]],[14,\\\"data-test-bill-pick-subcontractor\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Subcontractor\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n              \\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"allocate-as\\\"],[15,\\\"checked\\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"model.invoice.allocationType\\\",\\\"LABOUR\\\"],null]],[14,\\\"data-test-bill-pick-labour\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-name\\\"],[12],[1,[28,[35,4],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,28],[[24,\\\"data-test-bill-name-input\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@key\\\",\\\"@value\\\",\\\"@options\\\",\\\"@onSet\\\"],[[28,[37,29],[\\\"tabular-form-controls__cell text-input\\\",[52,[51,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]]],null]],\\\" invalid\\\"]],null],\\\"reference\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]],[30,0,[\\\"references\\\"]],[28,[37,14],[[30,0],[28,[37,35],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]],\\\"—\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-due-date\\\"],[12],[1,[28,[35,4],[\\\"common.Due date\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,32],[[16,0,[52,[30,0,[\\\"isDueDateInvalid\\\"]],\\\"text-input invalid\\\",\\\"text-input\\\"]],[24,\\\"data-test-bill-due-date-input\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"dueDate\\\",[30,0,[\\\"model\\\",\\\"invoice\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,33],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null],\\\"—\\\"]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,36],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isNew\\\"]],[28,[37,37],[[30,0,[\\\"newInvoiceStep\\\"]],1],null]],null],[[[1,\\\"    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end\\\"],[24,\\\"data-test-next-step-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"nextStep\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Proceed to create items\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"invoice-editor__divider\\\"],[12],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.Items\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,36],[[28,[37,13],[[30,0,[\\\"isEditing\\\"]]],null],[28,[37,16],[\\\"canManageBills\\\"],null]],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"selectedItems\\\",\\\"length\\\"]]],null]],[24,\\\"data-test-allocate-items-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"allocatingItems\\\",true],null],[12],[1,\\\"\\\\n          \\\"],[1,[52,[30,0,[\\\"selectedItems\\\",\\\"length\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Allocate selected items\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Select items to allocate\\\"],null]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"directives\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,25],[[24,\\\"data-test-auto-map-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@action\\\",\\\"@isLoading\\\"],[\\\"button button--spaced float-end\\\",[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Auto map\\\"],null],[28,[37,14],[[30,0],\\\"autoMap\\\"],null],[30,0,[\\\"isAutoMapping\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,38],null,[[\\\"@invoice\\\",\\\"@allSelected\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@names\\\",\\\"@toggleSelectAll\\\",\\\"@toggleSelectItem\\\",\\\"@addItem\\\",\\\"@deleteItem\\\",\\\"@xeroAccounts\\\",\\\"@xeroFetching\\\",\\\"@xeroIntegration\\\",\\\"@setItemXeroAccount\\\",\\\"@updateXeroAccounts\\\",\\\"@quickbooksAccounts\\\",\\\"@quickbooksFetching\\\",\\\"@quickbooksIntegration\\\",\\\"@setItemQuickbooksAccount\\\",\\\"@updateQuickbooksAccounts\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\"]],[30,0,[\\\"allSelected\\\"]],[30,0,[\\\"isSelected\\\"]],[30,0,[\\\"isEditing\\\"]],[30,0,[\\\"names\\\"]],[28,[37,14],[[30,0],\\\"toggleSelectAll\\\"],null],[28,[37,14],[[30,0],\\\"toggleSelectItem\\\"],null],[28,[37,14],[[30,0],\\\"addItem\\\"],null],[28,[37,14],[[30,0],\\\"deleteItem\\\"],null],[30,0,[\\\"model\\\",\\\"xeroAccounts\\\"]],[30,0,[\\\"xeroFetching\\\"]],[30,0,[\\\"xeroIntegration\\\"]],[28,[37,14],[[30,0],\\\"setItemXeroAccount\\\"],null],[28,[37,14],[[30,0],\\\"updateXeroAccounts\\\"],null],[30,0,[\\\"model\\\",\\\"quickbooksAccounts\\\"]],[30,0,[\\\"quickbooksFetching\\\"]],[30,0,[\\\"quickbooks\\\"]],[28,[37,14],[[30,0],\\\"setItemQuickbooksAccount\\\"],null],[28,[37,14],[[30,0],\\\"updateQuickbooksAccounts\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"      \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add invoice-editor-center-button button--spaced\\\"],[24,\\\"data-test-add-item-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"addItem\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Add another item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__divider\\\"],[12],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-column float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,1],[14,0,\\\"tabular-form-controls__cell--label\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,39],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[\\\"canManageBills\\\"],null],[[[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@action\\\"],[\\\"button float-end\\\",[52,[30,0,[\\\"invoice\\\",\\\"isNew\\\"]],[28,[37,4],[\\\"common.Finish\\\"],null],[28,[37,4],[\\\"common.Save\\\"],null]],[30,0,[\\\"isSaving\\\"]],[28,[37,14],[[30,0],\\\"save\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,\\\"data-test-accept-bill-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@isLoading\\\",\\\"@buttonText\\\"],[\\\"button float-end\\\",[28,[37,14],[[30,0],\\\"acceptInvoice\\\"],null],[30,0,[\\\"isAccepting\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCreditNoteMessage\\\"]],[[[1,\\\"  \\\"],[8,[39,40],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,41],[[28,[37,35],[[30,0,[\\\"showCreditNoteMessage\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[1,\\\"      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.sentToXeroAsCreditNote\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.needToAllocateTheCreditNote\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"showCreditNoteMessage\\\",false],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,25],[[24,\\\"data-test-send-to-xero\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced\\\",[28,[37,14],[[30,0],\\\"sendToXero\\\",true],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send\\\"],null],[30,0,[\\\"loadingXero\\\"]],[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[1,\\\"      \\\"],[10,2],[12],[1,\\\"The total for this bill is negative. It will therefore be sent to QuickBooks as a \\\\\\\"Credit Note\\\\\\\"\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"You will need to allocate the \\\\\\\"Credit Note\\\\\\\" to an invoice from within in QuickBooks\\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"showCreditNoteMessage\\\",false],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,25],[[24,\\\"data-test-send-to-xero\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced\\\",[28,[37,14],[[30,0],\\\"sendToQuickBooks\\\",true],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send\\\"],null],[30,0,[\\\"loadingQuickbooks\\\"]],[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocatingItems\\\"]],[[[1,\\\"  \\\"],[8,[39,43],null,[[\\\"@onCancel\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\",\\\"@isAllocating\\\",\\\"@items\\\",\\\"@projects\\\",\\\"@tasks\\\",\\\"@xeroIntegration\\\",\\\"@isXeroFetching\\\",\\\"@xeroAccounts\\\",\\\"@onUpdateXeroAccounts\\\",\\\"@quickbooksIntegration\\\",\\\"@quickbooksAccounts\\\",\\\"@isQuickbooksFetching\\\",\\\"@onUpdateQuickbooksAccounts\\\"],[[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"allocatingItems\\\",false],null],[28,[37,14],[[30,0],\\\"allocateSelected\\\"],null],[28,[37,14],[[30,0],\\\"allocateAndAcceptSelected\\\"],null],[28,[37,14],[[30,0],\\\"allocateAcceptAndSendToXeroSelected\\\"],null],[28,[37,17],[[30,0,[\\\"isAllocating\\\"]],[30,0,[\\\"isSecondaryAllocating\\\"]]],null],[30,0,[\\\"selectedItems\\\"]],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"tasks\\\"]],[30,0,[\\\"xeroIntegration\\\"]],[30,0,[\\\"xeroFetching\\\"]],[30,0,[\\\"model\\\",\\\"xeroAccounts\\\"]],[28,[37,14],[[30,0],\\\"updateXeroAccounts\\\"],null],[30,0,[\\\"quickbooks\\\"]],[30,0,[\\\"model\\\",\\\"quickbooksAccounts\\\"]],[30,0,[\\\"quickbooksFetching\\\"]],[28,[37,14],[[30,0],\\\"updateQuickbooksAccounts\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,40],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,41],[[28,[37,35],[[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.youAreAboutToAcceptAnBillThatIsNotCompletelyAllocatedDoYouWantToContinue\\\"],null]],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[8,[39,31],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"doNotWarnForUnmappedInvoice\\\"]]]],null],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"shared.bill.Do not warn me again\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[52,[28,[37,19],[[30,0,[\\\"continueActionAfterUnmappedWarning\\\"]],\\\"acceptAndSend\\\"],null],\\\"acceptInvoiceAndSendToXero\\\",\\\"acceptInvoice\\\"],true],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Continue\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[28,[37,35],[[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]]],null],false],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,45],null,[[\\\"@visible\\\",\\\"@close\\\",\\\"@newSupplier\\\",\\\"@updateSupplier\\\",\\\"@isSaving\\\"],[[30,0,[\\\"newSupplierUpdateVisible\\\"]],[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"newSupplierUpdateVisible\\\",false],null],[30,0,[\\\"nextNewSupplier\\\"]],[28,[37,14],[[30,0],\\\"updateNewSupplier\\\"],null],[30,0,[\\\"isSaving\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceTypeResponseHandlerVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"invoiceResponses\\\"]],[28,[37,14],[[30,0],\\\"onInvoiceTypeResponseHandlerCancel\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"gt\\\",\\\"button\\\",\\\"not\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"or\\\",\\\"integration-icon\\\",\\\"eq\\\",\\\"span\\\",\\\"select-input\\\",\\\"attachment-dropdown-list\\\",\\\"combo-button\\\",\\\"loading-icon\\\",\\\"loading-button\\\",\\\"section\\\",\\\"label\\\",\\\"combo-box\\\",\\\"concat\\\",\\\"info-popup\\\",\\\"input\\\",\\\"ptl-input\\\",\\\"moment-format\\\",\\\"textarea\\\",\\\"mut\\\",\\\"and\\\",\\\"lt\\\",\\\"invoice-item-table-pm\\\",\\\"number-format\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"p\\\",\\\"allocation-selector\\\",\\\"footer\\\",\\\"new-supplier-prompt\\\",\\\"invoice-type-response-handler\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PageHeader @title={{t 'common.Bills'}}>\n    <div class='ms-auto d-flex'>\n      {{#if (includes-feature-flags 'canManageBills')}}\n        <DropdownButton\n          @buttonText={{t 'common.New bill'}}\n          @icon='plus'\n          @disabled={{@isAllocating}}\n          @route='entity.builda-price.operations.incoming.bills.bill'\n          @model='new'\n          @btnClass='btn btn-success'\n          @popOverFixed={{true}}\n        >\n          <LinkTo\n            @route='entity.builda-price.operations.incoming.bills.bill'\n            @model='new-credit-note'\n            class='dropdown-item text-nowrap fs-5'\n          >\n            {{t 'entity.builda-price.operations.incoming.bills.New credit note'}}\n          </LinkTo>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (fn (mut this.showBillsUploader) true)}}\n          >\n            {{t 'common.Import'}}\n            CSV\n          </button>\n          {{#if this.ips.ready}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5 d-flex align-items-center gap-2'\n              disabled={{not this.ips.canSubmitDocuments}}\n              {{on 'click' (fn (mut this.showPdfUploader) true)}}\n            >\n              <span>{{t 'common.Import'}} PDF</span>\n              <span\n                class='badge rounded-pill text-bg-secondary align-self-center lh-1'\n              >{{t 'common.IPS'}}</span>\n            </button>\n          {{/if}}\n        </DropdownButton>\n      {{/if}}\n    </div>\n  </PageHeader>\n  \n  {{#if this.ips.ready}}\n    <IpsUsage @alertOnly={{true}} class='mx-3 mt-3 mb-0' />\n  {{/if}}\n  \n  <div class='bill-layout-container'>\n    <div\n      class='bill-layout-left overflow-auto d-flex flex-column\n        {{if\n          (is-active \"entity.builda-price.operations.incoming.bills.bill\")\n          \"is-condensed\"\n        }}'\n    >\n      <div class='d-flex p-3'>\n        <Input\n          class='form-control me-3'\n          @type='search'\n          @value={{this.searchString}}\n          placeholder={{t\n            'entity.builda-price.operations.incoming.bills.Search for bills or bill items'\n          }}\n          autofocus='true'\n          data-test-bill-search\n          {{on 'input' (perform this.onChangeSearchTerm)}}\n        />\n  \n        <PopOver @disableBlur={{true}} @direction='bottom-left' as |po|>\n          <button type='button' class='btn btn-secondary'>\n            <FaIcon @icon='filter' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <div>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.status}}\n                @action={{fn (mut this.status)}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value=''>All</si.option>\n                <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n                <si.option @value='ACCEPTED'>{{t 'common.Accepted'}}</si.option>\n                <si.option @value='ARCHIVED'>{{t 'common.Archived'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held'}}</si.option>\n                <si.option @value='PAID'>{{t 'common.Paid'}}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-3'>\n              <label class='no-wrap mb-1'>{{t 'common.Type'}}</label>\n              <SelectInput\n                @value={{this.billType}}\n                @action={{fn (mut this.billType)}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value=''>All</si.option>\n                <si.option @value='BILL'>{{t 'common.Bill'}}</si.option>\n                <si.option @value='CREDIT_NOTE'>\n                  {{t 'common.Credit note'}}\n                </si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-3'>\n              <label class='no-wrap mb-1'>{{t 'common.Allocation type'}}</label>\n              <SelectInput\n                @value={{this.allocationType}}\n                @action={{fn (mut this.allocationType)}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value=''>All</si.option>\n                <si.option @value='LABOUR'> {{t 'common.Labour'}}</si.option>\n                <si.option @value='MATERIALS'>\n                  {{t 'common.Materials'}}\n                </si.option>\n                <si.option @value='SUBCONTRACTORS'>\n                  {{t 'common.Subcontractors'}}\n                </si.option>\n              </SelectInput>\n            </div>\n  \n            <div>\n              <label class='align-items-center mt-3'>\n                {{t 'common.From date'}}\n              </label>\n              <input\n                class='form-control w-100'\n                type='date'\n                value={{this.startDate}}\n                {{on 'change' this.onFromDateChange}}\n              />\n            </div>\n  \n            <div>\n              <label class='align-items-center mt-3'>\n                {{t 'common.To date'}}\n              </label>\n              <input\n                class='form-control w-100'\n                type='date'\n                value={{this.endDate}}\n                {{on 'change' this.onToDateChange}}\n              />\n            </div>\n          </po.Content>\n        </PopOver>\n      </div>\n  \n      <div class='d-flex px-2'>\n        {{#if this.status}}\n          <FilterPill {{on 'click' (fn (mut this.status) '')}}>\n            {{t 'common.Status'}}:\n            {{this.humanReadableStatusPill}}\n          </FilterPill>\n        {{/if}}\n  \n        {{#if this.startDate}}\n          <FilterPill {{on 'click' (fn (mut this.startDate) undefined)}}>\n            {{t 'common.Start date'}}:\n            {{this.startDate}}\n          </FilterPill>\n        {{/if}}\n  \n        {{#if this.endDate}}\n          <FilterPill {{on 'click' (fn (mut this.endDate) undefined)}}>\n            {{t 'common.End date'}}:\n            {{this.endDate}}\n          </FilterPill>\n        {{/if}}\n  \n        {{#if this.billType}}\n          <FilterPill {{on 'click' (fn (mut this.billType) '')}}>\n            {{t 'common.Type'}}:\n            {{this.humanReadableBillTypePill}}\n          </FilterPill>\n        {{/if}}\n        {{#if this.allocationType}}\n          <FilterPill {{on 'click' (fn (mut this.allocationType) '')}}>\n            {{t 'common.Allocation type'}}:\n            {{this.humanReadableAllocationTypePill}}\n          </FilterPill>\n        {{/if}}\n      </div>\n  \n      <BillsTable\n        @filter={{this.model.filter}}\n        @pageSize={{this.model.pageSize}}\n        @sort={{this.model.sort}}\n        @fields={{this.model.fields}}\n        @onOrderBy={{fn (mut this.sort)}}\n        @condensed={{or\n          (is-active 'entity.builda-price.operations.incoming.bills.bill')\n          (not (media 'isDesktop'))\n        }}\n        @billStatus={{this.status}}\n      />\n    </div>\n  \n    {{#if (is-active 'entity.builda-price.operations.incoming.bills.bill')}}\n      <div class='bill-layout-right overflow-auto border-start'>\n        {{outlet}}\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if this.showPdfUploader}}\n    <IpsUploader @onClose={{fn (mut this.showPdfUploader) false}} />\n  {{/if}}\n  \n  {{#if this.showBillsUploader}}\n    <BillsUploader\n      @onUploadBillsCSV={{this.onUploadBillsCSV}}\n      @onClose={{fn (mut this.showBillsUploader) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"rqFECMbw\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"ms-auto d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"canManageBills\\\"],null],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@buttonText\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@route\\\",\\\"@model\\\",\\\"@btnClass\\\",\\\"@popOverFixed\\\"],[[28,[37,1],[\\\"common.New bill\\\"],null],\\\"plus\\\",[30,1],\\\"entity.builda-price.operations.incoming.bills.bill\\\",\\\"new\\\",\\\"btn btn-success\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,6],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.incoming.bills.bill\\\",\\\"new-credit-note\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"entity.builda-price.operations.incoming.bills.New credit note\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBillsUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Import\\\"],null]],[1,\\\"\\\\n          CSV\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5 d-flex align-items-center gap-2\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"ips\\\",\\\"canSubmitDocuments\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showPdfUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,1],[\\\"common.Import\\\"],null]],[1,\\\" PDF\\\"],[13],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"badge rounded-pill text-bg-secondary align-self-center lh-1\\\"],[12],[1,[28,[35,1],[\\\"common.IPS\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"  \\\"],[8,[39,13],[[24,0,\\\"mx-3 mt-3 mb-0\\\"]],[[\\\"@alertOnly\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"bill-layout-container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[\\\"bill-layout-left overflow-auto d-flex flex-column\\\\n      \\\",[52,[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],\\\"is-condensed\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex p-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,0,\\\"form-control me-3\\\"],[16,\\\"placeholder\\\",[28,[37,1],[\\\"entity.builda-price.operations.incoming.bills.Search for bills or bill items\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-bill-search\\\",\\\"\\\"],[4,[38,8],[\\\"input\\\",[28,[37,16],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],null,[[\\\"@disableBlur\\\",\\\"@direction\\\"],[true,\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"filter\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"billType\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"billType\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"BILL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Bill\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT_NOTE\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Credit note\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Allocation type\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"allocationType\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"allocationType\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"LABOUR\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[1,[28,[35,1],[\\\"common.Labour\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"MATERIALS\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"SUBCONTRACTORS\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[5]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"common.From date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,2,[30,0,[\\\"startDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onFromDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"common.To date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,2,[30,0,[\\\"endDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onToDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex px-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"status\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableStatusPill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"startDate\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"startDate\\\"]]],null],[27]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Start date\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"startDate\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"endDate\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"endDate\\\"]]],null],[27]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.End date\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"endDate\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billType\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"billType\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Type\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableBillTypePill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"allocationType\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"allocationType\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Allocation type\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableAllocationTypePill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,22],null,[[\\\"@filter\\\",\\\"@pageSize\\\",\\\"@sort\\\",\\\"@fields\\\",\\\"@onOrderBy\\\",\\\"@condensed\\\",\\\"@billStatus\\\"],[[30,0,[\\\"model\\\",\\\"filter\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"sort\\\"]],[30,0,[\\\"model\\\",\\\"fields\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"sort\\\"]]],null]],null],[28,[37,23],[[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],[28,[37,11],[[28,[37,24],[\\\"isDesktop\\\"],null]],null]],null],[30,0,[\\\"status\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"bill-layout-right overflow-auto border-start\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,26],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showPdfUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@onClose\\\"],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showPdfUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBillsUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@onUploadBillsCSV\\\",\\\"@onClose\\\"],[[30,0,[\\\"onUploadBillsCSV\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBillsUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@isAllocating\\\",\\\"po\\\",\\\"si\\\",\\\"si\\\",\\\"si\\\"],false,[\\\"page-header\\\",\\\"t\\\",\\\"div\\\",\\\"if\\\",\\\"includes-feature-flags\\\",\\\"dropdown-button\\\",\\\"link-to\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"span\\\",\\\"ips-usage\\\",\\\"is-active\\\",\\\"input\\\",\\\"perform\\\",\\\"pop-over\\\",\\\"fa-icon\\\",\\\"label\\\",\\\"select-input\\\",\\\"filter-pill\\\",\\\"bills-table\\\",\\\"or\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"ips-uploader\\\",\\\"bills-uploader\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills/bill\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <BillEditor @bill={{this.model.bill}} @billStatus={{this.model.billStatus}} />\n  */\n  {\n    \"id\": \"ptuW+ZWY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@bill\\\",\\\"@billStatus\\\"],[[30,0,[\\\"model\\\",\\\"bill\\\"]],[30,0,[\\\"model\\\",\\\"billStatus\\\"]]]],null]],[],false,[\\\"bill-editor\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills/bill.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/statements\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 h-100 d-flex flex-column'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Statements'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if this.ips.ready}}\n      <IpsUsage @alertOnly={{true}} class='mb-3 flex-shrink-0' />\n    {{/if}}\n  \n    <iframe\n      src={{this.iframeSrc}}\n      class='buildaprice-frame flex-grow-1'\n      title={{t 'common.Statements'}}\n    ></iframe>\n  </article>\n  */\n  {\n    \"id\": \"M0VnM65f\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 h-100 d-flex flex-column\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Statements\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"    \\\"],[8,[39,6],[[24,0,\\\"mb-3 flex-shrink-0\\\"]],[[\\\"@alertOnly\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"iframe\\\"],[15,\\\"src\\\",[30,0,[\\\"iframeSrc\\\"]]],[14,0,\\\"buildaprice-frame flex-grow-1\\\"],[15,\\\"title\\\",[28,[37,5],[\\\"common.Statements\\\"],null]],[12],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"ips-usage\\\",\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/statements.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"6IH+Ee33\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Timesheets')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{! TODO not actually sticky anymore due to compatibility with embed route }}\n    {{! look at fixing when there is time }}\n    <div class='timesheets__sticky-header'>\n      <div class='border-bottom mb-3 d-flex align-items-center pb-3'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='m-0'>\n            {{t 'common.Timesheets'}}\n          </h1>\n        {{/if}}\n        <div class='ms-auto'>\n          <LinkTo\n            @route={{concat this.model.basePath '.timesheets.timesheet'}}\n            @query={{hash date=(moment-format this.today 'YYYY-MM-DD') worker=''}}\n            class='button button--add button--spaced'\n            data-test-timesheet\n          >\n            {{t\n              'entity.builda-price.operations.incoming.timesheets.New timesheet'\n            }}\n          </LinkTo>\n        </div>\n      </div>\n  \n      <div class='timesheets__controls'>\n        {{#if this.showForemanControls}}\n          <button\n            class='button button--spaced'\n            disabled={{not this.filteredTimesheets.length}}\n            type='button'\n            {{on 'click' (action 'toggleGroupsSelected')}}\n          >\n            {{if\n              this.allSelected\n              (t 'common.Deselect all')\n              (t 'common.Select all')\n            }}\n          </button>\n  \n          <OverlaidDropdown\n            @buttonText={{t 'common.Actions'}}\n            @class='button--spaced'\n            @disabled={{not this.anySelected}}\n            @buttonClasses='button button--secondary'\n            @title={{concat this.nSelected ' ' (t 'common.selected')}}\n          >\n            {{#if (or this.acceptingTimesheets)}}\n              <div class='overlaid-dropdown__option text-center'>\n                <LoadingIcon @type='spinner' />\n              </div>\n            {{else}}\n              <div\n                class='overlaid-dropdown__option'\n                {{on 'click' (action 'acceptSelectedTimesheets')}}\n              >\n                {{t\n                  'entity.builda-price.operations.incoming.timesheets.Accept selected'\n                }}\n              </div>\n              <div\n                class='overlaid-dropdown__option'\n                {{on 'click' (action 'undoAcceptSelectedTimesheets')}}\n              >\n                {{t\n                  'entity.builda-price.operations.incoming.timesheets.Return to pending'\n                }}\n              </div>\n            {{/if}}\n          </OverlaidDropdown>\n        {{/if}}\n  \n        <div class='float-end'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='right'\n            @startDate={{this.jsStartDate}}\n            @endDate={{this.jsEndDate}}\n            @onApply={{action 'setDateRange'}}\n          />\n  \n          &nbsp;&nbsp;\n  \n          <div class='timesheets__controls-select button--spaced'>\n            {{t 'common.Status'}}:\n            <SelectInput\n              @value={{this.selectedTimesheetStatus}}\n              @action={{fn (mut this.selectedTimesheetStatus)}}\n              @class='select-box'\n              as |si|\n            >\n              <si.option @value='all'>{{t 'common.All'}}</si.option>\n              <si.option @value='pending'>{{t 'common.Pending'}}</si.option>\n              <si.option @value='accepted'>{{t 'common.Accepted'}}</si.option>\n            </SelectInput>\n          </div>\n  \n          &nbsp;&nbsp;\n  \n          <span class='timesheets__controls-search'>\n            <FaIcon @icon='search' />\n            <Input\n              @value={{this.searchString}}\n              class='text-input'\n              placeholder={{t 'common.workersProjectsOrTasks'}}\n            />\n          </span>\n        </div>\n      </div>\n    </div>\n  \n    <div class='timesheets__timesheets-section mt-5'>\n      {{#if this.filteredTimesheets.length}}\n        <TimesheetsTablePm\n          @groupedTimesheetData={{this.groupedTimesheets}}\n          @toggleGroupSelected={{action 'toggleGroupSelected'}}\n          @toggleGroupExpanded={{action 'toggleGroupExpanded'}}\n          @link={{concat this.model.basePath '.timesheets.timesheet'}}\n          @allGroupsSelected={{this.allGroupsSelected}}\n          @acceptAndLockTimesheet={{action 'acceptAndLockTimesheet'}}\n          @undoAcceptAndLockTimesheet={{action 'undoAcceptAndLockTimesheet'}}\n          @acceptingTimesheets={{this.acceptingTimesheets}}\n          @showForemanControls={{this.showForemanControls}}\n        />\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>{{t\n              'shared.timesheet.No timesheets'\n            }}</h3>\n        </div>\n      {{/if}}\n    </div>\n  </article>\n  {{outlet}}\n  */\n  {\n    \"id\": \"n2KwyL8Q\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Timesheets\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"timesheets__sticky-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-bottom mb-3 d-flex align-items-center pb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],[[24,0,\\\"button button--add button--spaced\\\"],[24,\\\"data-test-timesheet\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[[28,[37,10],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".timesheets.timesheet\\\"],null],[28,[37,11],null,[[\\\"date\\\",\\\"worker\\\"],[[28,[37,12],[[30,0,[\\\"today\\\"]],\\\"YYYY-MM-DD\\\"],null],\\\"\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.New timesheet\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"timesheets__controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showForemanControls\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"filteredTimesheets\\\",\\\"length\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"toggleGroupsSelected\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[52,[30,0,[\\\"allSelected\\\"]],[28,[37,4],[\\\"common.Deselect all\\\"],null],[28,[37,4],[\\\"common.Select all\\\"],null]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,17],null,[[\\\"@buttonText\\\",\\\"@class\\\",\\\"@disabled\\\",\\\"@buttonClasses\\\",\\\"@title\\\"],[[28,[37,4],[\\\"common.Actions\\\"],null],\\\"button--spaced\\\",[28,[37,14],[[30,0,[\\\"anySelected\\\"]]],null],\\\"button button--secondary\\\",[28,[37,10],[[30,0,[\\\"nSelected\\\"]],\\\" \\\",[28,[37,4],[\\\"common.selected\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"acceptingTimesheets\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,19],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"acceptSelectedTimesheets\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.Accept selected\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"undoAcceptSelectedTimesheets\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.Return to pending\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,20],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,16],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n\\\\n          \\\\n\\\\n        \\\"],[10,0],[14,0,\\\"timesheets__controls-select button--spaced\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n          \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedTimesheetStatus\\\"]],[28,[37,22],[[28,[37,23],[[30,0,[\\\"selectedTimesheetStatus\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"pending\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Pending\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"accepted\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n          \\\\n\\\\n        \\\"],[10,1],[14,0,\\\"timesheets__controls-search\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,26],[[24,0,\\\"text-input\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"common.workersProjectsOrTasks\\\"],null]]],[[\\\"@value\\\"],[[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"timesheets__timesheets-section mt-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filteredTimesheets\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[39,27],null,[[\\\"@groupedTimesheetData\\\",\\\"@toggleGroupSelected\\\",\\\"@toggleGroupExpanded\\\",\\\"@link\\\",\\\"@allGroupsSelected\\\",\\\"@acceptAndLockTimesheet\\\",\\\"@undoAcceptAndLockTimesheet\\\",\\\"@acceptingTimesheets\\\",\\\"@showForemanControls\\\"],[[30,0,[\\\"groupedTimesheets\\\"]],[28,[37,16],[[30,0],\\\"toggleGroupSelected\\\"],null],[28,[37,16],[[30,0],\\\"toggleGroupExpanded\\\"],null],[28,[37,10],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".timesheets.timesheet\\\"],null],[30,0,[\\\"allGroupsSelected\\\"]],[28,[37,16],[[30,0],\\\"acceptAndLockTimesheet\\\"],null],[28,[37,16],[[30,0],\\\"undoAcceptAndLockTimesheet\\\"],null],[30,0,[\\\"acceptingTimesheets\\\"]],[30,0,[\\\"showForemanControls\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"shared.timesheet.No timesheets\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[46,[28,[37,30],null,null],null,null,null]],[\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"h1\\\",\\\"link-to\\\",\\\"concat\\\",\\\"hash\\\",\\\"moment-format\\\",\\\"button\\\",\\\"not\\\",\\\"on\\\",\\\"action\\\",\\\"overlaid-dropdown\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"timesheets-table-pm\\\",\\\"h2\\\",\\\"h3\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.date}}\n    <ModalDialog\n      @onClose={{action 'clear'}}\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{! TODO action bubbles }}\n      {{! close=(action 'clear') }}\n      <div class='timesheet'>\n        {{#if this.isLoading}}\n          <div class='timesheet__placeholder'>\n            <p class='text-center'>\n              <LoadingIcon @type='spinner' />\n            </p>\n          </div>\n        {{else}}\n          <div class='timesheet__selectors'>\n            <div class='timesheet__selectors-row'>\n              <div class='timesheet__selectors-column'>\n                <h3 class='h3'>{{t 'common.Worker'}}</h3>\n  \n                <div\n                  class='select-box-replacement timesheet__worker-date-row-input'\n                >\n                  {{#if this.selectedWorker}}\n                    <span data-test-worker>{{this.selectedWorker.fullName}}</span>\n                  {{else}}\n                    <span\n                      data-test-worker\n                      class='select-box-replacement__placeholder'\n                    >{{t 'shared.timesheet.Select a worker'}}</span>\n                  {{/if}}\n  \n                  <select\n                    class='select-box-replacement__select-box'\n                    oninput={{action (mut this.worker) value='target.value'}}\n                    data-test-worker-select\n                  >\n                    {{#unless this.selectedWorker}}\n                      <option selected>–</option>\n                    {{/unless}}\n  \n                    {{#each this.activeWorkers as |worker|}}\n                      <option\n                        value={{worker.id}}\n                        selected={{eq worker this.selectedWorker}}\n                      >{{worker.fullName}}</option>\n                    {{/each}}\n                  </select>\n                </div>\n              </div>\n  \n              <div class='timesheet__selectors-column'>\n                <h3 class='h3'>{{t 'common.Date'}}</h3>\n                <input\n                  class='form-control'\n                  type='date'\n                  value={{this.selectedDate}}\n                  {{on 'change' (fn (mut this.selectedDate))}}\n                  autocomplete='off'\n                />\n              </div>\n            </div>\n  \n            {{! (and '' '') doesn't work  }}\n            {{#if this.model.hasDateAndWorker}}\n              {{#if this.timesheetsByProject.projectMetas}}\n                <div class='timesheet__selectors-row'>\n                  <div class='timesheet__selectors-column'>\n                    <h4 class='h4'>{{if\n                        this.canCurrentlyBeForeman\n                        (t 'common.workerS')\n                        (t 'common.Daily')\n                      }}\n                      note</h4>\n                    <Textarea\n                      placeholder={{t\n                        'entity.builda-price.operations.incoming.timesheets.timesheet.workerSNotes'\n                      }}\n                      disabled={{not this.workerIsSelf}}\n                      @value={{this.model.note.body}}\n                      class='timesheet__notes-row-input text-input'\n                      data-test-note='note'\n                      rows={{4}}\n                    />\n                  </div>\n  \n                  {{#if this.canCurrentlyBeForeman}}\n                    <div class='timesheet__selectors-column'>\n                      <h4 class='h4'>{{t 'shared.timesheet.Admin note'}}</h4>\n                      <Textarea\n                        placeholder={{t\n                          'entity.builda-price.operations.incoming.timesheets.timesheet.adminSNotes'\n                        }}\n                        @value={{this.model.note.adminNote}}\n                        class='timesheet__notes-row-input text-input'\n                        data-test-note='note'\n                        rows={{4}}\n                      />\n                    </div>\n                  {{/if}}\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n  \n          <div class='timesheet__detail'>\n            {{#if this.model.hasDateAndWorker}}\n              {{#each this.filteredProjectMetas as |group groupIndex|}}\n                <div\n                  class='timesheet__detail\n                    {{unless\n                      (or group.canBeForeman group.isSelf)\n                      \"timesheets-table__entry--disabled\"\n                    }}\n                    {{if\n                      (and\n                        (not group.canBeForeman)\n                        (eq group.timesheetStatus.status \"accepted\")\n                      )\n                      \"timesheets-table__entry--disabled\"\n                    }}'\n                >\n                  <div\n                    class='timesheet__title'\n                    data-test-timesheet-project={{group.project.id}}\n                  >\n                    <h3 class='h3'>{{group.project.name}}</h3>\n                    &nbsp; &nbsp;\n                    {{#if group.canBeForeman}}\n                      <SelectInput\n                        @class='select-box'\n                        @value={{or group.timesheetStatus.status 'pending'}}\n                        @action={{action 'changeStatus' group}}\n                        as |si|\n                      >\n                        {{#each this.statuses as |status|}}\n                          <si.option\n                            @value={{status.value}}\n                          >{{status.label}}</si.option>\n                        {{/each}}\n                      </SelectInput>\n                    {{else}}\n                      <div\n                        class='timesheets-table__entry-status\n                          {{if\n                            (eq group.timesheetStatus.status \"accepted\")\n                            \"timesheets-table__entry-status--accepted\"\n                          }}'\n                      >\n                        {{timesheet-status-label group.timesheetStatus.status}}\n                      </div>\n                    {{/if}}\n                  </div>\n  \n                  {{#if this.projectMeta.timesheetStatus.didEdit}}\n                    <div class='timesheets-table__card-note--edited'>\n                      <span><FaIcon @icon='exclamation-triangle' />\n                        {{t 'shared.timesheet.Edited by admin because'}}:</span>\n                      <br />\n                      {{or\n                        this.projectMeta.timesheetStatus.editNote\n                        (t 'shared.timesheet.No reason given')\n                      }}\n                    </div>\n                  {{/if}}\n  \n                  <table class='data-table timesheet__table'>\n                    <tbody>\n                      {{#each group.timesheets as |timesheet sheetIndex|}}\n                        {{#unless timesheet.isDeleted}}\n                          <TimesheetLinePm\n                            @deleteTimesheet={{action\n                              'deleteTimesheet'\n                              timesheet\n                            }}\n                            @setTask={{action 'setTask' timesheet}}\n                            @timesheet={{timesheet}}\n                            @group={{group}}\n                            @index={{concat groupIndex '-' sheetIndex}}\n                            @disabled={{or\n                              (and (not group.canBeForeman) (not group.isSelf))\n                              (and\n                                (not group.canBeForeman)\n                                (eq group.timesheetStatus.status 'accepted')\n                              )\n                            }}\n                          />\n                        {{/unless}}\n                      {{/each}}\n                    </tbody>\n                  </table>\n  \n                  {{#if\n                    (and\n                      group.hasTasksToSelect (or group.isSelf group.canBeForeman)\n                    )\n                  }}\n                    {{#unless\n                      (and\n                        (not group.canBeForeman)\n                        (eq group.timesheetStatus.status 'accepted')\n                      )\n                    }}\n                      <button\n                        class='button button--add center timesheet__button'\n                        data-test-add-cc={{group.project.id}}\n                        type='button'\n                        {{action 'addTask' group.project}}\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.timesheets.timesheet.Add task for'\n                        }}\n                        {{group.project.name}}\n                      </button>\n                    {{/unless}}\n                  {{/if}}\n                </div>\n              {{/each}}\n  \n              {{#if this.remainingProjects.length}}\n                <div class='timesheet__add-project'>\n                  <span class='button button--add'>{{t\n                      'entity.builda-price.operations.incoming.timesheets.timesheet.Add a project'\n                    }}</span>\n  \n                  <div class='select-box-replacement__select-box'>\n                    <PowerSelect\n                      @tagName='div'\n                      @searchEnabled={{true}}\n                      @options={{this.remainingProjects}}\n                      @selected={{this.timesheet.task}}\n                      @searchField='name'\n                      @onChange={{action 'setNextProject'}}\n                      data-test-job-select\n                      as |project|\n                    >\n                      {{project.name}}\n                    </PowerSelect>\n                  </div>\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          type='button'\n          class='button button--plain button--spaced'\n          {{action 'clear'}}\n        >\n          {{t 'common.Close'}}\n        </button>\n  \n        {{#if\n          (and\n            this.model.hasDateAndWorker\n            (or this.workerIsSelf this.canCurrentlyBeForeman)\n            this.timesheetsByProject.projectMetas.length\n          )\n        }}\n          <LoadingButton\n            @isLoading={{this.isSaving}}\n            @class='button button--spaced float-end'\n            @action={{action 'save'}}\n            data-test-save='save'\n          >\n            {{t 'common.Save'}}\n          </LoadingButton>\n        {{/if}}\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showReasonDialog}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{action this.set 'showReasonDialog' false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <div class='block-module__header'>\n        {{t\n          'entity.builda-price.operations.incoming.timesheets.timesheet.pleaseGiveAReasonForHavingEditedNameTimesheets'\n          name=this.selectedWorker.firstName\n        }}\n      </div>\n      {{#each this.timesheetsByProject.projectMetas as |projectMeta|}}\n        {{#if projectMeta.canBeForeman}}\n          {{projectMeta.project.name}}\n          <br />\n          <Textarea\n            class='timesheet__notes-row-input text-input'\n            @value={{projectMeta.timesheetStatus.editNote}}\n          />\n        {{/if}}\n      {{/each}}\n      <div class='block-module__footer'>\n        <LoadingButton\n          @class='button button--primary float-end'\n          @buttonText={{t 'common.Submit'}}\n          @action={{action 'save' true}}\n          @isLoading={{this.isSaving}}\n        />\n        <button\n          class='button button--secondary'\n          type='button'\n          {{action this.set 'showReasonDialog' false}}\n        >{{t 'common.Cancel'}}</button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"z1PhBjPq\",\n    \"block\": \"[[[41,[30,0,[\\\"date\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[[28,[37,2],[[30,0],\\\"clear\\\"],null],\\\"modal\\\",true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"timesheet\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"timesheet__placeholder\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"timesheet__selectors\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheet__selectors-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,7],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"select-box-replacement timesheet__worker-date-row-input\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedWorker\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,\\\"data-test-worker\\\",\\\"\\\"],[12],[1,[30,0,[\\\"selectedWorker\\\",\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,1],[14,\\\"data-test-worker\\\",\\\"\\\"],[14,0,\\\"select-box-replacement__placeholder\\\"],[12],[1,[28,[35,7],[\\\"shared.timesheet.Select a worker\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                \\\"],[10,\\\"select\\\"],[14,0,\\\"select-box-replacement__select-box\\\"],[15,\\\"oninput\\\",[28,[37,2],[[30,0],[28,[37,10],[[30,0,[\\\"worker\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,\\\"data-test-worker-select\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"selectedWorker\\\"]]],[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"activeWorkers\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,15],[[30,1],[30,0,[\\\"selectedWorker\\\"]]],null]],[12],[1,[30,1,[\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,7],[\\\"common.Date\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control\\\"],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[28,[37,10],[[30,0,[\\\"selectedDate\\\"]]],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[[[41,[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"timesheet__selectors-row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,[52,[30,0,[\\\"canCurrentlyBeForeman\\\"]],[28,[37,7],[\\\"common.workerS\\\"],null],[28,[37,7],[\\\"common.Daily\\\"],null]]],[1,\\\"\\\\n                    note\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.workerSNotes\\\"],null]],[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"workerIsSelf\\\"]]],null]],[24,0,\\\"timesheet__notes-row-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"rows\\\",4]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"note\\\",\\\"body\\\"]]]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canCurrentlyBeForeman\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,[28,[35,7],[\\\"shared.timesheet.Admin note\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.adminSNotes\\\"],null]],[24,0,\\\"timesheet__notes-row-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"rows\\\",4]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"note\\\",\\\"adminNote\\\"]]]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"timesheet__detail\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[[[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"filteredProjectMetas\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[15,0,[29,[\\\"timesheet__detail\\\\n                  \\\",[52,[51,[28,[37,22],[[30,2,[\\\"canBeForeman\\\"]],[30,2,[\\\"isSelf\\\"]]],null]],\\\"timesheets-table__entry--disabled\\\"],\\\"\\\\n                  \\\",[52,[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null],\\\"timesheets-table__entry--disabled\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheet__title\\\"],[15,\\\"data-test-timesheet-project\\\",[30,2,[\\\"project\\\",\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[30,2,[\\\"project\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                     \\\\n\\\"],[41,[30,2,[\\\"canBeForeman\\\"]],[[[1,\\\"                    \\\"],[8,[39,24],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[\\\"select-box\\\",[28,[37,22],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"pending\\\"],null],[28,[37,2],[[30,0],\\\"changeStatus\\\",[30,2]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"statuses\\\"]]],null]],null],null,[[[1,\\\"                        \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,5,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,5,[\\\"label\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                    \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[15,0,[29,[\\\"timesheets-table__entry-status\\\\n                        \\\",[52,[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null],\\\"timesheets-table__entry-status--accepted\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,25],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"projectMeta\\\",\\\"timesheetStatus\\\",\\\"didEdit\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table__card-note--edited\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[12],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n                      \\\"],[1,[28,[35,7],[\\\"shared.timesheet.Edited by admin because\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,0,[\\\"projectMeta\\\",\\\"timesheetStatus\\\",\\\"editNote\\\"]],[28,[37,7],[\\\"shared.timesheet.No reason given\\\"],null]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table timesheet__table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,2,[\\\"timesheets\\\"]]],null]],null],null,[[[41,[51,[30,6,[\\\"isDeleted\\\"]]],[[[1,\\\"                        \\\"],[8,[39,30],null,[[\\\"@deleteTimesheet\\\",\\\"@setTask\\\",\\\"@timesheet\\\",\\\"@group\\\",\\\"@index\\\",\\\"@disabled\\\"],[[28,[37,2],[[30,0],\\\"deleteTimesheet\\\",[30,6]],null],[28,[37,2],[[30,0],\\\"setTask\\\",[30,6]],null],[30,6],[30,2],[28,[37,31],[[30,3],\\\"-\\\",[30,7]],null],[28,[37,22],[[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,21],[[30,2,[\\\"isSelf\\\"]]],null]],null],[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[6,7]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,23],[[30,2,[\\\"hasTasksToSelect\\\"]],[28,[37,22],[[30,2,[\\\"isSelf\\\"]],[30,2,[\\\"canBeForeman\\\"]]],null]],null],[[[41,[51,[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add center timesheet__button\\\"],[16,\\\"data-test-add-cc\\\",[30,2,[\\\"project\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"addTask\\\",[30,2,[\\\"project\\\"]]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.Add task for\\\"],null]],[1,\\\"\\\\n                      \\\"],[1,[30,2,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"remainingProjects\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"timesheet__add-project\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"button button--add\\\"],[12],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.Add a project\\\"],null]],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"select-box-replacement__select-box\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,33],[[24,\\\"data-test-job-select\\\",\\\"\\\"]],[[\\\"@tagName\\\",\\\"@searchEnabled\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[\\\"div\\\",true,[30,0,[\\\"remainingProjects\\\"]],[30,0,[\\\"timesheet\\\",\\\"task\\\"]],\\\"name\\\",[28,[37,2],[[30,0],\\\"setNextProject\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"]],[8]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"clear\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,23],[[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[28,[37,22],[[30,0,[\\\"workerIsSelf\\\"]],[30,0,[\\\"canCurrentlyBeForeman\\\"]]],null],[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,35],[[24,\\\"data-test-save\\\",\\\"save\\\"]],[[\\\"@isLoading\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"isSaving\\\"]],\\\"button button--spaced float-end\\\",[28,[37,2],[[30,0],\\\"save\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showReasonDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"showReasonDialog\\\",false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.pleaseGiveAReasonForHavingEditedNameTimesheets\\\"],[[\\\"name\\\"],[[30,0,[\\\"selectedWorker\\\",\\\"firstName\\\"]]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\"]]],null]],null],null,[[[41,[30,9,[\\\"canBeForeman\\\"]],[[[1,\\\"        \\\"],[1,[30,9,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[8,[39,20],[[24,0,\\\"timesheet__notes-row-input text-input\\\"]],[[\\\"@value\\\"],[[30,9,[\\\"timesheetStatus\\\",\\\"editNote\\\"]]]],null],[1,\\\"\\\"]],[]],null]],[9]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,35],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@action\\\",\\\"@isLoading\\\"],[\\\"button button--primary float-end\\\",[28,[37,7],[\\\"common.Submit\\\"],null],[28,[37,2],[[30,0],\\\"save\\\",true],null],[30,0,[\\\"isSaving\\\"]]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"showReasonDialog\\\",false],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\",\\\"group\\\",\\\"groupIndex\\\",\\\"si\\\",\\\"status\\\",\\\"timesheet\\\",\\\"sheetIndex\\\",\\\"project\\\",\\\"projectMeta\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"action\\\",\\\"div\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"h3\\\",\\\"t\\\",\\\"span\\\",\\\"select\\\",\\\"mut\\\",\\\"unless\\\",\\\"option\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"input\\\",\\\"on\\\",\\\"fn\\\",\\\"h4\\\",\\\"textarea\\\",\\\"not\\\",\\\"or\\\",\\\"and\\\",\\\"select-input\\\",\\\"timesheet-status-label\\\",\\\"fa-icon\\\",\\\"br\\\",\\\"table\\\",\\\"tbody\\\",\\\"timesheet-line-pm\\\",\\\"concat\\\",\\\"button\\\",\\\"power-select\\\",\\\"footer\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Operations::Outgoing />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"5Toau6h8\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/operations/outgoing\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/invoices/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Invoices'}}</h2>\n        {{/if}}\n  \n        {{#if (includes-feature-flags 'canManageInvoices')}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.showInvoicesUploader) true)}}\n          >\n            <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n              'entity.builda-price.operations.outgoing.invoices.Import invoices'\n            }}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{or this.isLoading this.downloadAsCSV.isRunning}}\n            {{on 'click' (fn (mut this.showDownloadCsvModal) true)}}\n            data-test-download-csv\n          >\n            {{t 'shared.report.Download as CSV'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' this.openNewInvoiceForm}}\n            disabled={{this.isLoading}}\n            data-test-add-new-invoice\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;\n            {{t 'common.New'}}\n          </button>\n        {{/if}}\n      </header>\n  \n      <div\n        class='d-flex align-items-center justify-content-end flex-wrap-reverse mb-2'\n      >\n        {{#if (and this.startDate this.endDate)}}\n          <PageFilters::Pill @onClose={{this.clearDateRange}}>\n            {{t 'common.Date range'}}:\n            {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n            {{t 'common.to'}}\n            {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if (not-eq this.invoiceType 'ALL')}}\n          <PageFilters::Pill @onClose={{fn (mut this.invoiceType) 'ALL'}}>\n            {{t 'common.Type'}}:\n            {{#if (eq this.invoiceType 'INVOICE')}}\n              {{t 'common.Invoice'}}\n            {{else}}\n              {{t 'common.Credit note'}}\n            {{/if}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if (not-eq this.status 'ALL')}}\n          <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n            {{t 'common.Status'}}:\n            {{#if (eq this.status 'DRAFT')}}\n              {{t 'common.Draft'}}\n            {{else if (eq this.status 'AWAITING_APPROVAL')}}\n              {{t 'common.Awaiting approval'}}\n            {{else if (eq this.status 'COMPLETED')}}\n              {{t 'common.Sent'}}\n            {{else if (eq this.status 'APPROVED')}}\n              {{t 'common.Approved'}}\n            {{/if}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if this.contact}}\n          <PageFilters::Pill @onClose={{this.clearFilterContact}}>\n            {{t 'common.Contact'}}:\n            {{this.contact}}\n          </PageFilters::Pill>\n        {{/if}}\n  \n        <PageFilters class='m-1' @align='right' @disable={{this.isLoading}}>\n          <PageFilters::Item @label={{t 'common.Date range'}}>\n            <DateRangeSelector\n              @align='right'\n              @startDate={{this.jsStartDate}}\n              @endDate={{this.jsEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Type'}}>\n            <SelectInput\n              class='select-box'\n              @action={{fn (mut this.invoiceType)}}\n              @value={{this.invoiceType}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n              <si.option @value='INVOICE'>{{t 'common.Invoice'}}</si.option>\n              <si.option @value='CREDIT_NOTE'>{{t\n                  'common.Credit note'\n                }}</si.option>\n            </SelectInput>\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Status'}}>\n            <SelectInput\n              class='select-box'\n              @action={{fn (mut this.status)}}\n              @value={{this.status}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n              <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n              <si.option @value='AWAITING_APPROVAL'>{{t\n                  'common.Awaiting approval'\n                }}</si.option>\n              <si.option @value='APPROVED'>{{t 'common.Approved'}}</si.option>\n              <si.option @value='COMPLETED'>{{t 'common.Completed'}}</si.option>\n            </SelectInput>\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Contact'}}>\n            <SearchSelector\n              @onSelect={{this.setFilterContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'common.Create a contact'}}\n              @noDataRoute='entity.settings.contacts.contact'\n              @showNoDataRouteWithResults={{true}}\n              @key='contact'\n              @optionKeys={{array 'name'}}\n              @model={{this.contactFilterModel}}\n            />\n          </PageFilters::Item>\n        </PageFilters>\n  \n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          aria-label='Search…'\n          @type='search'\n          @value={{this.invoiceSearchTerm}}\n          disabled={{this.isLoading}}\n          {{on 'input' (perform this.onChangeInvoiceSearchTerm)}}\n          autofocus={{true}}\n          data-test-invoice-search\n        />\n      </div>\n  \n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.model.invoices.lastSuccessful.value.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                <div\n                  class='col-3 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'invoiceNumber')}}\n                >\n                  {{t 'common.Invoice number'}}\n                  {{#if this.invoiceNumberIconName}}\n                    <FaIcon @icon={{this.invoiceNumberIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-2 fw-bold'>{{t 'common.Contact'}}</div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'issueDate')}}\n                >\n                  {{t 'common.Issue date'}}\n                  {{#if this.issueDateIconName}}\n                    <FaIcon @icon={{this.issueDateIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateCreated')}}\n                >\n                  {{t 'common.Created date'}}\n                  {{#if this.dateCreatedIconName}}\n                    <FaIcon @icon={{this.dateCreatedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold text-center'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'status')}}\n                >\n                  {{t 'common.Status'}}\n                  {{#if this.statusIconName}}\n                    <FaIcon @icon={{this.statusIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-1 fw-bold text-center'>\n                  {{t 'common.Total'}}\n                </div>\n                <div class='col-1 fw-bold'></div>\n              </div>\n            </div>\n          {{/if}}\n  \n          <InfinityScroll\n            @onLoadMore={{perform this.onLoadMoreInvoices}}\n            as |didInsert|\n          >\n            <div\n              class='overflow-auto'\n              style='height: calc(100vh - 320px);'\n              {{did-insert didInsert}}\n            >\n              {{#each this.model.invoices.lastSuccessful.value as |invoice|}}\n                <div class='py-2'>\n                  <LinkTo\n                    @route='entity.builda-price.operations.outgoing.invoices.invoice'\n                    @model={{invoice.id}}\n                    class='project-card__card card shadow-sm text-dark p-3'\n                    role='button'\n                    data-test-project={{invoice.id}}\n                  >\n                    <div class='row align-items-center'>\n                      <div\n                        class='col project-card__project-name fs-2 d-flex align-items-center'\n                        data-test-project-card-name\n                      >\n                        {{invoice.invoiceNumber}}\n                        {{#if (eq invoice.invoiceType 'CREDIT_NOTE')}}\n                          <span class='badge bg-info ms-1 fs-7'>\n                            {{invoice.typeLabel}}\n                          </span>\n                        {{/if}}\n                      </div>\n  \n                      {{#if (media 'isDesktop')}}\n                        <div class='col-2 fs-5'>\n                          {{#if invoice.toContact.name}}\n                            {{invoice.toContact.name}}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n  \n                        <div class='col-2 fs-5'>\n                          {{#if invoice.issueDate}}\n                            {{moment-format\n                              invoice.issueDate\n                              (t 'date.shortWithWeekday')\n                            }}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n  \n                        <div class='col-2 fs-5'>\n                          {{#if invoice.dateCreated}}\n                            {{moment-format\n                              invoice.dateCreated\n                              (t 'date.shortWithWeekday')\n                            }}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n                      {{/if}}\n                      <div class='col-lg-1 col-3 d-flex justify-content-center'>\n                        <span\n                          class='badge rounded-pill fs-6 px-3 py-2\n                            {{if (eq invoice.status \"COMPLETED\") \"bg-success\"}}\n                            {{if (eq invoice.status \"DRAFT\") \"bg-secondary\"}}\n                            {{if\n                              (eq invoice.status \"AWAITING_APPROVAL\")\n                              \"bg-warning text-dark\"\n                            }}\n                            {{if (eq invoice.status \"APPROVED\") \"bg-info\"}}\n                            '\n                        >\n                          {{invoice.statusLabel}}\n                        </span>\n                      </div>\n                      <div class='col-lg-1 col fs-5 text-center text-nowrap'>\n                        {{number-format\n                          invoice.totalPrice\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </div>\n  \n                      <div\n                        class='col-1 d-flex align-items-center justify-content-end'\n                      >\n                        <FaIcon @icon='chevron-right' class='fs-2' />\n                      </div>\n                    </div>\n                  </LinkTo>\n                </div>\n              {{/each}}\n            </div>\n          </InfinityScroll>\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t\n                'entity.builda-price.operations.outgoing.invoices.No invoices'\n              }}</h3>\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  {{/if}}\n  \n  {{#if this.invoiceChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.onClose}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <form data-test-new-invoice-form>\n          <PtlInput\n            @type='select'\n            @required={{true}}\n            @label={{t 'common.Type'}}\n            @key='invoiceType'\n            @options={{this.invoiceTypes}}\n            @selectNoBlankOption={{true}}\n            @disabled={{this.onSaveInvoice.isRunning}}\n            @model={{this.invoiceChangeSet}}\n            @onChange={{this.onChangeInvoiceType}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n          {{#if (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')}}\n            <div class='mb-3'>\n              <label class='mb-1'>\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.From Invoice number'\n                }}&nbsp;\n                <InfoPopup\n                  @class='ms-1'\n                  @text={{t\n                    'entity.builda-price.operations.outgoing.invoices.fromInvoiceInfo'\n                  }}\n                />\n              </label>\n  \n              <SearchSelector\n                @onSelect={{this.setReferencedInvoice}}\n                disabled={{or this.onSaveInvoice.isRunning}}\n                @onLoad={{this.loadCompletedInvoices}}\n                @noDataMessage={{t\n                  'entity.builda-price.operations.outgoing.invoices.No invoices'\n                }}\n                @key='referencedInvoice'\n                @optionKeys={{array 'invoiceNumber'}}\n                @model={{this.invoiceChangeSet}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n              />\n            </div>\n          {{/if}}\n          <PtlInput\n            @type='text'\n            @required={{true}}\n            @label={{t 'common.Invoice number'}}\n            @key='invoiceNumber'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.onSaveInvoice.isRunning}}\n            placeholder={{this.nextInvoiceNumber}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n  \n          {{#if\n            (or\n              (not-eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')\n              (and\n                (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')\n                (not this.invoiceChangeSet.referenceInvoiceNumber)\n              )\n            )\n          }}\n            <div class='mb-3'>\n              <label class='mb-1'>{{t 'common.Contact'}}\n                <sup class='text-danger'>*</sup>\n              </label>\n              <SearchSelector\n                @onSelect={{this.setToContact}}\n                @onLoad={{this.loadContacts}}\n                @noDataMessage={{t 'common.Create a contact'}}\n                @noDataRoute='entity.settings.contacts.contact'\n                @showNoDataRouteWithResults={{true}}\n                @key='toContact'\n                @optionKeys={{array 'name'}}\n                @model={{this.invoiceChangeSet}}\n                @disabled={{or this.onSaveInvoice.isRunning}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n              />\n            </div>\n          {{/if}}\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Issue date'}}\n            @key='issueDate'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.onSaveInvoice.isRunning}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n  \n          {{#unless (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')}}\n            <PtlInput\n              @type='date'\n              @label={{t 'common.Due date'}}\n              @key='dueDate'\n              @model={{this.invoiceChangeSet}}\n              disabled={{or this.onSaveInvoice.isRunning}}\n              @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n            />\n          {{/unless}}\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-invoice-close-button\n            disabled={{this.onSaveInvoice.isRunning}}\n            {{on 'click' this.onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.onSaveInvoice.isRunning}}\n            {{on 'click' (perform this.onSaveInvoice this.invoiceChangeSet)}}\n          >\n            {{#if this.onSaveInvoice.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Creating'}}&hellip;\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDownloadCsvModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showDownloadCsvModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>{{t\n            'entity.builda-price.operations.outgoing.invoices.downloadCSVMessage'\n          }}</p>\n  \n        <DateRangeSelector\n          @align='right'\n          @startDate={{this.jsExportFromDate}}\n          @endDate={{this.jsExportToDate}}\n          @onApply={{this.setExportDateRange}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            disabled={{this.downloadAsCSV.isRunning}}\n            {{on 'click' (fn (mut this.showDownloadCsvModal) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.downloadAsCSV.isRunning}}\n            {{on 'click' (perform this.downloadAsCSV)}}\n          >\n            {{#if this.downloadAsCSV.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}&hellip;\n            {{else}}\n              {{t 'common.Download'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showInvoicesUploader}}\n    <InvoicesUploader\n      @onUploadInvoices={{this.onUploadInvoiceCSV}}\n      @onClose={{fn (mut this.showInvoicesUploader) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"fUJ0jHj1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Invoices\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canManageInvoices\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showInvoicesUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.Import invoices\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],null]],[24,\\\"data-test-download-csv\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-new-invoice\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"openNewInvoiceForm\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\\n          \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-end flex-wrap-reverse mb-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"startDate\\\"]],[30,0,[\\\"endDate\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[30,0,[\\\"clearDateRange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,17],[[30,0,[\\\"startDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.to\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,0,[\\\"endDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[[30,0,[\\\"invoiceType\\\"]],\\\"ALL\\\"],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"invoiceType\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Type\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"invoiceType\\\"]],\\\"INVOICE\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Invoice\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Credit note\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Sent\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Approved\\\"],null]],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"contact\\\"]],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[30,0,[\\\"clearFilterContact\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"contact\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],[[24,0,\\\"m-1\\\"]],[[\\\"@align\\\",\\\"@disable\\\"],[\\\"right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Type\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,23],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"invoiceType\\\"]]],null]],null],[30,0,[\\\"invoiceType\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"INVOICE\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Invoice\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT_NOTE\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Credit note\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,23],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],[30,0,[\\\"status\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"AWAITING_APPROVAL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Approved\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"COMPLETED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Completed\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Contact\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,24],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\"],[[30,0,[\\\"setFilterContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,6],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"contact\\\",[28,[37,25],[\\\"name\\\"],null],[30,0,[\\\"contactFilterModel\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,26],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search…\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[16,\\\"autofocus\\\",true],[24,\\\"data-test-invoice-search\\\",\\\"\\\"],[4,[38,9],[\\\"input\\\",[28,[37,27],[[30,0,[\\\"onChangeInvoiceSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"invoiceSearchTerm\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-3 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"invoiceNumber\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Invoice number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceNumberIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"invoiceNumberIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"issueDate\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Issue date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"issueDateIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"issueDateIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"dateCreated\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Created date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateCreatedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateCreatedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold text-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"status\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"statusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@onLoadMore\\\"],[[28,[37,27],[[30,0,[\\\"onLoadMoreInvoices\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"overflow-auto\\\"],[24,5,\\\"height: calc(100vh - 320px);\\\"],[4,[38,29],[[30,3]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,31],[[28,[37,31],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"lastSuccessful\\\",\\\"value\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"py-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,32],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,4,[\\\"id\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.invoices.invoice\\\",[30,4,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2 d-flex align-items-center\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,4,[\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,4,[\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"badge bg-info ms-1 fs-7\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[30,4,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"toContact\\\",\\\"name\\\"]],[[[1,\\\"                          \\\"],[1,[30,4,[\\\"toContact\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"issueDate\\\"]],[[[1,\\\"                          \\\"],[1,[28,[35,17],[[30,4,[\\\"issueDate\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"dateCreated\\\"]],[[[1,\\\"                          \\\"],[1,[28,[35,17],[[30,4,[\\\"dateCreated\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"col-lg-1 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                          \\\"]]],[12],[1,\\\"\\\\n                        \\\"],[1,[30,4,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-lg-1 col fs-5 text-center text-nowrap\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,34],[[30,4,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"col-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,12],[[24,0,\\\"fs-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.No invoices\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,36],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"onClose\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-invoice-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,38],null,[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@selectNoBlankOption\\\",\\\"@disabled\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",true,[28,[37,6],[\\\"common.Type\\\"],null],\\\"invoiceType\\\",[30,0,[\\\"invoiceTypes\\\"]],true,[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"invoiceChangeSet\\\"]],[30,0,[\\\"onChangeInvoiceType\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.From Invoice number\\\"],null]],[1,\\\" \\\\n              \\\"],[8,[39,41],null,[[\\\"@class\\\",\\\"@text\\\"],[\\\"ms-1\\\",[28,[37,6],[\\\"entity.builda-price.operations.outgoing.invoices.fromInvoiceInfo\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,24],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setReferencedInvoice\\\"]],[30,0,[\\\"loadCompletedInvoices\\\"]],[28,[37,6],[\\\"entity.builda-price.operations.outgoing.invoices.No invoices\\\"],null],\\\"referencedInvoice\\\",[28,[37,25],[\\\"invoiceNumber\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]],[16,\\\"placeholder\\\",[30,0,[\\\"nextInvoiceNumber\\\"]]]],[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",true,[28,[37,6],[\\\"common.Invoice number\\\"],null],\\\"invoiceNumber\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,13],[[28,[37,18],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,15],[[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,42],[[30,0,[\\\"invoiceChangeSet\\\",\\\"referenceInvoiceNumber\\\"]]],null]],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n              \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,24],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setToContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,6],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"toContact\\\",[28,[37,25],[\\\"name\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null]],[[[1,\\\"          \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-invoice-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"onSaveInvoice\\\"]],[30,0,[\\\"invoiceChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadCsvModal\\\"]],[[[1,\\\"  \\\"],[8,[39,36],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.downloadCSVMessage\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,22],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsExportFromDate\\\"]],[30,0,[\\\"jsExportToDate\\\"]],[30,0,[\\\"setExportDateRange\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],false],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"downloadAsCSV\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showInvoicesUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@onUploadInvoices\\\",\\\"@onClose\\\"],[[30,0,[\\\"onUploadInvoiceCSV\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"showInvoicesUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"si\\\",\\\"didInsert\\\",\\\"invoice\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"div\\\",\\\"and\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"eq\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"perform\\\",\\\"infinity-scroll\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"span\\\",\\\"number-format\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"info-popup\\\",\\\"not\\\",\\\"sup\\\",\\\"unless\\\",\\\"p\\\",\\\"invoices-uploader\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/invoices/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/invoices/invoice\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Invoice')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.invoices.index'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n  \n      {{#unless this.isLoading}}\n  \n        <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n          {{this.model.invoice.last.value.typeLabel}}&nbsp;{{this.model.invoice.last.value.invoiceNumber}}\n          <span\n            class='badge ms-1 fs-7\n              {{if (eq this.status \"COMPLETED\") \"bg-success\"}}\n              {{if (eq this.status \"DRAFT\") \"bg-secondary\"}}\n              {{if (eq this.status \"AWAITING_APPROVAL\") \"bg-warning text-dark\"}}\n              {{if (eq this.status \"APPROVED\") \"bg-info\"}}\n              '\n          >\n            {{this.invoice.statusLabel}}\n          </span>\n        </h2>\n  \n        <LinkTo\n          @route='entity.builda-price.reports.company.notes'\n          @query={{hash invoiceId=this.model.invoice.last.value.id}}\n          class='btn btn-link p-0 m-1'\n        >View timesheet notes\n          <FaIcon class='ms-1' @icon='external-link-alt' />\n        </LinkTo>\n  \n        <button\n          type='button'\n          class='btn btn-link text-primary text-decoration-underline m-1'\n          {{on 'click' this.showConfigureBreakdownOptionsModalDialog}}\n        >\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options'\n          }}\n        </button>\n  \n        {{#if (eq this.relatedDocuments.length 1)}}\n          <button\n            type='button'\n            class='btn btn-primary text-white m-1'\n            disabled={{this.isLoading}}\n            {{on\n              'click'\n              (perform\n                (get this.relatedDocuments '0.action')\n                (get this.relatedDocuments '0.id')\n              )\n            }}\n          >\n            {{get this.relatedDocuments '0.label'}}\n          </button>\n        {{else if (gt this.relatedDocuments.length 1)}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-primary text-white m-1'>\n              {{this.relatedDocuments.length}}\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Related documents'\n              }}&nbsp;&nbsp;\n              <FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              {{#each this.relatedDocuments as |document|}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform document.action document.id)}}\n                >\n                  {{document.label}}\n                </button>\n              {{/each}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n  \n        {{#if this.invoiceItems.length}}\n          {{#if this.accountingPlatform.isActive}}\n            {{#if\n              (or\n                (and\n                  (eq this.accountingPlatform.activePlatform 'xero')\n                  this.invoice.xeroInvoiceId\n                )\n                (and\n                  (eq this.accountingPlatform.activePlatform 'quickbooks')\n                  this.invoice.quickbooksInvoiceId\n                )\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-primary text-decoration-underline m-1'\n                {{on 'click' (perform this.viewInAccountingPackage)}}\n                disabled={{this.viewInAccountingPackage.isRunning}}\n              >\n                {{#if this.viewInAccountingPackage.isRunning}}\n                  {{t 'common.Sending'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.viewInLabel'\n                    label=this.accountingPlatform.label\n                  }}\n                  <FaIcon class='ms-1' @icon='external-link-alt' />\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            {{!other accounting packages go here}}\n          {{/if}}\n  \n          {{#if\n            (and\n              this.invoiceActions.primaryAction\n              (not this.invoiceActions.secondaryActions.length)\n            )\n          }}\n            <button\n              type='button'\n              class='btn btn-primary text-white m-1'\n              disabled={{or this.isLoading this.isActionsRunning}}\n              {{on\n                'click'\n                (perform\n                  this.invoiceActions.primaryAction.action\n                  this.invoiceActions.primaryAction.targetStatus\n                )\n              }}\n            >\n              {{#if this.isActionsRunning}}\n                {{t 'common.Syncing'}}&hellip;\n              {{else}}\n                {{this.invoiceActions.primaryAction.name}}\n              {{/if}}\n            </button>\n          {{else if\n            (and\n              this.invoiceActions.primaryAction\n              this.invoiceActions.secondaryActions.length\n            )\n          }}\n            <div class='m-1 d-flex'>\n              <button\n                type='button'\n                class='btn btn-primary rounded-0 rounded-start text-white'\n                disabled={{or this.isLoading this.isActionsRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.invoiceActions.primaryAction.action\n                    this.invoiceActions.primaryAction.targetStatus\n                    this.invoiceActions.primaryAction.syncToAccountingPackage\n                  )\n                }}\n              >\n                {{#if this.isActionsRunning}}\n                  {{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{this.invoiceActions.primaryAction.name}}\n                {{/if}}\n              </button>\n  \n              <PopOver\n                @direction='bottom-left'\n                @disabled={{or this.isLoading this.isActionsRunning}}\n                as |po|\n              >\n                <button\n                  type='button'\n                  class='btn btn-primary rounded-0 rounded-end text-white'\n                  disabled={{or this.isLoading this.isActionsRunning}}\n                >\n                  <FaIcon @icon='caret-down' />\n                </button>\n                <po.Content>\n                  {{#each this.invoiceActions.secondaryActions as |action|}}\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (perform\n                          action.action\n                          action.targetStatus\n                          action.syncToAccountingPackage\n                        )\n                      }}\n                      disabled={{action.action.isRunning}}\n                    >\n                      {{#if action.action.isRunning}}\n                        {{t 'common.Updating'}}&hellip;\n                      {{else}}\n                        {{action.name}}\n                      {{/if}}\n                    </button>\n                  {{/each}}\n                </po.Content>\n              </PopOver>\n            </div>\n          {{/if}}\n        {{/if}}\n  \n        {{#if this.canUseFileStorage}}\n          <AttachmentDropdownList\n            @buttonClass='btn btn-secondary text-white m-1'\n            @attachments={{this.model.invoice.last.value.myAttachments}}\n            @parent={{this.model.invoice.last.value}}\n            @onUploadComplete={{this.attachmentsUploadComplete}}\n            @onDownloadAttachment={{this.downloadAttachment}}\n            @onDeleteAttachment={{this.deleteAttachment}}\n            @isDragAndDropVisible={{this.canManageFileStorage}}\n          />\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'pdf')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'csv')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as CSV'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'excel')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as Excel'}}\n              {{/if}}\n            </button>\n          </po.Content>\n        </PopOver>\n      {{/unless}}\n  \n    </header>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex flex-column border rounded mb-4'>\n        <div class='pt-3 px-3 flex-grow-1 d-flex align-items-center'>\n          <h4 class='m-0 p-0'>{{t 'common.Details'}}</h4>\n          <button\n            class='ms-auto btn btn-sm btn-primary\n              {{if\n                this.invoiceChangeSet.isInvalid\n                \"invoice__edit-button--warning\"\n              }}'\n            type='button'\n            {{on 'click' (fn (mut this.isEditingInvoice) true)}}\n            id={{this.invoiceEditButtonId}}\n          >\n            {{t 'common.Edit'}}&nbsp;\n            <FaIcon @icon='edit' />\n          </button>\n        </div>\n  \n        <div class='row m-0'>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Invoice number'}}</h5>\n            <p class='m-0'>\n              {{this.invoice.invoiceNumber}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Contact'}}</h5>\n            <p class='m-0'>\n              {{#if (includes-feature-flags 'canUseSuppliers')}}\n                {{#if this.invoice.toContact.name}}\n                  <div\n                    role='button'\n                    {{on 'click' this.goToSupplier}}\n                    class='btn btn-link p-0'\n                  >\n                    {{this.invoice.toContact.name}}&nbsp;\n                    <FaIcon @icon='external-link-alt' />\n                  </div>\n                {{else}}\n                  &mdash;\n                {{/if}}\n              {{else}}\n                {{this.invoice.toContact.name}}\n              {{/if}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Issue date'}}</h5>\n            <p class='m-0'>\n              {{#if this.invoice.issueDate}}\n                {{moment-format\n                  this.invoice.issueDate\n                  (t 'date.shortWithWeekday')\n                }}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Due date'}}</h5>\n            <p class='m-0'>\n              {{#if this.invoice.dueDate}}\n                {{moment-format this.invoice.dueDate (t 'date.shortWithWeekday')}}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </p>\n          </div>\n        </div>\n      </div>\n  \n      <div class='mb-2 d-flex justify-content-end align-items-center'>\n        {{#if this.canEdit}}\n          <div class='flex-grow-1'>\n            {{#if this.selectedItemIndexes.size}}\n              <button\n                class='btn btn-link text-danger text-decoration-underline'\n                type='button'\n                {{on 'click' (perform this.deleteInvoiceItems)}}\n                disabled={{not this.selectedItemIndexes.size}}\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Delete items'\n                }}\n              </button>\n            {{/if}}\n          </div>\n          {{#if this.canAddItems}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap'\n              disabled={{this.deleteInvoiceItems.isRunning}}\n              {{on 'click' this.addInvoiceItem}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        {{/if}}\n      </div>\n  \n      <div class='invoice__invoice-items-table-container'>\n        <PaginationTable\n          @tableHeader={{this.itemTableHeader}}\n          @tableData={{this.itemTableData}}\n          @noDataText={{t 'common.No items'}}\n          @isLoading={{this.model.invoiceItems.isRunning}}\n          @hidePagination={{true}}\n          @class='table-bordered\n            {{if this.invoiceTotalError \"invoice__invoice-items-table--invalid\"}}'\n          @validationMessage={{this.invoiceTotalError}}\n        />\n      </div>\n      <div class='invoice__footer mt-3'>\n        {{#if this.canManageOrApproveInvoice}}\n          <div class='d-flex align-items-center justify-content-between mt-3'>\n            <div>\n              {{#if\n                (and\n                  (eq this.status 'COMPLETED')\n                  (not-eq this.invoice.invoiceType 'CREDIT_NOTE')\n                  (not this.relatedDocuments.length)\n                )\n              }}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.saveInvoice.isRunning\n                    this.onDeleteInvoice.isRunning\n                  }}\n                  {{on 'click' (fn (mut this.isCreatingCreditNote) true)}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Create credit note'\n                  }}\n                </button>\n              {{else if (not-eq this.status 'COMPLETED')}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.saveInvoice.isRunning\n                    this.onDeleteInvoice.isRunning\n                  }}\n                  {{on 'click' (fn (mut this.isDeletingInvoice) true)}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Delete invoice'\n                  }}\n                </button>\n              {{/if}}\n            </div>\n            {{#if this.totalFooter}}\n              {{#if this.totalFooter}}\n                <div class='my-2 text-end'>\n                  <div class='mb-1'>{{t 'common.Subtotal'}}:\n                    {{this.totalFooter.subtotal}}</div>\n                  <div class='mb-1'>{{t 'common.Tax'}}:\n                    {{this.totalFooter.tax}}</div>\n                  <div class='mb-1'>{{t 'common.Total'}}:\n                    {{this.totalFooter.total}}</div>\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isDeletingInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isDeletingInvoice) false}}\n      @translucentOverlay={{true}}\n    >\n      <div\n        class='modal-content'\n        {{did-insert (perform this.validateInvoiceSafeToDelete)}}\n      >\n        {{#if this.validateInvoiceSafeToDelete.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <div class='modal-body'>\n            {{#unless this.validateInvoiceSafeToDelete.last.value}}\n              <div class='alert alert-warning pb-0 pt-0'>\n                <p>\n                  {{html-safe\n                    (t\n                      'entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceCalculationDependencyWarning'\n                    )\n                  }}\n                </p>\n              </div>\n            {{/unless}}\n  \n            <p class='ms-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoicePrompt'\n              }}\n            </p>\n          </div>\n  \n          <div class='modal-footer'>\n            <button\n              class='btn btn-danger text-white'\n              type='button'\n              disabled={{this.onDeleteInvoice.isRunning}}\n              {{on 'click' (perform this.onDeleteInvoice)}}\n            >\n              {{#if this.onDeleteInvoice.isRunning}}\n                {{t 'common.Deleting'}}&hellip;\n              {{else}}\n                {{t 'common.Delete'}}\n              {{/if}}\n            </button>\n            <button\n              class='btn btn-secondary text-white'\n              type='button'\n              disabled={{this.onDeleteInvoice.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingInvoice) false)}}\n            >{{t 'common.Cancel'}}</button>\n          </div>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isCreatingCreditNote}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isCreatingCreditNote) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteConfirmMessage'\n            }}\n          </p>\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.createCreditNote.isRunning}}\n            {{on 'click' (fn (mut this.isCreatingCreditNote) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary text-white'\n            type='button'\n            disabled={{this.createCreditNote.isRunning}}\n            {{on 'click' (perform this.createCreditNote)}}\n          >\n            {{#if this.createCreditNote.isRunning}}\n              {{t 'common.Creating'}}&hellip;\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isRevertCompletedToDraftInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isRevertCompletedToDraftInvoice) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'entity.builda-price.operations.outgoing.invoices.invoice.revertDraftInvoicePrompt'\n            }}\n          </p>\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.changeStatus.isRunning}}\n            {{on 'click' (fn (mut this.isRevertCompletedToDraftInvoice) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-danger text-white'\n            type='button'\n            disabled={{this.changeStatus.isRunning}}\n            {{on 'click' (perform this.changeStatus 'DRAFT' false)}}\n          >\n            {{#if this.changeStatus.isRunning}}\n              {{t 'common.Reverting'}}&hellip;\n            {{else}}\n              {{t 'common.Revert'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isEditingInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{this.closeInvoiceEditModal}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Invoice number'}}\n            @key='invoiceNumber'\n            @required={{true}}\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n          />\n  \n          <div class='mb-2'>\n            <label class='mb-1'>\n              {{t 'common.Contact'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setToContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'common.Create a contact'}}\n              @noDataRoute='entity.settings.contacts.contact'\n              @showNoDataRouteWithResults={{true}}\n              @key='toContact'\n              @optionKeys={{array 'name'}}\n              @model={{this.invoiceChangeSet}}\n              @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n              @disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            />\n            {{#if\n              (and\n                this.invoiceChangeSet.toContact\n                (includes-feature-flags 'canUseSuppliers')\n              )\n            }}\n              <div\n                role='button'\n                {{on 'click' this.goToSupplier}}\n                class='form-text link me-auto'\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.See details'\n                }}&nbsp;\n                <FaIcon @icon='external-link-alt' />\n              </div>\n            {{/if}}\n          </div>\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Issue date'}}\n            @key='issueDate'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n          />\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Due date'}}\n            @key='dueDate'\n            @model={{this.invoiceChangeSet}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' this.closeInvoiceEditModal}}\n            disabled={{this.saveInvoice.isRunning}}\n          >\n            {{t 'common.Close'}}\n          </button>\n  \n          {{#if this.canEdit}}\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.saveInvoice.isRunning}}\n              {{on 'click' (perform this.saveInvoice)}}\n            >\n              {{#if this.saveInvoice.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.currentInvoiceItem}}\n    <InvoiceItemEditorModal\n      @headerText={{this.invoiceItemEditorHeader}}\n      @item={{this.currentInvoiceItem}}\n      @onClose={{this.closeInvoiceItemEditor}}\n      @onSave={{this.saveInvoiceItem}}\n      @onDelete={{this.deleteInvoiceItem}}\n      @editDisabled={{not this.canEdit}}\n      @allocationDisabled={{not this.canAllocate}}\n    />\n  {{/if}}\n  \n  {{#if this.downloadInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.downloadInvoice) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.reportExportOptionDescription'\n          }}\n        </p>\n        {{#each this.exportOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <Input\n              @type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              @checked={{option.value}}\n              id={{index}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.downloadInvoice) null)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' this.downloadInvoice}}\n          disabled={{this.isDownloadingInvoice}}\n        >\n          {{#if this.isDownloadingInvoice}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showConfigureBreakdownOptionsModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showConfigureBreakdownOptionsModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options'\n          }}\n        </h5>\n      </div>\n  \n      <div\n        class='modal-body p-0 d-flex align-items-stretch justify-content-center invoice__break-down-options-modal-body'\n      >\n        {{#if this.initInvoiceBreakdown.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <div class='overflow-auto p-3 border-right' style='min-width: 380px;'>\n            {{#if\n              (and\n                this.canManageOrApproveInvoice\n                this.hasCompanyBreakdownOptionChanges\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline ps-0 mb-2'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  this.saveBreakdownOptionsAsCompanyDefault.isRunning\n                }}\n                {{on 'click' (perform this.saveBreakdownOptionsAsCompanyDefault)}}\n              >\n                {{#if this.saveBreakdownOptionsAsCompanyDefault.isRunning}}\n                  {{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Save as company default?'\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n            <PtlInput\n              @type='textarea'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Additional notes'\n              }}\n              @key='breakdownNotes'\n              @model={{this.invoiceBreakdownOptions}}\n              {{on 'blur' (perform this.getInvoiceBreakdownHtml)}}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n            />\n  \n            <PtlInput\n              @containerClass='form-check mb-2'\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Include billable'\n              }}\n              @key='includeBillable'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.includeBillableDescription'\n              }}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n              {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n            />\n            <PtlInput\n              @containerClass='form-check mb-2'\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Include previously invoiced'\n              }}\n              @key='includeInvoiced'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.includeInvoicedDescription'\n              }}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n              {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n            />\n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.First group by'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='firstGroupBy'\n                @id='groupByTask'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Task'}}\n                @value='TASK'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeFirstGroupBy}}\n              />\n              <PtlInput\n                @type='radio'\n                @key='firstGroupBy'\n                @id='groupByAllocationType'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Allocation type'}}\n                @value='ALLOCATION_TYPE'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeFirstGroupBy}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Labour bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourSection'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourBill'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourItem'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                @containerClass='mb-1'\n              />\n            </div>\n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeLabourBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t 'common.Timesheets'}}\n            </label>\n            <div class='ms-1 mb-1'>\n              <GroupingSelector\n                @groups={{this.timesheetGroupingOptions}}\n                @value={{this.invoiceBreakdownOptions.timesheetDetails}}\n                @onChange={{pipe\n                  (fn (mut this.invoiceBreakdownOptions.timesheetDetails))\n                  (perform this.getInvoiceBreakdownHtml)\n                }}\n                as |gs|\n              >\n                {{#each gs.axes as |axis i|}}\n                  <label class='pdf-export-options__grouping-label'>\n                    {{#if (eq i 0)}}\n                      {{t 'shared.report-builder.First break down by'}}…\n                    {{else}}\n                      …{{t 'shared.report-builder.and then by'}}…\n                    {{/if}}\n                  </label>\n  \n                  <select\n                    class='pdf-export-options__grouping-control'\n                    {{on 'change' (action axis.update value='target.value')}}\n                    disabled={{or\n                      this.saveBreakdownOptions.isRunning\n                      (not this.canManageOrApproveInvoice)\n                    }}\n                  >\n                    {{#each axis.options as |opt|}}\n                      <option value={{opt.key}} selected={{opt.isSelected}}>\n                        {{opt.name}}\n                      </option>\n                    {{/each}}\n                  </select>\n                  <br />\n                {{/each}}\n              </GroupingSelector>\n            </div>\n  \n            {{#if\n              this.sessionData.entity.effectiveProfitMargin.additionalLabourMargin.value\n            }}\n              <div class='ms-1'>\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Additional margin'\n                  }}\n                  @key='includeTimesheetsProfitMargins'\n                  @model={{this.invoiceBreakdownOptions}}\n                  @description={{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsProfitMarginsDescription'\n                  }}\n                  disabled={{or\n                    this.saveBreakdownOptions.isRunning\n                    (not this.canManageOrApproveInvoice)\n                  }}\n                  {{on\n                    'change'\n                    (fn\n                      this.onToggleTimesheetMargin\n                      'includeTimesheetsProfitMargins'\n                      'includeTimesheetsCostMargins'\n                    )\n                  }}\n                />\n              </div>\n            {{/if}}\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeTimesheetsCostMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsCostMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on\n                  'change'\n                  (fn\n                    this.onToggleTimesheetMargin\n                    'includeTimesheetsCostMargins'\n                    'includeTimesheetsProfitMargins'\n                  )\n                }}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Material bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsSection'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsBill'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsItem'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n            </div>\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeMaterialBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Subcontractor bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsSection'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsBill'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsItem'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                @containerClass='mb-1'\n              />\n            </div>\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeSubcontractorBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n          </div>\n  \n          <div class='d-flex flex-column p-3'>\n            <div class='mb-2 d-flex align-items-center'>\n              <h5 class='mb-0'>{{t 'common.Preview'}}</h5>\n              {{#if this.invoiceItems.length}}\n                <span class='badge bg-success ms-2'>{{t 'common.LIVE'}}</span>\n                <span class='text-muted small ms-2'>\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.layoutMayDifferSlightlyFromPDFVersion'\n                  }}\n                </span>\n              {{/if}}\n            </div>\n  \n            {{#if this.invoiceItems.length}}\n              <iframe\n                title='Live preview'\n                srcdoc={{this.getInvoiceBreakdownHtml.lastSuccessful.value}}\n                class='flex-grow-1 p-3 rounded border invoice__break-down-options-modal-document-width'\n              ></iframe>\n            {{else}}\n              <div\n                class='flex-grow-1 d-flex align-items-center justify-content-center'\n              >\n                <p class='text-muted'>\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.noInvoiceItemInBreakdown'\n                  }}\n                </p>\n              </div>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showConfigureBreakdownOptionsModal) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.canManageOrApproveInvoice}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{or\n              this.saveBreakdownOptions.isRunning\n              this.saveBreakdownOptionsAsCompanyDefault.isRunning\n            }}\n            {{on 'click' (perform this.saveBreakdownOptions)}}\n          >\n            {{#if this.saveBreakdownOptions.isRunning}}\n              <span class='spinner-border spinner-border-sm'></span>\n              &nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Save options'\n              }}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"2vCrElAB\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Invoice\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.invoices.index\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"typeLabel\\\"]]],[1,\\\" \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"badge ms-1 fs-7\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"invoice\\\",\\\"statusLabel\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,12],[[24,0,\\\"btn btn-link p-0 m-1\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"entity.builda-price.reports.company.notes\\\",[28,[37,13],null,[[\\\"invoiceId\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"View timesheet notes\\\\n        \\\"],[8,[39,14],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"showConfigureBreakdownOptionsModalDialog\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.action\\\"],null],[28,[37,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.id\\\"],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.label\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]]],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Related documents\\\"],null]],[1,\\\"  \\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"relatedDocuments\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,2,[\\\"action\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[41,[28,[37,23],[[28,[37,24],[[28,[37,11],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[30,0,[\\\"invoice\\\",\\\"xeroInvoiceId\\\"]]],null],[28,[37,24],[[28,[37,11],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[30,0,[\\\"invoice\\\",\\\"quickbooksInvoiceId\\\"]]],null]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"viewInAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"viewInAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"viewInAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Sending\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n                \\\"],[8,[39,14],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\"]],[28,[37,25],[[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,24],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary rounded-0 rounded-start text-white\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary rounded-0 rounded-end text-white\\\"],[15,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,4,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,4,[\\\"action\\\"]],[30,4,[\\\"targetStatus\\\"]],[30,4,[\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseFileStorage\\\"]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"btn btn-secondary text-white m-1\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"downloadAttachment\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"canManageFileStorage\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"pdf\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"csv\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"excel\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as Excel\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex flex-column border rounded mb-4\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pt-3 px-3 flex-grow-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 p-0\\\"],[12],[1,[28,[35,4],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"ms-auto btn btn-sm btn-primary\\\\n            \\\",[52,[30,0,[\\\"invoiceChangeSet\\\",\\\"isInvalid\\\"]],\\\"invoice__edit-button--warning\\\"]]]],[16,1,[30,0,[\\\"invoiceEditButtonId\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isEditingInvoice\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\" \\\\n          \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"edit\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"row m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Invoice number\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"invoice\\\",\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Contact\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,34],[\\\"canUseSuppliers\\\"],null],[[[41,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]],[[[1,\\\"                \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"goToSupplier\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]]],[1,\\\" \\\\n                  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Issue date\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,35],[[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Due date\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,35],[[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-2 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,25],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteInvoiceItems\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Delete items\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAddItems\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteInvoiceItems\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"addInvoiceItem\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice__invoice-items-table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,36],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@hidePagination\\\",\\\"@class\\\",\\\"@validationMessage\\\"],[[30,0,[\\\"itemTableHeader\\\"]],[30,0,[\\\"itemTableData\\\"]],[28,[37,4],[\\\"common.No items\\\"],null],[30,0,[\\\"model\\\",\\\"invoiceItems\\\",\\\"isRunning\\\"]],true,[29,[\\\"table-bordered\\\\n          \\\",[52,[30,0,[\\\"invoiceTotalError\\\"]],\\\"invoice__invoice-items-table--invalid\\\"]]],[30,0,[\\\"invoiceTotalError\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice__footer mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageOrApproveInvoice\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[28,[37,37],[[30,0,[\\\"invoice\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,25],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Create credit note\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,37],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Delete invoice\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]],null]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalFooter\\\"]],[[[41,[30,0,[\\\"totalFooter\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"my-2 text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Subtotal\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"subtotal\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Tax\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"tax\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"total\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"modal-content\\\"],[4,[38,39],[[28,[37,17],[[30,0,[\\\"validateInvoiceSafeToDelete\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"validateInvoiceSafeToDelete\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validateInvoiceSafeToDelete\\\",\\\"last\\\",\\\"value\\\"]]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-warning pb-0 pt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,40],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceCalculationDependencyWarning\\\"],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoicePrompt\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"onDeleteInvoice\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isCreatingCreditNote\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteConfirmMessage\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"createCreditNote\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.revertDraftInvoicePrompt\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"changeStatus\\\"]],\\\"DRAFT\\\",false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Reverting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Revert\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditingInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[30,0,[\\\"closeInvoiceEditModal\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Invoice number\\\"],null],\\\"invoiceNumber\\\",true,[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,44],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"setToContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,4],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"toContact\\\",[28,[37,45],[\\\"name\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null],[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"invoiceChangeSet\\\",\\\"toContact\\\"]],[28,[37,34],[\\\"canUseSuppliers\\\"],null]],null],[[[1,\\\"            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"form-text link me-auto\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"goToSupplier\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.See details\\\"],null]],[1,\\\" \\\\n              \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"closeInvoiceEditModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveInvoice\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentInvoiceItem\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@headerText\\\",\\\"@item\\\",\\\"@onClose\\\",\\\"@onSave\\\",\\\"@onDelete\\\",\\\"@editDisabled\\\",\\\"@allocationDisabled\\\"],[[30,0,[\\\"invoiceItemEditorHeader\\\"]],[30,0,[\\\"currentInvoiceItem\\\"]],[30,0,[\\\"closeInvoiceItemEditor\\\"]],[30,0,[\\\"saveInvoiceItem\\\"]],[30,0,[\\\"deleteInvoiceItem\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null],[28,[37,25],[[30,0,[\\\"canAllocate\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"downloadInvoice\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.reportExportOptionDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"exportOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,47],[[24,0,\\\"form-check-input\\\"],[16,3,[30,6,[\\\"name\\\"]]],[16,1,[30,7]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,6,[\\\"value\\\"]]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,7]],[12],[1,[30,6,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"downloadInvoice\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"downloadInvoice\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body p-0 d-flex align-items-stretch justify-content-center invoice__break-down-options-modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"initInvoiceBreakdown\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"overflow-auto p-3 border-right\\\"],[14,5,\\\"min-width: 380px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"canManageOrApproveInvoice\\\"]],[30,0,[\\\"hasCompanyBreakdownOptionChanges\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline ps-0 mb-2\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Save as company default?\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"blur\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Additional notes\\\"],null],\\\"breakdownNotes\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Include billable\\\"],null],\\\"includeBillable\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeBillableDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Include previously invoiced\\\"],null],\\\"includeInvoiced\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeInvoicedDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.First group by\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeFirstGroupBy\\\"]]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByTask\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Task\\\"],null],\\\"TASK\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeFirstGroupBy\\\"]]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByAllocationType\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Allocation type\\\"],null],\\\"ALLOCATION_TYPE\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Labour bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeLabourBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1 mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,48],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]],[28,[37,49],[[28,[37,28],[[28,[37,31],[[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]]],null]],null],[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,8,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,10],0],null],[[[1,\\\"                    \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                    …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,51],[[30,0],[30,9,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,9,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,11,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,11,[\\\"isSelected\\\"]]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,11,[\\\"name\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[9,10]],null],[1,\\\"            \\\"]],[8]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,28],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsProfitMargins\\\",\\\"includeTimesheetsCostMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Additional margin\\\"],null],\\\"includeTimesheetsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,28],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsCostMargins\\\",\\\"includeTimesheetsProfitMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeTimesheetsCostMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsCostMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Material bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeMaterialBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Subcontractor bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeSubcontractorBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,4],[\\\"common.Preview\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"badge bg-success ms-2\\\"],[12],[1,[28,[35,4],[\\\"common.LIVE\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"text-muted small ms-2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.layoutMayDifferSlightlyFromPDFVersion\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"iframe\\\"],[14,\\\"title\\\",\\\"Live preview\\\"],[15,\\\"srcdoc\\\",[30,0,[\\\"getInvoiceBreakdownHtml\\\",\\\"lastSuccessful\\\",\\\"value\\\"]]],[14,0,\\\"flex-grow-1 p-3 rounded border invoice__break-down-options-modal-document-width\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[14,0,\\\"text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.noInvoiceItemInBreakdown\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageOrApproveInvoice\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveBreakdownOptions\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Save options\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"document\\\",\\\"po\\\",\\\"action\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\",\\\"gs\\\",\\\"axis\\\",\\\"i\\\",\\\"opt\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"span\\\",\\\"if\\\",\\\"eq\\\",\\\"link-to\\\",\\\"hash\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"get\\\",\\\"gt\\\",\\\"pop-over\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"and\\\",\\\"not\\\",\\\"div\\\",\\\"attachment-dropdown-list\\\",\\\"fn\\\",\\\"loading-icon\\\",\\\"h4\\\",\\\"mut\\\",\\\"h5\\\",\\\"p\\\",\\\"includes-feature-flags\\\",\\\"moment-format\\\",\\\"pagination-table\\\",\\\"not-eq\\\",\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"html-safe\\\",\\\"ptl-input\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"invoice-item-editor-modal\\\",\\\"input\\\",\\\"grouping-selector\\\",\\\"pipe\\\",\\\"select\\\",\\\"action\\\",\\\"option\\\",\\\"br\\\",\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/invoices/invoice.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/payroll-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"3GK8+Z7x\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/payroll-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/payroll\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Payroll')}}\n    />\n  {{/unless}}\n  <article class='m-4 payroll-page-wrapper'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <div class='float-end'>\n  \n          <PopOver class='float-end' @direction='bottom-left' as |po|>\n            <button type='button' class='btn btn-secondary text-white'>\n              {{t 'common.Export'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'exportAsCSV'}}\n                disabled={{this.isSyncingToXero}}\n              >\n                {{t 'common.Generic'}}\n                CSV\n              </button>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'exportAsExcel'}}\n                disabled={{this.isSyncingToXero}}\n              >\n                Excel\n              </button>\n  \n              {{#if\n                (includes-feature-flags 'canManagePayroll' 'entityCanUseKeypay')\n              }}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportAsKeypay'}}\n                  disabled={{this.isSyncingToXero}}\n                >\n                  Keypay CSV\n                </button>\n              {{/if}}\n  \n              {{#if\n                (and\n                  (includes-feature-flags 'canManagePayroll')\n                  (includes-feature-flags 'entityCanUseSmartPayroll')\n                )\n              }}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportAsSmartPayrollCSV'}}\n                  disabled={{this.isSyncingToXero}}\n                >\n                  Smartly CSV\n                </button>\n              {{/if}}\n  \n              {{#if\n                (and\n                  (includes-feature-flags 'canManagePayroll')\n                  (includes-feature-flags 'entityCanUseCrystalPayroll')\n                )\n              }}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportAsCrystalCSV'}}\n                  disabled={{this.isSyncingToXero}}\n                >\n                  Crystal CSV\n                </button>\n              {{/if}}\n  \n              {{#if\n                (and\n                  (includes-feature-flags 'canUseXeroIntegration')\n                  this.xeroIntegration.ready\n                )\n              }}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportForXero'}}\n                  disabled={{this.isSyncingToXero}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.Export to Xero'\n                  }}\n                </button>\n              {{/if}}\n  \n              {{#if this.quickbooks.ready}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportForQuickbooks'}}\n                  disabled={{this.isSyncingToQuickbooks}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.Export to QuickBooks'\n                  }}\n                </button>\n              {{/if}}\n            </po.Content>\n          </PopOver>\n        </div>\n        <h1 class='h1'>{{t 'common.Payroll'}}</h1>\n      </header>\n  \n      <div class='payroll-controls'>\n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Date range'\n            }}:</label>\n          <DateRangeSelector\n            @align='left'\n            @startDate={{this.jsStartDate}}\n            @endDate={{this.jsEndDate}}\n            @onApply={{action 'setDateRange'}}\n          />\n        </div>\n        <div class='payroll-controls__element'>\n          <div class='payroll-controls__input'>\n            <button\n              class='text-button'\n              data-test-button-backwardShift=''\n              type='button'\n              {{action 'shiftDays' -7}}\n            >◀</button>\n            {{t 'common.Shift Week'}}\n            <button\n              class='text-button'\n              data-test-button-forwardShift=''\n              type='button'\n              {{action 'shiftDays' 7}}\n            >▶</button>\n          </div>\n        </div>\n  \n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Filter by worker'\n            }}:</label>\n          <SelectInput\n            @value={{this.selectedWorker}}\n            @action={{fn (mut this.selectedWorker)}}\n            @class='select-box payroll-controls__input'\n            data-test-worker-filter\n            as |si|\n          >\n            <si.option @value={{null}}>{{t\n                'shared.timesheet.Select a worker'\n              }}…</si.option>\n            {{#each this.activeWorkers as |worker|}}\n              <si.option @value={{worker}}>{{worker.fullName}}</si.option>\n            {{/each}}\n          </SelectInput>\n          {{#if this.selectedWorker}}\n            <button\n              class='text-button'\n              type='button'\n              {{on 'click' (fn (mut this.selectedWorker) null)}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    {{else}}\n  \n      <div class='payroll-controls'>\n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Start date'\n            }}:</label>\n          <PtlInput\n            @type='date'\n            @containerClass='mb-0'\n            @key='startDate'\n            @model={{this}}\n            class='payroll-controls__input'\n          />\n  \n          <label class='payroll-controls__label'>{{t 'common.End date'}}:</label>\n          <PtlInput\n            @type='date'\n            @containerClass='mb-0'\n            @key='endDate'\n            @model={{this}}\n            class='payroll-controls__input'\n          />\n        </div>\n  \n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Filter by project'\n            }}:</label>\n          <SelectInput\n            @value={{this.selectedProject}}\n            @action={{fn (mut this.selectedProject)}}\n            @class='select-box payroll-controls__input'\n            as |si|\n          >\n            <si.option @value={{null}}>{{t\n                'common.No project selected'\n              }}&hellip;</si.option>\n            {{#each this.model.projects as |project|}}\n              <si.option @value={{project}}>{{project.name}}</si.option>\n            {{/each}}\n          </SelectInput>\n          {{#if this.selectedProject}}\n            <button\n              class='text-button payroll-controls__label'\n              type='button'\n              {{on 'click' (fn (mut this.selectedProject) null)}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  \n    {{#if this.unacceptedStatusesMessage}}\n      <span class='placeholder-text payroll-controls__error-placeholder'>\n        <FaIcon\n          @icon='info-circle'\n        />&nbsp;{{this.unacceptedStatusesMessage}}&nbsp;<LinkTo\n          @route='entity.builda-price.operations.incoming.timesheets'\n          data-test-click-seeTimesheets\n          class='link d-inline'\n        >{{t 'common.See timesheets'}}</LinkTo>\n      </span>\n    {{/if}}\n    {{#if this.report.length}}\n      <table class='data-table payroll-table'>\n        <thead>\n          <tr>\n            <th>{{t 'common.Worker'}}</th>\n            {{#if (includes-feature-flags 'canManagePayroll')}}\n              <th>{{if\n                  this.isChargeOut\n                  (t 'common.Charge-out rate')\n                  (t 'common.Pay rate')\n                }}</th>\n            {{/if}}\n            <th>{{t 'common.Hours'}}</th>\n            {{#if (includes-feature-flags 'canManagePayroll')}}\n              <th>{{if\n                  this.isChargeOut\n                  (t 'entity.builda-price.operations.outgoing.payroll.Charge out')\n                  (t 'entity.builda-price.operations.outgoing.payroll.Pay')\n                }}</th>\n            {{/if}}\n            <th>{{t 'common.Project'}}</th>\n            <th>{{t 'common.Task'}}</th>\n            {{#if (media 'isDesktop')}}\n              {{#each this.reportDays as |day|}}\n                <th\n                  class={{if\n                    (or\n                      (eq (moment-format day 'd') '6')\n                      (eq (moment-format day 'd') '0')\n                    )\n                    'payroll-table__cell--weekend'\n                  }}\n                >\n                  {{moment-format day 'ddd'}}\n                  <br />\n                  {{moment-format day (t 'date.dayMonthAbbr')}}\n                </th>\n              {{/each}}\n            {{/if}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#each this.report as |row index|}}\n            <tr\n              class='{{if row.worker \"payroll-table__worker-total-row\"}}\n                {{if row.project \"payroll-table__job-total-row\"}}\n                '\n            >\n              <td\n                class='payroll-table__large-cell'\n                data-test-workerName=''\n              >{{row.worker.fullName}}</td>\n              {{#if (includes-feature-flags 'canManagePayroll')}}\n                <td\n                  class='payroll-table__alert-cell\n                    {{if\n                      (and (eq index 0) (not row.worker.isNotFocused))\n                      \" payroll-table__alert-cell--popup-visible\"\n                    }}'\n                >\n                  {{#if (and this.isChargeOut row.worker)}}\n                    <span onclick={{action (mut row.worker.isNotFocused) true}}>\n                      <FormattedInput\n                        @placeholder={{number-format\n                          row.worker.chargeOutRate\n                          style='currency'\n                          dashZero=true\n                        }}\n                        @update={{fn (mut row.worker.currentChargeOutRate)}}\n                        @number={{row.worker.currentChargeOutRate}}\n                        @format='currency'\n                        @class={{concat\n                          'data-table__cell-cover text-input'\n                          (unless\n                            row.worker.isNotFocused ' payroll-table__alert-input'\n                          )\n                        }}\n                      />\n                    </span>\n                    <span class='float-end'>\n                      <InfoPopup\n                        @iconName='question-circle'\n                        @text={{t\n                          'entity.builda-price.operations.outgoing.payroll.overrideWorkersChargeOutRateInfo'\n                        }}\n                      />\n                    </span>\n                  {{else}}\n                    {{row.worker.payRate}}\n                  {{/if}}\n                </td>\n              {{/if}}\n              <td>{{format-duration row.totalHours}}</td>\n              {{#if (includes-feature-flags 'canManagePayroll')}}\n                <td>\n                  {{number-format\n                    (if this.isChargeOut row.totalChargeOut row.totalPay)\n                    maximumFractionDigits=2\n                    dashZero=true\n                  }}\n                </td>\n              {{/if}}\n              <td class='payroll-table__small-cell'>{{row.project.name}}</td>\n              <td class='payroll-table__small-cell'>\n                {{#if row.taskBreadcrumbs}}\n                  <LabelPopup @text={{row.taskBreadcrumbs}}>\n                    {{row.task.name}}\n                  </LabelPopup>\n                {{else}}\n                  {{row.task.name}}\n                {{/if}}\n              </td>\n              {{#if (media 'isDesktop')}}\n                {{#each row.dayTotals as |dayTotal|}}\n                  <td\n                    class='{{unless\n                        (or\n                          (not dayTotal.status)\n                          (not dayTotal.totalHours)\n                          (eq dayTotal.status.status \"accepted\")\n                        )\n                        \"payroll-table__not-accepted-cell\"\n                      }}'\n                  >\n                    {{format-duration dayTotal.totalHours}}\n                  </td>\n                {{/each}}\n              {{/if}}\n            </tr>\n          {{/each}}\n        </tbody>\n      </table>\n  \n      {{#if this.payRateClashNote}}\n        <span class='placeholder-text'>\n          <FaIcon @icon='info-circle' />&nbsp;{{this.payRateClashNote}}\n        </span>\n      {{/if}}\n    {{else}}\n      <span class='placeholder-text'>\n        {{t\n          'entity.builda-price.operations.outgoing.payroll.thereAreNoTimesheetsForTheCurrentlySelectedPeriodOrWorker'\n        }}\n      </span>\n    {{/if}}\n  </article>\n  \n  {{#if this.xeroTimesheetsResponseData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.xeroTimesheetsResponseData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <h4>{{this.xeroTimesheetsResponseData.message}}</h4>\n  \n      <div style='max-height: 400px; overflow-y: auto;'>\n        {{#each this.xeroTimesheetsResponseData.workerSummaries as |summary|}}\n          <p>\n            {{#if summary.failures.length}}\n              <FaIcon\n                @icon='exclamation-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--warning'\n              />\n            {{else}}\n              <FaIcon\n                @icon='check-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--success'\n              />\n            {{/if}}\n  \n            {{summary.worker.fullName}}\n  \n            {{#unless summary.failures.length}}\n              —\n              {{t\n                'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors'\n                number=summary.success.length\n              }}\n            {{/unless}}\n  \n            {{#if summary.failures.length}}\n              <ul>\n                <li>\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced'\n                    number=summary.success.length\n                  }}\n                </li>\n                {{#each summary.failures as |failure|}}\n                  <li>\n                    {{failure.message}}\n                  </li>\n                {{/each}}\n              </ul>\n            {{/if}}\n          </p>\n        {{/each}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          class='float-end button'\n          type='button'\n          {{on 'click' (fn (mut this.xeroTimesheetsResponseData) null)}}\n        >\n          {{t 'common.Okay'}}\n        </button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.quickbooksTimesheetsResponseData}}\n    <ModalDialog\n      @onClose={{fn (mut this.quickbooksTimesheetsResponseData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <h4>{{this.quickbooksTimesheetsResponseData.message}}</h4>\n  \n      <div style='max-height: 400px; overflow-y: auto;'>\n        {{#each\n          this.quickbooksTimesheetsResponseData.workerSummaries\n          as |summary|\n        }}\n          <p>\n            {{#if summary.failures.length}}\n              <FaIcon\n                @icon='exclamation-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--warning'\n              />\n            {{else}}\n              <FaIcon\n                @icon='check-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--success'\n              />\n            {{/if}}\n  \n            {{summary.worker.fullName}}\n  \n            {{#unless summary.failures.length}}\n              —\n              {{t\n                'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors'\n                number=summary.success.length\n              }}\n            {{/unless}}\n  \n            {{#if summary.failures.length}}\n              <ul>\n                <li>\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced'\n                    number=summary.success.length\n                  }}\n                </li>\n                {{#each summary.failures as |failure|}}\n                  <li>\n                    {{failure.message}}\n                  </li>\n                {{/each}}\n              </ul>\n            {{/if}}\n          </p>\n        {{/each}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          class='pull-right button'\n          type='button'\n          {{on 'click' (fn (mut this.quickbooksTimesheetsResponseData) null)}}\n        >\n          {{t 'common.Okay'}}\n        </button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.confirmExportActionName}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action this.set 'confirmExportActionName' null}}\n    >\n      <p>{{this.unacceptedStatusesMessage}}</p>\n      <footer aria-label='export-footer' class='block-module__footer'>\n        <button\n          class='float-end button button--spaced'\n          type='button'\n          {{action this.confirmExportActionName true}}\n        >{{t\n            'entity.builda-price.operations.outgoing.payroll.Accept and export'\n          }}</button>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action\n            (pipe\n              (action (mut this.skipDayLocking) true)\n              (action this.confirmExportActionName true)\n            )\n          }}\n        >\n          {{t 'entity.builda-price.operations.outgoing.payroll.Export anyway'}}\n        </button>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action this.set 'confirmExportActionName' null}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"i32SNnVk\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Payroll\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4 payroll-page-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,9],[[24,0,\\\"float-end\\\"]],[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsCSV\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Generic\\\"],null]],[1,\\\"\\\\n              CSV\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsExcel\\\"],null],[12],[1,\\\"\\\\n              Excel\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\",\\\"entityCanUseKeypay\\\"],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsKeypay\\\"],null],[12],[1,\\\"\\\\n                Keypay CSV\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,13],[\\\"canManagePayroll\\\"],null],[28,[37,13],[\\\"entityCanUseSmartPayroll\\\"],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsSmartPayrollCSV\\\"],null],[12],[1,\\\"\\\\n                Smartly CSV\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,13],[\\\"canManagePayroll\\\"],null],[28,[37,13],[\\\"entityCanUseCrystalPayroll\\\"],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsCrystalCSV\\\"],null],[12],[1,\\\"\\\\n                Crystal CSV\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,13],[\\\"canUseXeroIntegration\\\"],null],[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportForXero\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Export to Xero\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToQuickbooks\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportForQuickbooks\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Export to QuickBooks\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,[28,[35,4],[\\\"common.Payroll\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"payroll-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.Date range\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,12],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"payroll-controls__input\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-button-backwardShift\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"shiftDays\\\",-7],null],[12],[1,\\\"◀\\\"],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Shift Week\\\"],null]],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-button-forwardShift\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"shiftDays\\\",7],null],[12],[1,\\\"▶\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.Filter by worker\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,\\\"data-test-worker-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedWorker\\\"]],[28,[37,19],[[28,[37,20],[[30,0,[\\\"selectedWorker\\\"]]],null]],null],\\\"select-box payroll-controls__input\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[null]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"shared.timesheet.Select a worker\\\"],null]],[1,\\\"…\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"activeWorkers\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"fullName\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedWorker\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,23],[\\\"click\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"selectedWorker\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"payroll-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.Start date\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"payroll-controls__input\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"startDate\\\",[30,0]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.End date\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"payroll-controls__input\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"endDate\\\",[30,0]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.Filter by project\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedProject\\\"]],[28,[37,19],[[28,[37,20],[[30,0,[\\\"selectedProject\\\"]]],null]],null],\\\"select-box payroll-controls__input\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[null]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.No project selected\\\"],null]],[1,\\\"…\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"model\\\",\\\"projects\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,5]]],[[\\\"default\\\"],[[[[1,[30,5,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"]],[4]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedProject\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button payroll-controls__label\\\"],[24,4,\\\"button\\\"],[4,[38,23],[\\\"click\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"selectedProject\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"unacceptedStatusesMessage\\\"]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"placeholder-text payroll-controls__error-placeholder\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\" \\\"],[1,[30,0,[\\\"unacceptedStatusesMessage\\\"]]],[1,\\\" \\\"],[8,[39,26],[[24,\\\"data-test-click-seeTimesheets\\\",\\\"\\\"],[24,0,\\\"link d-inline\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.timesheets\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.See timesheets\\\"],null]]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"report\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table payroll-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\"],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[12],[1,[52,[30,0,[\\\"isChargeOut\\\"]],[28,[37,4],[\\\"common.Charge-out rate\\\"],null],[28,[37,4],[\\\"common.Pay rate\\\"],null]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Hours\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\"],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[12],[1,[52,[30,0,[\\\"isChargeOut\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.payroll.Charge out\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.payroll.Pay\\\"],null]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Project\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Task\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"reportDays\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[15,0,[52,[28,[37,31],[[28,[37,32],[[28,[37,33],[[30,6],\\\"d\\\"],null],\\\"6\\\"],null],[28,[37,32],[[28,[37,33],[[30,6],\\\"d\\\"],null],\\\"0\\\"],null]],null],\\\"payroll-table__cell--weekend\\\"]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,33],[[30,6],\\\"ddd\\\"],null]],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[1,[28,[35,33],[[30,6],[28,[37,4],[\\\"date.dayMonthAbbr\\\"],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"report\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[15,0,[29,[[52,[30,7,[\\\"worker\\\"]],\\\"payroll-table__worker-total-row\\\"],\\\"\\\\n              \\\",[52,[30,7,[\\\"project\\\"]],\\\"payroll-table__job-total-row\\\"],\\\"\\\\n              \\\"]]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"payroll-table__large-cell\\\"],[14,\\\"data-test-workerName\\\",\\\"\\\"],[12],[1,[30,7,[\\\"worker\\\",\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\"],null],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"payroll-table__alert-cell\\\\n                  \\\",[52,[28,[37,14],[[28,[37,32],[[30,8],0],null],[28,[37,37],[[30,7,[\\\"worker\\\",\\\"isNotFocused\\\"]]],null]],null],\\\" payroll-table__alert-cell--popup-visible\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"isChargeOut\\\"]],[30,7,[\\\"worker\\\"]]],null],[[[1,\\\"                  \\\"],[10,1],[15,\\\"onclick\\\",[28,[37,12],[[30,0],[28,[37,20],[[30,7,[\\\"worker\\\",\\\"isNotFocused\\\"]]],null],true],null]],[12],[1,\\\"\\\\n                    \\\"],[8,[39,38],null,[[\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@class\\\"],[[28,[37,39],[[30,7,[\\\"worker\\\",\\\"chargeOutRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]],[28,[37,19],[[28,[37,20],[[30,7,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]]],null]],null],[30,7,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]],\\\"currency\\\",[28,[37,40],[\\\"data-table__cell-cover text-input\\\",[52,[51,[30,7,[\\\"worker\\\",\\\"isNotFocused\\\"]]],\\\" payroll-table__alert-input\\\"]],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,41],null,[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"question-circle\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.payroll.overrideWorkersChargeOutRateInfo\\\"],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,7,[\\\"worker\\\",\\\"payRate\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,42],[[30,7,[\\\"totalHours\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\"],null],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,39],[[52,[30,0,[\\\"isChargeOut\\\"]],[30,7,[\\\"totalChargeOut\\\"]],[30,7,[\\\"totalPay\\\"]]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"payroll-table__small-cell\\\"],[12],[1,[30,7,[\\\"project\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"payroll-table__small-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,7,[\\\"taskBreadcrumbs\\\"]],[[[1,\\\"                \\\"],[8,[39,43],null,[[\\\"@text\\\"],[[30,7,[\\\"taskBreadcrumbs\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,7,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,7,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[42,[28,[37,22],[[28,[37,22],[[30,7,[\\\"dayTotals\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[51,[28,[37,31],[[28,[37,37],[[30,9,[\\\"status\\\"]]],null],[28,[37,37],[[30,9,[\\\"totalHours\\\"]]],null],[28,[37,32],[[30,9,[\\\"status\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],\\\"payroll-table__not-accepted-cell\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,42],[[30,9,[\\\"totalHours\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"payRateClashNote\\\"]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"placeholder-text\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\" \\\"],[1,[30,0,[\\\"payRateClashNote\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"placeholder-text\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.thereAreNoTimesheetsForTheCurrentlySelectedPeriodOrWorker\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"xeroTimesheetsResponseData\\\"]],[[[1,\\\"  \\\"],[8,[39,44],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"xeroTimesheetsResponseData\\\"]]],null],null],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"h4\\\"],[12],[1,[30,0,[\\\"xeroTimesheetsResponseData\\\",\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,5,\\\"max-height: 400px; overflow-y: auto;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"xeroTimesheetsResponseData\\\",\\\"workerSummaries\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--warning\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--success\\\"]],[[\\\"@icon\\\"],[\\\"check-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n          \\\"],[1,[30,10,[\\\"worker\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,10,[\\\"failures\\\",\\\"length\\\"]]],[[[1,\\\"            —\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors\\\"],[[\\\"number\\\"],[[30,10,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced\\\"],[[\\\"number\\\"],[[30,10,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,10,[\\\"failures\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,11,[\\\"message\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button\\\"],[24,4,\\\"button\\\"],[4,[38,23],[\\\"click\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"xeroTimesheetsResponseData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Okay\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quickbooksTimesheetsResponseData\\\"]],[[[1,\\\"  \\\"],[8,[39,44],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[[28,[37,19],[[28,[37,20],[[30,0,[\\\"quickbooksTimesheetsResponseData\\\"]]],null],null],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"h4\\\"],[12],[1,[30,0,[\\\"quickbooksTimesheetsResponseData\\\",\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,5,\\\"max-height: 400px; overflow-y: auto;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"quickbooksTimesheetsResponseData\\\",\\\"workerSummaries\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[30,12,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--warning\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--success\\\"]],[[\\\"@icon\\\"],[\\\"check-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n          \\\"],[1,[30,12,[\\\"worker\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,12,[\\\"failures\\\",\\\"length\\\"]]],[[[1,\\\"            —\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors\\\"],[[\\\"number\\\"],[[30,12,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,12,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced\\\"],[[\\\"number\\\"],[[30,12,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,12,[\\\"failures\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,13,[\\\"message\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"pull-right button\\\"],[24,4,\\\"button\\\"],[4,[38,23],[\\\"click\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"quickbooksTimesheetsResponseData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Okay\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"confirmExportActionName\\\"]],[[[1,\\\"  \\\"],[8,[39,44],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"confirmExportActionName\\\",null],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,[30,0,[\\\"unacceptedStatusesMessage\\\"]]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,\\\"aria-label\\\",\\\"export-footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"confirmExportActionName\\\"]],true],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Accept and export\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[28,[37,50],[[28,[37,12],[[30,0],[28,[37,20],[[30,0,[\\\"skipDayLocking\\\"]]],null],true],null],[28,[37,12],[[30,0],[30,0,[\\\"confirmExportActionName\\\"]],true],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Export anyway\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"confirmExportActionName\\\",null],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"si\\\",\\\"worker\\\",\\\"si\\\",\\\"project\\\",\\\"day\\\",\\\"row\\\",\\\"index\\\",\\\"dayTotal\\\",\\\"summary\\\",\\\"failure\\\",\\\"summary\\\",\\\"failure\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"div\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"action\\\",\\\"includes-feature-flags\\\",\\\"and\\\",\\\"h1\\\",\\\"label\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"on\\\",\\\"ptl-input\\\",\\\"span\\\",\\\"link-to\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"or\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"br\\\",\\\"tbody\\\",\\\"td\\\",\\\"not\\\",\\\"formatted-input\\\",\\\"number-format\\\",\\\"concat\\\",\\\"info-popup\\\",\\\"format-duration\\\",\\\"label-popup\\\",\\\"modal-dialog\\\",\\\"h4\\\",\\\"p\\\",\\\"ul\\\",\\\"li\\\",\\\"footer\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/payroll.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Purchase orders'}}</h2>\n        {{/if}}\n        {{#if (includes-feature-flags 'canManagePurchaseOrders')}}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' this.openNewPOForm}}\n            disabled={{this.isLoading}}\n            data-test-add-new-purchase-order\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;\n            {{t 'common.New'}}\n          </button>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex align-items-center mb-3 flex-column flex-md-row-reverse'>\n        <span class='m-1'>\n          <Input\n            class='form-control'\n            placeholder={{t 'common.Search'}}\n            aria-label='Search…'\n            @type='search'\n            @value={{this.searchString}}\n            disabled={{this.isLoading}}\n            {{on 'input' (perform this.onChangeSearchTerm)}}\n            autofocus={{true}}\n            data-test-purchase-order-search\n          />\n        </span>\n        <div class='d-flex align-items-center'>\n          <PageFilters::Pill>\n            {{t 'common.Date range'}}:\n            {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n            {{t 'common.to'}}\n            {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n          </PageFilters::Pill>\n          {{#if (not-eq this.status 'ALL')}}\n            <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n              {{t 'common.Status'}}:\n              {{#if (eq this.status 'DRAFT')}}\n                {{t 'common.Draft'}}\n              {{else if (eq this.status 'AWAITING_APPROVAL')}}\n                {{t 'common.Awaiting approval'}}\n              {{else if (eq this.status 'SENT')}}\n                {{t 'common.Sent'}}\n              {{else if (eq this.status 'APPROVED')}}\n                {{t 'common.Approved'}}\n              {{/if}}\n            </PageFilters::Pill>\n          {{/if}}\n          <PageFilters class='m-1' @align='right' @disable={{this.isLoading}}>\n            <PageFilters::Item @label={{t 'common.Date range'}}>\n              <DateRangeSelector\n                @align='right'\n                @startDate={{this.jsStartDate}}\n                @endDate={{this.jsEndDate}}\n                @onApply={{this.setDateRange}}\n                @maxRange={{31}}\n              />\n            </PageFilters::Item>\n  \n            <PageFilters::Item @label={{t 'common.Status'}}>\n              <SelectInput\n                class='select-box'\n                @action={{fn (mut this.status)}}\n                @value={{this.status}}\n                as |si|\n              >\n                <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n                <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n                <si.option @value='AWAITING_APPROVAL'>{{t\n                    'common.Awaiting approval'\n                  }}</si.option>\n                <si.option @value='APPROVED'>{{t 'common.Approved'}}</si.option>\n                <si.option @value='SENT'>{{t 'common.Sent'}}</si.option>\n              </SelectInput>\n            </PageFilters::Item>\n          </PageFilters>\n        </div>\n      </div>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.model.purchaseOrders.last.value.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'purchaseOrderNumber')}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.purchase-orders.PO Number'\n                  }}\n                  {{#if this.purchaseOrderNumberIconName}}\n                    <FaIcon @icon={{this.purchaseOrderNumberIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'supplier.name')}}\n                >\n                  {{t 'common.Supplier'}}\n                  {{#if this.supplierIconName}}\n                    <FaIcon @icon={{this.supplierIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateOrderPlaced')}}\n                >\n                  {{t 'shared.purchase-order.Order submitted date'}}\n                  {{#if this.dateOrderPlacedIconName}}\n                    <FaIcon @icon={{this.dateOrderPlacedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateCreated')}}\n                >\n                  {{t 'common.Created date'}}\n                  {{#if this.dateCreatedIconName}}\n                    <FaIcon @icon={{this.dateCreatedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'deliveryStatus')}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.purchase-orders.Delivery status'\n                  }}\n                  {{#if this.deliveryStatusIconName}}\n                    <FaIcon @icon={{this.deliveryStatusIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold text-center'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'status')}}\n                >\n                  {{t 'common.Status'}}\n                  {{#if this.statusIconName}}\n                    <FaIcon @icon={{this.statusIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-1 fw-bold text-center'>{{t 'common.Total'}}</div>\n                <div class='col-1 fw-bold'></div>\n              </div>\n            </div>\n          {{/if}}\n          <LazyEach\n            @items={{this.filteredPurchaseOrders}}\n            @automatic={{true}}\n            @initialNumberOfItemsVisible='30'\n            @increment='10'\n            @itemDisplayName='purchase orders'\n            as |purchaseOrder identifier|\n          >\n            <div class='{{identifier}} py-2'>\n              <LinkTo\n                @route='entity.builda-price.operations.outgoing.purchase-orders.purchase-order'\n                @model={{purchaseOrder.id}}\n                class='project-card__card card shadow-sm text-dark p-3'\n                role='button'\n                data-test-project={{purchaseOrder.id}}\n              >\n                <div class='row align-items-center'>\n                  <div\n                    class='col project-card__project-name fs-2'\n                    data-test-project-card-name\n                  >\n                    {{purchaseOrder.purchaseOrderNumber}}\n                  </div>\n  \n                  {{#if (media 'isDesktop')}}\n                    <div class='col-2 fs-5'>\n                      {{#if purchaseOrder.supplier.name}}\n                        {{purchaseOrder.supplier.name}}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n  \n                    <div class='col-2 fs-5'>\n                      {{#if purchaseOrder.dateOrderPlaced}}\n                        {{moment-format\n                          purchaseOrder.dateOrderPlaced\n                          (t 'date.shortWithWeekday')\n                        }}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n  \n                    <div class='col-2 fs-5'>\n                      {{#if purchaseOrder.dateCreated}}\n                        {{moment-format\n                          purchaseOrder.dateCreated\n                          (t 'date.shortWithWeekday')\n                        }}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n                    <div class='col-1'>\n                      {{#if purchaseOrder.deliveryStatus}}\n                        {{purchaseOrder.deliveryStatusLabel}}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n                  {{/if}}\n                  <div class='col-lg-1 col-3 d-flex justify-content-center'>\n                    <span\n                      class='badge rounded-pill fs-6 px-3 py-2\n                        {{if\n                          (or\n                            (eq purchaseOrder.status \"SENT\")\n                            (eq purchaseOrder.status \"APPROVED\")\n                          )\n                          \"bg-success\"\n                        }}\n                        {{if\n                          (eq purchaseOrder.status \"DRAFT\")\n                          \"bg-warning text-dark\"\n                        }}\n                        {{if\n                          (eq purchaseOrder.status \"AWAITING_APPROVAL\")\n                          \"bg-info\"\n                        }}\n                        {{if (eq purchaseOrder.status \"SENT\") \"bg-primary\"}}\n                        '\n                    >\n                      {{purchaseOrder.statusLabel}}\n                    </span>\n                  </div>\n                  <div class='col-lg-1 col fs-5 text-center'>\n                    {{number-format\n                      purchaseOrder.totalPrice\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n  \n                  <div\n                    class='col-1 d-flex align-items-center justify-content-end'\n                  >\n                    <FaIcon @icon='chevron-right' class='fs-2' />\n                  </div>\n                </div>\n              </LinkTo>\n            </div>\n          </LazyEach>\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t\n                'shared.purchase-order.No purchase orders'\n              }}</h3>\n          </div>\n        {{/if}}\n      {{/if}}\n  \n    </article>\n  {{/if}}\n  \n  {{#if this.purchaseOrderChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.onClose}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <form data-test-new-purchase-order-form>\n          <PtlInput\n            @type='text'\n            @required={{true}}\n            @label={{t 'shared.purchase-order.Purchase order number'}}\n            @key='purchaseOrderNumber'\n            @model={{this.purchaseOrderChangeSet}}\n            placeholder={{this.nextPurchaseOrderNumber}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n          <div class='mb-3'>\n            <label class='mb-1'>{{t 'common.Supplier'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @noDataMessage={{t 'common.No suppliers'}}\n              @key='supplier'\n              @optionKeys={{array 'name'}}\n              @model={{this.purchaseOrderChangeSet}}\n              @forceValidationVisible={{gt\n                this.onSavePurchaseOrder.performCount\n                0\n              }}\n              @onSelect={{this.setSupplier}}\n              @onLoad={{this.loadSuppliers}}\n            />\n          </div>\n          <NewComboBox\n            @isLoading={{false}}\n            @list={{this.addressList}}\n            @noDataMessage={{t 'shared.purchase-order.No project address'}}\n            @onSelect={{this.setAddress}}\n            @onSearch={{this.onSearchAddress}}\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{this.purchaseOrderChangeSet}}\n            @hasNextPage={{false}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-purchase-order-close-button\n            disabled={{this.onSavePurchaseOrder.isRunning}}\n            {{on 'click' this.onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.onSavePurchaseOrder.isRunning}}\n            {{on\n              'click'\n              (perform this.onSavePurchaseOrder this.purchaseOrderChangeSet)\n            }}\n          >\n            {{#if this.onSavePurchaseOrder.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Creating'}}…\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"3Or77OZf\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Purchase orders\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,7],[\\\"canManagePurchaseOrders\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-new-purchase-order\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"openNewPOForm\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\\n          \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3 flex-column flex-md-row-reverse\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search…\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[16,\\\"autofocus\\\",true],[24,\\\"data-test-purchase-order-search\\\",\\\"\\\"],[4,[38,9],[\\\"input\\\",[28,[37,14],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,16],[[30,0,[\\\"startDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.to\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,16],[[30,0,[\\\"endDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@onClose\\\"],[[28,[37,18],[[28,[37,19],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"SENT\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Sent\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Approved\\\"],null]],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]]]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,21],[[24,0,\\\"m-1\\\"]],[[\\\"@align\\\",\\\"@disable\\\"],[\\\"right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,23],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\",\\\"@maxRange\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]],31]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,22],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,24],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,18],[[28,[37,19],[[30,0,[\\\"status\\\"]]],null]],null],[30,0,[\\\"status\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"AWAITING_APPROVAL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Approved\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"SENT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Sent\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[1]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"purchaseOrders\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"purchaseOrderNumber\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.purchase-orders.PO Number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"purchaseOrderNumberIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"purchaseOrderNumberIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"supplier.name\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Supplier\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplierIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"supplierIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"dateOrderPlaced\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"shared.purchase-order.Order submitted date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateOrderPlacedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateOrderPlacedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"dateCreated\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Created date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateCreatedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateCreatedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"deliveryStatus\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.purchase-orders.Delivery status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deliveryStatusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"deliveryStatusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold text-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"status\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"statusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,25],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,0,[\\\"filteredPurchaseOrders\\\"]],true,\\\"30\\\",\\\"10\\\",\\\"purchase orders\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[15,0,[29,[[30,3],\\\" py-2\\\"]]],[12],[1,\\\"\\\\n            \\\"],[8,[39,26],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,2,[\\\"id\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,2,[\\\"purchaseOrderNumber\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"supplier\\\",\\\"name\\\"]],[[[1,\\\"                      \\\"],[1,[30,2,[\\\"supplier\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateOrderPlaced\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,16],[[30,2,[\\\"dateOrderPlaced\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateCreated\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,16],[[30,2,[\\\"dateCreated\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"deliveryStatus\\\"]],[[[1,\\\"                      \\\"],[1,[30,2,[\\\"deliveryStatusLabel\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,0],[14,0,\\\"col-lg-1 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                      \\\",[52,[28,[37,27],[[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"SENT\\\"],null],[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"APPROVED\\\"],null]],null],\\\"bg-success\\\"],\\\"\\\\n                      \\\",[52,[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                      \\\",[52,[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                      \\\",[52,[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"SENT\\\"],null],\\\"bg-primary\\\"],\\\"\\\\n                      \\\"]]],[12],[1,\\\"\\\\n                    \\\"],[1,[30,2,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-lg-1 col fs-5 text-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,28],[[30,2,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"col-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,10],[[24,0,\\\"fs-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"shared.purchase-order.No purchase orders\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"purchaseOrderChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"onClose\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-purchase-order-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,32],[[16,\\\"placeholder\\\",[30,0,[\\\"nextPurchaseOrderNumber\\\"]]]],[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",true,[28,[37,6],[\\\"shared.purchase-order.Purchase order number\\\"],null],\\\"purchaseOrderNumber\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,33],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"common.Supplier\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,36],null,[[\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onSelect\\\",\\\"@onLoad\\\"],[[28,[37,6],[\\\"common.No suppliers\\\"],null],\\\"supplier\\\",[28,[37,37],[\\\"name\\\"],null],[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,33],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"loadSuppliers\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\"],[false,[30,0,[\\\"addressList\\\"]],[28,[37,6],[\\\"shared.purchase-order.No project address\\\"],null],[30,0,[\\\"setAddress\\\"]],[30,0,[\\\"onSearchAddress\\\"]],[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],false,[28,[37,33],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-purchase-order-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"onSavePurchaseOrder\\\"]],[30,0,[\\\"purchaseOrderChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"purchaseOrder\\\",\\\"identifier\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"perform\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"fn\\\",\\\"mut\\\",\\\"eq\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"lazy-each\\\",\\\"link-to\\\",\\\"or\\\",\\\"number-format\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"new-combo-box\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Purchase order')\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.purchase-orders.index'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n  \n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n          {{this.model.purchaseOrder.last.value.supplier.name}}\n  \n          <span\n            class='badge fs-7 m-1\n              {{if\n                (or (eq this.status \"SENT\") (eq this.status \"APPROVED\"))\n                \"bg-success\"\n              }}\n              {{if (eq this.status \"DRAFT\") \"bg-warning text-dark\"}}\n              {{if (eq this.status \"AWAITING_APPROVAL\") \"bg-info\"}}\n              '\n          >\n            {{this.purchaseOrder.statusLabel}}\n          </span>\n  \n          {{#if this.model.purchaseOrder.last.value.dateOrderPlaced}}\n            <div class='badge bg-secondary fs-7 m-1'>\n              {{t 'shared.purchase-order.Order submitted date'}}:\n              {{moment-format\n                this.model.purchaseOrder.last.value.dateOrderPlaced\n                (t 'date.longWithoutWeekday')\n              }}\n            </div>\n          {{/if}}\n        </h2>\n  \n        {{#if\n          (and\n            this.poActions.primaryAction\n            (not this.poActions.secondaryActions.length)\n          )\n        }}\n          <button\n            type='button'\n            class='btn btn-primary text-white m-1'\n            disabled={{this.isActionsRunning}}\n            {{on\n              'click'\n              (perform\n                this.poActions.primaryAction.action\n                this.poActions.primaryAction.targetStatus\n              )\n            }}\n          >\n            {{#if this.isActionsRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Loading'}}&hellip;\n            {{else}}\n              {{this.poActions.primaryAction.name}}\n            {{/if}}\n          </button>\n        {{else if\n          (and\n            this.poActions.primaryAction this.poActions.secondaryActions.length\n          )\n        }}\n          <div class='m-1 d-flex'>\n            <DropdownButton\n              @buttonText={{if\n                this.isActionsRunning\n                (t 'common.Loading')\n                this.poActions.primaryAction.name\n              }}\n              @onPrimaryClick={{(perform\n                this.poActions.primaryAction.action\n                this.poActions.primaryAction.targetStatus\n              )}}\n              @disabled={{this.isActionsRunning}}\n            >\n              {{#each this.poActions.secondaryActions as |action|}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform action.action action.targetStatus)}}\n                  disabled={{action.action.isRunning}}\n                >\n                  {{#if action.action.isRunning}}\n                    {{t 'common.Updating'}}&hellip;\n                  {{else}}\n                    {{action.name}}\n                  {{/if}}\n                </button>\n              {{/each}}\n            </DropdownButton>\n          </div>\n        {{/if}}\n  \n        {{#if this.canUseFileStorage}}\n          <AttachmentDropdownList\n            @buttonClass='btn btn-secondary text-white m-1'\n            @attachments={{this.model.purchaseOrder.last.value.myAttachments}}\n            @parent={{this.model.purchaseOrder.last.value}}\n            @onUploadComplete={{this.attachmentsUploadComplete}}\n            @onDownloadAttachment={{this.downloadAttachment}}\n            @onDeleteAttachment={{this.deleteAttachment}}\n            @isDragAndDropVisible={{this.canManageFileStorage}}\n          />\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv)}}\n              disabled={{this.downloadAsCsv.isRunning}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as CSV'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsExcel)}}\n              disabled={{this.downloadAsExcel.isRunning}}\n            >\n              {{#if this.downloadAsExcel.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as Excel'}}\n              {{/if}}\n            </button>\n          </po.Content>\n        </PopOver>\n  \n      </header>\n  \n      <div class='row mt-2'>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='text'\n            @label={{t 'shared.purchase-order.Purchase order number'}}\n            @key='purchaseOrderNumber'\n            @required={{true}}\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='date'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date'\n            }}\n            @key='requestedDeliveryDate'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <NewComboBox\n            @isLoading={{false}}\n            @list={{this.addressList}}\n            @noDataMessage={{t 'shared.purchase-order.No project address'}}\n            @onSelect={{this.setAddress}}\n            @onSearch={{this.onSearchAddress}}\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{this.purchaseOrderChangeSet}}\n            @hasNextPage={{false}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n            @disabled={{not this.isEditable}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='currency'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Freight charges'\n            }}\n            @key='freightCharges'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n      </div>\n      <div class='row'>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='textarea'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note'\n            }}\n            @key='deliveryNote'\n            rows='3'\n            style='max-height:111.5px'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='textarea'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note'\n            }}\n            @key='orderNote'\n            rows='3'\n            style='max-height:111.5px'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n      </div>\n      <div class='mb-2 d-flex justify-content-end align-items-center'>\n        {{#if this.isEditable}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (perform this.deleteProducts)}}\n              disabled={{not this.selectedItemIndexes.size}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete products'\n              }}\n            </button>\n          </div>\n          {{#if this.showUpdatePriceButton}}\n            <button\n              class='btn btn btn-primary m-1'\n              type='button'\n              {{on 'click' (perform this.updateProductPrices)}}\n              disabled={{not this.selectedItemIndexes.size}}\n            >\n              {{#if this.updateProductPrices.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;Updating&hellip;\n              {{else}}\n                {{t\n                  'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Update prices'\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n          {{#if (eq this.purchaseOrder.status 'SENT')}}\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (perform this.updateDeliveryStatus)}}\n              disabled={{or\n                (not this.selectedItemIndexes.size)\n                this.updateDeliveryStatus.Running\n              }}\n            >\n              {{#if this.updateDeliveryStatus.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Updating'}}&hellip;\n              {{else}}\n                {{t\n                  'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Mark as delivered'\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n          {{#if this.canAddProducts}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              disabled={{or\n                this.deleteProducts.isRunning\n                this.updateProductPrices.isRunning\n              }}\n              {{on 'click' (fn (mut this.isAddingProducts) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        {{/if}}\n      </div>\n      <div class='purchase-order__purchase-order-items-table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @isLoading={{this.model.products.isRunning}}\n          @hidePagination={{true}}\n          @class='table-bordered'\n        />\n      </div>\n      <div class='purchase-order__footer mt-3'>\n        {{#if this.totalPriceFooter}}\n          <div class='d-flex justify-content-end align-items-center my-2'>\n            <span>{{t 'common.Total'}}: {{this.totalPriceFooter}}</span>\n          </div>\n        {{/if}}\n        {{#if this.isEditable}}\n          <div class='d-flex align-items-center justify-content-between mt-1'>\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{or\n                this.onSavePurchaseOrder.isRunning\n                this.onDeletePurchaseOrder.isRunning\n              }}\n              {{on 'click' (fn (mut this.isDeletingPurchaseOrder) true)}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete purchase order'\n              }}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.onSavePurchaseOrder.isRunning}}\n              {{on 'click' (perform this.onSavePurchaseOrder)}}\n            >\n              {{#if this.onSavePurchaseOrder.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isAddingProducts}}\n    <PurchaseOrderItemSelector\n      @onClose={{fn (mut this.isAddingProducts) false}}\n      @projects={{this.canManagePurchaseOrderProjects}}\n      @onSavePurchaseOrderItems={{this.onSavePurchaseOrderItems}}\n      @purchaseOrder={{this.model.purchaseOrder.last.value}}\n      @purchaseOrderItems={{this.purchaseOrderItems}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingPurchaseOrder}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingPurchaseOrder) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p data-test-project-settings-delete-dialog>\n        {{t\n          'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.areYouSureYouWantToDeleteThisPurchaseOrder'\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.onDeletePurchaseOrder.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}&hellip;\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.onDeletePurchaseOrder.isRunning}}\n              {{on 'click' (perform this.onDeletePurchaseOrder)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.onDeletePurchaseOrder.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingPurchaseOrder) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isApproveAndSendEmail}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isSendEmail) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        {{#unless this.supplierContactDetailsExists}}\n          <div\n            class='alert alert-warning d-flex flex-row align-items-center justify-content-center'\n            role='alert'\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing'\n            }}\n            <LinkTo\n              @route='entity.settings.contacts.contact'\n              @model={{this.model.purchaseOrder.last.value.supplier.id}}\n              class='btn btn-outline-primary btn-sm ms-2'\n            >{{t 'common.Update details'}}</LinkTo>\n          </div>\n        {{/unless}}\n        <div class='form-check'>\n          <label for='includeAllAttachments' class='form-check-label'>\n            <input\n              type='checkbox'\n              id='includeAllAttachments'\n              class='form-check-input'\n              disabled={{this.approveAndSend.isRunning}}\n              checked={{this.includeAllAttachmentsInSubmissionEmail}}\n              {{on\n                'click'\n                (fn this.toggleProperty 'includeAllAttachmentsInSubmissionEmail')\n              }}\n            />\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail'\n            }}\n          </label>\n        </div>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.approveAndSend.isRunning}}\n            {{on 'click' (fn (mut this.isApproveAndSendEmail) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{or\n              this.approveAndSend.isRunning\n              (not this.supplierContactDetailsExists)\n            }}\n            {{on\n              'click'\n              (perform this.approveAndSend this.purchaseOrderChangeSet)\n            }}\n          >\n            {{#if this.approveAndSend.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Approving'}}&hellip;\n            {{else}}\n              {{t 'common.approveSend'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isSendEmail}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isSendEmail) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        {{#unless this.supplierContactDetailsExists}}\n          <div\n            class='alert alert-warning d-flex flex-row align-items-center justify-content-center'\n            role='alert'\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing'\n            }}\n            <LinkTo\n              @route='entity.settings.contacts.contact'\n              @model={{this.model.purchaseOrder.last.value.supplier.id}}\n              class='btn btn-outline-primary btn-sm ms-2'\n            >{{t 'common.Update details'}}</LinkTo>\n          </div>\n        {{/unless}}\n        <div class='form-check'>\n          <label for='includeAllAttachments' class='form-check-label'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              disabled={{this.send.isRunning}}\n              checked={{this.includeAllAttachmentsInSubmissionEmail}}\n              {{on\n                'click'\n                (fn this.toggleProperty 'includeAllAttachmentsInSubmissionEmail')\n              }}\n            />\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail'\n            }}\n          </label>\n        </div>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.sendEmail.isRunning}}\n            {{on 'click' (fn (mut this.isSendEmail) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{or\n              this.send.isRunning\n              (not this.supplierContactDetailsExists)\n            }}\n            {{on 'click' (perform this.sendEmail this.purchaseOrderChangeSet)}}\n          >\n            {{#if this.sendEmail.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Sending'}}&hellip;\n            {{else}}\n              {{t 'common.Send'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"d/GD+KF0\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Purchase order\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.index\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"supplier\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[15,0,[29,[\\\"badge fs-7 m-1\\\\n            \\\",[52,[28,[37,12],[[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"SENT\\\"],null],[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null]],null],\\\"bg-success\\\"],\\\"\\\\n            \\\",[52,[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n            \\\",[52,[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-info\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"purchaseOrder\\\",\\\"statusLabel\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"dateOrderPlaced\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"badge bg-secondary fs-7 m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.purchase-order.Order submitted date\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,15],[[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"dateOrderPlaced\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\"]],[28,[37,17],[[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isActionsRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Loading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,21],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[[52,[30,0,[\\\"isActionsRunning\\\"]],[28,[37,4],[\\\"common.Loading\\\"],null],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[28,[37,20],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null],[30,0,[\\\"isActionsRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,1,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,1,[\\\"action\\\"]],[30,1,[\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseFileStorage\\\"]],[[[1,\\\"        \\\"],[8,[39,24],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"btn btn-secondary text-white m-1\\\",[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"downloadAttachment\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"canManageFileStorage\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,25],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsExcel\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"downloadAsExcel\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsExcel\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as Excel\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"row mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"shared.purchase-order.Purchase order number\\\"],null],\\\"purchaseOrderNumber\\\",true,[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date\\\"],null],\\\"requestedDeliveryDate\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,29],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[false,[30,0,[\\\"addressList\\\"]],[28,[37,4],[\\\"shared.purchase-order.No project address\\\"],null],[30,0,[\\\"setAddress\\\"]],[30,0,[\\\"onSearchAddress\\\"]],[28,[37,4],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],false,[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null],[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Freight charges\\\"],null],\\\"freightCharges\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[24,\\\"rows\\\",\\\"3\\\"],[24,5,\\\"max-height:111.5px\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note\\\"],null],\\\"deliveryNote\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[24,\\\"rows\\\",\\\"3\\\"],[24,5,\\\"max-height:111.5px\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note\\\"],null],\\\"orderNote\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-2 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete products\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showUpdatePriceButton\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn btn-primary m-1\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"updateProductPrices\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateProductPrices\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  Updating…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Update prices\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,13],[[30,0,[\\\"purchaseOrder\\\",\\\"status\\\"]],\\\"SENT\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,17],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null],[30,0,[\\\"updateDeliveryStatus\\\",\\\"Running\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"updateDeliveryStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateDeliveryStatus\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Mark as delivered\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canAddProducts\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[30,0,[\\\"updateProductPrices\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isAddingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"purchase-order__purchase-order-items-table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,32],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@hidePagination\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,4],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],true,\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"purchase-order__footer mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalPriceFooter\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end align-items-center my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[1,\\\": \\\"],[1,[30,0,[\\\"totalPriceFooter\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between mt-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete purchase order\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"onSavePurchaseOrder\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isAddingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,33],null,[[\\\"@onClose\\\",\\\"@projects\\\",\\\"@onSavePurchaseOrderItems\\\",\\\"@purchaseOrder\\\",\\\"@purchaseOrderItems\\\"],[[28,[37,30],[[28,[37,31],[[30,0,[\\\"isAddingProducts\\\"]]],null],false],null],[30,0,[\\\"canManagePurchaseOrderProjects\\\"]],[30,0,[\\\"onSavePurchaseOrderItems\\\"]],[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"purchaseOrderItems\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingPurchaseOrder\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,\\\"data-test-project-settings-delete-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.areYouSureYouWantToDeleteThisPurchaseOrder\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"onDeletePurchaseOrder\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isApproveAndSendEmail\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isSendEmail\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplierContactDetailsExists\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning d-flex flex-row align-items-center justify-content-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,37],[[24,0,\\\"btn btn-outline-primary btn-sm ms-2\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"supplier\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Update details\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeAllAttachments\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,1,\\\"includeAllAttachments\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeAllAttachmentsInSubmissionEmail\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeAllAttachmentsInSubmissionEmail\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isApproveAndSendEmail\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]],[28,[37,17],[[30,0,[\\\"supplierContactDetailsExists\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"approveAndSend\\\"]],[30,0,[\\\"purchaseOrderChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Approving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.approveSend\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSendEmail\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isSendEmail\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplierContactDetailsExists\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning d-flex flex-row align-items-center justify-content-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,37],[[24,0,\\\"btn btn-outline-primary btn-sm ms-2\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"supplier\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Update details\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeAllAttachments\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"send\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeAllAttachmentsInSubmissionEmail\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeAllAttachmentsInSubmissionEmail\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isSendEmail\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"send\\\",\\\"isRunning\\\"]],[28,[37,17],[[30,0,[\\\"supplierContactDetailsExists\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"sendEmail\\\"]],[30,0,[\\\"purchaseOrderChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Sending\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Send\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"action\\\",\\\"po\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"page-title-breadcrumbs\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"span\\\",\\\"or\\\",\\\"eq\\\",\\\"div\\\",\\\"moment-format\\\",\\\"and\\\",\\\"not\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"dropdown-button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-dropdown-list\\\",\\\"pop-over\\\",\\\"fa-icon\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"new-combo-box\\\",\\\"fn\\\",\\\"mut\\\",\\\"pagination-table\\\",\\\"purchase-order-item-selector\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"footer\\\",\\\"link-to\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/csv\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.operations.outgoing.report-builder.csv.CSV export'\n        )\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.report-builder'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header class='border-bottom mb-3 d-flex'>\n        <h2 class='my-2'>\n          {{t\n            'entity.builda-price.operations.outgoing.report-builder.csv.CSV export'\n          }}\n        </h2>\n  \n        <div class='ms-auto report-builder__sub-header-dropdown'>\n          {{#if this.download.isRunning}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}…\n            </button>\n          {{else}}\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              {{on 'click' (perform this.download)}}\n            >\n              <FaIcon class='me-1' @icon='download' />\n              {{t 'common.Download'}}\n              CSV\n            </button>\n          {{/if}}\n        </div>\n      </header>\n    {{else}}\n      <div class='mb-3'>\n        {{#if this.download.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Downloading'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.download)}}\n          >\n            <FaIcon class='me-1' @icon='download' />\n            {{t 'common.Download'}}\n            CSV\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <div class='width--large'>\n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'shared.report-builder.Export options'}}</h3>\n            <p>\n              {{t\n                'shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.csv.Include attachments on export'\n                }}\n                <Input\n                  @type='checkbox'\n                  @checked={{this.includeAttachmentsOnExport}}\n                />\n              </label>\n            </p>\n            <p>\n              <label>\n                {{t 'shared.report-builder.markSelectedItemsAsReportedOnExport'}}\n                <Input @type='checkbox' @checked={{this.markReportedOnExport}} />\n              </label>\n            </p>\n          </div>\n        </section>\n      </form>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"ZnoymJVg\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.csv.CSV export\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.csv.CSV export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto report-builder__sub-header-dropdown\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n            CSV\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          CSV\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Export options\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.csv.Include attachments on export\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"includeAttachmentsOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.markSelectedItemsAsReportedOnExport\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"markReportedOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"form\\\",\\\"section\\\",\\\"h3\\\",\\\"p\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/csv.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/excel\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.operations.outgoing.report-builder.excel.Excel export'\n        )\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.report-builder'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header class='border-bottom mb-3 d-flex'>\n        <h2 class='my-2'>\n          {{t\n            'entity.builda-price.operations.outgoing.report-builder.excel.Excel export'\n          }}\n        </h2>\n  \n        <div class='ms-auto report-builder__sub-header-dropdown'>\n          {{#if this.download.isRunning}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}…\n            </button>\n          {{else}}\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              {{on 'click' (perform this.download)}}\n            >\n              <FaIcon class='me-1' @icon='download' />\n              {{t 'common.Download'}}\n              Excel\n            </button>\n          {{/if}}\n        </div>\n  \n      </header>\n    {{else}}\n      <div class='mb-3'>\n        {{#if this.download.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Downloading'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.download)}}\n          >\n            <FaIcon class='me-1' @icon='download' />\n            {{t 'common.Download'}}\n            Excel\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <div class='width--large'>\n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>Export Options</h3>\n            <p>\n              {{t\n                'shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t 'shared.report-builder.Include attachments with export'}}\n                <Input\n                  @type='checkbox'\n                  @checked={{this.includeAttachmentsOnExport}}\n                />\n              </label>\n            </p>\n            <p>\n              <label>\n                {{t 'shared.report-builder.markSelectedItemsAsReportedOnExport'}}\n                <Input @type='checkbox' @checked={{this.markReportedOnExport}} />\n              </label>\n            </p>\n          </div>\n        </section>\n      </form>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"dtNhz9NL\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.excel.Excel export\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.excel.Excel export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto report-builder__sub-header-dropdown\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n            Excel\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          Excel\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Export Options\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.Include attachments with export\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"includeAttachmentsOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.markSelectedItemsAsReportedOnExport\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"markReportedOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"form\\\",\\\"section\\\",\\\"h3\\\",\\\"p\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/excel.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"aFshvT+G\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Report builder')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <div class='report-builder__sub-header-dropdown float-end'>\n          <PopOver\n            class='button--spaced'\n            @direction='bottom-left'\n            @disabled={{not this.selectedProject}}\n            data-test-export-dropdown=''\n            as |po|\n          >\n            <button\n              type='button'\n              class='btn btn-secondary text-white'\n              disabled={{not this.selectedProject}}\n            >\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n  \n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'downloadReport' 'pdf'}}\n                data-test-export-pdf=''\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.Prepare PDF report'\n                }}\n              </button>\n  \n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'downloadReport' 'excel'}}\n                data-test-export-excel=''\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.Prepare Excel report'\n                }}\n              </button>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'downloadReport' 'csv'}}\n                data-test-export-csv=''\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.Prepare CSV report'\n                }}\n              </button>\n            </po.Content>\n          </PopOver>\n        </div>\n  \n        <h1 class='h1'>\n          {{t 'common.Report builder'}}\n        </h1>\n      </header>\n    {{else}}\n      <div class='mb-3'>\n        <OverlaidDropdown\n          @buttonClasses='button button--download button--spaced'\n          @buttonText='Download report'\n          @title='Download Report'\n          @disabled={{not this.selectedProject}}\n          @align='right'\n          data-test-export-dropdown\n        >\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'downloadReport' 'pdf'}}\n            data-test-export-pdf=''\n          >\n            <span class='no-wrap'>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Prepare PDF report'\n              }}</span>\n          </label>\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'downloadReport' 'excel'}}\n            data-test-export-excel=''\n          >\n            <span class='no-wrap'>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Prepare Excel report'\n              }}</span>\n          </label>\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'downloadReport' 'csv'}}\n            data-test-export-csv=''\n          >\n            <span class='no-wrap'>\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Prepare CSV report'\n              }}</span>\n          </label>\n        </OverlaidDropdown>\n      </div>\n    {{/if}}\n  \n    {{! Page controls, date, project, task }}\n    <div class='report-builder__sub-header'>\n      <span class='report-builder__sub-header-item'>\n        <DateRangeSelector\n          @disabled={{if this.filterByDate false true}}\n          @align='left'\n          @startDate={{this.jsStartDate}}\n          @endDate={{this.jsEndDate}}\n          @onApply={{action 'setDateRange'}}\n        />\n      </span>\n      <span class='report-builder__sub-header-item ms-2'>\n        <label>\n          <Input\n            class='mx-2'\n            @type='checkbox'\n            @checked={{this.filterByDate}}\n            data-test-report-builder-filterCheckBox=''\n            {{on 'click' (action 'toggleFilter')}}\n          />{{t 'common.Filter by date'}}</label>\n      </span>\n      <span class='report-builder__sub-header-item'>\n        <label>&nbsp;&nbsp;&nbsp;&nbsp;{{t\n            'common.Selected project'\n          }}:&nbsp;&nbsp;</label>\n        <PowerSelect\n          data-test-report-builder-project=''\n          @searchEnabled={{true}}\n          @options={{this.groupedProjects}}\n          @selected={{this.selectedProject}}\n          @searchField='name'\n          @placeholder=' – '\n          @onChange={{action 'setProject'}}\n          as |project|\n        >\n          {{project.name}}\n        </PowerSelect>\n      </span>\n  \n      {{#if this.selectedProject}}\n        <span class='report-builder__sub-header-item'>\n          <label>&nbsp;&nbsp;&nbsp;&nbsp;{{t\n              'common.Selected tasks'\n            }}:&nbsp;&nbsp;</label>\n          <MultiTaskSelectorInput\n            @showTaskPopUp={{this.showTaskPopUp}}\n            @selectedProject={{this.selectedProject}}\n            @selectedTasks={{this.selectedTasks}}\n            @setSelectedTasks={{action 'setSelectedTasks'}}\n            @removeSelectedTask={{action 'removeSelectedTask'}}\n          />\n          {{#if this.selectedTasks.length}}\n            &nbsp;&nbsp;\n            <button\n              class='text-button'\n              type='button'\n              {{action 'removeAllTaskFilters'}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </span>\n      {{/if}}\n    </div>\n  \n    {{#unless this.selectedProject}}\n      {{! If no project is selected, promt the user to do so }}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>{{t 'common.Select a project'}}</h3>\n      </div>\n    {{else}}\n      {{! If a project is selected, show the page content }}\n  \n      {{! Totals bar (sticky) }}\n      <div class='report-builder__sub-header--fixed'>\n        <h2 class='float-start'>{{t 'shared.report-builder.Report total'}}</h2>\n        <span class='report-builder__section-total'>\n          <span\n            class='report-builder__section-total-column'\n            data-test-report-builder-subtotal=''\n          >\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Subtotal'\n              }}</span>\n            {{number-format\n              this.computedTotals.total.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Margin total'\n              }}</span>\n            {{number-format\n              this.computedTotals.total.margin\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-report-builder-total=''\n          >\n            <span>{{t 'common.Total'}}</span>\n            {{number-format\n              this.computedTotals.total.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </div>\n  \n      {{! Materials section }}\n      <section class='report-builder__section' data-test-materials>\n        <div class='report-builder__section-header'>\n          {{! Materials heading (toggle) }}\n          <h2\n            class='h2'\n            {{action this.toggleProperty 'materialsSectionExpanded'}}\n          >\n            {{t 'common.Materials'}}&nbsp;&nbsp;<FaIcon\n              @icon={{if\n                this.materialsSectionExpanded\n                'angle-down'\n                'angle-right'\n              }}\n            />\n          </h2>\n        </div>\n  \n        {{! Materials content, only show when expanded }}\n        {{#if this.materialsSectionExpanded}}\n          {{#unless this.materialInvoices.length}}\n            {{! Message for when there are no invoices to show }}\n            {{#unless this.filterByDate}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.There are no materials bills'\n                }}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.thereAreNoMaterialsBillsWithAnIssueDateBetween'\n                  start=(moment-format this.startDate (t 'date.shortWithWeekday'))\n                  end=(moment-format this.endDate (t 'date.shortWithWeekday'))\n                }}\n              </p>\n            {{/unless}}\n          {{else}}\n            <button\n              class='text-button text-button--spaced report-builder__section-header-button'\n              type='button'\n              {{action 'toggleMaterialsReportedSelected'}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Select previously unreported items'\n              }}\n            </button>\n  \n            <ReportBuilderPm::InvoiceTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Material bills'\n              }}\n              @toggleAllSelected={{action 'toggleMaterialsSelected'}}\n              @toggleResourceItemsSelected={{action\n                'toggleResourceItemsSelected'\n              }}\n              @toggleItemsVisible={{action 'toggleItemsVisible'}}\n              @toggleInvoiceItemSelected={{action 'toggleInvoiceItemSelected'}}\n              @setItemReportedFalse={{action 'setItemReportedFalse'}}\n              @setItemsReportedFalse={{action 'setItemsReportedFalse'}}\n              @allSelected={{this.allMaterialsSelected}}\n              @partSelected={{this.partMaterialsSelected}}\n              @invoices={{this.materialInvoices}}\n            />\n          {{/unless}}\n  \n          {{! List of manual items to add to the material invoices part of the report }}\n          {{#if this.manualMaterials.length}}\n            <ReportBuilderPm::ManualTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Manual items'\n              }}\n              @items={{this.manualMaterials}}\n              @deleteItem={{action 'deleteManualItem'}}\n              @manualKey='material'\n            />\n          {{/if}}\n          <button\n            class='button button--add report-builder__section-button-add'\n            type='button'\n            {{action 'addManualItem' 'material'}}\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.report-builder.Add manual item'\n            }}\n          </button>\n        {{/if}}\n  \n        {{! Materials totals }}\n        <span class='report-builder__section-total'>\n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Materials subtotal'}}</span>\n            {{number-format\n              this.computedTotals.invoice.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-materials-markup\n          >\n            <SelectInput\n              @value={{this.invoiceProfitType}}\n              @action={{action 'setProfitType' 'invoice'}}\n              @class='report-builder__section-total-column-select-box-replacement'\n              as |si|\n            >\n              <si.option @value='dollar'>{{t 'common.Markup'}}-{{t\n                  'common.Currency'\n                }}\n              </si.option>\n              <si.option @value='margin'>{{t 'common.Margin'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n              <si.option @value='markup'>{{t 'common.Markup'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n            </SelectInput>\n            {{#if (eq this.invoiceProfitType 'dollar')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='$0.00'\n                @update={{action (mut this.invoiceProfit)}}\n                @number={{this.invoiceDollarProfit}}\n                @format='currency'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.invoiceProfitType 'margin')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.invoiceProfit)}}\n                @number={{this.invoiceMargin}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.invoiceProfitType 'markup')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.invoiceProfit)}}\n                @number={{this.invoiceMarkup}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{/if}}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Materials total'}}</span>\n            {{number-format\n              this.computedTotals.invoice.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </section>\n  \n      {{! Labour section }}\n      <section class='report-builder__section' data-test-labour>\n        <div class='report-builder__section-header'>\n          {{! Labour header (toggle) }}\n          <h2 class='h2' {{action this.toggleProperty 'labourSectionExpanded'}}>\n            {{t 'common.Labour'}}&nbsp;&nbsp;<FaIcon\n              @icon={{if this.labourSectionExpanded 'angle-down' 'angle-right'}}\n            />\n          </h2>\n  \n          {{! Charge out rates toggle, only necessary when timesheets are found }}\n          {{#if this.workers.length}}\n            <span class='report-builder__section-header-meta'>\n              <label for='use-charge-out-rate-toggle'>{{t\n                  'entity.builda-price.operations.outgoing.report-builder.Use charge out rates'\n                }}</label>\n              <Input\n                @type='checkbox'\n                id='use-charge-out-rate-toggle'\n                @checked={{this.useChargeOutRates}}\n              />\n            </span>\n          {{/if}}\n        </div>\n  \n        {{! Labour content, only show if section expanded }}\n        {{#if this.labourSectionExpanded}}\n          {{#unless (or this.workers.length this.labourInvoices.length)}}\n            {{! Message for when there are no timesheets }}\n            {{#unless this.filterByDate}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.There are no timesheets'\n                }}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.thereAreNoTimesheetsCreatedBetweenXAndY'\n                  start=(moment-format this.startDate (t 'date.shortWithWeekday'))\n                  end=(moment-format this.endDate (t 'date.shortWithWeekday'))\n                }}\n              </p>\n            {{/unless}}\n          {{else}}\n            <button\n              class='text-button text-button--spaced report-builder__section-header-button'\n              type='button'\n              {{action 'toggleTimesheetsReportedSelected'}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Select previously unreported items'\n              }}\n            </button>\n  \n            {{#if this.workers.length}}\n              <ReportBuilderPm::TimesheetTypeTable\n                @title={{t 'common.Timesheets'}}\n                @headingName='Task'\n                @workers={{this.workers}}\n                @allTimesheetsSelected={{this.allTimesheetsSelected}}\n                @partTimesheetsSelected={{this.partTimesheetsSelected}}\n                @useChargeOutRates={{this.useChargeOutRates}}\n                @toggleTimesheetsSelected={{action 'toggleTimesheetsSelected'}}\n                @toggleWorkersTimesheetsSelected={{action\n                  'toggleWorkersTimesheetsSelected'\n                }}\n                @toggleItemsVisible={{action 'toggleItemsVisible'}}\n                @toggleTimesheetSelected={{action 'toggleTimesheetSelected'}}\n                @setItemsReportedFalse={{action 'setItemsReportedFalse'}}\n                @setItemReportedFalse={{action 'setItemReportedFalse'}}\n              />\n            {{/if}}\n  \n            {{#if this.labourInvoices.length}}\n              <ReportBuilderPm::InvoiceTypeTable\n                @title={{t 'shared.report-builder.Labour bills'}}\n                @headingName='Task'\n                @toggleAllSelected={{action 'toggleLabourSelected'}}\n                @toggleResourceItemsSelected={{action\n                  'toggleResourceItemsSelected'\n                }}\n                @toggleItemsVisible={{action 'toggleItemsVisible'}}\n                @toggleInvoiceItemSelected={{action 'toggleInvoiceItemSelected'}}\n                @setItemReportedFalse={{action 'setItemReportedFalse'}}\n                @setItemsReportedFalse={{action 'setItemsReportedFalse'}}\n                @allSelected={{this.allLabourSelected}}\n                @partSelected={{this.partLabourSelected}}\n                @invoices={{this.labourInvoices}}\n              />\n            {{/if}}\n          {{/unless}}\n  \n          {{! Things that are manually added to the labour section of the report }}\n          {{#if this.manualTimesheets.length}}\n            <ReportBuilderPm::ManualTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Manual items'\n              }}\n              @items={{this.manualTimesheets}}\n              @deleteItem={{action 'deleteManualItem'}}\n              @manualKey='timesheet'\n            />\n          {{/if}}\n  \n          <button\n            class='button button--add report-builder__section-button-add'\n            type='button'\n            {{action 'addManualItem' 'timesheet'}}\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.report-builder.Add manual item'\n            }}\n          </button>\n        {{/if}}\n  \n        {{! Labour totals line }}\n        <span class='report-builder__section-total'>\n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Labour hours total'\n              }}</span>\n            {{format-duration\n              this.computedTotals.timesheet.manHoursTotal\n              emptyPlaceholder='–'\n            }}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Labour subtotal'}}</span>\n            {{number-format\n              this.computedTotals.timesheet.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-labour-markup\n          >\n            <SelectInput\n              @value={{this.timesheetProfitType}}\n              @action={{action 'setProfitType' 'timesheet'}}\n              @class='report-builder__section-total-column-select-box-replacement'\n              as |si|\n            >\n              <si.option @value='dollar'>{{t 'common.Markup'}}-{{t\n                  'common.Currency'\n                }}\n              </si.option>\n              <si.option @value='margin'>{{t 'common.Margin'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n              <si.option @value='markup'>{{t 'common.Markup'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n            </SelectInput>\n            {{#if (eq this.timesheetProfitType 'dollar')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='$0.00'\n                @update={{action (mut this.timesheetProfit)}}\n                @number={{this.timesheetDollarProfit}}\n                @format='currency'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.timesheetProfitType 'margin')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.timesheetProfit)}}\n                @number={{this.timesheetMargin}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.timesheetProfitType 'markup')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.timesheetProfit)}}\n                @number={{this.timesheetMarkup}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{/if}}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Labour total'}}</span>\n            {{number-format\n              this.computedTotals.timesheet.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </section>\n  \n      {{! Subcontractor invocies section }}\n      <section class='report-builder__section' data-test-subcontractors>\n        <div class='report-builder__section-header'>\n          {{! Subcontractors header (toggle) }}\n          <h2\n            class='h2'\n            {{action this.toggleProperty 'subcontractorsSectionExpanded'}}\n          >\n            {{t 'common.Subcontractors'}}&nbsp;&nbsp;<FaIcon\n              @icon={{if\n                this.subcontractorsSectionExpanded\n                'angle-down'\n                'angle-right'\n              }}\n            />\n          </h2>\n        </div>\n  \n        {{! Subcontractor invoices content }}\n        {{#if this.subcontractorsSectionExpanded}}\n          {{#unless this.subcontractorInvoices.length}}\n            {{! Message for when there are no subcontractor invoices in the report }}\n            {{#unless this.filterByDate}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.There are no subcontractor bills'\n                }}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.thereAreNoSubcontractorBillsWithAnIssueDateBetweenXAndY'\n                  start=(moment-format this.startDate (t 'date.shortWithWeekday'))\n                  end=(moment-format this.endDate (t 'date.shortWithWeekday'))\n                }}\n              </p>\n            {{/unless}}\n  \n          {{else}}\n            <button\n              class='text-button text-button--spaced report-builder__section-header-button'\n              type='button'\n              {{action 'toggleSubcontractorsReportedSelected'}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Select previously unreported items'\n              }}\n            </button>\n  \n            <ReportBuilderPm::InvoiceTypeTable\n              @title={{t 'shared.report-builder.Subcontractor bills'}}\n              @headingName='Task'\n              @toggleAllSelected={{action 'toggleSubcontractorsSelected'}}\n              @toggleResourceItemsSelected={{action\n                'toggleResourceItemsSelected'\n              }}\n              @toggleItemsVisible={{action 'toggleItemsVisible'}}\n              @toggleInvoiceItemSelected={{action 'toggleInvoiceItemSelected'}}\n              @setItemReportedFalse={{action 'setItemReportedFalse'}}\n              @setItemsReportedFalse={{action 'setItemsReportedFalse'}}\n              @allSelected={{this.allSubcontractorsSelected}}\n              @partSelected={{this.partSubcontractorsSelected}}\n              @invoices={{this.subcontractorInvoices}}\n            />\n          {{/unless}}\n  \n          {{! Items that are manually added to the subcontractor section }}\n          {{#if this.manualSubcontractors.length}}\n            <ReportBuilderPm::ManualTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Manual items'\n              }}\n              @items={{this.manualSubcontractors}}\n              @deleteItem={{action 'deleteManualItem'}}\n              @manualKey='subcontractor'\n            />\n          {{/if}}\n          <button\n            class='button button--add report-builder__section-button-add'\n            type='button'\n            {{action 'addManualItem' 'subcontractor'}}\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.report-builder.Add manual item'\n            }}\n          </button>\n        {{/if}}\n  \n        {{! Subcontractors totals }}\n        <span class='report-builder__section-total'>\n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Subcontractors subtotal'\n              }}</span>\n            {{number-format\n              this.computedTotals.subcontractor.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-subcontractors-markup\n          >\n            <SelectInput\n              @value={{this.subcontractorProfitType}}\n              @action={{action 'setProfitType' 'subcontractor'}}\n              @class='report-builder__section-total-column-select-box-replacement'\n              as |si|\n            >\n              <si.option @value='dollar'>{{t 'common.Markup'}}-{{t\n                  'common.Currency'\n                }}\n              </si.option>\n              <si.option @value='margin'>{{t 'common.Margin'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n              <si.option @value='markup'>{{t 'common.Markup'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n            </SelectInput>\n            {{#if (eq this.subcontractorProfitType 'dollar')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='$0.00'\n                @update={{action (mut this.subcontractorProfit)}}\n                @number={{this.subcontractorDollarProfit}}\n                @format='currency'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.subcontractorProfitType 'margin')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.subcontractorProfit)}}\n                @number={{this.subcontractorMargin}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.subcontractorProfitType 'markup')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.subcontractorProfit)}}\n                @number={{this.subcontractorMarkup}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{/if}}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Subcontractors total'\n              }}</span>\n            {{number-format\n              this.computedTotals.subcontractor.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </section>\n      <br />\n      <br />\n    {{/unless}}\n  </article>\n  */\n  {\n    \"id\": \"t3v6p2SE\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Report builder\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__sub-header-dropdown float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],[[24,0,\\\"button--spaced\\\"],[24,\\\"data-test-export-dropdown\\\",\\\"\\\"]],[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[28,[37,10],[[30,0,[\\\"selectedProject\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white\\\"],[15,\\\"disabled\\\",[28,[37,10],[[30,0,[\\\"selectedProject\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-export-pdf\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"pdf\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare PDF report\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-export-excel\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"excel\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare Excel report\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-export-csv\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"csv\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare CSV report\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Report builder\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,\\\"data-test-export-dropdown\\\",\\\"\\\"]],[[\\\"@buttonClasses\\\",\\\"@buttonText\\\",\\\"@title\\\",\\\"@disabled\\\",\\\"@align\\\"],[\\\"button button--download button--spaced\\\",\\\"Download report\\\",\\\"Download Report\\\",[28,[37,10],[[30,0,[\\\"selectedProject\\\"]]],null],\\\"right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-export-pdf\\\",\\\"\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"pdf\\\"],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare PDF report\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-export-excel\\\",\\\"\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"excel\\\"],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare Excel report\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-export-csv\\\",\\\"\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"csv\\\"],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare CSV report\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"report-builder__sub-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"report-builder__sub-header-item\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@disabled\\\",\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[[52,[30,0,[\\\"filterByDate\\\"]],false,true],\\\"left\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,13],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"report-builder__sub-header-item ms-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],[[24,0,\\\"mx-2\\\"],[24,\\\"data-test-report-builder-filterCheckBox\\\",\\\"\\\"],[4,[38,20],[\\\"click\\\",[28,[37,13],[[30,0],\\\"toggleFilter\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,[28,[35,4],[\\\"common.Filter by date\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"report-builder__sub-header-item\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"    \\\"],[1,[28,[35,4],[\\\"common.Selected project\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,21],[[24,\\\"data-test-report-builder-project\\\",\\\"\\\"]],[[\\\"@searchEnabled\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[true,[30,0,[\\\"groupedProjects\\\"]],[30,0,[\\\"selectedProject\\\"]],\\\"name\\\",\\\" – \\\",[28,[37,13],[[30,0],\\\"setProject\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedProject\\\"]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__sub-header-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"    \\\"],[1,[28,[35,4],[\\\"common.Selected tasks\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,22],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"selectedProject\\\"]],[30,0,[\\\"selectedTasks\\\"]],[28,[37,13],[[30,0],\\\"setSelectedTasks\\\"],null],[28,[37,13],[[30,0],\\\"removeSelectedTask\\\"],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]],[[[1,\\\"            \\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"removeAllTaskFilters\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"selectedProject\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"common.Select a project\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"report-builder__sub-header--fixed\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"float-start\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Report total\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-report-builder-subtotal\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"total\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Margin total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"total\\\",\\\"margin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-report-builder-total\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"total\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"report-builder__section\\\"],[14,\\\"data-test-materials\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__section-header\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"h2\\\"],[24,0,\\\"h2\\\"],[4,[38,13],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"materialsSectionExpanded\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"materialsSectionExpanded\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"materialsSectionExpanded\\\"]],[[[41,[51,[30,0,[\\\"materialInvoices\\\",\\\"length\\\"]]],[[[41,[51,[30,0,[\\\"filterByDate\\\"]]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.There are no materials bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.thereAreNoMaterialsBillsWithAnIssueDateBetween\\\"],[[\\\"start\\\",\\\"end\\\"],[[28,[37,28],[[30,0,[\\\"startDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null],[28,[37,28],[[30,0,[\\\"endDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced report-builder__section-header-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"toggleMaterialsReportedSelected\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Select previously unreported items\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,29],null,[[\\\"@title\\\",\\\"@toggleAllSelected\\\",\\\"@toggleResourceItemsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleInvoiceItemSelected\\\",\\\"@setItemReportedFalse\\\",\\\"@setItemsReportedFalse\\\",\\\"@allSelected\\\",\\\"@partSelected\\\",\\\"@invoices\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Material bills\\\"],null],[28,[37,13],[[30,0],\\\"toggleMaterialsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleResourceItemsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleItemsVisible\\\"],null],[28,[37,13],[[30,0],\\\"toggleInvoiceItemSelected\\\"],null],[28,[37,13],[[30,0],\\\"setItemReportedFalse\\\"],null],[28,[37,13],[[30,0],\\\"setItemsReportedFalse\\\"],null],[30,0,[\\\"allMaterialsSelected\\\"]],[30,0,[\\\"partMaterialsSelected\\\"]],[30,0,[\\\"materialInvoices\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"manualMaterials\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@deleteItem\\\",\\\"@manualKey\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Manual items\\\"],null],[30,0,[\\\"manualMaterials\\\"]],[28,[37,13],[[30,0],\\\"deleteManualItem\\\"],null],\\\"material\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add report-builder__section-button-add\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"addManualItem\\\",\\\"material\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Add manual item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Materials subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"invoice\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-materials-markup\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,31],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"invoiceProfitType\\\"]],[28,[37,13],[[30,0],\\\"setProfitType\\\",\\\"invoice\\\"],null],\\\"report-builder__section-total-column-select-box-replacement\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"dollar\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Currency\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"margin\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Margin\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"markup\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,0,[\\\"invoiceProfitType\\\"]],\\\"dollar\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"$0.00\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"invoiceProfit\\\"]]],null]],null],[30,0,[\\\"invoiceDollarProfit\\\"]],\\\"currency\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"invoiceProfitType\\\"]],\\\"margin\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"invoiceProfit\\\"]]],null]],null],[30,0,[\\\"invoiceMargin\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"invoiceProfitType\\\"]],\\\"markup\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"invoiceProfit\\\"]]],null]],null],[30,0,[\\\"invoiceMarkup\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Materials total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"invoice\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"report-builder__section\\\"],[14,\\\"data-test-labour\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__section-header\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"h2\\\"],[24,0,\\\"h2\\\"],[4,[38,13],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"labourSectionExpanded\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"labourSectionExpanded\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"workers\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"report-builder__section-header-meta\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"use-charge-out-rate-toggle\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Use charge out rates\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],[[24,1,\\\"use-charge-out-rate-toggle\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"useChargeOutRates\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"labourSectionExpanded\\\"]],[[[41,[51,[28,[37,35],[[30,0,[\\\"workers\\\",\\\"length\\\"]],[30,0,[\\\"labourInvoices\\\",\\\"length\\\"]]],null]],[[[41,[51,[30,0,[\\\"filterByDate\\\"]]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.There are no timesheets\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.thereAreNoTimesheetsCreatedBetweenXAndY\\\"],[[\\\"start\\\",\\\"end\\\"],[[28,[37,28],[[30,0,[\\\"startDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null],[28,[37,28],[[30,0,[\\\"endDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced report-builder__section-header-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"toggleTimesheetsReportedSelected\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Select previously unreported items\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"workers\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,36],null,[[\\\"@title\\\",\\\"@headingName\\\",\\\"@workers\\\",\\\"@allTimesheetsSelected\\\",\\\"@partTimesheetsSelected\\\",\\\"@useChargeOutRates\\\",\\\"@toggleTimesheetsSelected\\\",\\\"@toggleWorkersTimesheetsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleTimesheetSelected\\\",\\\"@setItemsReportedFalse\\\",\\\"@setItemReportedFalse\\\"],[[28,[37,4],[\\\"common.Timesheets\\\"],null],\\\"Task\\\",[30,0,[\\\"workers\\\"]],[30,0,[\\\"allTimesheetsSelected\\\"]],[30,0,[\\\"partTimesheetsSelected\\\"]],[30,0,[\\\"useChargeOutRates\\\"]],[28,[37,13],[[30,0],\\\"toggleTimesheetsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleWorkersTimesheetsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleItemsVisible\\\"],null],[28,[37,13],[[30,0],\\\"toggleTimesheetSelected\\\"],null],[28,[37,13],[[30,0],\\\"setItemsReportedFalse\\\"],null],[28,[37,13],[[30,0],\\\"setItemReportedFalse\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"labourInvoices\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,29],null,[[\\\"@title\\\",\\\"@headingName\\\",\\\"@toggleAllSelected\\\",\\\"@toggleResourceItemsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleInvoiceItemSelected\\\",\\\"@setItemReportedFalse\\\",\\\"@setItemsReportedFalse\\\",\\\"@allSelected\\\",\\\"@partSelected\\\",\\\"@invoices\\\"],[[28,[37,4],[\\\"shared.report-builder.Labour bills\\\"],null],\\\"Task\\\",[28,[37,13],[[30,0],\\\"toggleLabourSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleResourceItemsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleItemsVisible\\\"],null],[28,[37,13],[[30,0],\\\"toggleInvoiceItemSelected\\\"],null],[28,[37,13],[[30,0],\\\"setItemReportedFalse\\\"],null],[28,[37,13],[[30,0],\\\"setItemsReportedFalse\\\"],null],[30,0,[\\\"allLabourSelected\\\"]],[30,0,[\\\"partLabourSelected\\\"]],[30,0,[\\\"labourInvoices\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"manualTimesheets\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@deleteItem\\\",\\\"@manualKey\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Manual items\\\"],null],[30,0,[\\\"manualTimesheets\\\"]],[28,[37,13],[[30,0],\\\"deleteManualItem\\\"],null],\\\"timesheet\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add report-builder__section-button-add\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"addManualItem\\\",\\\"timesheet\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Add manual item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Labour hours total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,37],[[30,0,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"manHoursTotal\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"–\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-labour-markup\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,31],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"timesheetProfitType\\\"]],[28,[37,13],[[30,0],\\\"setProfitType\\\",\\\"timesheet\\\"],null],\\\"report-builder__section-total-column-select-box-replacement\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"dollar\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Currency\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"margin\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Margin\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"markup\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,0,[\\\"timesheetProfitType\\\"]],\\\"dollar\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"$0.00\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"timesheetProfit\\\"]]],null]],null],[30,0,[\\\"timesheetDollarProfit\\\"]],\\\"currency\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"timesheetProfitType\\\"]],\\\"margin\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"timesheetProfit\\\"]]],null]],null],[30,0,[\\\"timesheetMargin\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"timesheetProfitType\\\"]],\\\"markup\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"timesheetProfit\\\"]]],null]],null],[30,0,[\\\"timesheetMarkup\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"report-builder__section\\\"],[14,\\\"data-test-subcontractors\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__section-header\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"h2\\\"],[24,0,\\\"h2\\\"],[4,[38,13],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"subcontractorsSectionExpanded\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"subcontractorsSectionExpanded\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"subcontractorsSectionExpanded\\\"]],[[[41,[51,[30,0,[\\\"subcontractorInvoices\\\",\\\"length\\\"]]],[[[41,[51,[30,0,[\\\"filterByDate\\\"]]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.There are no subcontractor bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.thereAreNoSubcontractorBillsWithAnIssueDateBetweenXAndY\\\"],[[\\\"start\\\",\\\"end\\\"],[[28,[37,28],[[30,0,[\\\"startDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null],[28,[37,28],[[30,0,[\\\"endDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced report-builder__section-header-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"toggleSubcontractorsReportedSelected\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Select previously unreported items\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,29],null,[[\\\"@title\\\",\\\"@headingName\\\",\\\"@toggleAllSelected\\\",\\\"@toggleResourceItemsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleInvoiceItemSelected\\\",\\\"@setItemReportedFalse\\\",\\\"@setItemsReportedFalse\\\",\\\"@allSelected\\\",\\\"@partSelected\\\",\\\"@invoices\\\"],[[28,[37,4],[\\\"shared.report-builder.Subcontractor bills\\\"],null],\\\"Task\\\",[28,[37,13],[[30,0],\\\"toggleSubcontractorsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleResourceItemsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleItemsVisible\\\"],null],[28,[37,13],[[30,0],\\\"toggleInvoiceItemSelected\\\"],null],[28,[37,13],[[30,0],\\\"setItemReportedFalse\\\"],null],[28,[37,13],[[30,0],\\\"setItemsReportedFalse\\\"],null],[30,0,[\\\"allSubcontractorsSelected\\\"]],[30,0,[\\\"partSubcontractorsSelected\\\"]],[30,0,[\\\"subcontractorInvoices\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"manualSubcontractors\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@deleteItem\\\",\\\"@manualKey\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Manual items\\\"],null],[30,0,[\\\"manualSubcontractors\\\"]],[28,[37,13],[[30,0],\\\"deleteManualItem\\\"],null],\\\"subcontractor\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add report-builder__section-button-add\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"addManualItem\\\",\\\"subcontractor\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Add manual item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Subcontractors subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"subcontractor\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-subcontractors-markup\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,31],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"subcontractorProfitType\\\"]],[28,[37,13],[[30,0],\\\"setProfitType\\\",\\\"subcontractor\\\"],null],\\\"report-builder__section-total-column-select-box-replacement\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"dollar\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Currency\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"margin\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Margin\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"markup\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,0,[\\\"subcontractorProfitType\\\"]],\\\"dollar\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"$0.00\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"subcontractorProfit\\\"]]],null]],null],[30,0,[\\\"subcontractorDollarProfit\\\"]],\\\"currency\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"subcontractorProfitType\\\"]],\\\"margin\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"subcontractorProfit\\\"]]],null]],null],[30,0,[\\\"subcontractorMargin\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"subcontractorProfitType\\\"]],\\\"markup\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"subcontractorProfit\\\"]]],null]],null],[30,0,[\\\"subcontractorMarkup\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Subcontractors total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"subcontractor\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"project\\\",\\\"si\\\",\\\"si\\\",\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"div\\\",\\\"pop-over\\\",\\\"not\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"action\\\",\\\"h1\\\",\\\"overlaid-dropdown\\\",\\\"label\\\",\\\"span\\\",\\\"date-range-selector\\\",\\\"input\\\",\\\"on\\\",\\\"power-select\\\",\\\"multi-task-selector-input\\\",\\\"h2\\\",\\\"h3\\\",\\\"number-format\\\",\\\"section\\\",\\\"p\\\",\\\"moment-format\\\",\\\"report-builder-pm/invoice-type-table\\\",\\\"report-builder-pm/manual-type-table\\\",\\\"select-input\\\",\\\"eq\\\",\\\"formatted-input\\\",\\\"mut\\\",\\\"or\\\",\\\"report-builder-pm/timesheet-type-table\\\",\\\"format-duration\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.operations.outgoing.report-builder.pdf.PDF export'\n        )\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.report-builder'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header class='border-bottom mb-3 d-flex'>\n        <h2 class='my-2'>\n          {{t\n            'entity.builda-price.operations.outgoing.report-builder.pdf.PDF export'\n          }}\n        </h2>\n        <div class='ms-auto report-builder__sub-header-dropdown'>\n          {{#if this.isDownloading}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}…\n            </button>\n          {{else}}\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              {{on 'click' this.download}}\n            >\n              <FaIcon class='me-1' @icon='download' />\n              {{t 'common.Download'}}\n              PDF\n            </button>\n          {{/if}}\n        </div>\n      </header>\n    {{else}}\n      <div class='mb-3'>\n        {{#if this.isDownloading}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Downloading'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' this.download}}\n          >\n            <FaIcon class='me-1' @icon='download' />\n            {{t 'common.Download'}}\n            PDF\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <ReportExporterPm @model={{this.model}} />\n  </article>\n  */\n  {\n    \"id\": \"7z+AHyzX\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.pdf.PDF export\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.pdf.PDF export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto report-builder__sub-header-dropdown\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloading\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"download\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,14],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n            PDF\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloading\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"download\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,14],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          PDF\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[8,[39,15],null,[[\\\"@model\\\"],[[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"report-exporter-pm\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/products\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Products')\n      }}\n    />\n  {{/unless}}\n  \n  <main class='page__container-content gap-zendesk-support-widget'>\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Products'}}</h2>\n        {{/if}}\n      </header>\n      <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n        {{#if (and this.isEditable this.productTableData.length)}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (fn (mut this.isDeletingProducts) true)}}\n              disabled={{or (not this.selectProductIds.size) this.isLoading}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          </div>\n        {{/if}}\n        {{#if this.showFilters}}\n          <div class='mx-1'>\n            <SearchSelector\n              style='width: 200px;'\n              @disabled={{this.isLoading}}\n              @key='supplierName'\n              @optionKeys={{array 'supplierName'}}\n              @model={{this.supplierChangeSet}}\n              @noDataMessage={{t 'common.No suppliers'}}\n              @onLoad={{this.loadMoreSuppliers}}\n              @onSelect={{this.setSupplier}}\n              @placeholder={{t 'shared.product.Filter by supplier'}}\n            />\n          </div>\n          <Input\n            class='form-control m-1 w-auto'\n            placeholder={{t 'common.Search'}}\n            @value={{this.searchString}}\n            @type='text'\n            autofocus='true'\n            {{on 'input' (perform this.onChangeSearchTerm)}}\n            data-test-task-product-search\n          />\n        {{/if}}\n        {{#if this.isEditable}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.addingProductsFromFile) true)}}\n          >\n            <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n              'shared.product.Add products from a file'\n            }}\n          </button>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.isAddingProduct) true)}}\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n          </button>\n        {{/if}}\n      </div>\n      <div class='entity-products__table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @pageSizes={{this.model.pageSizes}}\n          @pageSize={{this.model.pageSize}}\n          @pageIndex={{this.model.pageIndex}}\n          @onChangePageIndex={{this.onChangePageIndex}}\n          @onChangePageSize={{this.onChangePageSize}}\n          @isLoading={{this.model.products.isRunning}}\n          @totalRecords={{this.totalRecords}}\n          @class='table-bordered'\n        />\n      </div>\n    </article>\n  </main>\n  \n  {{#if this.isEditingProduct}}\n    <ProductEditor\n      @onSaveProduct={{this.onSaveProduct}}\n      @target={{this.model.entity}}\n      @productTable={{'entity-product'}}\n      @entity={{this.sessionData.entity}}\n      @productId={{this.selectedProductId}}\n      @onClose={{fn (mut this.isEditingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingProduct}}\n    <ProductSelector\n      @onAddProduct={{this.onAddProduct}}\n      @onCreateProduct={{this.onCreateProduct}}\n      @onClose={{fn (mut this.isAddingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.addingProductsFromFile}}\n    <ProductsUploader\n      @onUploadProducts={{this.updateProductList}}\n      @saveTarget={{'entity-products'}}\n      @onClose={{fn (mut this.addingProductsFromFile) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingProducts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingProducts) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>\n        {{t\n          'shared.product.areYouSureYouWantToDeleteXProducts'\n          number=this.selectProductIds.size\n          products=(pluralize this.selectProductIds.size 'product')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteProducts.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (perform this.deleteProducts)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingProducts) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"w7qSrQLJ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Products\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Products\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"productTableData\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showFilters\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,5,\\\"width: 200px;\\\"]],[[\\\"@disabled\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@noDataMessage\\\",\\\"@onLoad\\\",\\\"@onSelect\\\",\\\"@placeholder\\\"],[[30,0,[\\\"isLoading\\\"]],\\\"supplierName\\\",[28,[37,19],[\\\"supplierName\\\"],null],[30,0,[\\\"supplierChangeSet\\\"]],[28,[37,4],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"loadMoreSuppliers\\\"]],[30,0,[\\\"setSupplier\\\"]],[28,[37,4],[\\\"shared.product.Filter by supplier\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,20],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"common.Search\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-task-product-search\\\",\\\"\\\"],[4,[38,15],[\\\"input\\\",[28,[37,21],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.product.Add products from a file\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"entity-products__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,4],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onSaveProduct\\\",\\\"@target\\\",\\\"@productTable\\\",\\\"@entity\\\",\\\"@productId\\\",\\\"@onClose\\\"],[[30,0,[\\\"onSaveProduct\\\"]],[30,0,[\\\"model\\\",\\\"entity\\\"]],\\\"entity-product\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\"]],[30,0,[\\\"selectedProductId\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isEditingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@onAddProduct\\\",\\\"@onCreateProduct\\\",\\\"@onClose\\\"],[[30,0,[\\\"onAddProduct\\\"]],[30,0,[\\\"onCreateProduct\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addingProductsFromFile\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onUploadProducts\\\",\\\"@saveTarget\\\",\\\"@onClose\\\"],[[30,0,[\\\"updateProductList\\\"]],\\\"entity-products\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.product.areYouSureYouWantToDeleteXProducts\\\"],[[\\\"number\\\",\\\"products\\\"],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],[28,[37,29],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],\\\"product\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"main\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"product-editor\\\",\\\"product-selector\\\",\\\"products-uploader\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/products.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    {{outlet}}\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Projects')\n      }}\n    />\n    {{outlet}}\n  {{/if}}\n  */\n  {\n    \"id\": \"qKZU41Xk\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,5],[\\\"common.Projects\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='page__container-content gap-zendesk-support-widget'>\n    <article class='m-4 flex-grow-1'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='flex-grow-1 m-0 my-2'>\n            {{t 'common.Projects'}}\n          </h1>\n        {{/if}}\n        <div class='d-flex align-items-center'>\n          {{#if (media 'isDesktop')}}\n            <span class='m-1'>\n              <SelectInput\n                @value={{this.status}}\n                @action={{fn (mut this.status)}}\n                @class='form-control select-box'\n                data-test-project-status-filter\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </span>\n  \n            <span class='m-1'>\n              <Input\n                class='form-control'\n                placeholder={{t 'common.Search'}}\n                aria-label='Search'\n                @type='text'\n                @value={{this.searchString}}\n                data-test-project-search\n              />\n            </span>\n          {{/if}}\n          {{#if this.canManageProjects}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              {{on 'click' this.openNewProjectForm}}\n              data-test-project-add-new-project\n            >\n              <FaIcon @icon='plus' />&nbsp;{{t 'common.New'}}\n            </button>\n          {{/if}}\n        </div>\n      </header>\n  \n      {{#if this.model.projects.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.filteredProjects.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                {{#if (includes-feature-flags 'canUseProjectCopy')}}\n                  <div class='offset-3 col-1 fw-bold'>{{t\n                      'common.Reference'\n                    }}</div>\n                  <div class='col-3 fw-bold'>{{t 'common.Address'}}</div>\n                  <div class='col-2 fw-bold'>{{t 'common.Project start'}}</div>\n                  <div class='col-2 fw-bold text-center'>{{t\n                      'common.Status'\n                    }}</div>\n                  <div class='col-1 fw-bold text-center'>{{t\n                      'common.Actions'\n                    }}</div>\n                {{else}}\n                  <div class='offset-3 col-2 fw-bold'>{{t\n                      'common.Reference'\n                    }}</div>\n                  <div class='col-3 fw-bold'>{{t 'common.Address'}}</div>\n                  <div class='col-2 fw-bold'>{{t 'common.Project start'}}</div>\n                  <div class='col-2 fw-bold text-center'>{{t\n                      'common.Status'\n                    }}</div>\n                {{/if}}\n              </div>\n            </div>\n          {{/if}}\n          <DragSortList\n            @list={{this.filteredProjects}}\n            @onUpdate={{perform this.onProjectListUpdate}}\n            {{! you can only reorder projects when you can modify the entire list }}\n            @disableDragging={{not this.canManageProjects}}\n            {{! the component also needs to disable dragging because of a issue with a draggable link to }}\n            @itemComponent={{component\n              'project-card'\n              disableDragging=(not this.canManageProjects)\n            }}\n          />\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t 'common.No projects'}}</h3>\n          </div>\n        {{/if}}\n        {{#if (includes-feature-flags 'entityHasSubcontractorPackage')}}\n          <div class='mt-5 d-flex justify-content-center align-items-center'>\n            <p style='margin: 0; font-size: 14px;'>\n              {{t 'shared.branding.Proudly powered by'}}</p>\n            <img\n              style='margin-left: 10px; width: 180px;'\n              src={{this.attentionSafetyLogoSrc}}\n            />\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  </main>\n  \n  {{#if this.newProjectData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.newProjectData) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n  \n      <form data-test-new-project-form>\n        {{#let\n          (changeset this.newProjectData this.projectValidationMap)\n          as |projectModel|\n        }}\n          <div class='modal-body'>\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Name'}}\n              @key='name'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              @required={{true}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-name\n            />\n            <PtlInput\n              @type='select'\n              @label={{t 'shared.task.Contract type'}}\n              @key='contractType'\n              @selectNoBlankOption={{true}}\n              @options={{this.contractType}}\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              @required={{true}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-name\n            />\n  \n            <PtlInput\n              @type='text'\n              @label={{t 'common.Reference'}}\n              @key='projectReference'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-reference\n            />\n            <NewComboBox\n              @isLoading={{this.onAddressChange.isRunning}}\n              @list={{this.addressSuggestions}}\n              @noDataMessage={{t\n                'entity.builda-price.projects.project.settings.No address found'\n              }}\n              @onSelect={{fn this.setAddress projectModel}}\n              @onSearch={{this.onAddressChange}}\n              @debounce={{400}}\n              @label={{t 'common.Address'}}\n              @key='address'\n              @model={{projectModel}}\n              @hasNextPage={{false}}\n              @disabled={{this.createProject.isRunning}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              data-test-new-project-address\n            />\n            <PtlInput\n              @type='date'\n              @label={{t 'common.Start date'}}\n              @key='startDate'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              @required={{true}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-start-date\n            />\n            <PtlInput\n              @type='textarea'\n              @label={{t 'common.Description'}}\n              @key='description'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-description\n            />\n          </div>\n  \n          <div class='modal-footer'>\n            <PtlInput\n              @containerClass='form-check'\n              @labelClass='m-0'\n              @type='checkbox'\n              @label={{t 'common.Open project after creation'}}\n              @key='openAndSave'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-open-and-save\n            />\n  \n            <button\n              type='button'\n              class='btn btn-secondary text-white'\n              {{on 'click' this.closeNewProjectForm}}\n              data-test-new-project-close-button\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.createProject.isRunning}}\n              {{on 'click' (perform this.createProject projectModel)}}\n              data-test-new-project-save-button\n            >\n              {{#if this.createProject.isRunning}}\n                {{t 'common.Creating project'}}&hellip;\n              {{else}}\n                {{t 'common.Create project'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </form>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"qG+2Ig7m\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Projects\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,\\\"data-test-project-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[1]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search\\\"],[24,\\\"data-test-project-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canManageProjects\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-project-add-new-project\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"openNewProjectForm\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"projects\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"filteredProjects\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"canUseProjectCopy\\\"],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"offset-3 col-1 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-3 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Address\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Project start\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Actions\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"offset-3 col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-3 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Address\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Project start\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@list\\\",\\\"@onUpdate\\\",\\\"@disableDragging\\\",\\\"@itemComponent\\\"],[[30,0,[\\\"filteredProjects\\\"]],[28,[37,19],[[30,0,[\\\"onProjectListUpdate\\\"]]],null],[28,[37,20],[[30,0,[\\\"canManageProjects\\\"]]],null],[50,\\\"project-card\\\",0,null,[[\\\"disableDragging\\\"],[[28,[37,20],[[30,0,[\\\"canManageProjects\\\"]]],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"common.No projects\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,17],[\\\"entityHasSubcontractorPackage\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt-5 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,5,\\\"margin: 0; font-size: 14px;\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"shared.branding.Proudly powered by\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,5,\\\"margin-left: 10px; width: 180px;\\\"],[15,\\\"src\\\",[30,0,[\\\"attentionSafetyLogoSrc\\\"]]],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newProjectData\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"newProjectData\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-project-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,29],[[30,0,[\\\"newProjectData\\\"]],[30,0,[\\\"projectValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"select\\\",[28,[37,6],[\\\"shared.task.Contract type\\\"],null],\\\"contractType\\\",true,[30,0,[\\\"contractType\\\"]],[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-reference\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Reference\\\"],null],\\\"projectReference\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,32],[[24,\\\"data-test-new-project-address\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"onAddressChange\\\",\\\"isRunning\\\"]],[30,0,[\\\"addressSuggestions\\\"]],[28,[37,6],[\\\"entity.builda-price.projects.project.settings.No address found\\\"],null],[28,[37,10],[[30,0,[\\\"setAddress\\\"]],[30,2]],null],[30,0,[\\\"onAddressChange\\\"]],400,[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,2],false,[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-start-date\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Start date\\\"],null],\\\"startDate\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-description\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,6],[\\\"common.Description\\\"],null],\\\"description\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-open-and-save\\\",\\\"\\\"]],[[\\\"@containerClass\\\",\\\"@labelClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"form-check\\\",\\\"m-0\\\",\\\"checkbox\\\",[28,[37,6],[\\\"common.Open project after creation\\\"],null],\\\"openAndSave\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,\\\"data-test-new-project-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"closeNewProjectForm\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"createProject\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Creating project\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Create project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"projectModel\\\"],false,[\\\"main\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h1\\\",\\\"t\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"input\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"includes-feature-flags\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"not\\\",\\\"component\\\",\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"img\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"new-combo-box\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Project\n      @selectedProject={{this.model.project.last.value}}\n      @openProjects={{this.model.openProjects.last.value}}\n      @selectedProjectIsLoading={{this.model.project.isRunning}}\n      @openProjectsIsLoading={{this.model.openProjects.isRunning}}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component\n        'module-navigation/project'\n        model=this.model.project.last.value.id\n        selectedProject=this.model.project.last.value\n        openProjects=this.model.openProjects.last.value\n        selectedProjectIsLoading=this.model.project.isRunning\n        openProjectsIsLoading=this.model.openProjects.isRunning\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Project')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"jQBPmjfM\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/project\\\",0,null,[[\\\"model\\\",\\\"selectedProject\\\",\\\"openProjects\\\",\\\"selectedProjectIsLoading\\\",\\\"openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Project\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/project\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/documents\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n      {{/if}}\n    </header>\n    <div class='mt-3'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='card width--large'>\n          <DragAndDropContainer\n            @parent={{this.project}}\n            @onUploadComplete={{this.onUploadComplete}}\n            @isDragAndDropVisible={{this.isEditable}}\n          >\n            <AttachmentTable\n              @attachments={{this.attachments}}\n              @parent={{this.project}}\n              @project={{this.project}}\n              @users={{this.model.users.last.value}}\n            />\n          </DragAndDropContainer>\n        </div>\n      {{/if}}\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"bryRq7OU\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"card width--large\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"project\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"isEditable\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@attachments\\\",\\\"@parent\\\",\\\"@project\\\",\\\"@users\\\"],[[30,0,[\\\"attachments\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"loading-icon\\\",\\\"drag-and-drop-container\\\",\\\"attachment-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/documents.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimate\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"iyZe6Am+\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimate.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimates/estimate-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"PYdlXigs\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimates/estimate-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimates/estimate\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Estimates')\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.projects.project.estimates'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <LinkTo @route='entity.builda-price.projects.project.estimates' class='fs-5'>\n      {{t 'common.Estimates'}}\n    </LinkTo>\n    <FaIcon @icon='chevron-right' class='mx-2 fs-6 text-secondary' />\n    <span class='fw-bold fs-5'>\n      {{this.model.estimate.name}}\n    </span>\n    <header class='border-bottom align-items-center mb-3'>\n      <h2 class='my-2'>{{this.model.estimate.name}}</h2>\n    </header>\n    <div class='embed-builda-price-client-addon'>\n      {{outlet}}\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"t4xOPaL4\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Estimates\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.projects.project.estimates\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],[[24,0,\\\"fs-5\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.estimates\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"common.Estimates\\\"],null]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[39,7],[[24,0,\\\"mx-2 fs-6 text-secondary\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"fw-bold fs-5\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"model\\\",\\\"estimate\\\",\\\"name\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom align-items-center mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"estimate\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"embed-builda-price-client-addon\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"header\\\",\\\"h2\\\",\\\"div\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimates/estimate.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimates/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-nested-interactive }}\n  {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Estimates')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Estimates'}}</h2>\n      {{/if}}\n  \n      <div class='d-flex align-items-center flex-wrap'>\n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageEstimates'\n          )\n        }}\n          {{#if this.model.unlinkedEstimates.last.value.length}}\n            <span class='m-1'>\n              <button\n                type='button'\n                class='btn btn-primary text-white text-nowrap'\n                {{on 'click' (fn (mut this.showUnlinkedEstimatesDialog) true)}}\n                data-test-estimate-import-estimates-from-pricing\n              >\n                <FaIcon @icon='link' />&nbsp;&nbsp;{{t\n                  'entity.builda-price.projects.project.estimates.Import unlinked estimates from Pricing'\n                }}\n              </button>\n            </span>\n          {{/if}}\n        {{/if}}\n  \n        {{#if (media 'isDesktop')}}\n          <span class='m-1'>\n            <SelectInput\n              @value={{this.filter}}\n              @action={{fn (mut this.filter)}}\n              @class='form-control select-box'\n              data-test-estimate-status-filter\n              as |si|\n            >\n              <si.option @value='all'>{{t\n                  'entity.builda-price.projects.project.estimates.All estimates'\n                }}</si.option>\n              <si.option @value='DRAFT'>{{t\n                  'entity.builda-price.projects.project.estimates.Draft estimates'\n                }}</si.option>\n              <si.option @value='IMPORTED'>{{t\n                  'entity.builda-price.projects.project.estimates.Imported estimates'\n                }}</si.option>\n              <si.option @value='APPROVED'>{{t\n                  'entity.builda-price.projects.project.estimates.Approved estimates'\n                }}</si.option>\n              <si.option @value='REJECTED'>{{t\n                  'entity.builda-price.projects.project.estimates.Rejected estimates'\n                }}</si.option>\n            </SelectInput>\n          </span>\n  \n          <span class='m-1'>\n            <Input\n              class='form-control'\n              placeholder={{t\n                'entity.builda-price.projects.project.estimates.Search for estimates'\n              }}\n              @type='text'\n              @value={{this.searchString}}\n              data-test-estimate-search\n            />\n          </span>\n        {{/if}}\n  \n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageEstimates'\n          )\n        }}\n          <span class='m-1'>\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap'\n              {{on 'click' (perform this.openNewEstimateForm)}}\n              data-test-estimate-create\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n                'entity.builda-price.projects.project.estimates.Create new estimate'\n              }}\n            </button>\n          </span>\n        {{/if}}\n      </div>\n    </header>\n    {{#if this.model.estimates.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if (media 'isDesktop')}}\n        <div class='px-3'>\n          <div class='row'>\n            {{#if\n              (includes-feature-flags\n                this.model.project.last.value 'canManageEstimates'\n              )\n            }}\n              <div class='col-3 offset-3 fw-bold'>{{t 'common.Merchant'}}</div>\n              <div class='col-2 fw-bold'>{{t 'shared.report.Date created'}}</div>\n              <div class='col-2 fw-bold text-center'>{{t 'common.Status'}}</div>\n              <div class='col-2 fw-bold text-center'>{{t 'common.Actions'}}</div>\n            {{else}}\n              <div class='col-3 offset-3 fw-bold'>{{t 'common.Merchant'}}</div>\n              <div class='col-3 fw-bold'>{{t 'shared.report.Date created'}}</div>\n              <div class='col-3 fw-bold text-center'>{{t 'common.Status'}}</div>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n  \n      {{#each this.filteredEstimates as |estimate|}}\n        <div\n          role='button'\n          class='estimates__card card shadow-sm text-dark p-3 my-3'\n          {{on 'click' (fn this.onEstimateRowClick estimate.id)}}\n          data-test-estimate={{estimate.id}}\n        >\n          {{#if\n            (includes-feature-flags\n              this.model.project.last.value 'canManageEstimates'\n            )\n          }}\n            <div class='row align-items-center'>\n              <div\n                class='col fs-2 estimates__card-estimate-name'\n                data-test-estimate-name={{estimate.id}}\n              >\n                {{estimate.name}}\n              </div>\n              {{#if (media 'isDesktop')}}\n                <div class='col-3 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.pricingMerchantName}}\n                    {{estimate.pricingMerchantName}}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n                <div class='col-2 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.dateCreated}}\n                    {{moment-format\n                      estimate.dateCreated\n                      (t 'date.shortWithWeekday')\n                    }}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n              {{/if}}\n              <div class='col-lg-2 col-3 d-flex justify-content-center'>\n                <span\n                  class='badge rounded-pill fs-6 px-3 py-2\n                    {{if (eq estimate.status \"APPROVED\") \"bg-success\"}}\n                    {{if (eq estimate.status \"REJECTED\") \"bg-danger\"}}\n                    {{if (eq estimate.status \"DRAFT\") \"bg-warning text-dark\"}}\n                    {{if (eq estimate.status \"IMPORTED\") \"bg-info\"}}\n                    '\n                  data-test-estimate-status={{estimate.id}}\n                >\n                  {{convert-to-title-case estimate.status}}\n                </span>\n              </div>\n              <div class='col-2 d-flex align-items-center justify-content-center'>\n                <PopOver\n                  class='p-2'\n                  @direction='bottom-left'\n                  {{on 'click' this.noop}}\n                  as |po|\n                >\n                  <FaIcon @icon='ellipsis-h' role='button' class='fs-3' />\n                  <po.Content>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (stop-propagation (fn this.openEditEstimateForm estimate))\n                      }}\n                      data-test-estimate-edit\n                    >\n                      <FaIcon @icon='pen' />&nbsp;&nbsp;{{t 'common.Edit'}}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      data-test-estimate-duplicate\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (fn (mut this.duplicateEstimateData) estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='clone' />&nbsp;&nbsp;{{t 'common.Duplicate'}}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      data-test-estimate-add-templates\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (perform this.getTemplateOptions estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='folder' />&nbsp;&nbsp;{{t\n                        'entity.builda-price.projects.project.estimates.Import template'\n                      }}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (perform this.getPreloadedQuotes estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='folder-open' />&nbsp;&nbsp;{{t\n                        'entity.builda-price.projects.project.estimates.Import materials'\n                      }}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (fn (mut this.estimateForGenerateTasks) estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='file-export' />&nbsp;&nbsp;{{t\n                        'entity.builda-price.projects.project.estimates.Generate tasks'\n                      }}\n                    </button>\n                  </po.Content>\n                </PopOver>\n              </div>\n            </div>\n          {{else}}\n            <div class='row align-items-center'>\n              <div\n                class='col fs-2 estimates__card-estimate-name'\n                data-test-estimate-name={{estimate.id}}\n              >\n                {{estimate.name}}\n              </div>\n              {{#if (media 'isDesktop')}}\n                <div class='col-3 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.pricingMerchantName}}\n                    {{estimate.pricingMerchantName}}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n                <div class='col-3 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.dateCreated}}\n                    {{moment-format\n                      estimate.dateCreated\n                      (t 'date.shortWithWeekday')\n                    }}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n              {{/if}}\n              <div class='col-3 d-flex justify-content-center'>\n                <span\n                  class='badge rounded-pill fs-6 px-3 py-2\n                    {{if (eq estimate.status \"APPROVED\") \"bg-success\"}}\n                    {{if (eq estimate.status \"REJECTED\") \"bg-danger\"}}\n                    {{if (eq estimate.status \"DRAFT\") \"bg-warning text-dark\"}}\n                    {{if (eq estimate.status \"IMPORTED\") \"bg-info\"}}\n                    '\n                  data-test-estimate-status={{estimate.id}}\n                >\n                  {{convert-to-title-case estimate.status}}\n                </span>\n              </div>\n            </div>\n          {{/if}}\n        </div>\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>{{t\n              'entity.builda-price.projects.project.estimates.No estimates'\n            }}</h3>\n        </div>\n      {{/each}}\n  \n    {{/if}}\n  </article>\n  {{#if this.editingEstimateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.editingEstimateData) null}}\n      @containerClass='modal-content estimates__modal-container'\n    >\n  \n      <form data-test-edit-estimate-form>\n        {{#let\n          (changeset this.editingEstimateData this.editEstimateValidationMap)\n          as |estimateModel|\n        }}\n          <div class='modal-body'>\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Name'}}\n              @key='name'\n              @model={{estimateModel}}\n              @forceValidationVisible={{gt this.editEstimate.performCount 0}}\n              @required={{true}}\n              disabled={{this.editEstimate.isRunning}}\n              data-test-edit-estimate-name\n            />\n            <PtlInput\n              @type='select'\n              @label={{t 'common.Status'}}\n              @key='status'\n              @options={{this.status}}\n              @model={{estimateModel}}\n              @forceValidationVisible={{gt this.editEstimate.performCount 0}}\n              @required={{true}}\n              disabled={{this.editEstimate.isRunning}}\n              data-test-edit-estimate-status\n            />\n          </div>\n  \n          <div class='modal-footer'>\n            <div class='me-auto'>\n              {{#unless this.editEstimate.isRunning}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  {{on\n                    'click'\n                    (fn this.openDeleteModal this.editingEstimateData.estimate)\n                  }}\n                  data-test-edit-estimate-delete-button\n                >\n                  {{t\n                    'entity.builda-price.projects.project.estimates.Delete estimate'\n                  }}\n                </button>\n              {{/unless}}\n            </div>\n            <div>\n              {{#if this.editEstimate.isRunning}}\n                <button\n                  type='button'\n                  class='btn btn-primary ms-2'\n                  disabled={{true}}\n                >\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t\n                    'entity.builda-price.projects.project.estimates.Editing estimate'\n                  }}…\n                </button>\n              {{else}}\n                <button\n                  type='button'\n                  class='btn btn-secondary text-white ms-2'\n                  {{on 'click' (fn (mut this.editingEstimateData) null)}}\n                  data-test-edit-estimate-close-button\n                >{{t 'common.Cancel'}}</button>\n                <button\n                  type='button'\n                  class='btn btn-primary ms-2'\n                  disabled={{this.editEstimate.isRunning}}\n                  {{on 'click' (perform this.editEstimate estimateModel)}}\n                  data-test-edit-estimate-save-button\n                >{{t 'common.Save'}}</button>\n              {{/if}}\n            </div>\n          </div>\n  \n        {{/let}}\n      </form>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.newEstimateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.newEstimateData) null}}\n      @containerClass='modal-content estimates__modal-container'\n    >\n      {{#if this.openNewEstimateForm.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n  \n        <form data-test-new-estimate-form>\n          {{#let\n            (changeset this.newEstimateData this.createNewEstimateValidationMap)\n            as |estimateModel|\n          }}\n            <div class='modal-body'>\n  \n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='name'\n                @model={{estimateModel}}\n                @forceValidationVisible={{gt this.createEstimate.performCount 0}}\n                @required={{true}}\n                disabled={{this.createEstimate.isRunning}}\n                data-test-new-estimate-name\n              />\n              <PtlInput\n                @type='select'\n                @label={{t 'common.Merchant'}}\n                @key='merchant'\n                @options={{this.merchantList}}\n                @model={{estimateModel}}\n                @forceValidationVisible={{gt this.createEstimate.performCount 0}}\n                @required={{true}}\n                disabled={{this.createEstimate.isRunning}}\n                data-test-new-estimate-merchant\n              />\n            </div>\n  \n            <div class='modal-footer'>\n              <div class='d-flex align-items-center'>\n                {{#if this.createEstimate.isRunning}}\n                  <button\n                    type='button'\n                    class='btn btn-primary ms-2'\n                    disabled={{true}}\n                  >\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t\n                      'entity.builda-price.projects.project.estimates.Creating estimate'\n                    }}…\n                  </button>\n                {{else}}\n                  <PtlInput\n                    @containerClass='form-check'\n                    @labelClass='m-0'\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.estimates.Open estimate after creation'\n                    }}\n                    @key='openAndSave'\n                    @model={{estimateModel}}\n                    @forceValidationVisible={{gt\n                      this.createEstimate.performCount\n                      0\n                    }}\n                    disabled={{this.createEstimate.isRunning}}\n                    data-test-new-estimate-open-and-save\n                  />\n  \n                  <button\n                    type='button'\n                    class='btn btn-secondary text-white ms-2'\n                    {{on 'click' (fn (mut this.newEstimateData) null)}}\n                    data-test-new-estimate-close-button\n                  >{{t 'common.Cancel'}}</button>\n                  <button\n                    type='button'\n                    class='btn btn-primary ms-2'\n                    disabled={{this.createEstimate.isRunning}}\n                    {{on 'click' (perform this.createEstimate estimateModel)}}\n                    data-test-new-estimate-save-button\n                  >{{t\n                      'entity.builda-price.projects.project.estimates.Create estimate'\n                    }}</button>\n                {{/if}}\n              </div>\n            </div>\n          {{/let}}\n        </form>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  <ConfirmDelete\n    @visible={{this.deletingEstimateData}}\n    @message={{this.deleteMessages}}\n    @title={{t 'entity.builda-price.projects.project.estimates.Delete estimate'}}\n    @confirmText={{t\n      'entity.builda-price.projects.project.estimates.delete estimate'\n    }}\n    @deleteButtonText={{t\n      'entity.builda-price.projects.project.estimates.Delete estimate'\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteEstimate}}\n    @onCancel={{fn this.closeDeleteModal this.deletingEstimateData}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  \n  {{#if this.duplicateEstimateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.duplicateEstimateData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.estimates.areYouSureYouWantToDuplicateThisEstimate'\n          }}\n        </p>\n      </div>\n      <div class='modal-footer'>\n        {{#if this.duplicateEstimate.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'entity.builda-price.projects.project.estimates.Duplicating estimate'\n            }}…\n          </button>\n        {{else}}\n          <div class='form-check'>\n            <Input\n              data-test-attach-duplicate-estimate-to-current-project\n              @type='checkbox'\n              id='duplicateAndAttach'\n              class='form-check-input'\n              disabled={{this.duplicateEstimate.isRunning}}\n              {{on\n                'click'\n                (fn (mut this.attachToProject) (not this.attachToProject))\n              }}\n            />\n            <label for='duplicateAndAttach'>{{t\n                'entity.builda-price.projects.project.estimates.Attach to current project'\n              }}\n            </label>\n          </div>\n  \n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.duplicateEstimate.isRunning}}\n            {{on 'click' (fn (mut this.duplicateEstimateData) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary text-white'\n            type='button'\n            disabled={{this.duplicateEstimate.isRunning}}\n            {{on 'click' (perform this.duplicateEstimate)}}\n            data-test-duplicate-estimate-btn\n          >\n            {{t 'common.Duplicate'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importTemplateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content estimates__modal-container'\n      @onClose={{fn (mut this.importTemplateData) null}}\n      @translucentOverlay={{true}}\n    >\n      {{#if this.getTemplateOptions.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <form>\n          <div class='modal-body'>\n            <p>{{t\n                'entity.builda-price.projects.project.estimates.pleaseSelectTheTemplatesYouWouldLikeToImport'\n              }}</p>\n            <div class='ember-power-select--auto-height'>\n              <PowerSelectMultiple\n                @options={{this.templates}}\n                @selected={{this.selectedTemplates}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @allowClear={{true}}\n                @required={{true}}\n                @placeholder={{t\n                  'entity.builda-price.projects.project.estimates.Select templates'\n                }}\n                @onChange={{fn (mut this.selectedTemplates)}}\n                as |template|\n              >\n                {{template.name}}\n              </PowerSelectMultiple>\n            </div>\n          </div>\n          <div class='modal-footer'>\n            {{#if this.importTemplates.isRunning}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{true}}\n              >\n                <span class='spinner-border spinner-border-sm'>\n                </span>&nbsp;&nbsp;{{t\n                  'entity.builda-price.projects.project.estimates.Importing templates'\n                }}&hellip;\n              </button>{{else}}\n              <button\n                type='button'\n                class='btn btn-secondary text-white ms-2'\n                {{on 'click' (fn (mut this.importTemplateData) null)}}\n              >{{t 'common.Cancel'}}</button>\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                {{on 'click' (perform this.importTemplates)}}\n              >\n                {{t 'common.Import'}}\n              </button>\n            {{/if}}\n          </div>\n        </form>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importMaterialsData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{this.destroyImportMaterialsModal}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n    >\n      {{#if this.getPreloadedQuotes.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='modal-body'>\n          {{#if this.newFeatureFlags.entityIsCalStudent}}\n            <p class='alert alert-warning'>\n              {{t\n                'entity.builda-price.projects.project.estimates.importMaterialsWarning'\n              }}\n            </p>\n          {{/if}}\n  \n          <p id='labelForImportMaterials'>\n            {{t\n              'entity.builda-price.projects.project.estimates.selectYourMaterialsQuoteFromTheListOrUploadYourOwn'\n            }}\n          </p>\n          <PowerSelect\n            @options={{this.quotes}}\n            @selected={{this.selectedQuote}}\n            @searchEnabled={{true}}\n            @searchField='quoteNumber'\n            @allowClear={{true}}\n            @onChange={{fn (mut this.selectedQuote)}}\n            @closeOnSelect={{true}}\n            @afterOptionsComponent={{component\n              'pricing-quote-uploader'\n              onFileUpload=this.onFileUpload\n              fileFormats=this.supportedFileFormats\n            }}\n            @placeholder={{t\n              'entity.builda-price.projects.project.estimates.Select an existing quote file'\n            }}\n            as |quote|\n          >\n  \n            {{quote.quoteNumber}}\n            {{#if quote.quoteVersion}}\n              - v{{quote.quoteVersion}}\n            {{/if}}\n            {{#if quote.dateCreated}}\n              {{moment-format quote.dateCreated (t 'date.longWithoutWeekday')}}\n            {{/if}}\n  \n          </PowerSelect>\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            {{on 'click' this.destroyImportMaterialsModal}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{or\n              (not this.selectedQuote)\n              this.importMaterials.isRunning\n            }}\n            {{on 'click' (perform this.importMaterials)}}\n          >\n            {{#if this.importMaterials.isRunning}}\n              &nbsp;&nbsp;{{t\n                'entity.builda-price.projects.project.estimates.Importing materials'\n              }}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.projects.project.estimates.Import materials'\n              }}\n            {{/if}}\n          </button>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.estimateForGenerateTasks}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{this.closeGenerateTasks}}\n      @containerClass='modal-content estimates__modal-container'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.estimates.thisProcessWillGenerateTasksFromEachOfTheItemsInYourEstimate'\n          }}\n        </p>\n        <p class='fw-bold mb-2'>{{t\n            'entity.builda-price.projects.project.estimates.Task generation options'\n          }}:</p>\n        <label>{{t\n            'entity.builda-price.projects.project.estimates.Labour and materials'\n          }}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsBySubheadingThenProductUsageExplanation'\n            }}\n          />\n        </label>\n  \n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupLabourAndMaterialUsage'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{not this.groupLabourAndMaterialBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupLabourAndMaterialBySubheading) false)\n                }}\n              />\n  \n              <label for='groupLabourAndMaterialUsage'>\n                {{t 'common.Subheading'}}\n                <FaIcon @icon='chevron-right' class='mx-1 fs-6 text-secondary' />\n                {{t 'common.usage'}}\n              </label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupLabourAndMaterialBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupLabourAndMaterialBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupLabourAndMaterialBySubheading) true)\n                }}\n              />\n              <label for='groupLabourAndMaterialBySubheading'>{{t\n                  'common.Subheading'\n                }}</label>\n            </div>\n          </div>\n        </div>\n  \n        <label class='pt-1'>{{t 'common.Miscellaneous'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation'\n            }}\n          /></label>\n  \n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupMiscByItems'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupMiscByItems}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupMiscByItems) true)\n                    (action (mut this.groupMiscBySubheading) false)\n                    (action (mut this.groupMiscByHeading) false)\n                  )\n                }}\n              />\n              <label for='groupMiscByItems'>{{t 'common.Items'}}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupMiscBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupMiscBySubheading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupMiscByItems) false)\n                    (action (mut this.groupMiscBySubheading) true)\n                    (action (mut this.groupMiscByHeading) false)\n                  )\n                }}\n              />\n              <label for='groupMiscBySubheading'>{{t\n                  'common.Subheadings'\n                }}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupMiscByHeading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupMiscByHeading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupMiscByItems) false)\n                    (action (mut this.groupMiscBySubheading) false)\n                    (action (mut this.groupMiscByHeading) true)\n                  )\n                }}\n              />\n              <label for='groupMiscByHeading'>{{t 'common.Headings'}}</label>\n            </div>\n          </div>\n        </div>\n  \n        <label class='pt-1'>{{t 'common.Subcontractors'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsBySubheadingOptionExplanation'\n            }}\n          /></label>\n  \n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupSubcontractorsUsage'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{not this.groupSubcontractorsBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupSubcontractorsBySubheading) false)\n                }}\n              />\n              <label for='groupSubcontractorsUsage'>{{t 'common.Subheading'}}\n                <FaIcon @icon='chevron-right' class='mx-1 fs-6 text-secondary' />\n                {{t 'common.option'}}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupSubcontractorsBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupSubcontractorsBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupSubcontractorsBySubheading) true)\n                }}\n              />\n              <label for='groupSubcontractorsBySubheading'>{{t\n                  'common.Subheading'\n                }}</label>\n            </div>\n          </div>\n        </div>\n  \n        <label class='pt-1'>{{t 'common.Overheads'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation'\n            }}\n          /></label>\n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupOverheadByItems'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupOverheadByItems}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupOverheadByItems) true)\n                    (action (mut this.groupOverheadByHeading) false)\n                    (action (mut this.groupOverheadBySubheading) false)\n                  )\n                }}\n              />\n              <label for='groupOverheadByItems'>{{t 'common.Items'}}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupOverheadBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupOverheadBySubheading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupOverheadByItems) false)\n                    (action (mut this.groupOverheadByHeading) false)\n                    (action (mut this.groupOverheadBySubheading) true)\n                  )\n                }}\n              />\n              <label for='groupOverheadBySubheading'>{{t\n                  'common.Subheadings'\n                }}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupOverheadByHeading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupOverheadByHeading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupOverheadByItems) false)\n                    (action (mut this.groupOverheadByHeading) true)\n                    (action (mut this.groupOverheadBySubheading) false)\n                  )\n                }}\n              />\n              <label for='groupOverheadByHeading'>{{t 'common.Headings'}}</label>\n            </div>\n          </div>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        {{#if this.generateTasks.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'entity.builda-price.projects.project.estimates.Generating tasks'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            {{on 'click' this.closeGenerateTasks}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.generateTasks)}}\n          >{{t\n              'entity.builda-price.projects.project.estimates.Generate tasks'\n            }}</button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showUnlinkedEstimatesDialog}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{this.destroyImportUnlinkedEstimatesData}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-50 h-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.estimates.theEstimatesBelowWereCreatedInPricingAndAreNotYetLinkedWithAnyProject'\n          }}<br />\n          {{t\n            'entity.builda-price.projects.project.estimates.selectTheEstimatesForThisProjectFromTheListBelowImportingEstimatesWillLinkThemWithThisProject'\n          }}\n        </p>\n        <div\n          class='ember-power-select--auto-height'\n          data-test-import-estimate-from-pricing\n        >\n          <PowerSelectMultiple\n            @options={{this.model.unlinkedEstimates.last.value}}\n            @selected={{this.selectedUnlinkedEstimates}}\n            @searchEnabled={{true}}\n            @searchField='optionDescription'\n            @allowClear={{true}}\n            @required={{true}}\n            @placeholder={{t\n              'entity.builda-price.projects.project.estimates.Select the estimates for this project'\n            }}\n            @onChange={{fn (mut this.selectedUnlinkedEstimates)}}\n            as |template|\n          >\n            {{template.optionDescription}}\n          </PowerSelectMultiple>\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' this.destroyImportUnlinkedEstimatesData}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary ms-2'\n          data-test-import-estimate-save-button\n          {{on 'click' (perform this.importSelectedUnlinkedEstimates)}}\n        >\n          {{#if this.importSelectedUnlinkedEstimates.isRunning}}\n            {{t\n              'entity.builda-price.projects.project.estimates.Importing estimates'\n            }}&hellip;\n          {{else}}\n            {{t\n              'entity.builda-price.projects.project.estimates.Import selected estimates'\n            }}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"eKgcu+p5\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Estimates\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Estimates\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[41,[30,0,[\\\"model\\\",\\\"unlinkedEstimates\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap\\\"],[24,\\\"data-test-estimate-import-estimates-from-pricing\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"showUnlinkedEstimatesDialog\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"link\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import unlinked estimates from Pricing\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,17],[[24,\\\"data-test-estimate-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"filter\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"filter\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.All estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Draft estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"IMPORTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Imported estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Approved estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"REJECTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Rejected estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Search for estimates\\\"],null]],[24,\\\"data-test-estimate-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap\\\"],[24,\\\"data-test-estimate-create\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"openNewEstimateForm\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Create new estimate\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"estimates\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-3 offset-3 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"common.Merchant\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"shared.report.Date created\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Actions\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-3 offset-3 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"common.Merchant\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-3 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"shared.report.Date created\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-3 fw-bold text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"filteredEstimates\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"estimates__card card shadow-sm text-dark p-3 my-3\\\"],[16,\\\"data-test-estimate\\\",[30,2,[\\\"id\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"onEstimateRowClick\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col fs-2 estimates__card-estimate-name\\\"],[15,\\\"data-test-estimate-name\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"col-3 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"pricingMerchantName\\\"]],[[[1,\\\"                  \\\"],[1,[30,2,[\\\"pricingMerchantName\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-2 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateCreated\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,23],[[30,2,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"col-lg-2 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"REJECTED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"IMPORTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                  \\\"]]],[15,\\\"data-test-estimate-status\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,25],[[30,2,[\\\"status\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,0,\\\"p-2\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,16],[[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fs-3\\\"]],[[\\\"@icon\\\"],[\\\"ellipsis-h\\\"]],null],[1,\\\"\\\\n                \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-estimate-edit\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,14],[[30,0,[\\\"openEditEstimateForm\\\"]],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"pen\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-estimate-duplicate\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,14],[[28,[37,15],[[30,0,[\\\"duplicateEstimateData\\\"]]],null],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"clone\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-estimate-add-templates\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,19],[[30,0,[\\\"getTemplateOptions\\\"]],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"folder\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import template\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,19],[[30,0,[\\\"getPreloadedQuotes\\\"]],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"folder-open\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import materials\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,14],[[28,[37,15],[[30,0,[\\\"estimateForGenerateTasks\\\"]]],null],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"file-export\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Generate tasks\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col fs-2 estimates__card-estimate-name\\\"],[15,\\\"data-test-estimate-name\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"col-3 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"pricingMerchantName\\\"]],[[[1,\\\"                  \\\"],[1,[30,2,[\\\"pricingMerchantName\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-3 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateCreated\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,23],[[30,2,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"REJECTED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"IMPORTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                  \\\"]]],[15,\\\"data-test-estimate-status\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,25],[[30,2,[\\\"status\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.No estimates\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"editingEstimateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[28,[37,14],[[28,[37,15],[[30,0,[\\\"editingEstimateData\\\"]]],null],null],null],\\\"modal-content estimates__modal-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,\\\"data-test-edit-estimate-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,32],[[30,0,[\\\"editingEstimateData\\\"]],[30,0,[\\\"editEstimateValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-edit-estimate-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,4],[28,[37,34],[[30,0,[\\\"editEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-edit-estimate-status\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Status\\\"],null],\\\"status\\\",[30,0,[\\\"status\\\"]],[30,4],[28,[37,34],[[30,0,[\\\"editEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[24,\\\"data-test-edit-estimate-delete-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"openDeleteModal\\\"]],[30,0,[\\\"editingEstimateData\\\",\\\"estimate\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Delete estimate\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Editing estimate\\\"],null]],[1,\\\"…\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-edit-estimate-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"editingEstimateData\\\"]]],null],null],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-edit-estimate-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"editEstimate\\\"]],[30,4]],null]],null],[12],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[4]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newEstimateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[28,[37,14],[[28,[37,15],[[30,0,[\\\"newEstimateData\\\"]]],null],null],null],\\\"modal-content estimates__modal-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openNewEstimateForm\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-estimate-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,32],[[30,0,[\\\"newEstimateData\\\"]],[30,0,[\\\"createNewEstimateValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,5],[28,[37,34],[[30,0,[\\\"createEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n            \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-merchant\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Merchant\\\"],null],\\\"merchant\\\",[30,0,[\\\"merchantList\\\"]],[30,5],[28,[37,34],[[30,0,[\\\"createEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Creating estimate\\\"],null]],[1,\\\"…\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-open-and-save\\\",\\\"\\\"]],[[\\\"@containerClass\\\",\\\"@labelClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"form-check\\\",\\\"m-0\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Open estimate after creation\\\"],null],\\\"openAndSave\\\",[30,5],[28,[37,34],[[30,0,[\\\"createEstimate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-estimate-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"newEstimateData\\\"]]],null],null],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"createEstimate\\\"]],[30,5]],null]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Create estimate\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,35],null,[[\\\"@visible\\\",\\\"@message\\\",\\\"@title\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"deletingEstimateData\\\"]],[30,0,[\\\"deleteMessages\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Delete estimate\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.delete estimate\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Delete estimate\\\"],null],[28,[37,4],[\\\"common.Deleting\\\"],null],[28,[37,19],[[30,0,[\\\"deleteEstimate\\\"]]],null],[28,[37,14],[[30,0,[\\\"closeDeleteModal\\\"]],[30,0,[\\\"deletingEstimateData\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,4],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"duplicateEstimateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"duplicateEstimateData\\\"]]],null],null],null],true,\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.areYouSureYouWantToDuplicateThisEstimate\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Duplicating estimate\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,\\\"data-test-attach-duplicate-estimate-to-current-project\\\",\\\"\\\"],[24,1,\\\"duplicateAndAttach\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"attachToProject\\\"]]],null],[28,[37,37],[[30,0,[\\\"attachToProject\\\"]]],null]],null]],null]],[[\\\"@type\\\"],[\\\"checkbox\\\"]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"duplicateAndAttach\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Attach to current project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"duplicateEstimateData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-duplicate-estimate-btn\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"duplicateEstimate\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importTemplateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content estimates__modal-container\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"importTemplateData\\\"]]],null],null],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"getTemplateOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.pleaseSelectTheTemplatesYouWouldLikeToImport\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ember-power-select--auto-height\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,39],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@required\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"templates\\\"]],[30,0,[\\\"selectedTemplates\\\"]],true,\\\"name\\\",true,true,[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Select templates\\\"],null],[28,[37,14],[[28,[37,15],[[30,0,[\\\"selectedTemplates\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,6,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[6]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importTemplates\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n              \\\"],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Importing templates\\\"],null]],[1,\\\"…\\\\n            \\\"],[13]],[]],[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"importTemplateData\\\"]]],null],null],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"importTemplates\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Import\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importMaterialsData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,0,[\\\"destroyImportMaterialsModal\\\"]],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"getPreloadedQuotes\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityIsCalStudent\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"alert alert-warning\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.importMaterialsWarning\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,1,\\\"labelForImportMaterials\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.selectYourMaterialsQuoteFromTheListOrUploadYourOwn\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,40],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@onChange\\\",\\\"@closeOnSelect\\\",\\\"@afterOptionsComponent\\\",\\\"@placeholder\\\"],[[30,0,[\\\"quotes\\\"]],[30,0,[\\\"selectedQuote\\\"]],true,\\\"quoteNumber\\\",true,[28,[37,14],[[28,[37,15],[[30,0,[\\\"selectedQuote\\\"]]],null]],null],true,[50,\\\"pricing-quote-uploader\\\",0,null,[[\\\"onFileUpload\\\",\\\"fileFormats\\\"],[[30,0,[\\\"onFileUpload\\\"]],[30,0,[\\\"supportedFileFormats\\\"]]]]],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Select an existing quote file\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n          \\\"],[1,[30,7,[\\\"quoteNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,7,[\\\"quoteVersion\\\"]],[[[1,\\\"            - v\\\"],[1,[30,7,[\\\"quoteVersion\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,7,[\\\"dateCreated\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,23],[[30,7,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"]],[7]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"destroyImportMaterialsModal\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,41],[[28,[37,37],[[30,0,[\\\"selectedQuote\\\"]]],null],[30,0,[\\\"importMaterials\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"importMaterials\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importMaterials\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Importing materials\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"estimateForGenerateTasks\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,0,[\\\"closeGenerateTasks\\\"]],\\\"modal-content estimates__modal-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.thisProcessWillGenerateTasksFromEachOfTheItemsInYourEstimate\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"fw-bold mb-2\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Task generation options\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Labour and materials\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsBySubheadingThenProductUsageExplanation\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupLabourAndMaterialUsage\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[28,[37,37],[[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],null],false],null]],null],[12],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupLabourAndMaterialUsage\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,16],[[24,0,\\\"mx-1 fs-6 text-secondary\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.usage\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupLabourAndMaterialBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],null],true],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupLabourAndMaterialBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"pt-1\\\"],[12],[1,[28,[35,4],[\\\"common.Miscellaneous\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation\\\"],null]]],null],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupMiscByItems\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupMiscByItems\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByItems\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscBySubheading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByHeading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupMiscByItems\\\"],[12],[1,[28,[35,4],[\\\"common.Items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupMiscBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupMiscBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscBySubheading\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByHeading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupMiscBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheadings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupMiscByHeading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupMiscByHeading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscBySubheading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByHeading\\\"]]],null],true],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupMiscByHeading\\\"],[12],[1,[28,[35,4],[\\\"common.Headings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"pt-1\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsBySubheadingOptionExplanation\\\"],null]]],null],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupSubcontractorsUsage\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[28,[37,37],[[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],null],false],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupSubcontractorsUsage\\\"],[12],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,16],[[24,0,\\\"mx-1 fs-6 text-secondary\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.option\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupSubcontractorsBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],null],true],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupSubcontractorsBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"pt-1\\\"],[12],[1,[28,[35,4],[\\\"common.Overheads\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation\\\"],null]]],null],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupOverheadByItems\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupOverheadByItems\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByItems\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByHeading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadBySubheading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupOverheadByItems\\\"],[12],[1,[28,[35,4],[\\\"common.Items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupOverheadBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupOverheadBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByHeading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadBySubheading\\\"]]],null],true],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupOverheadBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheadings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupOverheadByHeading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupOverheadByHeading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByHeading\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadBySubheading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupOverheadByHeading\\\"],[12],[1,[28,[35,4],[\\\"common.Headings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generateTasks\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Generating tasks\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeGenerateTasks\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"generateTasks\\\"]]],null]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Generate tasks\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showUnlinkedEstimatesDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,0,[\\\"destroyImportUnlinkedEstimatesData\\\"]],\\\"modal-content modal-dialog-scrollable w-auto max-width-50 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.theEstimatesBelowWereCreatedInPricingAndAreNotYetLinkedWithAnyProject\\\"],null]],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.selectTheEstimatesForThisProjectFromTheListBelowImportingEstimatesWillLinkThemWithThisProject\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ember-power-select--auto-height\\\"],[14,\\\"data-test-import-estimate-from-pricing\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,39],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@required\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"unlinkedEstimates\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedUnlinkedEstimates\\\"]],true,\\\"optionDescription\\\",true,true,[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Select the estimates for this project\\\"],null],[28,[37,14],[[28,[37,15],[[30,0,[\\\"selectedUnlinkedEstimates\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,8,[\\\"optionDescription\\\"]]],[1,\\\"\\\\n        \\\"]],[8]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"destroyImportUnlinkedEstimatesData\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,\\\"data-test-import-estimate-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"importSelectedUnlinkedEstimates\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importSelectedUnlinkedEstimates\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Importing estimates\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import selected estimates\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"estimate\\\",\\\"po\\\",\\\"estimateModel\\\",\\\"estimateModel\\\",\\\"template\\\",\\\"quote\\\",\\\"template\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"includes-feature-flags\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"select-input\\\",\\\"input\\\",\\\"perform\\\",\\\"loading-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"moment-format\\\",\\\"eq\\\",\\\"convert-to-title-case\\\",\\\"pop-over\\\",\\\"stop-propagation\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"confirm-delete\\\",\\\"p\\\",\\\"not\\\",\\\"label\\\",\\\"power-select-multiple\\\",\\\"power-select\\\",\\\"or\\\",\\\"info-popup\\\",\\\"pipe\\\",\\\"action\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimates/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Financials'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if (and this.isLoadingBudget this.isLoadingQuote)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mt-3 d-flex flex-column align-items-start'>\n        <div class='d-flex flex-row align-items-start flex-wrap'>\n          {{#if\n            (includes-feature-flags\n              this.model.project.last.value 'canUseBudgetVersions'\n            )\n          }}\n            <div\n              class='border rounded p-4 d-flex flex-column mb-4 me-4'\n              style='min-width: 350px;'\n            >\n              <div class='d-flex align-items-center mb-3'>\n                <h2 class='m-0'>\n                  {{t 'common.Budget'}}\n                </h2>\n                {{#if\n                  (and\n                    (not this.isLoadingBudget)\n                    this.model.project.last.value.currentBudgetVersion\n                  )\n                }}\n                  <span class='ms-2 badge rounded-pill bg-primary'>\n                    {{t 'common.Version'}}\n                    {{this.model.project.last.value.currentBudgetVersion.versionNumber}}\n                  </span>\n                {{/if}}\n              </div>\n              {{#if this.isLoadingBudget}}\n                <LoadingIcon @type='ripple' />\n              {{else}}\n                {{#if this.model.project.last.value.currentBudgetVersion}}\n                  {{#if\n                    (and\n                      (gt\n                        this.model.project.last.value.draftBudgetChangeSet.changes.length\n                        0\n                      )\n                      this.canManageBudgetVersions\n                    )\n                  }}\n                    <div\n                      class='alert alert-primary d-flex flex-column'\n                      role='alert'\n                    >{{t\n                        'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion'\n                        changes=(pluralize\n                          this.model.project.last.value.draftBudgetChangeSet.changes.length\n                          'change'\n                        )\n                        number=this.model.project.last.value.draftBudgetChangeSet.changes.length\n                      }}\n                      {{t\n                        'entity.builda-price.projects.project.financials.Create a version to update your budget'\n                      }}\n                      <button\n                        class='mt-3 btn btn-outline-primary btn-sm align-self-end'\n                        type='button'\n                        {{on 'click' (fn (mut this.creatingBudgetVersion) true)}}\n                      >\n                        {{t 'shared.financial.Create a version'}}\n                      </button>\n                    </div>\n                  {{/if}}\n  \n                  <table class='table'>\n                    <thead>\n                      <tr>\n                        <th></th>\n                        <th class='text-right'></th>\n                      </tr>\n                    </thead>\n                    <tbody>\n                      <tr>\n                        <th>{{t 'common.Labour hours'}}</th>\n                        <td class='text-right'>\n                          {{format-duration\n                            this.model.project.last.value.currentBudgetVersion.manHours\n                            emptyPlaceholder='–'\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <td colspan='4'>&nbsp;</td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Labour'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.labour\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Materials'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.materials\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Subcontractors'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.subcontractors\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Sums'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.sums\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tbody>\n                    <tfoot>\n                      <tr>\n                        <th></th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.total\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tfoot>\n                  </table>\n                {{else}}\n                  {{#if\n                    (gt\n                      this.model.project.last.value.draftBudgetChangeSet.changes.length\n                      0\n                    )\n                  }}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskBudgetsYouCanCommitThemAsYourFirstBudgetVersion'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.thereIsNoCommittedBudgetVersionForThisProject'\n                        )\n                      }}\n                    </p>\n                    {{#if this.canManageBudgetVersions}}\n                      <button\n                        type='button'\n                        class='btn btn-primary align-self-end'\n                        {{on 'click' (fn (mut this.creatingBudgetVersion) true)}}\n                      >\n                        {{t\n                          'entity.builda-price.projects.project.financials.Create the first budget version'\n                        }}\n                      </button>\n                    {{/if}}\n  \n                  {{else}}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.noneOfYourTasksHaveBudgetsToCreateABudgetCreateSomeTasksWithABudget'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.None of your tasks have budgets'\n                        )\n                      }}\n                    </p>\n                    <LinkTo\n                      class='btn btn-primary align-self-end'\n                      @route='entity.builda-price.projects.project.tasks'\n                    >\n                      {{t 'common.Go to tasks'}}&nbsp;\n                      <FaIcon @icon='external-link-alt' />\n                    </LinkTo>\n                  {{/if}}\n                {{/if}}\n              {{/if}}\n            </div>\n          {{/if}}\n  \n          {{#if\n            (includes-feature-flags\n              this.model.project.last.value 'canUseQuoteVersions'\n            )\n          }}\n            <div\n              class='border rounded p-4 d-flex flex-column mb-4'\n              style='min-width: 350px;'\n            >\n              <div class='d-flex align-items-center mb-3'>\n                <h2 class='m-0'>\n                  {{t 'common.Quote'}}\n                </h2>\n                {{#if\n                  (and\n                    (not this.isLoadingQuote)\n                    this.model.project.last.value.currentQuoteVersion\n                  )\n                }}\n                  <span class='ms-2 badge rounded-pill bg-primary'>\n                    {{t 'common.Version'}}\n                    {{this.model.project.last.value.currentQuoteVersion.versionNumber}}\n                  </span>\n                {{/if}}\n              </div>\n              {{#if this.isLoadingQuote}}\n                <LoadingIcon @type='ripple' />\n              {{else}}\n                {{#if this.model.project.last.value.currentQuoteVersion}}\n                  {{#if\n                    (and\n                      (gt\n                        this.model.project.last.value.draftQuoteChangeSet.changes.length\n                        0\n                      )\n                      this.canManageQuoteVersions\n                    )\n                  }}\n                    <div\n                      class='alert alert-primary d-flex flex-column'\n                      role='alert'\n                    >\n                      {{t\n                        'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion'\n                        changes=(pluralize\n                          this.model.project.last.value.draftQuoteChangeSet.changes.length\n                          'change'\n                        )\n                        number=this.model.project.last.value.draftQuoteChangeSet.changes.length\n                      }}\n                      {{t\n                        'entity.builda-price.projects.project.financials.Create a version to update your quote'\n                      }}\n                      <button\n                        class='mt-3 btn btn-outline-primary btn-sm align-self-end'\n                        type='button'\n                        {{on 'click' (fn (mut this.creatingQuoteVersion) true)}}\n                      >\n                        {{t 'shared.financial.Create a version'}}\n                      </button>\n                    </div>\n                  {{/if}}\n  \n                  <table class='table'>\n                    <thead>\n                      <tr>\n                        <th></th>\n                        <th class='text-right'>{{t 'common.Total'}}</th>\n                      </tr>\n                    </thead>\n                    <tbody>\n                      <tr>\n                        <th>{{t 'common.Labour'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.labour\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Materials'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.materials\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Subcontractors'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.subcontractors\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Sums'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.sums\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tbody>\n                    <tfoot>\n                      <tr>\n                        <th></th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.total\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tfoot>\n                  </table>\n                {{else}}\n                  {{#if\n                    (gt\n                      this.model.project.last.value.draftQuoteChangeSet.changes.length\n                      0\n                    )\n                  }}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskQuotesYouCanCommitThemAsYourFirstQuoteVersion'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.thereIsNoCommittedQuoteVersionForThisProject'\n                        )\n                      }}\n                    </p>\n                    {{#if this.canManageQuoteVersions}}\n                      <button\n                        type='button'\n                        class='btn btn-primary align-self-end'\n                        {{on 'click' (fn (mut this.creatingQuoteVersion) true)}}\n                      >\n                        {{t\n                          'entity.builda-price.projects.project.financials.Create the first quote version'\n                        }}\n                      </button>\n                    {{/if}}\n                  {{else}}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageQuoteVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.noneOfYourTasksHaveQuotesToCreateAQuoteCreateSomeTasksWithAQuote'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.None of your tasks have quotes'\n                        )\n                      }}\n                    </p>\n  \n                    <LinkTo\n                      class='btn btn-primary align-self-end'\n                      @route='entity.builda-price.projects.project.tasks'\n                    >\n                      {{t 'common.Go to tasks'}}&nbsp;\n                      <FaIcon @icon='external-link-alt' />\n                    </LinkTo>\n                  {{/if}}\n                {{/if}}\n              {{/if}}\n            </div>\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.creatingBudgetVersion}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.creatingBudgetVersion) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        {{#if this.createBudgetVersion.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <p>\n            {{t\n              'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion'\n              changes=(pluralize\n                this.model.project.last.value.draftBudgetChangeSet.changes.length\n                'change'\n              )\n              number=this.model.project.last.value.draftBudgetChangeSet.changes.length\n            }}\n          </p>\n          <ProjectChangeSetDescription\n            @version={{this.model.project.last.value.currentBudgetVersion}}\n            @changeSet={{this.model.project.last.value.draftBudgetChangeSet}}\n          />\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' (fn (mut this.creatingBudgetVersion) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.createBudgetVersion)}}\n        >\n          {{#if this.createBudgetVersion.isRunning}}\n            {{t 'common.Creating version'}}&hellip;\n          {{else}}\n            {{t 'common.Create version'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.creatingQuoteVersion}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.creatingQuoteVersion) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        {{#if this.createQuoteVersion.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <p>\n            {{t\n              'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion'\n              changes=(pluralize\n                this.model.project.last.value.draftQuoteChangeSet.changes.length\n                'change'\n              )\n              number=this.model.project.last.value.draftQuoteChangeSet.changes.length\n            }}\n          </p>\n  \n          <ProjectChangeSetDescription\n            @version={{this.model.project.last.value.currentQuoteVersion}}\n            @changeSet={{this.model.project.last.value.draftQuoteChangeSet}}\n            @hideManHours={{true}}\n          />\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' (fn (mut this.creatingQuoteVersion) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.createQuoteVersion)}}\n        >\n          {{#if this.createQuoteVersion.isRunning}}\n            {{t 'common.Creating version'}}&hellip;\n          {{else}}\n            {{t 'common.Create version'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"eOu4vw0P\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Financials\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"isLoadingBudget\\\"]],[30,0,[\\\"isLoadingQuote\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mt-3 d-flex flex-column align-items-start\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-row align-items-start flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canUseBudgetVersions\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4 me-4\\\"],[14,5,\\\"min-width: 350px;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"common.Budget\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,10],[[30,0,[\\\"isLoadingBudget\\\"]]],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\"]]],null],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge rounded-pill bg-primary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"common.Version\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"versionNumber\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoadingBudget\\\"]],[[[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\"]],[[[41,[28,[37,6],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[30,0,[\\\"canManageBudgetVersions\\\"]]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"alert alert-primary d-flex flex-column\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create a version to update your budget\\\"],null]],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"mt-3 btn btn-outline-primary btn-sm align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"shared.financial.Create a version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,24],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"manHours\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"–\\\"]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"labour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"materials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"subcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"sums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageBudgetVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskBudgetsYouCanCommitThemAsYourFirstBudgetVersion\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.thereIsNoCommittedBudgetVersionForThisProject\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageBudgetVersions\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create the first budget version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageBudgetVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.noneOfYourTasksHaveBudgetsToCreateABudgetCreateSomeTasksWithABudget\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.None of your tasks have budgets\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,28],[[24,0,\\\"btn btn-primary align-self-end\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.tasks\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"common.Go to tasks\\\"],null]],[1,\\\" \\\\n                    \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canUseQuoteVersions\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4\\\"],[14,5,\\\"min-width: 350px;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"common.Quote\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,10],[[30,0,[\\\"isLoadingQuote\\\"]]],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]]],null],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge rounded-pill bg-primary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"common.Version\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"versionNumber\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoadingQuote\\\"]],[[[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]],[[[41,[28,[37,6],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[30,0,[\\\"canManageQuoteVersions\\\"]]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"alert alert-primary d-flex flex-column\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create a version to update your quote\\\"],null]],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"mt-3 btn btn-outline-primary btn-sm align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"shared.financial.Create a version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,5],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"labour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"materials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"subcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"sums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageBudgetVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskQuotesYouCanCommitThemAsYourFirstQuoteVersion\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.thereIsNoCommittedQuoteVersionForThisProject\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageQuoteVersions\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create the first quote version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageQuoteVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.noneOfYourTasksHaveQuotesToCreateAQuoteCreateSomeTasksWithAQuote\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.None of your tasks have quotes\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[8,[39,28],[[24,0,\\\"btn btn-primary align-self-end\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.tasks\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"common.Go to tasks\\\"],null]],[1,\\\" \\\\n                    \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"creatingBudgetVersion\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createBudgetVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,31],null,[[\\\"@version\\\",\\\"@changeSet\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,32],[[30,0,[\\\"createBudgetVersion\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createBudgetVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Creating version\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"creatingQuoteVersion\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createQuoteVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,31],null,[[\\\"@version\\\",\\\"@changeSet\\\",\\\"@hideManHours\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,32],[[30,0,[\\\"createQuoteVersion\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createQuoteVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Creating version\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"and\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"includes-feature-flags\\\",\\\"not\\\",\\\"span\\\",\\\"gt\\\",\\\"pluralize\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"format-duration\\\",\\\"number-format\\\",\\\"tfoot\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"modal-dialog\\\",\\\"project-change-set-description\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/health-and-safety\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"Cxla7gWt\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/health-and-safety.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"wOHy+jj9\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/health-and-safety/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.healthAndSafety'}}</h2>\n    </header>\n    {{#if this.model.project.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{outlet}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"qP1w83f9\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.healthAndSafety\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/health-and-safety/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.People'}}</h2>\n      {{/if}}\n    </header>\n    {{#if this.model.project.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex mt-3 width--large'>\n        <ul class='list-group' style='min-width: 200px;'>\n          {{#each this.tabs as |tab|}}\n            <LinkTo\n              @route={{tab.route}}\n              draggable={{false}}\n              class='list-group-item'\n            >\n              <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n              {{tab.name}}\n            </LinkTo>\n          {{/each}}\n        </ul>\n        <div class='flex-grow-1 ms-3'>\n          {{outlet}}\n        </div>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"dyvuK2Fs\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.People\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,11],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n        \\\"],[46,[28,[37,14],null,null],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"tab\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"DG/k/LgG\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.client.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.clients.client'\n            @model={{this.model.client.last.value.id}}\n          >\n            {{t 'shared.people-editor.clients.client.View client details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteClient.isRunning}}\n              {{on 'click' (perform this.deleteClient)}}\n            >\n              {{#if this.deleteClient.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.clients.client.clientProjectPermissionsExplanation'\n            }}\n          </p>\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'shared.people-editor.Can see all the tasks for this project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n  \n            {{#unless this.canSeeTaskVisibilityChecks}}\n              <PtlInput\n                @type='powerSelectMultiple'\n                @label='Task visibility'\n                @key='taskAttributes'\n                @description={{t\n                  'entity.builda-price.projects.project.people.client.theTypesOfTasksTheClientCanSeeOnThisProject'\n                }}\n                @optionKeys={{array 'name'}}\n                @options={{this.model.taskVisibilityOptions.last.value}}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{this.saveUserPermissions.isRunning}}\n              />\n            {{/unless}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCannotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseClientReports}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewClientReportsLabel'\n                }}\n                @key='canViewClientReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewClientReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n  \n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"XWFnvjGs\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.clients.client\\\",[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.clients.client.View client details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteClient\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteClient\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteClient\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.clients.client.clientProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"canSeeTaskVisibilityChecks\\\"]]],[[[1,\\\"            \\\"],[8,[39,19],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",\\\"Task visibility\\\",\\\"taskAttributes\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.client.theTypesOfTasksTheClientCanSeeOnThisProject\\\"],null],[28,[37,22],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"taskVisibilityOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"name\\\",[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCannotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseClientReports\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsLabel\\\"],null],\\\"canViewClientReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,23],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"unless\\\",\\\"array\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingClientToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingClientToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingClientToProject) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.clients.Add client to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.clients.addClientsToProjectDescription'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedClients}}\n          @selected={{this.clientToAddToProject}}\n          @onChange={{fn (mut this.clientToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.clients.Find a client'}}\n          @allowClear={{true}}\n          as |client|\n        >\n          {{client.firstName}}\n          {{client.lastName}}\n          ({{client.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link'\n          @route='entity.settings.people.clients.client'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.clients.donNotSeeTheClientAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addClientToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingClientToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.clientToAddToProject)\n            this.addClientToProject.isRunning\n          }}\n          {{on 'click' (perform this.addClientToProject)}}\n        >\n          {{#if this.addClientToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"l4RxA+SJ\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingClientToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToProject\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.clients.Add client to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.clients.addClientsToProjectDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedClients\\\"]],[30,0,[\\\"clientToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"clientToAddToProject\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.clients.Find a client\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.clients.client\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.clients.donNotSeeTheClientAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addClientToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"clientToAddToProject\\\"]]],null],[30,0,[\\\"addClientToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addClientToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addClientToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"client\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"8RkrhkUo\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingSubcontractorToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingSubcontractorToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingSubcontractorToProject) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.subcontractors.Add subcontractor to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.subcontractors.addSubcontractorToProjectDescription'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedSubcontractors}}\n          @selected={{this.subcontractorToAddToProject}}\n          @onChange={{fn (mut this.subcontractorToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t\n            'shared.people-editor.subcontractors.Find a subcontractor'\n          }}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.settings.people.subcontractors.subcontractor'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addSubcontractorToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingSubcontractorToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.subcontractorToAddToProject)\n            this.addSubcontractorToProject.isRunning\n          }}\n          {{on 'click' (perform this.addSubcontractorToProject)}}\n        >\n          {{#if this.addSubcontractorToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7sLEhcbJ\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingSubcontractorToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToProject\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.subcontractors.Add subcontractor to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.subcontractors.addSubcontractorToProjectDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedSubcontractors\\\"]],[30,0,[\\\"subcontractorToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"subcontractorToAddToProject\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Find a subcontractor\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.subcontractors.subcontractor\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addSubcontractorToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"subcontractorToAddToProject\\\"]]],null],[30,0,[\\\"addSubcontractorToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addSubcontractorToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addSubcontractorToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.subcontractor.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.subcontractors.subcontractor'\n            @model={{this.model.subcontractor.last.value.id}}\n          >\n            {{t\n              'shared.people-editor.subcontractors.subcontractor.View subcontractor details'\n            }}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageSubcontractors')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.subcontractors.subcontractor.subcontractorProjectPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the project'}}\n              @key='canManageProjects'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheProjectDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanManageProjects\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanManageProjects\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanManageProjects\n                (get\n                  this.model.permissionsChangeset.last.value 'canManageProjects'\n                )\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project budget'}}\n                @key='canViewBudgets'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectBudgetDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create budget versions'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canCreateBudgetVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project quote'}}\n                @key='canViewQuotes'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectQuoteDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create quote versions'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canCreateQuoteVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project progress'}}\n                @key='canViewProgress'\n                @description={{t\n                  'shared.people-editor.Lets the user see the project progress'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create progress versions'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canCreateProgressVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'shared.people-editor.Can see all the tasks for this project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanViewTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanViewTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanViewTasks\n                (get this.model.permissionsChangeset.last.value 'canViewTasks')\n              }}\n            />\n            {{#if\n              (or\n                this.entityCanViewTasks\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can manage tasks for the project'\n                }}\n                @key='canManageTasks'\n                @description={{t\n                  'shared.people-editor.canManageTasksForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageTasks\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageTasks\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageTasks\n                  (get\n                    this.model.permissionsChangeset.last.value 'canManageTasks'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all documents for the project'\n                }}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProject'\n                  }}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the project'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the project'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage estimates'}}\n                @key='canManageEstimates'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageEstimates\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageEstimates\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageEstimates\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageEstimates'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'entity.builda-price.projects.project.people.subcontractors.subcontractor.canMakeSchedulingChangesProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageTimesheetsProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageTimesheets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageTimesheets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageTimesheets\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageTimesheets'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanCreateHealthAndSafety\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanCreateHealthAndSafety\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanCreateHealthAndSafety\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canCreateHealthAndSafety'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageHealthAndSafety\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageHealthAndSafety\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageHealthAndSafety\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageHealthAndSafety'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"+/qNf+vZ\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.subcontractors.subcontractor\\\",[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.View subcontractor details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.subcontractors.subcontractor.subcontractorProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the project\\\"],null],\\\"canManageProjects\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProjects\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project budget\\\"],null],\\\"canViewBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create budget versions\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canCreateBudgetVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project quote\\\"],null],\\\"canViewQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create quote versions\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canCreateQuoteVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project progress\\\"],null],\\\"canViewProgress\\\",[28,[37,6],[\\\"shared.people-editor.Lets the user see the project progress\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create progress versions\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canCreateProgressVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage tasks for the project\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canManageTasksForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents for the project\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProject\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the project\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the project\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage estimates\\\"],null],\\\"canManageEstimates\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.subcontractors.subcontractor.canMakeSchedulingChangesProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canCreateHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"CJwM1g94\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingUserToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingUserToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isAddingUserToProject) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.users.Add user to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.users.addingAUserToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedUsers}}\n          @selected={{this.userToAddToProject}}\n          @onChange={{fn (mut this.userToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.users.Find a user'}}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.settings.people.users.user'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.users.doNotSeeTheUserAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addUserToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingUserToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.userToAddToProject)\n            this.addUserToProject.isRunning\n          }}\n          {{on 'click' (perform this.addUserToProject)}}\n        >\n          {{#if this.addUserToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"KLGGDl7U\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingUserToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToProject\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.users.Add user to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.users.addingAUserToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedUsers\\\"]],[30,0,[\\\"userToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"userToAddToProject\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.users.Find a user\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.users.user\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.users.doNotSeeTheUserAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addUserToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"userToAddToProject\\\"]]],null],[30,0,[\\\"addUserToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addUserToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addUserToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.user.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.users.user'\n            @model={{this.model.user.last.value.id}}\n          >\n            {{t 'shared.people-editor.users.user.View user details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.users.user.userProjectPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the project'}}\n              @key='canManageProjects'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheProjectDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanManageProjects\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanManageProjects\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanManageProjects\n                (get\n                  this.model.permissionsChangeset.last.value 'canManageProjects'\n                )\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project budget'}}\n                @key='canViewBudgets'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectBudgetDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create budget versions'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canCreateBudgetVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project quote'}}\n                @key='canViewQuotes'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectQuoteDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create quote versions'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canCreateQuoteVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project progress'}}\n                @key='canViewProgress'\n                @description={{t\n                  'shared.people-editor.Lets the user see the project progress'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create progress versions'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canCreateProgressVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.projects.project.people.users.user.Can see all the tasks for the project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanViewTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanViewTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanViewTasks\n                (get this.model.permissionsChangeset.last.value 'canViewTasks')\n              }}\n            />\n            {{#if\n              (or\n                this.entityCanViewTasks\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can manage tasks for the project'\n                }}\n                @key='canManageTasks'\n                @description={{t\n                  'shared.people-editor.canManageTasksForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageTasks\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageTasks\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageTasks\n                  (get\n                    this.model.permissionsChangeset.last.value 'canManageTasks'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all documents for the project'\n                }}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProject'\n                  }}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the project'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the project'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage estimates'}}\n                @key='canManageEstimates'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageEstimates\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageEstimates\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageEstimates\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageEstimates'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.allocationsPermissionsVisible}}\n              {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can see and manage timesheets'\n                  }}\n                  @key='canManageTimesheets'\n                  @description={{t\n                    'shared.people-editor.canSeeAndManageTimesheetsProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageTimesheets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageTimesheets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageTimesheets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageTimesheets'\n                    )\n                  }}\n                />\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseInvoices}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.project.Can see all invoices'\n                  }}\n                  @description={{t\n                    'shared.people-editor.users.user.project.canViewInvoicesDescription'\n                  }}\n                  @key='canViewInvoices'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewInvoices\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewInvoices\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewInvoices\n                    (get\n                      this.model.permissionsChangeset.last.value 'canViewInvoices'\n                    )\n                  }}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageInvoices\n                    this.model.permissionsChangeset.last.value.canViewInvoices\n                    this.entityCanManageInvoices\n                    this.entityCanViewInvoices\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.users.user.project.Can create invoices'\n                    }}\n                    @description={{t\n                      'shared.people-editor.users.user.project.canManageInvoicesDescription'\n                    }}\n                    @key='canManageInvoices'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanManageInvoices\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanManageInvoices\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanManageInvoices\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canManageInvoices'\n                      )\n                    }}\n                  />\n                {{/if}}\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageInvoices\n                    this.model.permissionsChangeset.last.value.canApproveInvoices\n                    this.entityCanManageInvoices\n                    this.entityCanApproveInvoices\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.users.user.project.Can approve invoices'\n                    }}\n                    @description={{t\n                      'shared.people-editor.users.user.project.canApproveInvoicesDescription'\n                    }}\n                    @key='canApproveInvoices'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanApproveInvoices\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanApproveInvoices\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanApproveInvoices\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canApproveInvoices'\n                      )\n                    }}\n                  />\n                {{/if}}\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUsePurchaseOrders}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.projects.project.people.users.user.Can see purchase orders'\n                  }}\n                  @description={{t\n                    'entity.builda-price.projects.project.people.users.user.canSeePurchaseOrdersDescription'\n                  }}\n                  @key='canViewPurchaseOrders'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewPurchaseOrders\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewPurchaseOrders\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewPurchaseOrders\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewPurchaseOrders'\n                    )\n                  }}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                    this.model.permissionsChangeset.last.value.canViewPurchaseOrders\n                    this.entityCanManagePurchaseOrders\n                    this.entityCanViewPurchaseOrders\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.people.users.user.canManagePurchaseOrders'\n                    }}\n                    @description={{t\n                      'entity.builda-price.projects.project.people.users.user.canManagePurchaseOrdersDescription'\n                    }}\n                    @key='canManagePurchaseOrders'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanManagePurchaseOrders\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanManagePurchaseOrders\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanManagePurchaseOrders\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canManagePurchaseOrders'\n                      )\n                    }}\n                  />\n                {{/if}}\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                    this.model.permissionsChangeset.last.value.canApprovePurchaseOrders\n                    this.entityCanManagePurchaseOrders\n                    this.entityCanApprovePurchaseOrders\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrders'\n                    }}\n                    @description={{t\n                      'entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrdersDescription'\n                    }}\n                    @key='canApprovePurchaseOrders'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanApprovePurchaseOrders\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanApprovePurchaseOrders\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanApprovePurchaseOrders\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canApprovePurchaseOrders'\n                      )\n                    }}\n                  />\n                {{/if}}\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseStagePayments}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.projects.project.people.users.user.Can see stage payments'\n                  }}\n                  @description={{t\n                    'entity.builda-price.projects.project.people.users.user.canSeeStagePaymentsDescription'\n                  }}\n                  @key='canViewStagePayments'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewStagePayments\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewStagePayments\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewStagePayments\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewStagePayments'\n                    )\n                  }}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageStagePayments\n                    this.model.permissionsChangeset.last.value.canViewStagePayments\n                    this.entityCanManageStagePayments\n                    this.entityCanViewStagePayments\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.people.users.user.canManageStagePayments'\n                    }}\n                    @description={{t\n                      'entity.builda-price.projects.project.people.users.user.canManageStagePaymentsDescription'\n                    }}\n                    @key='canManageStagePayments'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanManageStagePayments\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanManageStagePayments\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanManageStagePayments\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canManageStagePayments'\n                      )\n                    }}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseGeofencing}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can see all site access data in reports?'\n                @key='canViewAccessReports'\n                @description='Site access reports show real-time site occupancy and access history.'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewAccessReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewAccessReports\n                  this.savePermissions.isRunning\n                }}\n                checked={{or\n                  this.entityCanViewAccessReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewAccessReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanCreateHealthAndSafety\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanCreateHealthAndSafety\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanCreateHealthAndSafety\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canCreateHealthAndSafety'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageHealthAndSafety\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageHealthAndSafety\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageHealthAndSafety\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageHealthAndSafety'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"1LJb7heu\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.users.user\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.users.user.View user details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.users.user.userProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the project\\\"],null],\\\"canManageProjects\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProjects\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project budget\\\"],null],\\\"canViewBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create budget versions\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canCreateBudgetVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project quote\\\"],null],\\\"canViewQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create quote versions\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canCreateQuoteVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project progress\\\"],null],\\\"canViewProgress\\\",[28,[37,6],[\\\"shared.people-editor.Lets the user see the project progress\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create progress versions\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canCreateProgressVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.Can see all the tasks for the project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage tasks for the project\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canManageTasksForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents for the project\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProject\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the project\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the project\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage estimates\\\"],null],\\\"canManageEstimates\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoices\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewInvoices\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.project.Can see all invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.project.canViewInvoicesDescription\\\"],null],\\\"canViewInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewInvoices\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewInvoices\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoices\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewInvoices\\\"]],[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"entityCanViewInvoices\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.project.Can create invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.project.canManageInvoicesDescription\\\"],null],\\\"canManageInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageInvoices\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageInvoices\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApproveInvoices\\\"]],[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"entityCanApproveInvoices\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanApproveInvoices\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.project.Can approve invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.project.canApproveInvoicesDescription\\\"],null],\\\"canApproveInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanApproveInvoices\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanApproveInvoices\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canApproveInvoices\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUsePurchaseOrders\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewPurchaseOrders\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.Can see purchase orders\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canSeePurchaseOrdersDescription\\\"],null],\\\"canViewPurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewPurchaseOrders\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewPurchaseOrders\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewPurchaseOrders\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewPurchaseOrders\\\"]],[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"entityCanViewPurchaseOrders\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManagePurchaseOrders\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManagePurchaseOrdersDescription\\\"],null],\\\"canManagePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManagePurchaseOrders\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApprovePurchaseOrders\\\"]],[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrders\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrdersDescription\\\"],null],\\\"canApprovePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canApprovePurchaseOrders\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseStagePayments\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewStagePayments\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.Can see stage payments\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canSeeStagePaymentsDescription\\\"],null],\\\"canViewStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewStagePayments\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewStagePayments\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewStagePayments\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageStagePayments\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewStagePayments\\\"]],[30,0,[\\\"entityCanManageStagePayments\\\"]],[30,0,[\\\"entityCanViewStagePayments\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageStagePayments\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManageStagePayments\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManageStagePaymentsDescription\\\"],null],\\\"canManageStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageStagePayments\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageStagePayments\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageStagePayments\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewAccessReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"entityCanViewAccessReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewAccessReports\\\"],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\"],[\\\"checkbox\\\",\\\"Can see all site access data in reports?\\\",\\\"canViewAccessReports\\\",\\\"Site access reports show real-time site occupancy and access history.\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewAccessReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canCreateHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"otPd6mln\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingWorkerToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingWorkerToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingWorkerToProject) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.workers.Add worker to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.workers.addingAWorkerToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedWorkers}}\n          @selected={{this.workerToAddToProject}}\n          @onChange={{fn (mut this.workerToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='searchString'\n          @placeholder={{t 'shared.people-editor.workers.Find a worker'}}\n          @allowClear={{true}}\n          as |worker|\n        >\n          {{worker.firstName}}\n          {{worker.lastName}}\n          ({{worker.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.settings.people.workers.worker'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.workers.doNotSeeTheWorkerAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addWorkerToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingWorkerToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.workerToAddToProject)\n            this.addWorkerToProject.isRunning\n          }}\n          {{on 'click' (perform this.addWorkerToProject)}}\n        >\n          {{#if this.addWorkerToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Xoo+6kzb\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.workers.Search for workers\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,5],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingWorkerToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToProject\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.workers.Add worker to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.workers.addingAWorkerToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedWorkers\\\"]],[30,0,[\\\"workerToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"workerToAddToProject\\\"]]],null]],null],true,\\\"searchString\\\",[28,[37,5],[\\\"shared.people-editor.workers.Find a worker\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.workers.worker\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.workers.doNotSeeTheWorkerAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addWorkerToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"workerToAddToProject\\\"]]],null],[30,0,[\\\"addWorkerToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addWorkerToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addWorkerToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.worker.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.workers.worker'\n            @model={{this.model.worker.last.value.id}}\n          >\n            {{t 'shared.people-editor.workers.worker.View worker details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageWorkers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteWorker.isRunning}}\n              {{on 'click' (perform this.deleteWorker)}}\n            >\n              {{#if this.deleteWorker.isRunning}}\n                {{t 'shared.people-editor.Removing from project'}}\n              {{else}}\n                {{t\n                  'entity.builda-price.projects.project.people.workers.worker.Remove from project'\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if\n        (and\n          this.newFeatureFlags.entityCanUseHealthAndSafety\n          (includes-feature-flags 'canManageWorkers')\n        )\n      }}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.workers.worker.workerProjectPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'shared.people-editor.Can see all the tasks for this project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @description={{t\n                'entity.builda-price.projects.project.people.workers.worker.canSeeAllTheTasksForThisProjectDescription'\n              }}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanViewTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanViewTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanViewTasks\n                (get this.model.permissionsChangeset.last.value 'canViewTasks')\n              }}\n            />\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.healthAndSafetyPermissionsVisible)\n                (not this.healthAndSafetyPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.healthAndSafety'}}\n            </h4>\n            {{#if\n              (and\n                (not this.healthAndSafetyPermissionsVisible)\n                this.healthAndSafetyPermissionsCount\n              )\n            }}\n              <span class='ms-2 badge bg-info'>\n                {{this.healthAndSafetyPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.healthAndSafetyPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.healthAndSafetyPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n              @key='canCreateHealthAndSafety'\n              @description={{t\n                'shared.people-editor.canUseHealthAndSafetyDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt\n                this.saveWorkerPermissions.performCount\n                0\n              }}\n              @toolTip={{if\n                this.entityCanCreateHealthAndSafety\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanCreateHealthAndSafety\n                this.saveWorkerPermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanCreateHealthAndSafety\n                (get\n                  this.model.permissionsChangeset.last.value\n                  'canCreateHealthAndSafety'\n                )\n              }}\n            />\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveWorkerPermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.saveWorkerPermissions\n                  this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.saveWorkerPermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"8aA/vIGz\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.workers.worker\\\",[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.workers.worker.View worker details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageWorkers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Removing from project\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.workers.worker.Remove from project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[28,[37,10],[\\\"canManageWorkers\\\"],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.workers.worker.workerProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,17],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,20],[[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"entity.builda-price.projects.project.people.workers.worker.canSeeAllTheTasksForThisProjectDescription\\\"],null],[28,[37,22],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,21],[[30,0,[\\\"entityCanViewTasks\\\"]],[28,[37,23],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,17],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,17],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,20],[[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"saveWorkerPermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,22],[[30,0,[\\\"saveWorkerPermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,21],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[28,[37,23],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canCreateHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveWorkerPermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveWorkerPermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveWorkerPermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"and\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/products\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Products')\n      }}\n    />\n  {{/unless}}\n  <article class='mx-4 mt-4'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Products'}}</h2>\n      {{/if}}\n  \n      {{#if this.showFilters}}\n        <div class='mx-1'>\n          <SearchSelector\n            style='width: 200px;'\n            @disabled={{this.isLoading}}\n            @key='supplierName'\n            @optionKeys={{array 'supplierName'}}\n            @model={{this.supplierChangeSet}}\n            @noDataMessage={{t 'common.No suppliers'}}\n            @onLoad={{this.loadMoreSuppliers}}\n            @onSelect={{this.setSupplier}}\n            @placeholder={{t 'shared.product.Filter by supplier'}}\n          />\n        </div>\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'shared.product.Search products'}}\n          @type='text'\n          autofocus='true'\n          @value={{this.searchString}}\n          {{on 'input' (perform this.onChangeSearchTerm)}}\n          data-test-products-project-search\n        />\n      {{/if}}\n      {{#if this.isEditable}}\n        <button\n          type='button'\n          class='btn btn-secondary text-white text-nowrap m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.addingProductsFromFile) true)}}\n        >\n          <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n            'shared.product.Add products from a file'\n          }}\n        </button>\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.isAddingProduct) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </header>\n    {{#if this.model.project.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n        {{#if (and this.isEditable this.productTableData.length)}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (fn (mut this.isDeletingProducts) true)}}\n              disabled={{or (not this.selectProductIds.size) this.isLoading}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          </div>\n        {{/if}}\n      </div>\n      <div class='project-products__table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @pageSizes={{this.model.pageSizes}}\n          @pageSize={{this.model.pageSize}}\n          @pageIndex={{this.model.pageIndex}}\n          @onChangePageIndex={{this.onChangePageIndex}}\n          @onChangePageSize={{this.onChangePageSize}}\n          @isLoading={{this.model.products.isRunning}}\n          @totalRecords={{this.totalRecords}}\n          @class='table-bordered'\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isEditingProduct}}\n    <ProductEditor\n      @onSaveProduct={{this.onSaveProduct}}\n      @target={{this.model.project.last.value}}\n      @productTable={{'project-product'}}\n      @entity={{this.sessionData.entity}}\n      @productId={{this.selectedProductId}}\n      @onClose={{fn (mut this.isEditingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingProduct}}\n    <ProductSelector\n      @onAddProduct={{this.onAddProduct}}\n      @onCreateProduct={{this.onCreateProduct}}\n      @onClose={{fn (mut this.isAddingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.addingProductsFromFile}}\n    <ProductsUploader\n      @onUploadProducts={{this.updateProductList}}\n      @saveTarget={{'project-products'}}\n      @project={{this.model.project.last.value}}\n      @onClose={{fn (mut this.addingProductsFromFile) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingProducts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingProducts) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>\n        {{t\n          'shared.product.areYouSureYouWantToDeleteXProducts'\n          number=this.selectProductIds.size\n          products=(pluralize this.selectProductIds.size 'product')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteProducts.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (perform this.deleteProducts)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingProducts) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"f2wNqOgS\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Products\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Products\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFilters\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,5,\\\"width: 200px;\\\"]],[[\\\"@disabled\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@noDataMessage\\\",\\\"@onLoad\\\",\\\"@onSelect\\\",\\\"@placeholder\\\"],[[30,0,[\\\"isLoading\\\"]],\\\"supplierName\\\",[28,[37,11],[\\\"supplierName\\\"],null],[30,0,[\\\"supplierChangeSet\\\"]],[28,[37,4],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"loadMoreSuppliers\\\"]],[30,0,[\\\"setSupplier\\\"]],[28,[37,4],[\\\"shared.product.Filter by supplier\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,12],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.product.Search products\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-products-project-search\\\",\\\"\\\"],[4,[38,13],[\\\"input\\\",[28,[37,14],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.product.Add products from a file\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,19],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"productTableData\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,21],[[28,[37,22],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"project-products__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,4],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onSaveProduct\\\",\\\"@target\\\",\\\"@productTable\\\",\\\"@entity\\\",\\\"@productId\\\",\\\"@onClose\\\"],[[30,0,[\\\"onSaveProduct\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"project-product\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\"]],[30,0,[\\\"selectedProductId\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isEditingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@onAddProduct\\\",\\\"@onCreateProduct\\\",\\\"@onClose\\\"],[[30,0,[\\\"onAddProduct\\\"]],[30,0,[\\\"onCreateProduct\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addingProductsFromFile\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onUploadProducts\\\",\\\"@saveTarget\\\",\\\"@project\\\",\\\"@onClose\\\"],[[30,0,[\\\"updateProductList\\\"]],\\\"project-products\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.product.areYouSureYouWantToDeleteXProducts\\\"],[[\\\"number\\\",\\\"products\\\"],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],[28,[37,29],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],\\\"product\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"on\\\",\\\"perform\\\",\\\"button\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"and\\\",\\\"or\\\",\\\"not\\\",\\\"pagination-table\\\",\\\"product-editor\\\",\\\"product-selector\\\",\\\"products-uploader\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/products.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/progress\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'shared.progress.Labour progress')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4 flex-grow-1'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        <div class='flex-grow-1 d-flex align-items-center'>\n          <h2 class='m-0 my-2'>\n            {{t 'shared.progress.Labour progress'}}\n          </h2>\n  \n          {{#if this.showTaskControls}}\n            {{#unless (or this.isSaving this.isLoading)}}\n              {{#if this.isDraft}}\n                <div class='ms-2 badge rounded-pill bg-info'>\n                  {{t 'common.Draft'}}\n                </div>\n              {{else if this.latestVersion}}\n                <div class='ms-2 badge rounded-pill bg-primary'>\n                  {{t 'common.Version'}}\n                  {{this.latestVersion.versionNumber}}\n                </div>\n              {{/if}}\n            {{else}}\n              <div class='ms-2 badge rounded-pill bg-secondary'>\n                <div class='spinner-border spinner-border-sm text-light'></div>\n              </div>\n            {{/unless}}\n          {{/if}}\n        </div>\n      </header>\n    {{/if}}\n  \n    {{#if\n      (and\n        this.showTaskControls\n        (or this.canSeeSaveDraftButton this.canSeeCreateVersionButton)\n      )\n    }}\n      <div class='d-flex align-items-center justify-content-end'>\n        {{#if this.canSeeSaveDraftButton}}\n          <button\n            type='button'\n            disabled={{or this.isLoading this.isSaving}}\n            class='btn btn-primary text-nowrap m-1'\n            {{on 'click' (perform this.saveDraftProgress)}}\n          >\n            {{#if this.saveDraftProgress.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save draft'}}\n            {{/if}}\n          </button>\n        {{/if}}\n  \n        {{#if this.canSeeCreateVersionButton}}\n          <button\n            type='button'\n            disabled={{or this.isLoading (not this.isDraft) this.isSaving}}\n            class='btn btn-primary text-nowrap m-1'\n            {{on 'click' (fn (mut this.showCommitProgressModal) true)}}\n          >\n            {{t 'common.Create version'}}\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <p>\n      {{t\n        'entity.builda-price.projects.project.progress.labourProgressExplanation'\n      }}\n    </p>\n  \n    {{#if (or this.isLoading)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.model.progressList.last.value.length}}\n        {{#if this.canCompleteTasks}}\n          <div class='row px-3'>\n            <div class='col fw-bold'></div>\n            <div class='col-1 fw-bold text-center'>\n              <LabelPopup\n                @text={{t\n                  'entity.builda-price.projects.project.progress.completeExplanation'\n                }}\n              >\n                {{t 'common.Complete'}}\n              </LabelPopup>\n            </div>\n          </div>\n        {{/if}}\n        {{#each this.progressList as |item|}}\n          <TaskProgressPositionRow\n            @item={{item}}\n            @isSaving={{this.isSaving}}\n            @showCompleteColumn={{this.canCompleteTasks}}\n          />\n        {{/each}}\n      {{else}}\n        <div class='mt-5 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t 'shared.progress.thisProjectDoesNotHaveAnyTasksYet'}}\n            </b>\n          </p>\n          <LinkTo\n            @route='entity.builda-price.projects.project.tasks'\n            @model={{this.model.project.last.value.id}}\n            class='btn btn-primary'\n          >\n            {{t 'shared.progress.Create some tasks'}}\n          </LinkTo>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  \n  {{#if this.showCommitProgressModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showCommitProgressModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.progress.Make a progress version'\n          }}\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        {{#if this.numberOfChanges}}\n          {{t\n            'entity.builda-price.projects.project.progress.thereHasBeenXChangeToTheProgressSinceTheLastVersion'\n            number=this.numberOfChanges\n            changes=(pluralize this.numberOfChanges 'change')\n          }}\n        {{else}}\n          {{t\n            'entity.builda-price.projects.project.progress.thereHaveBeenNoChangesToTheProgressSinceTheLastVersion'\n          }}\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer text-right'>\n        {{#if this.commitProgressVersion.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Creating version'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white m-1'\n            {{on 'click' (fn (mut this.showCommitProgressModal) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            type='button'\n            disabled={{this.isSaving}}\n            class='btn btn-primary m-1'\n            {{on 'click' (perform this.commitProgressVersion)}}\n          >\n            {{t 'common.Create version'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7Aqs+u8Y\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"shared.progress.Labour progress\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.progress.Labour progress\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showTaskControls\\\"]],[[[41,[51,[28,[37,10],[[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"isLoading\\\"]]],null]],[[[41,[30,0,[\\\"isDraft\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"ms-2 badge rounded-pill bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"latestVersion\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"ms-2 badge rounded-pill bg-primary\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"common.Version\\\"],null]],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"latestVersion\\\",\\\"versionNumber\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"ms-2 badge rounded-pill bg-secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"spinner-border spinner-border-sm text-light\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"showTaskControls\\\"]],[28,[37,10],[[30,0,[\\\"canSeeSaveDraftButton\\\"]],[30,0,[\\\"canSeeCreateVersionButton\\\"]]],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canSeeSaveDraftButton\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,10],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveDraftProgress\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveDraftProgress\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Save draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canSeeCreateVersionButton\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,10],[[30,0,[\\\"isLoading\\\"]],[28,[37,15],[[30,0,[\\\"isDraft\\\"]]],null],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showCommitProgressModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.labourProgressExplanation\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"isLoading\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,19],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"progressList\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"canCompleteTasks\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"row px-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col fw-bold\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.progress.completeExplanation\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Complete\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"progressList\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,23],null,[[\\\"@item\\\",\\\"@isSaving\\\",\\\"@showCompleteColumn\\\"],[[30,1],[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"canCompleteTasks\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.progress.thisProjectDoesNotHaveAnyTasksYet\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,26],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.progress.Create some tasks\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCommitProgressModal\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showCommitProgressModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.Make a progress version\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"numberOfChanges\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.thereHasBeenXChangeToTheProgressSinceTheLastVersion\\\"],[[\\\"number\\\",\\\"changes\\\"],[[30,0,[\\\"numberOfChanges\\\"]],[28,[37,29],[[30,0,[\\\"numberOfChanges\\\"]],\\\"change\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.thereHaveBeenNoChangesToTheProgressSinceTheLastVersion\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"commitProgressVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Creating version\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showCommitProgressModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,0,\\\"btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"commitProgressVersion\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"item\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"div\\\",\\\"h2\\\",\\\"or\\\",\\\"and\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"not\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"label-popup\\\",\\\"each\\\",\\\"-track-array\\\",\\\"task-progress-position-row\\\",\\\"fa-icon\\\",\\\"b\\\",\\\"link-to\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"pluralize\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/progress.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Settings'}}</h2>\n      {{/if}}\n    </header>\n    <div class='mt-3'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <PtlForm class='width--large mb-4'>\n          <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{this.model.projectChangeset.last.value}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <PtlInput\n            @type='select'\n            @label={{t 'common.Status'}}\n            @key='status'\n            @options={{this.status}}\n            @required={{true}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Reference'}}\n            @key='projectReference'\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <NewComboBox\n            @isLoading={{this.onAddressChange.isRunning}}\n            @list={{this.addressSuggestions}}\n            @noDataMessage={{t\n              'entity.builda-price.projects.project.settings.No address found'\n            }}\n            @onSelect={{this.setAddress}}\n            @onSearch={{this.onAddressChange}}\n            @debounce={{400}}\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{this.model.projectChangeset.last.value}}\n            @hasNextPage={{false}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n          />\n  \n          {{#if\n            (and\n              this.newFeatureFlags.entityCanUseGeofencing this.canManageProject\n            )\n          }}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.projects.project.settings.Enable Geofencing'\n              }}\n              @description={{t\n                'entity.builda-price.projects.project.settings.geoFencingDescription'\n              }}\n              @key='geofencingEnabled'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n  \n            {{#if this.model.projectChangeset.last.value.geofencingEnabled}}\n              <div class='mb-3'>\n                <GoogleMap\n                  @lat={{this.model.projectChangeset.last.value.lat}}\n                  @lng={{this.model.projectChangeset.last.value.lng}}\n                  {{! dirty number cast }}\n                  @radius={{math\n                    (or this.model.projectChangeset.last.value.rad 0)\n                    '*'\n                    1\n                  }}\n                  @maxRadius={{500}}\n                  @minRadius={{100}}\n                  @onRadiusChange={{this.onRadiusChange}}\n                  @onClick={{this.onClickMap}}\n                >\n                  <NewComboBox\n                    @isLoading={{this.onAddressChange.isRunning}}\n                    @list={{this.addressSuggestions}}\n                    @noDataMessage={{t\n                      'entity.builda-price.projects.project.settings.No address found'\n                    }}\n                    @onSelect={{this.setGoogleMapAddress}}\n                    @onSearch={{this.onAddressChange}}\n                    @debounce={{400}}\n                    @key='address'\n                    @model={{this.googleMapAddressFinder}}\n                    @hasNextPage={{false}}\n                    @placeholder={{t\n                      'entity.builda-price.projects.project.settings.Search for an address'\n                    }}\n                  />\n                </GoogleMap>\n              </div>\n            {{/if}}\n          {{/if}}\n  \n          <PtlInput\n            @type='textarea'\n            @label={{t 'common.Description'}}\n            @key='description'\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n  \n          <PtlInput\n            @type='select'\n            @label={{t 'shared.task.Contract type'}}\n            @key='contractType'\n            @selectNoBlankOption={{true}}\n            @options={{this.contractType}}\n            @required={{true}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Start date'}}\n            @key='startDate'\n            @dependantValidationKeys={{array 'completionDate'}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            @required={{true}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <PtlInput\n            @type='date'\n            @label={{t 'common.Completion date'}}\n            @key='completionDate'\n            @dependantValidationKeys={{array 'startDate'}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          {{#if\n            (includes-feature-flags\n              this.model.project.lastSuccessful.value 'canUseWorkerJobAllocation'\n            )\n          }}\n            <div class='mb-3'>\n              <label class='mb-1' for='charge-out-rate-modal-button'>\n                {{t\n                  'entity.builda-price.projects.project.settings.Charge-out rates'\n                }}\n              </label>\n              <div class='input-group'>\n                <button\n                  id='charge-out-rate-modal-button'\n                  type='button'\n                  class='btn btn-primary align-self-start'\n                  disabled={{this.saveProject.isRunning}}\n                  {{on 'click' (fn (mut this.workerAllocationModalVisible) true)}}\n                >{{t\n                    'entity.builda-price.projects.project.settings.Edit worker charge-out rates'\n                  }}</button>\n              </div>\n            </div>\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n            )\n          }}\n            <div class='d-flex align-items-center mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @containerClass='m-0'\n                  @type='powerSelect'\n                  @label={{t\n                    'entity.builda-price.projects.project.settings.Default purchases account'\n                  }}\n                  @key={{if\n                    this.purchasesGlAccountIsOverridden\n                    'purchasesGlAccount'\n                    'defaultPurchasesGlAccount'\n                  }}\n                  @optionKeys={{array 'code' 'name'}}\n                  @options={{this.model.glAccounts.last.value}}\n                  @allowClear={{true}}\n                  @model={{this.model.projectChangeset.last.value}}\n                  @description={{t\n                    'entity.builda-price.projects.project.settings.purchasesGlAccountDescription'\n                  }}\n                  @placeholder={{t\n                    'entity.builda-price.projects.project.settings.No default account'\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField={{this.accountingPlatform.glAccountsSearchField}}\n                  @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                  @disabled={{or\n                    (not this.purchasesGlAccountIsOverridden)\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </div>\n  \n              <label class='mx-3 d-flex align-items-center mt-1'>\n                <span>{{t 'common.Override'}}</span>\n                <Input\n                  @type='checkbox'\n                  class='form-check-input m-0 ms-1'\n                  @checked={{this.purchasesGlAccountIsOverridden}}\n                  {{on\n                    'click'\n                    (fn\n                      this.togglePurchasesGlAccountOverride\n                      this.model.projectChangeset.last.value\n                    )\n                  }}\n                  disabled={{or\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </label>\n            </div>\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n            )\n          }}\n            <div class='d-flex align-items-center mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @containerClass='m-0'\n                  @type='powerSelect'\n                  @label={{t\n                    'entity.builda-price.projects.project.settings.Default sales account'\n                  }}\n                  @key={{if\n                    this.salesGlAccountIsOverridden\n                    'salesGlAccount'\n                    'defaultSalesGlAccount'\n                  }}\n                  @optionKeys={{array 'code' 'name'}}\n                  @options={{this.model.glAccounts.last.value}}\n                  @allowClear={{true}}\n                  @model={{this.model.projectChangeset.last.value}}\n                  @description={{t\n                    'entity.builda-price.projects.project.settings.salesGlAccountDescription'\n                  }}\n                  @placeholder={{t\n                    'entity.builda-price.projects.project.settings.No default account'\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField={{this.accountingPlatform.glAccountsSearchField}}\n                  @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                  @disabled={{or\n                    (not this.salesGlAccountIsOverridden)\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </div>\n              <label class='mx-3 d-flex align-items-center mt-1'>\n                <span>{{t 'common.Override'}}</span>\n                <Input\n                  @type='checkbox'\n                  class='form-check-input m-0 ms-1'\n                  @checked={{this.salesGlAccountIsOverridden}}\n                  {{on\n                    'click'\n                    (fn\n                      this.toggleSalesGlAccountOverride\n                      this.model.projectChangeset.last.value\n                    )\n                  }}\n                  disabled={{or\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </label>\n            </div>\n          {{/if}}\n  \n          {{#if\n            (and\n              this.accountingPlatform.isActive\n              (eq this.accountingPlatform.activePlatform 'xero')\n              (includes-feature-flags 'canUseXeroIntegration')\n            )\n          }}\n            {{#if (eq this.sessionData.entity.region 'AUS')}}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.builda-price.projects.project.settings.Xero tracking category'\n                }}\n                @key='xeroTrackingOption'\n                @optionKeys={{array 'trackingOptionName'}}\n                @options={{this.xeroTrackingOptions}}\n                @model={{this.model.projectChangeset.last.value}}\n                @searchEnabled={{true}}\n                @allowClear={{true}}\n                @searchField='trackingOptionName'\n                @afterOptionsComponent={{component\n                  'power-select-after-options-button'\n                  onClick=(perform this.syncXeroTrackingCategoryOptions)\n                  icon='sync'\n                  text=(t\n                    'entity.builda-price.projects.project.settings.Reload Xero category options'\n                  )\n                  isLoading=this.syncXeroTrackingCategoryOptions.isRunning\n                  loadingText=(t\n                    'entity.builda-price.projects.project.settings.Loading Xero tracking options'\n                  )\n                }}\n                @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                disabled={{this.saveProject.isRunning}}\n                @description={{t\n                  'entity.builda-price.projects.project.settings.xeroProvidesTrackingCategoriesToTagLineItemsInXeroToAidReporting'\n                }}\n              />\n            {{/if}}\n          {{/if}}\n  \n          {{! assume contact info is restricted to project managers - pretty shit }}\n          {{#if this.canManageProject}}\n            <h4 class='my-2'>{{t\n                'entity.builda-price.projects.project.settings.Primary contact details'\n              }}</h4>\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Name'}}\n              @key='contactName'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Email'}}\n              @key='contactEmail'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Phone number'}}\n              @key='contactNumber'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n            <PtlInput\n              @type='text'\n              @label={{t\n                'entity.builda-price.projects.project.settings.Postal address'\n              }}\n              @key='contactAddress'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n          {{/if}}\n  \n          {{#if this.canManageProject}}\n            <div class='d-flex flex-grow-1 mt-3'>\n              {{#if this.canManageProject}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.deleteProject.isRunning\n                    this.saveProject.isRunning\n                  }}\n                  {{on\n                    'click'\n                    (if\n                      this.canDelete\n                      (action (mut this.isDeletingProject) true)\n                      (action (mut this.isArchivingProject) true)\n                    )\n                  }}\n                  data-test-project-settings-delete-or-archive-button\n                >\n                  {{#if\n                    (or\n                      this.archiveProject.isRunning this.deleteProject.isRunning\n                    )\n                  }}\n                    &nbsp;&nbsp;{{t 'common.Deleting'}}…\n                  {{else}}\n                    {{t\n                      'entity.builda-price.projects.project.settings.Delete project'\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n  \n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveProject.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.saveProject this.model.projectChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.saveProject.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n                {{else}}\n                  {{t 'common.Save details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n  \n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageProfitMargin'\n          )\n        }}\n          <PtlForm class='width--large'>\n            <ProfitMarginForm\n              @default={{this.model.project.last.value.defaultPercentageValues}}\n              @profitMargin={{this.model.profitMarginChangeset.last.value}}\n              @description={{t 'shared.profit-margins.profitMarginDescription'}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              @disabled={{this.saveProfitMargin.isRunning}}\n            />\n  \n            {{#if this.canManageProfitMargin}}\n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveProfitMargin.isRunning}}\n                  {{on\n                    'click'\n                    (perform\n                      this.saveProfitMargin\n                      this.model.projectChangeset.last.value\n                      this.model.profitMarginChangeset.last.value\n                    )\n                  }}\n                >\n                  {{#if this.saveProfitMargin.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n                  {{else}}\n                    {{t 'shared.profit-margins.Save profit margins'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n          </PtlForm>\n        {{/if}}\n      {{/if}}\n    </div>\n  </article>\n  \n  <ConfirmDelete\n    @visible={{this.isDeletingProject}}\n    @title={{t 'entity.builda-price.projects.project.settings.Delete project'}}\n    @messages={{this.deleteMessages}}\n    @confirmText={{t\n      'entity.builda-price.projects.project.settings.delete project'\n    }}\n    @deleteButtonText={{t\n      'entity.builda-price.projects.project.settings.Delete project'\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteProject}}\n    @onCancel={{fn (mut this.isDeletingProject) false}}\n  />\n  \n  {{#if this.isArchivingProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isArchivingProject) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'entity.builda-price.projects.project.settings.Delete project'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body' data-test-confirm-delete-dialog>\n        <p data-test-project-settings-archive-dialog>\n          {{t\n            'entity.builda-price.projects.project.settings.youCannotDeleteThisProjectBecauseItHasCostsAssignedToIt'\n          }}\n        </p>\n        <p>{{t\n            'entity.builda-price.projects.project.settings.wouldYouLikeToArchiveTheProjectInstead'\n          }}</p>\n      </div>\n  \n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.archiveProject.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t\n                'entity.builda-price.projects.project.settings.Archiving project'\n              }}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.archiveProject.isRunning}}\n              {{on 'click' (fn (mut this.isArchivingProject) false)}}\n            >{{t 'common.Cancel'}}</button>\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.archiveProject.isRunning}}\n              {{on 'click' (perform this.archiveProject)}}\n            >\n              {{t\n                'entity.builda-price.projects.project.settings.Archive project'\n              }}\n            </button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.workerAllocationModalVisible}}\n    <WorkerProjectAllocationModal\n      @project={{this.model.project.last.value}}\n      @onClose={{fn (mut this.workerAllocationModalVisible) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"uZ7l85ac\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Settings\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,8],[[24,0,\\\"width--large mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,5],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"common.Status\\\"],null],\\\"status\\\",[30,0,[\\\"status\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Reference\\\"],null],\\\"projectReference\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,14],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"onAddressChange\\\",\\\"isRunning\\\"]],[30,0,[\\\"addressSuggestions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No address found\\\"],null],[30,0,[\\\"setAddress\\\"]],[30,0,[\\\"onAddressChange\\\"]],400,[28,[37,5],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],false,[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[30,0,[\\\"canManageProject\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Enable Geofencing\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.geoFencingDescription\\\"],null],\\\"geofencingEnabled\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"geofencingEnabled\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@lat\\\",\\\"@lng\\\",\\\"@radius\\\",\\\"@maxRadius\\\",\\\"@minRadius\\\",\\\"@onRadiusChange\\\",\\\"@onClick\\\"],[[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"lat\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"lng\\\"]],[28,[37,17],[[28,[37,11],[[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"rad\\\"]],0],null],\\\"*\\\",1],null],500,100,[30,0,[\\\"onRadiusChange\\\"]],[30,0,[\\\"onClickMap\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,14],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@placeholder\\\"],[[30,0,[\\\"onAddressChange\\\",\\\"isRunning\\\"]],[30,0,[\\\"addressSuggestions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No address found\\\"],null],[30,0,[\\\"setGoogleMapAddress\\\"]],[30,0,[\\\"onAddressChange\\\"]],400,\\\"address\\\",[30,0,[\\\"googleMapAddressFinder\\\"]],false,[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Search for an address\\\"],null]]],null],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,5],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"shared.task.Contract type\\\"],null],\\\"contractType\\\",true,[30,0,[\\\"contractType\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",[28,[37,5],[\\\"common.Start date\\\"],null],\\\"startDate\\\",[28,[37,18],[\\\"completionDate\\\"],null],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,5],[\\\"common.Completion date\\\"],null],\\\"completionDate\\\",[28,[37,18],[\\\"startDate\\\"],null],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"lastSuccessful\\\",\\\"value\\\"]],\\\"canUseWorkerJobAllocation\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"charge-out-rate-modal-button\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Charge-out rates\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,1,\\\"charge-out-rate-modal-button\\\"],[24,0,\\\"btn btn-primary align-self-start\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,23],[[28,[37,24],[[30,0,[\\\"workerAllocationModalVisible\\\"]]],null],true],null]],null],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Edit worker charge-out rates\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Default purchases account\\\"],null],[52,[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]],\\\"purchasesGlAccount\\\",\\\"defaultPurchasesGlAccount\\\"],[28,[37,18],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.purchasesGlAccountDescription\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No default account\\\"],null],true,[30,0,[\\\"accountingPlatform\\\",\\\"glAccountsSearchField\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,11],[[28,[37,12],[[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[8,[39,27],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]],[4,[38,22],[\\\"click\\\",[28,[37,23],[[30,0,[\\\"togglePurchasesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Default sales account\\\"],null],[52,[30,0,[\\\"salesGlAccountIsOverridden\\\"]],\\\"salesGlAccount\\\",\\\"defaultSalesGlAccount\\\"],[28,[37,18],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.salesGlAccountDescription\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No default account\\\"],null],true,[30,0,[\\\"accountingPlatform\\\",\\\"glAccountsSearchField\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,11],[[28,[37,12],[[30,0,[\\\"salesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[8,[39,27],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]],[4,[38,22],[\\\"click\\\",[28,[37,23],[[30,0,[\\\"toggleSalesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"salesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,28],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,19],[\\\"canUseXeroIntegration\\\"],null]],null],[[[41,[28,[37,28],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"AUS\\\"],null],[[[1,\\\"            \\\"],[8,[39,10],[[16,\\\"disabled\\\",[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@allowClear\\\",\\\"@searchField\\\",\\\"@afterOptionsComponent\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Xero tracking category\\\"],null],\\\"xeroTrackingOption\\\",[28,[37,18],[\\\"trackingOptionName\\\"],null],[30,0,[\\\"xeroTrackingOptions\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,true,\\\"trackingOptionName\\\",[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[28,[37,30],[[30,0,[\\\"syncXeroTrackingCategoryOptions\\\"]]],null],\\\"sync\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Reload Xero category options\\\"],null],[30,0,[\\\"syncXeroTrackingCategoryOptions\\\",\\\"isRunning\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Loading Xero tracking options\\\"],null]]]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.xeroProvidesTrackingCategoriesToTagLineItemsInXeroToAidReporting\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageProject\\\"]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"my-2\\\"],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Primary contact details\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Name\\\"],null],\\\"contactName\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Email\\\"],null],\\\"contactEmail\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Phone number\\\"],null],\\\"contactNumber\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Postal address\\\"],null],\\\"contactAddress\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageProject\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageProject\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"deleteProject\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]],null]],[24,\\\"data-test-project-settings-delete-or-archive-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[52,[30,0,[\\\"canDelete\\\"]],[28,[37,32],[[30,0],[28,[37,24],[[30,0,[\\\"isDeletingProject\\\"]]],null],true],null],[28,[37,32],[[30,0],[28,[37,24],[[30,0,[\\\"isArchivingProject\\\"]]],null],true],null]]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]],[30,0,[\\\"deleteProject\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"                    \\\"],[1,[28,[35,5],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"saveProject\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,5],[\\\"common.Save details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"        \\\"],[8,[39,8],[[24,0,\\\"width--large\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,33],null,[[\\\"@default\\\",\\\"@profitMargin\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"defaultPercentageValues\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"shared.profit-margins.profitMarginDescription\\\"],null],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageProfitMargin\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"saveProfitMargin\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,5],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,34],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"isDeletingProject\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null],[30,0,[\\\"deleteMessages\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.delete project\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,30],[[30,0,[\\\"deleteProject\\\"]]],null],[28,[37,23],[[28,[37,24],[[30,0,[\\\"isDeletingProject\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isArchivingProject\\\"]],[[[1,\\\"  \\\"],[8,[39,35],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,23],[[28,[37,24],[[30,0,[\\\"isArchivingProject\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,\\\"data-test-confirm-delete-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,\\\"data-test-project-settings-archive-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.youCannotDeleteThisProjectBecauseItHasCostsAssignedToIt\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.wouldYouLikeToArchiveTheProjectInstead\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Archiving project\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,23],[[28,[37,24],[[30,0,[\\\"isArchivingProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"archiveProject\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Archive project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"workerAllocationModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,39],null,[[\\\"@project\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,23],[[28,[37,24],[[30,0,[\\\"workerAllocationModalVisible\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"new-combo-box\\\",\\\"and\\\",\\\"google-map\\\",\\\"math\\\",\\\"array\\\",\\\"includes-feature-flags\\\",\\\"label\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"includes\\\",\\\"span\\\",\\\"input\\\",\\\"eq\\\",\\\"component\\\",\\\"perform\\\",\\\"h4\\\",\\\"action\\\",\\\"profit-margin-form\\\",\\\"confirm-delete\\\",\\\"modal-dialog\\\",\\\"h5\\\",\\\"p\\\",\\\"footer\\\",\\\"worker-project-allocation-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/stage-payments\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        <div class='flex-grow-1 d-flex justify-content-end align-items-center'>\n          <div class='flex-grow-1'>\n            <h2 class='m-0 my-2'>\n              {{t 'shared.stage-payments.Stage payments'}}\n            </h2>\n          </div>\n          <span class='me-1'>\n            <SelectInput\n              @value={{this.status}}\n              @action={{fn (mut this.status)}}\n              @class='form-control select-box'\n              @disabled={{this.pageIsLoading}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t\n                  'entity.builda-price.projects.project.stage-payments.All stages'\n                }}</si.option>\n              <si.option @value='CLAIMED'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Claimed stages'\n                }}</si.option>\n              <si.option @value='UNCLAIMED'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Unclaimed stages'\n                }}</si.option>\n            </SelectInput>\n          </span>\n          <div class='m-0 p-0 me-1'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white'\n              disabled={{or this.pageIsLoading this.downloadAsPdf.isRunning}}\n              {{on 'click' (fn (mut this.showDownloadOptions) true)}}\n            >\n              {{t 'common.Download'}}\n            </button>\n          </div>\n        </div>\n      </header>\n    {{/if}}\n    {{#if this.pageIsLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.isEditable}}\n        <div class='d-flex mb-3 justify-content-end align-items-center'>\n          <button\n            type='button'\n            class='btn btn-link text-primary text-decoration-underline me-2'\n            {{on 'click' (fn (mut this.showProjectLevelContractTermsModal) true)}}\n          >\n            {{t 'entity.builda-price.projects.project.stage-payments.Set notes'}}\n          </button>\n  \n          <div class='d-flex align-items-center'>\n            <DropdownButton\n              @buttonText={{if\n                this.addStagePayments.isRunning\n                (t 'common.Adding')\n                (t 'common.Add')\n              }}\n              @onPrimaryClick={{(perform this.addStagePayments 1)}}\n              @disabled={{this.pageIsLoading}}\n              @btnClass='btn btn-success'\n            >\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn (mut this.showCreateStagesModal) true)}}\n              >\n                {{t\n                  'entity.builda-price.projects.project.stage-payments.Add multiple'\n                }}\n              </button>\n            </DropdownButton>\n          </div>\n        </div>\n      {{/if}}\n  \n      {{#if this.model.stagePayments.lastSuccessful.value.length}}\n        <div class='d-flex flex-column flex-lg-row border card rounded mb-3'>\n          <div class='col-lg-4'>\n            <div class='card-body'>\n              <h5 class='card-title'>{{t 'common.Quote'}}</h5>\n              <p class='card-text'>\n                {{number-format\n                  this.model.stagePaymentsValues.lastSuccessful.value.quote\n                  style='currency'\n                }}\n              </p>\n            </div>\n          </div>\n          <div class='col-lg-4'>\n            <div class='card-body'>\n              <h5 class='card-title'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Stages allocated'\n                }}</h5>\n              <p class='card-text'>\n                {{number-format\n                  this.model.stagePaymentsValues.lastSuccessful.value.stagesValue\n                  style='currency'\n                }}\n              </p>\n            </div>\n          </div>\n          <div class='col-lg-4'>\n            <div class='card-body'>\n              <h5 class='card-title'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Remaining quote'\n                }}</h5>\n              <p class='card-text'>\n                {{number-format this.remainingQuote style='currency'}}\n              </p>\n            </div>\n          </div>\n        </div>\n  \n        <div class='mb-2'>\n          {{#if this.selectedStages.size}}\n            <button\n              class='btn btn-link text-danger text-decoration-underline'\n              type='button'\n              {{on 'click' (fn (mut this.showBulkDeleteStagesModal) true)}}\n              disabled={{or (not this.selectedStages.size) this.pageIsLoading}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-link text-primary text-decoration-underline'\n              {{on 'click' (fn (mut this.showBulkActionsModal) true)}}\n            >\n              {{t\n                'entity.builda-price.projects.project.stage-payments.Set value'\n              }}\n            </button>\n          {{else}}\n            <div style='min-height: 33.5px'></div>\n          {{/if}}\n        </div>\n        <div class='stage-payments__table-container'>\n          <PaginationTable\n            @tableHeader={{this.tableHeader}}\n            @tableData={{this.tableData}}\n            @onChangePageIndex={{this.onChangePage}}\n            @onChangePageSize={{this.onChangePageSize}}\n            @noDataText={{t 'common.No data'}}\n            @pageSizes={{this.model.pageSizes}}\n            @pageSize={{this.model.pageSize}}\n            @pageIndex={{this.model.pageNumber}}\n            @isLoading={{this.tableIsLoading}}\n            @totalRecords={{this.totalRecords}}\n          />\n        </div>\n      {{else}}\n        <div class='mt-5 d-flex flex-column align-items-center'>\n          <FaIcon @icon='coins' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t\n                'entity.builda-price.projects.project.stage-payments.thisProjectDoesNotHaveAnyStagesPaymentsYet'\n              }}\n            </b>\n          </p>\n          <button\n            class='btn btn btn-primary m-1'\n            type='button'\n            {{on 'click' (fn (mut this.showCreateStagesModal) true)}}\n          >\n            {{t\n              'entity.builda-price.projects.project.stage-payments.Create stages'\n            }}\n          </button>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  \n  {{#if this.showCreateStagesModal}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showCreateStagesModal) false}}\n    >\n      <div class='modal-body'>\n        <label class='mb-1' for='stages'>\n          {{t\n            'entity.builda-price.projects.project.stage-payments.Enter number of stages'\n          }}<sup class='text-danger'>*</sup>\n        </label>\n        <div class='input-group'>\n          <Input\n            class='form-control'\n            id='stages'\n            @type='number'\n            @value={{this.numberOfStages}}\n            step='1'\n            min='1'\n            disabled={{this.addStagePayments.isRunning}}\n            {{on 'input' this.preventNegative}}\n          />\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on\n            'click'\n            (pipe\n              (fn (mut this.showCreateStagesModal) false)\n              (fn (mut this.numberOfStages) null)\n            )\n          }}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary'\n          type='button'\n          {{on 'click' (perform this.addStagePayments this.numberOfStages)}}\n          disabled={{or\n            (not this.numberOfStages)\n            this.addStagePayments.isRunning\n          }}\n        >\n          {{#if this.addStagePayments.isRunning}}\n            {{t 'common.Creating'}}&hellip;\n          {{else}}\n            {{t 'common.Create'}}\n          {{/if}}\n        </button>\n  \n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showNameEditor}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showNameEditor) false}}\n    >\n      {{#let\n        (changeset this.currentStagePayment this.stagePaymentValidationMap)\n        as |stagePayment|\n      }}\n        <div class='modal-body'>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{stagePayment}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{or this.saveCurrentStage.isRunning (not this.isEditable)}}\n          />\n          <PtlInput\n            @type='number'\n            step='1'\n            min='1'\n            max={{this.totalRecords}}\n            @label={{t\n              'entity.builda-price.projects.project.stage-payments.Stage'\n            }}\n            @key='stageNumber'\n            @model={{stagePayment}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{or this.saveCurrentStage.isRunning (not this.isEditable)}}\n          />\n  \n          <PtlInput\n            @type='percentage'\n            @label={{t 'common.Retentions'}}\n            @key='retention'\n            placeholder='0.0%'\n            @model={{stagePayment}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{or this.saveCurrentStage.isRunning (not this.isEditable)}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n  \n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on 'click' (fn (mut this.showNameEditor) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          {{#if this.isEditable}}\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (perform this.saveCurrentStage stagePayment)}}\n              disabled={{this.saveCurrentStage.isRunning}}\n            >\n              {{#if this.saveCurrentStage.isRunning}}\n                {{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showValueEditor}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showValueEditor) false}}\n    >\n  \n      <div hidden {{did-insert (perform this.loadDataForValueModal)}} />\n  \n      {{#if this.loadData.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#let\n          (changeset this.currentStagePayment this.stagePaymentValidationMap)\n          as |stagePayment|\n        }}\n          <div class='modal-body'>\n            <PtlInput\n              @type='currency'\n              @label={{t 'common.Value'}}\n              @key='value'\n              @model={{stagePayment}}\n              @required={{true}}\n              placeholder='$0.00'\n              @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n              disabled={{this.saveCurrentStage.isRunning}}\n            />\n            <div class='d-flex align-items-center'>\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline'\n                disabled={{or\n                  (not this.model.project.last.value.currentQuoteVersion)\n                  (lt this.useValueFromTasks 1)\n                }}\n                {{on 'click' (perform this.setUseValueFromTasks stagePayment)}}\n              >\n                {{t\n                  'entity.builda-price.projects.project.stage-payments.Use tasks value'\n                }}\n              </button>\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline ms-2'\n                disabled={{or\n                  (not this.model.project.last.value.currentQuoteVersion)\n                  (not this.remainingQuoteValue)\n                }}\n                {{on 'click' (perform this.setRemainingQuoteValue stagePayment)}}\n              >\n                {{t\n                  'entity.builda-price.projects.project.stage-payments.Use remaining quote'\n                }}\n                {{number-format this.remainingQuote style='currency'}}\n              </button>\n            </div>\n          </div>\n          <div class='modal-footer'>\n            <button\n              class='btn btn-secondary'\n              type='button'\n              {{on 'click' (fn (mut this.showValueEditor) false)}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (perform this.saveCurrentStage stagePayment)}}\n              disabled={{this.saveCurrentStage.isRunning}}\n            >\n              {{#if this.saveCurrentStage.isRunning}}\n                {{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDateEditor}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showDateEditor) false}}\n    >\n      {{#let\n        (changeset this.currentStagePayment this.stagePaymentValidationMap)\n        as |stagePayment|\n      }}\n        <div class='modal-body'>\n          <PtlInput\n            @type='date'\n            @label={{t 'common.Due date'}}\n            @key='dueDate'\n            @model={{stagePayment}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{this.saveCurrentStage.isRunning}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on 'click' (fn (mut this.showDateEditor) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (perform this.saveCurrentStage stagePayment)}}\n            disabled={{this.saveCurrentStage.isRunning}}\n          >\n            {{#if this.saveCurrentStage.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showTaskSelectorModal}}\n    <StagePaymentTaskSelector\n      @project={{this.model.project.last.value}}\n      @currentStageLinkedTasks={{this.currentStageLinkedTasks}}\n      @allStageLinkedTasks={{this.allStageLinkedTasks}}\n      @stagePayment={{this.currentStagePayment}}\n      @onClose={{fn (mut this.showTaskSelectorModal) false}}\n      @editable={{and\n        this.isEditable\n        (not-eq this.currentStagePayment.status 'CLAIMED')\n      }}\n    />\n  {{/if}}\n  \n  {{#if this.showChecklistModal}}\n    <Checklist\n      @checklist={{this.currentChecklist}}\n      @editable={{and\n        this.isEditable\n        (not-eq this.currentStagePayment.status 'CLAIMED')\n      }}\n      @stagePayment={{this.currentStagePayment}}\n      @addNewQuestion={{this.addNewQuestion}}\n      @deleteQuestion={{this.deleteQuestion}}\n      @onClose={{fn (mut this.showChecklistModal) false}}\n    />\n  {{/if}}\n  \n  {{#if this.showBulkDeleteStagesModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.showBulkDeleteStagesModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.stage-payments.areYouSureYouWantToDeleteStage'\n            stage=(pluralize this.selectedStages.size 'stage')\n          }}\n        </p>\n      </div>\n      <div class='modal-footer'>\n        <button\n          class='btn btn-danger text-white'\n          type='button'\n          disabled={{this.deleteStages.isRunning}}\n          {{on 'click' (perform this.deleteStages)}}\n        >\n          {{#if this.deleteStages.isRunning}}\n            {{t 'common.Deleting'}}&hellip;\n          {{else}}\n            {{t 'common.Delete'}}\n          {{/if}}\n        </button>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{this.deleteStages.isRunning}}\n          {{on 'click' (fn (mut this.showBulkDeleteStagesModal) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showBulkActionsModal}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showBulkActionsModal) false}}\n    >\n      <div class='modal-body'>\n        <div class='mb-3'>\n          <label class='mb-1' for='value'>\n            {{t 'common.Value'}}\n          </label>\n          <div class='input-group'>\n            <FormattedInput\n              required={{true}}\n              @class='text-input w-100'\n              placeholder='$0.00'\n              @update={{action (mut this.bulkActionsStageValue)}}\n              @number={{this.bulkActionsStageValue}}\n              @format='currency'\n              disabled={{this.saveBulkActionDistributeValue.isRunning}}\n            />\n          </div>\n        </div>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-link text-decoration-underline'\n            {{on 'click' this.distributeRemainingQuoteAcrossStages}}\n          >\n            {{t 'entity.builda-price.projects.project.stage-payments.Use quote'}}\n            {{number-format\n              this.remainingQuoteValueInContextWithStages\n              style='currency'\n            }}\n          </button>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on\n            'click'\n            (pipe\n              (fn (mut this.showBulkActionsModal) false)\n              (fn (mut this.bulkActionsStageValue) 0)\n            )\n          }}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary'\n          type='button'\n          {{on 'click' (perform this.saveBulkActionDistributeValue)}}\n          disabled={{this.saveBulkActionDistributeValue.isRunning}}\n        >\n          {{#if this.saveBulkActionDistributeValue.isRunning}}\n            {{t 'common.Saving'}}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showProjectLevelContractTermsModal}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showProjectLevelContractTermsModal) false}}\n    >\n      {{#let\n        (changeset this.stagePaymentOption this.stagePaymentsOptionsValidationMap)\n        as |stagePaymentOptionsModel|\n      }}\n        <div class='modal-body'>\n          <PtlInput\n            @type='textarea'\n            @label={{t\n              'entity.builda-price.projects.project.stage-payments.Additional notes'\n            }}\n            @key='footerNotes'\n            @model={{stagePaymentOptionsModel}}\n            disabled={{this.saveStagePaymentOptions.isRunning}}\n            @forceValidationVisible={{gt\n              this.saveStagePaymentOptions.performCount\n              0\n            }}\n          />\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on\n              'click'\n              (fn (mut this.showProjectLevelContractTermsModal) false)\n            }}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on\n              'click'\n              (perform this.saveStagePaymentOptions stagePaymentOptionsModel)\n            }}\n            disabled={{this.saveStagePaymentOptions.isRunning}}\n          >\n            {{#if this.saveStagePaymentOptions.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDownloadOptions}}\n    <ModalDialog\n      @onClose={{this.closeDownloadOptions}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <div class='form-check mt-1'>\n          <label for='includeTasks' class='form-check-label'>\n            <input\n              type='checkbox'\n              id='includeTasks'\n              class='form-check-input'\n              disabled={{this.downloadAsPdf.isRunning}}\n              checked={{this.includeTasks}}\n              {{on 'click' (fn this.toggleProperty 'includeTasks')}}\n            />\n            {{t\n              'entity.builda-price.projects.project.stage-payments.Include tasks'\n            }}\n          </label>\n        </div>\n        <div class='form-check mt-1 mb-1'>\n          <label for='includeCheckListItems' class='form-check-label'>\n            <input\n              type='checkbox'\n              id='includeCheckListItems'\n              class='form-check-input'\n              disabled={{this.downloadAsPdf.isRunning}}\n              checked={{this.includeCheckListItems}}\n              {{on 'click' (fn this.toggleProperty 'includeCheckListItems')}}\n            />\n            {{t\n              'entity.builda-price.projects.project.stage-payments.Include checklist'\n            }}\n          </label>\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on 'click' this.closeDownloadOptions}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary'\n          type='button'\n          {{on 'click' (perform this.downloadAsPdf)}}\n          disabled={{this.downloadAsPdf.isRunning}}\n        >\n          {{#if this.downloadAsPdf.isRunning}}\n            {{t 'common.Downloading'}}&hellip;\n          {{else}}\n            {{t 'common.Download'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"HHtwgXsR\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 my-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"shared.stage-payments.Stage payments\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\",\\\"@disabled\\\"],[[30,0,[\\\"status\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\",[30,0,[\\\"pageIsLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.All stages\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLAIMED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Claimed stages\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"UNCLAIMED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Unclaimed stages\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"m-0 p-0 me-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"pageIsLoading\\\"]],[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showDownloadOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"pageIsLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,14],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex mb-3 justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline me-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showProjectLevelContractTermsModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Set notes\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\",\\\"@btnClass\\\"],[[52,[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]],[28,[37,6],[\\\"common.Adding\\\"],null],[28,[37,6],[\\\"common.Add\\\"],null]],[28,[37,16],[[30,0,[\\\"addStagePayments\\\"]],1],null],[30,0,[\\\"pageIsLoading\\\"]],\\\"btn btn-success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Add multiple\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"stagePayments\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row border card rounded mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title\\\"],[12],[1,[28,[35,6],[\\\"common.Quote\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"model\\\",\\\"stagePaymentsValues\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"quote\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Stages allocated\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"model\\\",\\\"stagePaymentsValues\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"stagesValue\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Remaining quote\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"remainingQuote\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedStages\\\",\\\"size\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"selectedStages\\\",\\\"size\\\"]]],null],[30,0,[\\\"pageIsLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkDeleteStagesModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkActionsModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Set value\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,5,\\\"min-height: 33.5px\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"stage-payments__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,21],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onChangePage\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[28,[37,6],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"tableIsLoading\\\"]],[30,0,[\\\"totalRecords\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,22],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"coins\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.thisProjectDoesNotHaveAnyStagesPaymentsYet\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Create stages\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCreateStagesModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"stages\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Enter number of stages\\\"],null]],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[24,0,\\\"form-control\\\"],[24,1,\\\"stages\\\"],[24,\\\"step\\\",\\\"1\\\"],[24,\\\"min\\\",\\\"1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]]],[4,[38,13],[\\\"input\\\",[30,0,[\\\"preventNegative\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"number\\\",[30,0,[\\\"numberOfStages\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,28],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],false],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"numberOfStages\\\"]]],null],null],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"numberOfStages\\\"]]],null],[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"addStagePayments\\\"]],[30,0,[\\\"numberOfStages\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showNameEditor\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showNameEditor\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,30],[[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"stagePaymentValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,31],[[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[28,[37,20],[[30,0,[\\\"isEditable\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,2],[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,31],[[24,\\\"step\\\",\\\"1\\\"],[24,\\\"min\\\",\\\"1\\\"],[16,\\\"max\\\",[30,0,[\\\"totalRecords\\\"]]],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[28,[37,20],[[30,0,[\\\"isEditable\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.stage-payments.Stage\\\"],null],\\\"stageNumber\\\",[30,2],true,[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,31],[[24,\\\"placeholder\\\",\\\"0.0%\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[28,[37,20],[[30,0,[\\\"isEditable\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,6],[\\\"common.Retentions\\\"],null],\\\"retention\\\",[30,2],[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showNameEditor\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveCurrentStage\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showValueEditor\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showValueEditor\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,33],[[28,[37,16],[[30,0,[\\\"loadDataForValueModal\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"loadData\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,14],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[44,[[28,[37,30],[[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"stagePaymentValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,31],[[24,\\\"placeholder\\\",\\\"$0.00\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Value\\\"],null],\\\"value\\\",[30,3],true,[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]]],null],[28,[37,34],[[30,0,[\\\"useValueFromTasks\\\"]],1],null]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"setUseValueFromTasks\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Use tasks value\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline ms-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]]],null],[28,[37,20],[[30,0,[\\\"remainingQuoteValue\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"setRemainingQuoteValue\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Use remaining quote\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"remainingQuote\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showValueEditor\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveCurrentStage\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDateEditor\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showDateEditor\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,30],[[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"stagePaymentValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,31],[[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,4],[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showDateEditor\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveCurrentStage\\\"]],[30,4]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[4]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showTaskSelectorModal\\\"]],[[[1,\\\"  \\\"],[8,[39,35],null,[[\\\"@project\\\",\\\"@currentStageLinkedTasks\\\",\\\"@allStageLinkedTasks\\\",\\\"@stagePayment\\\",\\\"@onClose\\\",\\\"@editable\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"currentStageLinkedTasks\\\"]],[30,0,[\\\"allStageLinkedTasks\\\"]],[30,0,[\\\"currentStagePayment\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showTaskSelectorModal\\\"]]],null],false],null],[28,[37,36],[[30,0,[\\\"isEditable\\\"]],[28,[37,37],[[30,0,[\\\"currentStagePayment\\\",\\\"status\\\"]],\\\"CLAIMED\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showChecklistModal\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@checklist\\\",\\\"@editable\\\",\\\"@stagePayment\\\",\\\"@addNewQuestion\\\",\\\"@deleteQuestion\\\",\\\"@onClose\\\"],[[30,0,[\\\"currentChecklist\\\"]],[28,[37,36],[[30,0,[\\\"isEditable\\\"]],[28,[37,37],[[30,0,[\\\"currentStagePayment\\\",\\\"status\\\"]],\\\"CLAIMED\\\"],null]],null],[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"addNewQuestion\\\"]],[30,0,[\\\"deleteQuestion\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showChecklistModal\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBulkDeleteStagesModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkDeleteStagesModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.areYouSureYouWantToDeleteStage\\\"],[[\\\"stage\\\"],[[28,[37,39],[[30,0,[\\\"selectedStages\\\",\\\"size\\\"]],\\\"stage\\\"],null]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteStages\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"deleteStages\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteStages\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteStages\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkDeleteStagesModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBulkActionsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkActionsModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"value\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Value\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,40],[[16,\\\"required\\\",true],[24,\\\"placeholder\\\",\\\"$0.00\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBulkActionDistributeValue\\\",\\\"isRunning\\\"]]]],[[\\\"@class\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\"],[\\\"text-input w-100\\\",[28,[37,41],[[30,0],[28,[37,10],[[30,0,[\\\"bulkActionsStageValue\\\"]]],null]],null],[30,0,[\\\"bulkActionsStageValue\\\"]],\\\"currency\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"distributeRemainingQuoteAcrossStages\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Use quote\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,19],[[30,0,[\\\"remainingQuoteValueInContextWithStages\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,28],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkActionsModal\\\"]]],null],false],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"bulkActionsStageValue\\\"]]],null],0],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBulkActionDistributeValue\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveBulkActionDistributeValue\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBulkActionDistributeValue\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showProjectLevelContractTermsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showProjectLevelContractTermsModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,30],[[30,0,[\\\"stagePaymentOption\\\"]],[30,0,[\\\"stagePaymentsOptionsValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,31],[[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.stage-payments.Additional notes\\\"],null],\\\"footerNotes\\\",[30,5],[28,[37,32],[[30,0,[\\\"saveStagePaymentOptions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showProjectLevelContractTermsModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveStagePaymentOptions\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"closeDownloadOptions\\\"]],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-check mt-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeTasks\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,1,\\\"includeTasks\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeTasks\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeTasks\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Include tasks\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-check mt-1 mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeCheckListItems\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,1,\\\"includeCheckListItems\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeCheckListItems\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeCheckListItems\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Include checklist\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeDownloadOptions\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"stagePayment\\\",\\\"stagePayment\\\",\\\"stagePayment\\\",\\\"stagePaymentOptionsModel\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"media\\\",\\\"header\\\",\\\"div\\\",\\\"h2\\\",\\\"t\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"button\\\",\\\"or\\\",\\\"on\\\",\\\"loading-icon\\\",\\\"dropdown-button\\\",\\\"perform\\\",\\\"h5\\\",\\\"p\\\",\\\"number-format\\\",\\\"not\\\",\\\"pagination-table\\\",\\\"fa-icon\\\",\\\"b\\\",\\\"modal-dialog\\\",\\\"label\\\",\\\"sup\\\",\\\"input\\\",\\\"pipe\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"did-insert\\\",\\\"lt\\\",\\\"stage-payment-task-selector\\\",\\\"and\\\",\\\"not-eq\\\",\\\"checklist\\\",\\\"pluralize\\\",\\\"formatted-input\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/stage-payments.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"X4KuA/i+\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Tasks')}}\n    />\n  {{/unless}}\n  \n  <article class='m-4'>\n    <header class='border-bottom pb-2 mb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Tasks'}}</h2>\n      {{/if}}\n      {{#unless this.isLoading}}\n        <div class='d-md-flex align-items-center'>\n          {{#if this.canManageTasks}}\n            {{#if (includes-feature-flags 'entityCanUseCsvTaskFileUploader')}}\n              <button\n                type='button'\n                class='btn btn-secondary text-white text-nowrap m-1'\n                disabled={{this.onLoadTaskTemplate.isRunning}}\n                {{on 'click' (fn (mut this.addingTasksFromTakeoff) true)}}\n              >\n                <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n                  'shared.task.Add tasks from a file'\n                }}\n              </button>\n            {{/if}}\n  \n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              disabled={{this.onLoadTaskTemplate.isRunning}}\n              {{on 'click' (fn (mut this.addingTaskFromTemplate) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n                'shared.task.Add tasks from template'\n              }}\n            </button>\n          {{/if}}\n        </div>\n      {{/unless}}\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.taskList.length}}\n        <DragSortList\n          class='d-flex flex-column'\n          @onUpdate={{perform this.onTaskListUpdate}}\n          @itemComponent={{component\n            'nested-task-card'\n            saveNewTask=this.saveNewTask\n            readOnly=(not this.canManageTasks)\n            disableActions=this.onTaskListUpdate.isRunning\n          }}\n          @list={{this.taskList}}\n          {{! to update the order of the tasks you need to see all the tasks }}\n          @disableDragging={{not this.canManageTasks}}\n        />\n        {{#if this.canManageTasks}}\n          <NestedTaskCard::AddTask\n            @saveNewTask={{perform this.saveNewTask}}\n            @disabled={{or this.saveNewTask.isRunning (not this.canManageTasks)}}\n            @autofocus={{true}}\n            @placeholder={{t 'shared.task.Add task'}}\n            data-test-add-parent-task\n          />\n        {{/if}}\n      {{else}}\n        <div class='p-3 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{if\n                this.canManageTasks\n                (t\n                  'entity.builda-price.projects.project.tasks.youHaveNotCreatedAnyTasksYet'\n                )\n                (t\n                  'entity.builda-price.projects.project.tasks.There are no tasks'\n                )\n              }}\n            </b>\n          </p>\n          {{#if this.canManageTasks}}\n            <p class='mt-0 mb-3'>\n              {{t\n                'entity.builda-price.projects.project.tasks.Create your first task to get started'\n              }}\n            </p>\n            <div class='d-flex'>\n              <Input\n                aria-label='New task name'\n                placeholder={{t\n                  'entity.builda-price.projects.project.tasks.Task name'\n                }}\n                class='form-control me-2'\n                @type='text'\n                {{on 'keypress' this.onTaskNameInputKeypress}}\n                @value={{this.firstTaskName}}\n              />\n              <button\n                type='button'\n                class='btn btn-primary text-nowrap'\n                disabled={{not this.firstTaskName}}\n                {{on\n                  'click'\n                  (perform this.saveNewTask this.firstTaskName undefined)\n                }}\n              >\n                {{t 'shared.task.Add task'}}\n              </button>\n            </div>\n          {{/if}}\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  \n  {{#if this.addingTasksFromTakeoff}}\n    <TakeoffUploaderModal\n      @project={{this.model.project.last.value}}\n      @onLoadTakeoff={{perform this.onLoadTakeoff}}\n      @onClose={{fn (mut this.addingTasksFromTakeoff) false}}\n    />\n  {{/if}}\n  {{#if this.addingTaskFromTemplate}}\n    <TaskTemplateModal\n      @onLoadTaskTemplate={{perform this.onLoadTaskTemplate}}\n      @parentTasks={{this.parentTasks}}\n      @onClose={{fn (mut this.addingTaskFromTemplate) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"hSZelLo/\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Tasks\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Tasks\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-md-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTasks\\\"]],[[[41,[28,[37,10],[\\\"entityCanUseCsvTaskFileUploader\\\"],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onLoadTaskTemplate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTasksFromTakeoff\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.task.Add tasks from a file\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onLoadTaskTemplate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.task.Add tasks from template\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"taskList\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[39,17],[[24,0,\\\"d-flex flex-column\\\"]],[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\",\\\"@disableDragging\\\"],[[28,[37,18],[[30,0,[\\\"onTaskListUpdate\\\"]]],null],[50,\\\"nested-task-card\\\",0,null,[[\\\"saveNewTask\\\",\\\"readOnly\\\",\\\"disableActions\\\"],[[30,0,[\\\"saveNewTask\\\"]],[28,[37,19],[[30,0,[\\\"canManageTasks\\\"]]],null],[30,0,[\\\"onTaskListUpdate\\\",\\\"isRunning\\\"]]]]],[30,0,[\\\"taskList\\\"]],[28,[37,19],[[30,0,[\\\"canManageTasks\\\"]]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTasks\\\"]],[[[1,\\\"        \\\"],[8,[39,20],[[24,\\\"data-test-add-parent-task\\\",\\\"\\\"]],[[\\\"@saveNewTask\\\",\\\"@disabled\\\",\\\"@autofocus\\\",\\\"@placeholder\\\"],[[28,[37,18],[[30,0,[\\\"saveNewTask\\\"]]],null],[28,[37,21],[[30,0,[\\\"saveNewTask\\\",\\\"isRunning\\\"]],[28,[37,19],[[30,0,[\\\"canManageTasks\\\"]]],null]],null],true,[28,[37,4],[\\\"shared.task.Add task\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,0,[\\\"canManageTasks\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.youHaveNotCreatedAnyTasksYet\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.There are no tasks\\\"],null]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTasks\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"mt-0 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.Create your first task to get started\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,24],[[24,\\\"aria-label\\\",\\\"New task name\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.Task name\\\"],null]],[24,0,\\\"form-control me-2\\\"],[4,[38,12],[\\\"keypress\\\",[30,0,[\\\"onTaskNameInputKeypress\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"firstTaskName\\\"]]]],null],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-nowrap\\\"],[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"firstTaskName\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"saveNewTask\\\"]],[30,0,[\\\"firstTaskName\\\"]],[27]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.task.Add task\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"addingTasksFromTakeoff\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@project\\\",\\\"@onLoadTakeoff\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,18],[[30,0,[\\\"onLoadTakeoff\\\"]]],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTasksFromTakeoff\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"addingTaskFromTemplate\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onLoadTaskTemplate\\\",\\\"@parentTasks\\\",\\\"@onClose\\\"],[[28,[37,18],[[30,0,[\\\"onLoadTaskTemplate\\\"]]],null],[30,0,[\\\"parentTasks\\\"]],[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"not\\\",\\\"nested-task-card/add-task\\\",\\\"or\\\",\\\"p\\\",\\\"b\\\",\\\"input\\\",\\\"takeoff-uploader-modal\\\",\\\"task-template-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Task')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.projects.project.tasks'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    {{#unless this.model.task.isRunning}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      {{#if (media 'isDesktop')}}\n        <header class='border-bottom align-items-center mb-3'>\n          <h2 class='my-2'>{{this.model.task.last.value.name}}</h2>\n        </header>\n      {{/if}}\n      <ContentTabs @tabs={{this.tabs}} />\n      {{outlet}}\n    {{else}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{/unless}}\n  </article>\n  */\n  {\n    \"id\": \"QAsCbnlT\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Task\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.projects.project.tasks\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"task\\\",\\\"isRunning\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom align-items-center mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@tabs\\\"],[[30,0,[\\\"tabs\\\"]]]],null],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"if\\\",\\\"header\\\",\\\"h2\\\",\\\"content-tabs\\\",\\\"-outlet\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/documents\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mt-3'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='card width--large'>\n        <DragAndDropContainer\n          @parent={{this.task}}\n          @onUploadComplete={{this.onUploadComplete}}\n          @isDragAndDropVisible={{this.isEditable}}\n        >\n          <AttachmentTable\n            @attachments={{this.attachments}}\n            @parent={{this.task}}\n            @project={{this.project}}\n            @users={{this.model.users.last.value}}\n          />\n        </DragAndDropContainer>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"1MXYMu/j\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"card width--large\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"task\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"isEditable\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@attachments\\\",\\\"@parent\\\",\\\"@project\\\",\\\"@users\\\"],[[30,0,[\\\"attachments\\\"]],[30,0,[\\\"task\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"drag-and-drop-container\\\",\\\"attachment-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/documents.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mt-3 d-flex flex-column align-items-start'>\n      {{#if\n        (and\n          this.hasBothDraftBudgetAndQuoteChanges\n          this.canManageProjectBudgetAndQuote\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.financials.thisBudgetAndQuoteHaveBeenModifiedToApplyTheseChangesToTheProject'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'shared.financial.Create a version'\n            }}</LinkTo>.\n        </div>\n      {{else if (and this.hasDraftBudgetChanges this.canManageProjectBudget)}}\n        <div class='alert alert-primary' role='alert'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.financials.thisBudgetHasBeenModifiedToApplyTheseChangesToTheProjectBudget'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'entity.builda-price.projects.project.tasks.task.financials.create a project budget version'\n            }}</LinkTo>.\n        </div>\n      {{else if (and this.hasDraftQuoteChanges this.canManageProjectQuote)}}\n        <div class='alert alert-primary' role='alert'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.financials.thisQuoteHasBeenModifiedToApplyTheseChangesToTheProjectQuote'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'entity.builda-price.projects.project.tasks.task.financials.create a project quote version'\n            }}</LinkTo>.\n        </div>\n      {{/if}}\n  \n      <div class='d-flex flex-row align-items-start flex-wrap'>\n        {{#if this.canViewBudget}}\n          <div class='border rounded p-4 d-flex flex-column mb-4 me-4'>\n            <h2>{{t 'common.Budget'}}</h2>\n            {{#if this.model.loadBudget.isRunning}}\n              <LoadingIcon @type='ripple' />\n            {{else}}\n              {{#if this.hasBudget}}\n                <table class='table'>\n                  <thead>\n                    <tr>\n                      <th></th>\n                      <th class='text-right'>{{t 'common.This task'}}</th>\n                      <th class='text-right text-muted'>{{t\n                          'common.Subtasks'\n                        }}</th>\n                      <th class='text-right'>{{t 'common.Total'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    <tr>\n                      <th>{{t 'common.Labour hours'}}</th>\n                      <td class='text-right'>\n                        <FormatDurationWithUnit\n                          @value={{this.task.draftBudgetManHours}}\n                          @suffix={{' hrs'}}\n                          @emptyPlaceholder='–'\n                        />\n                      </td>\n                      <td class='text-right text-muted'>\n                        <FormatDurationWithUnit\n                          @value={{this.task.childrenDraftBudgetManHours}}\n                          @suffix={{' hrs'}}\n                          @emptyPlaceholder='–'\n                        />\n                      </td>\n                      <td class='text-right'>\n                        <FormatDurationWithUnit\n                          @value={{this.task.totalDraftBudgetManHours}}\n                          @suffix={{' hrs'}}\n                          @emptyPlaceholder='–'\n                        />\n                      </td>\n                    </tr>\n                    <tr>\n                      <td colspan='4'>&nbsp;</td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Labour'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Materials'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Subcontractors'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Sums'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tbody>\n                  <tfoot>\n                    <tr>\n                      <th></th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalDraftBudgetCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.totalDraftChildrenBudgetCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalTotalDraftBudgetCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tfoot>\n                </table>\n                {{#if this.canManageBudget}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateBudgetForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Update budget'\n                    }}\n                  </button>\n                {{/if}}\n              {{else}}\n                <p class='m-0 mb-3'>\n                  {{if\n                    this.canManageBudget\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.createABudgetForThisTaskToCompareYourCostsAgainst'\n                    )\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.There is no budget for this task'\n                    )\n                  }}\n                </p>\n                {{#if this.canManageBudget}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateBudgetForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Create a budget'\n                    }}\n                  </button>\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        {{#if this.canViewQuote}}\n          <div class='border rounded p-4 d-flex flex-column mb-4'>\n            <h2>{{t 'common.Quote'}}</h2>\n            {{#if this.model.loadQuote.isRunning}}\n              <LoadingIcon @type='ripple' />\n            {{else}}\n              {{#if this.hasQuote}}\n                <table class='table'>\n                  <thead>\n                    <tr>\n                      <th></th>\n                      <th class='text-right'>{{t 'common.This task'}}</th>\n                      <th class='text-right text-muted'>{{t\n                          'common.Subtasks'\n                        }}</th>\n                      <th class='text-right'>{{t 'common.Total'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    <tr>\n                      <th>{{t 'common.Labour'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Materials'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Subcontractors'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Sums'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tbody>\n                  <tfoot>\n                    <tr>\n                      <th></th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalDraftQuoteCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.totalDraftChildrenQuoteCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalTotalDraftQuoteCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tfoot>\n                </table>\n  \n                {{#if this.canManageQuote}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateQuoteForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Update quote'\n                    }}\n                  </button>\n                {{/if}}\n              {{else}}\n                <p class='m-0 mb-3'>\n                  {{if\n                    this.canManageQuote\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.createAQuoteForThisTaskToCompareYourCostsAgainst'\n                    )\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.There is no quote for this task'\n                    )\n                  }}\n                </p>\n                {{#if this.canManageQuote}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateQuoteForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Create a quote'\n                    }}\n                  </button>\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    </div>\n  {{/if}}\n  \n  {{#if this.updateBudgetData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.updateBudgetData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      {{#let\n        (changeset this.updateBudgetData this.budgetValidationMap)\n        as |budgetModel|\n      }}\n        <div class='modal-body'>\n          <label class='mb-1' for='manHours'>\n            {{t 'common.Labour hours'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='duration'\n                @key='manHours'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'manHours'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    <FormatDurationWithUnit\n                      @value={{this.task.childrenDraftBudgetManHours}}\n                      @suffix={{' hrs'}}\n                      @emptyPlaceholder='–'\n                    />\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    <FormatDurationWithUnit\n                      @value={{budgetModel.manHoursTotal}}\n                      @suffix={{' hrs'}}\n                      @emptyPlaceholder='–'\n                    />\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='labour'>\n            {{t 'common.Labour'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='labour'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'labour'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetLabour\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.labourTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='materials'>\n            {{t 'common.Materials'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1 mb-3'>\n              <PtlInput\n                @type='currency'\n                @key='materials'\n                @containerClass='mb-0'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'materials'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n              {{#if this.totalProductCurrency}}\n                <div\n                  {{on\n                    'click'\n                    (fn this.setMaterialBudgetFromProducts budgetModel)\n                  }}\n                  type='button'\n                  class='form-text btn-link'\n                >{{t\n                    'entity.builda-price.projects.project.tasks.task.financials.Use total from products'\n                  }}:\n                  {{number-format\n                    this.totalProductCurrency\n                    style='currency'\n                    dashZero=true\n                  }}\n                </div>\n              {{/if}}\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetMaterials\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.materialsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='subcontractors'>\n            {{t 'common.Subcontractors'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='subcontractors'\n                @model={{budgetModel}}\n                @onChange={{fn\n                  this.budgetValueChanged\n                  budgetModel\n                  'subcontractors'\n                }}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetSubcontractors\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.subcontractorsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='sums'>\n            {{t 'common.Sums'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='sums'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'sums'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetSums\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.sumsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Total }}\n          {{#if (media 'isDesktop')}}\n            <div class='d-flex justify-content-end mt-4'>\n              <div>\n                <div\n                  style='min-width: 90px; display: block;'\n                  class='input-group-text text-muted text-end'\n                >\n                  {{number-format\n                    budgetModel.total\n                    style='currency'\n                    dashZero=true\n                  }}\n                </div>\n                <div class='form-text text-muted'>{{t\n                    'entity.builda-price.projects.project.tasks.task.financials.Total budget'\n                  }}</div>\n              </div>\n            </div>\n          {{/if}}\n        </div>\n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white'\n            {{on 'click' (fn (mut this.updateBudgetData) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' (perform this.updateBudget budgetModel)}}\n            disabled={{budgetModel.isPristine}}\n          >\n            {{#if this.updateBudget.isRunning}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Updating budget'\n              }}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Update budget'\n              }}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.updateQuoteData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.updateQuoteData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      {{#let\n        (changeset this.updateQuoteData this.quoteValidationMap)\n        as |quoteModel|\n      }}\n        <div class='modal-body'>\n          {{! Labour }}\n          <label class='mb-1' for='labourPercentage'>\n            {{t 'common.Labour'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetLabour}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='labourPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetLabour}}\n                  @onChange={{fn this.profitMarginChanged quoteModel 'labour'}}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.labourPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.labourPercentage.value\n                    (concat\n                      'Default '\n                      (number-format\n                        this.task.effectiveProfitMargin.labourPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='labour'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn this.quoteValueChanged quoteModel 'labour'}}\n                @description={{if\n                  this.task.draftBudgetLabour\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetLabour style='currency' dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no labour budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteLabour\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.labourTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Materials }}\n          <label class='mb-1' for='materialsPercentage'>\n            {{t 'common.Materials'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetMaterials}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='materialsPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetMaterials}}\n                  @onChange={{fn this.profitMarginChanged quoteModel 'materials'}}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.materialsPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.materialsPercentage.value\n                    (concat\n                      (t 'common.Default')\n                      ' '\n                      (number-format\n                        this.task.effectiveProfitMargin.materialsPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='materials'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn this.quoteValueChanged quoteModel 'materials'}}\n                @description={{if\n                  this.task.draftBudgetMaterials\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetMaterials\n                      style='currency'\n                      dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no materials budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteMaterials\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.materialsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Subcontractors }}\n          <label class='mb-1' for='subcontractorsPercentage'>\n            {{t 'common.Subcontractors'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetSubcontractors}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='subcontractorsPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetSubcontractors}}\n                  @onChange={{fn\n                    this.profitMarginChanged\n                    quoteModel\n                    'subcontractors'\n                  }}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.subcontractorsPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.subcontractorsPercentage.value\n                    (concat\n                      (t 'common.Default')\n                      ' '\n                      (number-format\n                        this.task.effectiveProfitMargin.subcontractorsPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='subcontractors'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn\n                  this.quoteValueChanged\n                  quoteModel\n                  'subcontractors'\n                }}\n                @description={{if\n                  this.task.draftBudgetSubcontractors\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetSubcontractors\n                      style='currency'\n                      dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no subcontractors budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteSubcontractors\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n  \n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.subcontractorsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Sums }}\n          <label class='mb-1' for='sumsPercentage'>\n            {{t 'common.Sums'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetSums}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='sumsPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetSums}}\n                  @onChange={{fn this.profitMarginChanged quoteModel 'sums'}}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.sumsPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.sumsPercentage.value\n                    (concat\n                      (t 'common.Default')\n                      ' '\n                      (number-format\n                        this.task.effectiveProfitMargin.sumsPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='sums'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn this.quoteValueChanged quoteModel 'sums'}}\n                @description={{if\n                  this.task.draftBudgetSums\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetSums style='currency' dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no sums budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1' style='margin-left: auto;'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteSums\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1' style='margin-left: auto;'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.sumsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Total }}\n          {{#if (media 'isDesktop')}}\n            <div class='d-flex justify-content-end mt-4'>\n              <div>\n                <div\n                  style='min-width: 90px; display: block;'\n                  class='input-group-text text-muted text-end'\n                >\n                  {{number-format\n                    quoteModel.total\n                    style='currency'\n                    dashZero=true\n                  }}\n                </div>\n                <div class='form-text text-muted'>{{t\n                    'shared.financial.Total quote'\n                  }}</div>\n              </div>\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white'\n            {{on 'click' (fn (mut this.updateQuoteData) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          {{!TODO add pristine state for quote modal}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' (perform this.updateQuote quoteModel)}}\n          >\n            {{#if this.updateQuote.isRunning}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Updating quote'\n              }}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Update quote'\n              }}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"1rja9nXW\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mt-3 d-flex flex-column align-items-start\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"hasBothDraftBudgetAndQuoteChanges\\\"]],[30,0,[\\\"canManageProjectBudgetAndQuote\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.thisBudgetAndQuoteHaveBeenModifiedToApplyTheseChangesToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"shared.financial.Create a version\\\"],null]]],[]]]]],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,0,[\\\"hasDraftBudgetChanges\\\"]],[30,0,[\\\"canManageProjectBudget\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.thisBudgetHasBeenModifiedToApplyTheseChangesToTheProjectBudget\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.create a project budget version\\\"],null]]],[]]]]],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,0,[\\\"hasDraftQuoteChanges\\\"]],[30,0,[\\\"canManageProjectQuote\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.thisQuoteHasBeenModifiedToApplyTheseChangesToTheProjectQuote\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.create a project quote version\\\"],null]]],[]]]]],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-row align-items-start flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewBudget\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4 me-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.Budget\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadBudget\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[8,[39,1],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasBudget\\\"]],[[[1,\\\"              \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.This task\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"draftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftBudgetCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftChildrenBudgetCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalTotalDraftBudgetCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageBudget\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateBudgetForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update budget\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[52,[30,0,[\\\"canManageBudget\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.createABudgetForThisTaskToCompareYourCostsAgainst\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no budget for this task\\\"],null]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageBudget\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateBudgetForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Create a budget\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewQuote\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.Quote\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadQuote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[8,[39,1],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasQuote\\\"]],[[[1,\\\"              \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.This task\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftQuoteCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftChildrenQuoteCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalTotalDraftQuoteCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageQuote\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateQuoteForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update quote\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[52,[30,0,[\\\"canManageQuote\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.createAQuoteForThisTaskToCompareYourCostsAgainst\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no quote for this task\\\"],null]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageQuote\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateQuoteForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Create a quote\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateBudgetData\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateBudgetData\\\"]]],null],null],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,23],[[30,0,[\\\"updateBudgetData\\\"]],[30,0,[\\\"budgetValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"manHours\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour hours\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"duration\\\",\\\"manHours\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"manHours\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,1,[\\\"manHoursTotal\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"labour\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"labour\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"labour\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"labourTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"materials\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"materials\\\",\\\"mb-0\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"materials\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalProductCurrency\\\"]],[[[1,\\\"              \\\"],[11,0],[24,0,\\\"form-text btn-link\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"setMaterialBudgetFromProducts\\\"]],[30,1]],null]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Use total from products\\\"],null]],[1,\\\":\\\\n                \\\"],[1,[28,[35,14],[[30,0,[\\\"totalProductCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"materialsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"subcontractors\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"subcontractors\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"subcontractors\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"subcontractorsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sums\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"sums\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"sums\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"sumsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex justify-content-end mt-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],[[30,1,[\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Total budget\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateBudgetData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,1,[\\\"isPristine\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"updateBudget\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Updating budget\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update budget\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateQuoteData\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateQuoteData\\\"]]],null],null],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,23],[[30,0,[\\\"updateQuoteData\\\"]],[30,0,[\\\"quoteValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"labourPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"labourPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"labour\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]],[28,[37,31],[\\\"Default \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"labour\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"labour\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no labour budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"labourTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"materialsPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"materialsPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"materials\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"value\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Default\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"materials\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"materials\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no materials budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"materialsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"subcontractorsPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"subcontractorsPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"subcontractors\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"value\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Default\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"subcontractors\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"subcontractors\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no subcontractors budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"subcontractorsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sumsPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"sumsPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"sums\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"value\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Default\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"sums\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"sums\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no sums budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[14,5,\\\"margin-left: auto;\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[14,5,\\\"margin-left: auto;\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"sumsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex justify-content-end mt-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],[[30,2,[\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"shared.financial.Total quote\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateQuoteData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"updateQuote\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Updating quote\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update quote\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"budgetModel\\\",\\\"quoteModel\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"and\\\",\\\"t\\\",\\\"link-to\\\",\\\"h2\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"format-duration-with-unit\\\",\\\"number-format\\\",\\\"tfoot\\\",\\\"button\\\",\\\"on\\\",\\\"p\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"let\\\",\\\"changeset\\\",\\\"label\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"media\\\",\\\"perform\\\",\\\"not\\\",\\\"profit-type-label\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.model.task.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='d-flex mt-3 width--large'>\n      <ul class='list-group' style='min-width: 200px;'>\n        {{#each this.tabs as |tab|}}\n          <LinkTo\n            @route={{tab.route}}\n            draggable={{false}}\n            class='list-group-item'\n          >\n            <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n            {{tab.name}}\n          </LinkTo>\n        {{/each}}\n      </ul>\n      <div class='flex-grow-1 ms-3'>\n        {{outlet}}\n      </div>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"k8g6q3wt\",\n    \"block\": \"[[[41,[30,0,[\\\"model\\\",\\\"task\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,6],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"tab\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"+ouxlBCj\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.client.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.clients.client'\n            @model={{this.model.client.last.value.id}}\n          >\n            {{t 'shared.people-editor.clients.client.View client details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from task')\n                  (t 'shared.people-editor.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from task')\n                  (t 'shared.people-editor.Remove from task')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.tasks.task.people.clients.client.clientTaskPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.taskPermissionsVisible)\n                (not this.taskPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Task'}}\n            </h4>\n            {{#if this.taskPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.taskPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.taskPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.taskPermissionsVisible}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task budget'}}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task quote'}}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task progress'}}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllTaskDocumentsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseClientReports}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewClientReportsLabel'\n                }}\n                @key='canViewClientReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewClientReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewClientReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewClientReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewClientReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewClientReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"lvjbXZvD\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.clients.client\\\",[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.clients.client.View client details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Remove from task\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.client.clientTaskPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"taskPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"taskPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task budget\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task quote\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task progress\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllTaskDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseClientReports\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewClientReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsLabel\\\"],null],\\\"canViewClientReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewClientReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewClientReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewClientReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingClientToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingClientToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingClientToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.clients.Add client to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.clients.addClientsToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedClients}}\n          @selected={{this.clientToAddToTask}}\n          @onChange={{fn (mut this.clientToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.clients.Find a client'}}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.clients'\n          @model={{this.model.project.last.value.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.clients.doNotSeeTheClientAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addClientToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingClientToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.clientToAddToTask)\n            this.addClientToTask.isRunning\n          }}\n          {{on 'click' (perform this.addClientToTask)}}\n        >\n          {{#if this.addClientToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"2zSP9Lr1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingClientToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.Add client to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.addClientsToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedClients\\\"]],[30,0,[\\\"clientToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"clientToAddToTask\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.clients.Find a client\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.clients\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.doNotSeeTheClientAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addClientToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"clientToAddToTask\\\"]]],null],[30,0,[\\\"addClientToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addClientToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addClientToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"Vk+x8x2j\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingSubcontractorToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingSubcontractorToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingSubcontractorToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.subcontractors.Add subcontractor to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.subcontractors.addSubcontractorToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedSubcontractors}}\n          @selected={{this.subcontractorToAddToTask}}\n          @onChange={{fn (mut this.subcontractorToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t\n            'shared.people-editor.subcontractors.Find a subcontractor'\n          }}\n          @allowClear={{true}}\n          as |subcontractor|\n        >\n          {{subcontractor.firstName}}\n          {{subcontractor.lastName}}\n          ({{subcontractor.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.subcontractors'\n          @model={{this.model.project.last.value.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addSubcontractorToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingSubcontractorToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.subcontractorToAddToTask)\n            this.addSubcontractorToTask.isRunning\n          }}\n          {{on 'click' (perform this.addSubcontractorToTask)}}\n        >\n          {{#if this.addSubcontractorToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"v+fHHSrx\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingSubcontractorToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.Add subcontractor to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.addSubcontractorToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedSubcontractors\\\"]],[30,0,[\\\"subcontractorToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"subcontractorToAddToTask\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Find a subcontractor\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.subcontractors\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addSubcontractorToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"subcontractorToAddToTask\\\"]]],null],[30,0,[\\\"addSubcontractorToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addSubcontractorToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addSubcontractorToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"subcontractor\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.subcontractor.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.subcontractors.subcontractor'\n            @model={{this.model.subcontractor.last.value.id}}\n          >\n            {{t\n              'shared.people-editor.subcontractors.subcontractor.View subcontractor details'\n            }}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageSubcontractors')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from task')\n                  (t 'shared.people-editor.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from task')\n                  (t 'shared.people-editor.Remove from task')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.subcontractorTaskPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.taskPermissionsVisible)\n                (not this.taskPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Task'}}\n            </h4>\n            {{#if this.taskPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.taskPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.taskPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.taskPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the task'}}\n              @key='canManageTasks'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheTaskDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.projectCanManageTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.projectCanManageTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.projectCanManageTasks\n                (get this.model.permissionsChangeset.last.value 'canManageTasks')\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task budget'}}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task budget'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskBudgetDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task quote'}}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task quote'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskQuoteDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task progress'}}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task progress'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskProgressDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllTaskDocumentsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.Can manage all task documents'\n                  }}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.canManageAllDocumentsForTheTaskDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the task'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the task'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheTaskDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageTimesheetsTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageTimesheets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageTimesheets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageTimesheets\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageTimesheets'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <div></div>\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"RiAnB6zD\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.subcontractors.subcontractor\\\",[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.View subcontractor details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Remove from task\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.subcontractorTaskPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"taskPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"taskPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the task\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task budget\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task budget\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task quote\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task quote\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task progress\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task progress\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskProgressDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllTaskDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.Can manage all task documents\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.canManageAllDocumentsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the task\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the task\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[12],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"X4dmyMOk\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingUserToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingUserToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingUserToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.users.Add user to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.users.addUserToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedUsers}}\n          @selected={{this.userToAddToTask}}\n          @onChange={{fn (mut this.userToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.users.Find a user'}}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.users'\n          @model={{this.model.project.last.value.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.users.doNotSeeTheUserAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.userToAddToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingUserToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or (not this.userToAddToTask) this.addUserToTask.isRunning}}\n          {{on 'click' (perform this.addUserToTask)}}\n        >\n          {{#if this.addUserToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"14iFBEJk\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingUserToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.users.Add user to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.users.addUserToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedUsers\\\"]],[30,0,[\\\"userToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"userToAddToTask\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.users.Find a user\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.users\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.users.doNotSeeTheUserAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"userToAddToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"userToAddToTask\\\"]]],null],[30,0,[\\\"addUserToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addUserToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addUserToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.user.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.users.user'\n            @model={{this.model.user.last.value.id}}\n          >\n            {{t 'shared.people-editor.users.user.View user details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from task')\n                  (t 'shared.people-editor.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from task')\n                  (t 'shared.people-editor.Remove from task')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.tasks.task.people.users.user.userTaskPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.taskPermissionsVisible)\n                (not this.taskPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Task'}}\n            </h4>\n            {{#if this.taskPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.taskPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.taskPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.taskPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the task'}}\n              @key='canManageTasks'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheTaskDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.projectCanManageTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.projectCanManageTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.projectCanManageTasks\n                (get this.model.permissionsChangeset.last.value 'canManageTasks')\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task budget'}}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task budget'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskBudgetDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task quote'}}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task quote'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskQuoteDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task progress'}}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task progress'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskProgressDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllTaskDocumentsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all documents'}}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the task'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the task'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheTaskDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageTimesheetsTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageTimesheets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageTimesheets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageTimesheets\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageTimesheets'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"/yEUsPu2\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.users.user\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.users.user.View user details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Remove from task\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.tasks.task.people.users.user.userTaskPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"taskPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"taskPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the task\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task budget\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task budget\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task quote\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task quote\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task progress\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task progress\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskProgressDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllTaskDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the task\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the task\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"vOE0Iao4\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingWorkerToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingWorkerToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingWorkerToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.workers.Add worker to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.workers.addWorkerToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedWorkers}}\n          @selected={{this.workerToAddToTask}}\n          @onChange={{fn (mut this.workerToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='searchString'\n          @placeholder={{t 'shared.people-editor.workers.Find a worker'}}\n          @allowClear={{true}}\n          as |worker|\n        >\n          {{worker.firstName}}\n          {{worker.lastName}}\n          ({{worker.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.workers'\n          @model={{this.model.task.last.value.project.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.workers.doNotSeeTheWorkerAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addWorkerToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingWorkerToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.workerToAddToTask)\n            this.addWorkerToTask.isRunning\n          }}\n          {{on 'click' (perform this.addWorkerToTask)}}\n        >\n          {{#if this.addWorkerToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Cr6PdtVF\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.workers.Search for workers\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,5],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingWorkerToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.workers.Add worker to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.workers.addWorkerToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedWorkers\\\"]],[30,0,[\\\"workerToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"workerToAddToTask\\\"]]],null]],null],true,\\\"searchString\\\",[28,[37,5],[\\\"shared.people-editor.workers.Find a worker\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.workers\\\",[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"project\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.workers.doNotSeeTheWorkerAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addWorkerToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"workerToAddToTask\\\"]]],null],[30,0,[\\\"addWorkerToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addWorkerToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addWorkerToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.worker.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.workers.worker'\n            @model={{this.model.worker.last.value.id}}\n          >\n            {{t 'shared.people-editor.workers.worker.View worker details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          <button\n            type='button'\n            class='btn btn-secondary m-1'\n            disabled={{this.deleteWorker.isRunning}}\n            {{on 'click' (perform this.deleteWorker)}}\n          >\n            {{#if this.deleteWorker.isRunning}}\n              {{t 'shared.people-editor.Removing from task'}}\n            {{else}}\n              {{t 'shared.people-editor.Remove from task'}}\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"fwj2dfCU\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.workers.worker\\\",[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.workers.worker.View worker details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Removing from task\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Remove from task\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/products\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mt-3 h-100'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n        {{#if (and this.isEditable this.productTableData.length)}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (fn (mut this.isDeletingProducts) true)}}\n              disabled={{not this.selectProductIds.size}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          </div>\n        {{/if}}\n        <div class='d-flex'>\n          {{#if this.showFilters}}\n            <Input\n              class='form-control m-1 w-auto'\n              placeholder={{t 'shared.product.Search products'}}\n              @value={{this.searchString}}\n              @type='text'\n              autofocus='true'\n              {{on 'input' (perform this.onChangeSearchTerm)}}\n              data-test-task-product-search\n            />\n          {{/if}}\n          {{#if this.isEditable}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isAddingProduct) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        </div>\n      </header>\n      <div class='task-products__table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @pageSizes={{this.model.pageSizes}}\n          @pageSize={{this.model.pageSize}}\n          @pageIndex={{this.model.pageIndex}}\n          @onChangePageIndex={{this.onChangePageIndex}}\n          @onChangePageSize={{this.onChangePageSize}}\n          @isLoading={{this.model.products.isRunning}}\n          @totalRecords={{this.totalRecords}}\n          @class='table-bordered'\n        />\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if this.isEditingProduct}}\n    <ProductEditor\n      @onSaveProduct={{this.onSaveProduct}}\n      @target={{this.model.task.last.value}}\n      @productTable={{'task-product'}}\n      @entity={{this.sessionData.entity}}\n      @productId={{this.selectedProductId}}\n      @onClose={{fn (mut this.isEditingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingProduct}}\n    <ProductSelector\n      @onAddProduct={{this.onAddProduct}}\n      @onCreateProduct={{this.onCreateProduct}}\n      @onClose={{fn (mut this.isAddingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingProducts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingProducts) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>\n        {{t\n          'shared.product.areYouSureYouWantToDeleteXProducts'\n          number=this.selectProductIds.size\n          products=(pluralize this.selectProductIds.size 'product')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteProducts.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (perform this.deleteProducts)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingProducts) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"lio+IZ2S\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt-3 h-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"productTableData\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDeletingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFilters\\\"]],[[[1,\\\"          \\\"],[8,[39,11],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.product.Search products\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-task-product-search\\\",\\\"\\\"],[4,[38,7],[\\\"input\\\",[28,[37,12],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isAddingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,10],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"task-products__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,10],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,15],null,[[\\\"@onSaveProduct\\\",\\\"@target\\\",\\\"@productTable\\\",\\\"@entity\\\",\\\"@productId\\\",\\\"@onClose\\\"],[[30,0,[\\\"onSaveProduct\\\"]],[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]],\\\"task-product\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\"]],[30,0,[\\\"selectedProductId\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"isEditingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@onAddProduct\\\",\\\"@onCreateProduct\\\",\\\"@onClose\\\"],[[30,0,[\\\"onAddProduct\\\"]],[30,0,[\\\"onCreateProduct\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"isAddingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,17],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[\\\"shared.product.areYouSureYouWantToDeleteXProducts\\\"],[[\\\"number\\\",\\\"products\\\"],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],[28,[37,19],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],\\\"product\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,10],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"and\\\",\\\"button\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"product-editor\\\",\\\"product-selector\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/products.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mt-3'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm class='width--large mb-4'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Name'}}\n          @key='name'\n          @model={{this.model.taskChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n        />\n        <PtlInput\n          @type='textarea'\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.model.taskChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n        />\n  \n        <div class='d-flex align-items-center mb-3'>\n          <div class='flex-grow-1'>\n            {{#if this.contractTypeIsOverridden}}\n              <PtlInput\n                @type='select'\n                @label={{t 'shared.task.Contract type'}}\n                @containerClass='m-0'\n                @options={{this.contractType}}\n                @key='contractType'\n                @selectNoBlankOption={{true}}\n                @model={{this.model.taskChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveTask.performCount 0}}\n                disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n              />\n            {{else}}\n              <div>\n                <label class='mb-1'>{{t 'shared.task.Contract type'}}</label>\n                <div class='input-group'>\n                  <Input\n                    class='form-control'\n                    @type='text'\n                    @value={{this.humanReadableContractType}}\n                    disabled={{true}}\n                  />\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mx-3 d-flex align-items-center mt-4'>\n            <span>{{t 'common.Override'}}</span>\n            <Input\n              @type='checkbox'\n              class='form-check-input m-0 ms-1'\n              @checked={{this.contractTypeIsOverridden}}\n              {{on\n                'click'\n                (fn\n                  this.toggleContractTypeOverride\n                  this.model.taskChangeset.last.value\n                )\n              }}\n              disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n            />\n          </label>\n        </div>\n  \n        <PtlInput\n          @type='select'\n          @label={{t 'common.Task type'}}\n          @key='taskType'\n          @selectNoBlankOption={{true}}\n          @options={{this.taskTypes}}\n          @required={{true}}\n          @model={{this.model.taskChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n        />\n        <PtlInput\n          @type='select'\n          @label={{t 'common.Status'}}\n          @key='timesheetStatus'\n          @selectNoBlankOption={{true}}\n          @options={{this.timesheetStatus}}\n          @required={{true}}\n          @model={{this.model.taskChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          @description={{t\n            'entity.builda-price.projects.project.tasks.task.settings.activeTasksAreAvailableToLogCostsAgainst'\n          }}\n          disabled={{or\n            this.saveTask.isRunning\n            this.hasInactiveParents\n            (not this.canManageTask)\n          }}\n        />\n  \n        {{#if\n          (includes\n            this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n          )\n        }}\n          <div class='d-flex align-items-center mb-3'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @containerClass='m-0'\n                @type='powerSelect'\n                @label={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.Default purchases account'\n                }}\n                @description={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.purchasesGlAccountDescription'\n                }}\n                @key={{if\n                  this.purchasesGlAccountIsOverridden\n                  'purchasesGlAccount'\n                  'defaultPurchasesGlAccount'\n                }}\n                @optionKeys={{array 'code' 'name'}}\n                @options={{this.model.glAccounts.last.value}}\n                @allowClear={{true}}\n                @model={{this.model.taskChangeset.last.value}}\n                @searchEnabled={{true}}\n                @searchField='code'\n                @forceValidationVisible={{gt this.saveTask.performCount 0}}\n                @disabled={{or\n                  (not this.purchasesGlAccountIsOverridden)\n                  this.saveTask.isRunning\n                  (not this.canManageTask)\n                }}\n                @placeholder={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.No default account'\n                }}\n              />\n            </div>\n  \n            <label class='mx-3 d-flex align-items-center mt-1'>\n              <span>{{t 'common.Override'}}</span>\n              <Input\n                @type='checkbox'\n                class='form-check-input m-0 ms-1'\n                @checked={{this.purchasesGlAccountIsOverridden}}\n                {{on\n                  'click'\n                  (fn\n                    this.togglePurchasesGlAccountOverride\n                    this.model.taskChangeset.last.value\n                  )\n                }}\n                disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n              />\n            </label>\n          </div>\n        {{/if}}\n  \n        {{#if\n          (includes\n            this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n          )\n        }}\n          <div class='d-flex align-items-center mb-3'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @containerClass='m-0'\n                @type='powerSelect'\n                @label={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.Default sales account'\n                }}\n                @description={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.salesGlAccountDescription'\n                }}\n                @key={{if\n                  this.salesGlAccountIsOverridden\n                  'salesGlAccount'\n                  'defaultSalesGlAccount'\n                }}\n                @optionKeys={{array 'code' 'name'}}\n                @options={{this.model.glAccounts.last.value}}\n                @allowClear={{true}}\n                @model={{this.model.taskChangeset.last.value}}\n                @searchEnabled={{true}}\n                @searchField='code'\n                @forceValidationVisible={{gt this.saveTask.performCount 0}}\n                @disabled={{or\n                  (not this.salesGlAccountIsOverridden)\n                  this.saveTask.isRunning\n                  (not this.canManageTask)\n                }}\n                @placeholder={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.No default account'\n                }}\n              />\n            </div>\n  \n            <label class='mx-3 d-flex align-items-center mt-1'>\n              <span>{{t 'common.Override'}}</span>\n              <Input\n                @type='checkbox'\n                class='form-check-input m-0 ms-1'\n                @checked={{this.salesGlAccountIsOverridden}}\n                {{on\n                  'click'\n                  (fn\n                    this.toggleSalesGlAccountOverride\n                    this.model.taskChangeset.last.value\n                  )\n                }}\n                disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n              />\n            </label>\n          </div>\n        {{/if}}\n  \n        {{#if this.canManageTask}}\n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{this.deleteTask.isRunning}}\n              {{on 'click' this.openDeleteModal}}\n            >\n              {{#if this.deleteTask.isRunning}}\n                &nbsp;&nbsp;{{t 'common.Deleting'}}…\n              {{else}}\n                {{t 'common.Delete'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveTask.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.saveTask\n                  this.model.taskChangeset.last.value\n                  this.model.profitMarginChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.saveTask.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'common.Save details'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#if\n        (includes-feature-flags\n          this.model.task.last.value 'canManageProfitMargin'\n        )\n      }}\n        <PtlForm class='width--large'>\n          <ProfitMarginForm\n            @default={{this.model.task.last.value.defaultPercentageValues}}\n            @profitMargin={{this.model.profitMarginChangeset.last.value}}\n            @description={{t 'shared.profit-margins.profitMarginDescription'}}\n            @forceValidationVisible={{gt this.saveProfitMargin.performCount 0}}\n            @disabled={{this.saveProfitMargin.isRunning}}\n          />\n  \n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveProfitMargin.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.saveProfitMargin\n                  this.model.taskChangeset.last.value\n                  this.model.profitMarginChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.saveProfitMargin.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'shared.profit-margins.Save profit margins'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  \n  <ConfirmDelete\n    @visible={{this.isDeletingTask}}\n    @title={{t\n      'entity.builda-price.projects.project.tasks.task.settings.Delete task'\n    }}\n    @messages={{this.deleteMessages}}\n    @confirmText={{this.deleteConfirmText}}\n    @deleteButtonText={{t\n      'entity.builda-price.projects.project.tasks.task.settings.deleteTask'\n      subtasks=(if\n        this.model.task.last.value.activeChildren.length\n        (t\n          'entity.builda-price.projects.project.tasks.task.settings.and its subtasks'\n        )\n      )\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteTask}}\n    @onCancel={{fn (mut this.isDeletingTask) false}}\n  />\n  \n  {{#if this.isDependencyTransferModalOpen}}\n    <ModalDialog\n      @onClose={{this.closeDependencyTransferModal}}\n      @containerClass='modal-content w-auto width--small'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.settings.This task has cost or other items mapped to it'\n          }}\n        </h5>\n      </div>\n  \n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.settings.selectAnotherTaskToMoveThemToBeforeDeletingThisTask'\n          }}\n        </p>\n        <TaskTransferSelector\n          @tasks={{this.availableDependencyTransferDestinationTasks}}\n          @excludedTasks={{array this.model.task.last.value}}\n          @selectedTask={{this.dependencyTransferDestinationTask}}\n          @onSelectTask={{this.selectDependencyTransferDestination}}\n        />\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' this.closeDependencyTransferModal}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-danger text-white'\n          disabled={{or\n            (not this.dependencyTransferDestinationTask)\n            this.deleteTask.isRunning\n          }}\n          {{on\n            'click'\n            (perform this.deleteTask this.dependencyTransferDestinationTask)\n          }}\n        >\n          {{#if this.deleteTask.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Deleting'\n            }}&hellip;\n          {{else}}\n            {{t\n              'entity.builda-price.projects.project.tasks.task.settings.moveItemsDeleteTask'\n            }}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"76+vtM2V\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,3],[[24,0,\\\"width--large mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,5],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,5],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"contractTypeIsOverridden\\\"]],[[[1,\\\"            \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@options\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"shared.task.Contract type\\\"],null],\\\"m-0\\\",[30,0,[\\\"contractType\\\"]],\\\"contractType\\\",true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,5],[\\\"shared.task.Contract type\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],[[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"humanReadableContractType\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[8,[39,11],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleContractTypeOverride\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"contractTypeIsOverridden\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"common.Task type\\\"],null],\\\"taskType\\\",true,[30,0,[\\\"taskTypes\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[30,0,[\\\"hasInactiveParents\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"select\\\",[28,[37,5],[\\\"common.Status\\\"],null],\\\"timesheetStatus\\\",true,[30,0,[\\\"timesheetStatus\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.activeTasksAreAvailableToLogCostsAgainst\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.Default purchases account\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.purchasesGlAccountDescription\\\"],null],[52,[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]],\\\"purchasesGlAccount\\\",\\\"defaultPurchasesGlAccount\\\"],[28,[37,16],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"code\\\",[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null],[28,[37,7],[[28,[37,8],[[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.No default account\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,11],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"togglePurchasesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.Default sales account\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.salesGlAccountDescription\\\"],null],[52,[30,0,[\\\"salesGlAccountIsOverridden\\\"]],\\\"salesGlAccount\\\",\\\"defaultSalesGlAccount\\\"],[28,[37,16],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"code\\\",[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null],[28,[37,7],[[28,[37,8],[[30,0,[\\\"salesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.No default account\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,11],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleSalesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"salesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTask\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"openDeleteModal\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,5],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,5],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"saveTask\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,5],[\\\"common.Save details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"      \\\"],[8,[39,3],[[24,0,\\\"width--large\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@default\\\",\\\"@profitMargin\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"defaultPercentageValues\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"shared.profit-margins.profitMarginDescription\\\"],null],[28,[37,9],[[30,0,[\\\"saveProfitMargin\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"saveProfitMargin\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,5],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,21],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"isDeletingTask\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.Delete task\\\"],null],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.deleteTask\\\"],[[\\\"subtasks\\\"],[[52,[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"activeChildren\\\",\\\"length\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.and its subtasks\\\"],null]]]]],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,18],[[30,0,[\\\"deleteTask\\\"]]],null],[28,[37,14],[[28,[37,22],[[30,0,[\\\"isDeletingTask\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDependencyTransferModalOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,23],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[30,0,[\\\"closeDependencyTransferModal\\\"]],\\\"modal-content w-auto width--small\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.This task has cost or other items mapped to it\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.selectAnotherTaskToMoveThemToBeforeDeletingThisTask\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,26],null,[[\\\"@tasks\\\",\\\"@excludedTasks\\\",\\\"@selectedTask\\\",\\\"@onSelectTask\\\"],[[30,0,[\\\"availableDependencyTransferDestinationTasks\\\"]],[28,[37,16],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]]],null],[30,0,[\\\"dependencyTransferDestinationTask\\\"]],[30,0,[\\\"selectDependencyTransferDestination\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeDependencyTransferModal\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"dependencyTransferDestinationTask\\\"]]],null],[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"deleteTask\\\"]],[30,0,[\\\"dependencyTransferDestinationTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.moveItemsDeleteTask\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"label\\\",\\\"input\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"includes\\\",\\\"array\\\",\\\"button\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"profit-margin-form\\\",\\\"confirm-delete\\\",\\\"mut\\\",\\\"modal-dialog\\\",\\\"h5\\\",\\\"p\\\",\\\"task-transfer-selector\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"qu/FcpUr\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Reports::CompanyReports />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Reports')}}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"jbA5hA8W\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Reports\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/reports/company-reports\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/forecast-breakdown\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.forecast-breakdown.Forecast report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.forecastTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n              disabled={{this.downloadAsCsv.isRunning}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t 'shared.reports.forecastBreakdownReportExplanation'}}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <PopOver\n          @disableBlur={{true}}\n          @direction='bottom-right'\n          @disabled={{this.isLoading}}\n          as |po|\n        >\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Filters'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <label class='align-items-center'>\n              <LabelPopup\n                class='mb-1'\n                @text={{t\n                  'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n                }}\n              >\n                {{t 'shared.reports.Report date'}}\n              </LabelPopup>\n              <input\n                class='form-control w-100'\n                placeholder={{t 'shared.reports.Pick a date'}}\n                type='date'\n                value={{this.controllerDate}}\n                {{on 'change' this.onDateChange}}\n              />\n            </label>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.controllerStatus}}\n                @action={{this.filterStatus}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t\n                  'shared.reports.Exclude projects'\n                }}</label>\n              <PowerSelectMultiple\n                @options={{this.filteredProjects}}\n                @selected={{this.excludedProjects}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @placeholder={{t 'shared.reports.selectProjectsToExclude'}}\n                @renderInPlace={{true}}\n                @onChange={{fn (mut this.excludedProjects)}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelectMultiple>\n            </div>\n  \n            <div class='text-right mt-3'>\n              <button\n                class='btn btn-primary'\n                {{on 'click' this.applyFilter}}\n                type='button'\n              >{{t 'common.Apply filters'}}</button>\n            </div>\n          </po.Content>\n        </PopOver>\n        {{#if this.hasFilters}}\n          <button\n            class='text-button ms-2'\n            type='button'\n            {{on 'click' this.removeFilter}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Reset filters'}}\n          </button>\n        {{/if}}\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.forecastTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"C1pQ9kql\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.forecast-breakdown.Forecast report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.reports.forecastBreakdownReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@disableBlur\\\",\\\"@direction\\\",\\\"@disabled\\\"],[true,\\\"bottom-right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Filters\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],[[24,0,\\\"mb-1\\\"]],[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"controllerDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"controllerStatus\\\"]],[30,0,[\\\"filterStatus\\\"]],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"shared.reports.Exclude projects\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,21],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@renderInPlace\\\",\\\"@onChange\\\"],[[30,0,[\\\"filteredProjects\\\"]],[30,0,[\\\"excludedProjects\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.reports.selectProjectsToExclude\\\"],null],true,[28,[37,22],[[28,[37,23],[[30,0,[\\\"excludedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"text-right mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"applyFilter\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Apply filters\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasFilters\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"removeFilter\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Reset filters\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,24],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"po\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"select-input\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/forecast-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/invoicing\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'entity.builda-price.reports.company.invoicing.Invoicing report')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.invoiceTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.invoiceTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"HWtJlXgw\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.invoicing.Invoicing report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,25],[[28,[37,25],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,13],[\\\"change\\\",[28,[37,15],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,26],[[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,26],[[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/invoicing.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/labour-hours\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.labour-hours.Labour hours report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.entityLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <div>\n          <SelectInput\n            @value={{this.status}}\n            @action={{fn (mut this.status)}}\n            @class='form-control select-box'\n            as |si|\n          >\n            <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n            <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n            <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n            <si.option @value='CLOSED'>{{t 'common.Closed projects'}}</si.option>\n            <si.option @value='ARCHIVED'>{{t\n                'common.Archived projects'\n              }}</si.option>\n          </SelectInput>\n        </div>\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv false)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as CSV'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAsCsv true)}}\n                  disabled={{this.downloadAsCsv.isRunning}}\n                >\n                  {{#if this.downloadAsCsv.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save CSV'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.entityLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"lK+yAhQ1\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.labour-hours.Labour hours report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,12],[[28,[37,13],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,22],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"si\\\",\\\"po\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"div\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/labour-hours.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/notes\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.noteReport.last.value.name}}\n          </h2>\n        {{/if}}\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv)}}\n              >\n                {{t 'shared.reports.Download as CSV'}}\n              </button>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n              >\n                {{t 'shared.reports.Download and save CSV'}}\n              </button>\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex flex-wrap gap-3 my-3'>\n        {{#if this.invoiceId}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' this.removeAllProjectFilters}}\n          >\n            <FaIcon @icon='times' />&nbsp;&nbsp;{{t 'common.Remove filter'}}\n          </button>\n        {{else}}\n          <div class='d-flex align-items-center flex-wrap gap-3'>\n            {{t 'common.Date range'}}:&nbsp;\n            <DateRangeSelector\n              @align='left'\n              @startDate={{this.dateRangeSelectorStartDate}}\n              @endDate={{this.dateRangeSelectorEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected projects'}}:&nbsp;&nbsp;</label>\n  \n            <PowerSelectMultiple\n              @options={{this.model.getProjects.last.value}}\n              @selected={{this.selectedProjects}}\n              @searchEnabled={{true}}\n              @placeholder='–'\n              @searchField='name'\n              @onChange={{fn (mut this.selectedProjects)}}\n              as |project|\n            >\n              {{project.name}}\n            </PowerSelectMultiple>\n  \n            {{#if this.selectedProjects.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllProjectFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected workers'}}:&nbsp;&nbsp;</label>\n  \n            <PowerSelectMultiple\n              @options={{this.model.getWorkers.last.value}}\n              @selected={{this.selectedWorkers}}\n              @searchEnabled={{true}}\n              @placeholder='–'\n              @searchField='fullName'\n              @onChange={{fn (mut this.selectedWorkers)}}\n              as |worker|\n            >\n              {{worker.fullName}}\n            </PowerSelectMultiple>\n  \n            {{#if this.selectedWorkers.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllWorkerFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div id={{this.pdfExportTargetId}} class='container-sm p-0 m-0'>\n        <ReportEngineElementContainer\n          @elements={{this.model.noteReport.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"Sb8Gm5ti\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-wrap gap-3 my-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceId\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllProjectFilters\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap gap-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n          \\\"],[8,[39,13],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected projects\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"getProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedProjects\\\"]],true,\\\"–\\\",\\\"name\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"selectedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedProjects\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllProjectFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected workers\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"getWorkers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedWorkers\\\"]],true,\\\"–\\\",\\\"fullName\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"selectedWorkers\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,3,[\\\"fullName\\\"]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedWorkers\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllWorkerFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[14,0,\\\"container-sm p-0 m-0\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"project\\\",\\\"worker\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/notes.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/position\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'shared.reports.Position report')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.entityLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n  \n        <div>\n          <SelectInput\n            @value={{this.status}}\n            @action={{fn (mut this.status)}}\n            @class='form-control select-box'\n            as |si|\n          >\n            <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n            <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n            <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n            <si.option @value='CLOSED'>{{t 'common.Closed projects'}}</si.option>\n            <si.option @value='ARCHIVED'>{{t\n                'common.Archived projects'\n              }}</si.option>\n          </SelectInput>\n        </div>\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn (mut this.csvExportOptions) true)}}\n              >\n                {{t 'shared.reports.Download as CSV'}}\n              </button>\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.entityLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{t 'common.Export'}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{this.isExportDisabled}}\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n          >\n            {{#if this.downloadAndSaveCSV.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"IFLa0rPE\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"shared.reports.Position report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,12],[[28,[37,13],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,22],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,23],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,26],[[28,[37,26],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,3,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,3,[\\\"value\\\"]]],[16,1,[30,4]],[24,4,\\\"checkbox\\\"],[4,[38,17],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,4]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,4]],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,27],[[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,27],[[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSaveCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"div\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/position.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/profit-margins\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.profit-margins.Profit margin report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.profitMarginsTable.last.value.name}}</h2>\n        {{/if}}\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv false)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as CSV'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAsCsv true)}}\n                  disabled={{this.downloadAsCsv.isRunning}}\n                >\n                  {{#if this.downloadAsCsv.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save CSV'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <PopOver\n          @disableBlur={{true}}\n          @direction='bottom-right'\n          @disabled={{this.isLoading}}\n          as |po|\n        >\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Filters'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <label class='align-items-center'>\n              <LabelPopup\n                class='mb-1'\n                @text={{t\n                  'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n                }}\n              >\n                {{t 'shared.reports.Report date'}}\n              </LabelPopup>\n              <input\n                class='form-control w-100'\n                placeholder={{t 'shared.reports.Pick a date'}}\n                type='date'\n                value={{this.controllerDate}}\n                {{on 'change' this.onDateChange}}\n              />\n            </label>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.controllerStatus}}\n                @action={{action 'filterStatus'}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t\n                  'shared.reports.Exclude projects'\n                }}</label>\n              <PowerSelectMultiple\n                @options={{this.filteredProjects}}\n                @selected={{this.excludedProjects}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @placeholder={{t 'shared.reports.selectProjectsToExclude'}}\n                @renderInPlace={{true}}\n                @onChange={{fn (mut this.excludedProjects)}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelectMultiple>\n            </div>\n  \n            <div class='text-right mt-3'>\n              <button\n                class='btn btn-primary'\n                {{on 'click' this.applyFilter}}\n                type='button'\n              >{{t 'common.Apply filters'}}</button>\n            </div>\n          </po.Content>\n        </PopOver>\n        {{#if this.hasFilters}}\n          <button\n            class='text-button ms-2'\n            type='button'\n            {{on 'click' this.removeFilter}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Reset filters'}}\n          </button>\n        {{/if}}\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.profitMarginsTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"7rjJJWzR\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.profit-margins.Profit margin report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@disableBlur\\\",\\\"@direction\\\",\\\"@disabled\\\"],[true,\\\"bottom-right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Filters\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"controllerDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"controllerStatus\\\"]],[28,[37,20],[[30,0],\\\"filterStatus\\\"],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"shared.reports.Exclude projects\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,21],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@renderInPlace\\\",\\\"@onChange\\\"],[[30,0,[\\\"filteredProjects\\\"]],[30,0,[\\\"excludedProjects\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.reports.selectProjectsToExclude\\\"],null],true,[28,[37,22],[[28,[37,23],[[30,0,[\\\"excludedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"text-right mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"applyFilter\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Apply filters\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasFilters\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"removeFilter\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Reset filters\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,24],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"po\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"select-input\\\",\\\"action\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/profit-margins.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/wip\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.wip.Work in progress report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.wipReportTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n              disabled={{this.downloadAsCsv.isRunning}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t\n          'entity.builda-price.reports.company.wip.workInProgressReportExplanation'\n        }}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <PopOver\n          @disableBlur={{true}}\n          @direction='bottom-right'\n          @disabled={{this.isLoading}}\n          as |po|\n        >\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Filters'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <div>\n              <label class='align-items-center mb-1'>\n                {{t 'entity.builda-price.reports.company.wip.Balance date'}}\n              </label>\n              <input\n                class='form-control w-100'\n                placeholder={{t 'shared.reports.Pick a date'}}\n                type='date'\n                value={{this.controllerDate}}\n                {{on 'change' this.onDateChange}}\n              />\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.controllerStatus}}\n                @action={{this.filterStatus}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t\n                  'shared.reports.Exclude projects'\n                }}</label>\n              <PowerSelectMultiple\n                @options={{this.filteredProjects}}\n                @selected={{this.excludedProjects}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @placeholder={{t 'shared.reports.selectProjectsToExclude'}}\n                @renderInPlace={{true}}\n                @onChange={{fn (mut this.excludedProjects)}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelectMultiple>\n            </div>\n  \n            <div class='text-right mt-3'>\n              <button\n                class='btn btn-primary'\n                {{on 'click' this.applyFilter}}\n                type='button'\n              >{{t 'common.Apply filters'}}</button>\n            </div>\n          </po.Content>\n        </PopOver>\n        {{#if this.hasFilters}}\n          <button\n            class='text-button ms-2'\n            type='button'\n            {{on 'click' this.removeFilter}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Reset filters'}}\n          </button>\n        {{/if}}\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.wipReportTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"1l9XZja5\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.wip.Work in progress report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"wipReportTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.reports.company.wip.workInProgressReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@disableBlur\\\",\\\"@direction\\\",\\\"@disabled\\\"],[true,\\\"bottom-right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Filters\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mb-1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.reports.company.wip.Balance date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"controllerDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"controllerStatus\\\"]],[30,0,[\\\"filterStatus\\\"]],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"shared.reports.Exclude projects\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@renderInPlace\\\",\\\"@onChange\\\"],[[30,0,[\\\"filteredProjects\\\"]],[30,0,[\\\"excludedProjects\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.reports.selectProjectsToExclude\\\"],null],true,[28,[37,21],[[28,[37,22],[[30,0,[\\\"excludedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"text-right mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"applyFilter\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Apply filters\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasFilters\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"removeFilter\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Reset filters\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"wipReportTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"po\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"select-input\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/wip.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    {{outlet}}\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Projects')\n      }}\n    />\n    {{outlet}}\n  {{/if}}\n  */\n  {\n    \"id\": \"c3peSh+m\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,5],[\\\"common.Projects\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='page__container-content gap-zendesk-support-widget'>\n    <article class='m-4 flex-grow-1'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='flex-grow-1 m-0 my-2'>\n            {{t 'common.Projects'}}\n          </h1>\n        {{/if}}\n        <div class='d-flex align-items-center'>\n          <span class='m-1'>\n            <SelectInput\n              @value={{this.status}}\n              @action={{fn (mut this.status)}}\n              @class='form-control select-box'\n              data-test-project-status-filter\n              as |si|\n            >\n              <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n              <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n              <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n              <si.option @value='CLOSED'>{{t\n                  'common.Closed projects'\n                }}</si.option>\n              <si.option @value='ARCHIVED'>{{t\n                  'common.Archived projects'\n                }}</si.option>\n            </SelectInput>\n          </span>\n  \n          <span class='m-1'>\n            <Input\n              class='form-control'\n              placeholder={{t 'common.Search for projects'}}\n              aria-label='Search for projects'\n              @type='text'\n              @value={{this.searchString}}\n              data-test-project-search\n            />\n          </span>\n        </div>\n      </header>\n  \n      {{#if this.model.projectsData.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <ReportEngineElement @element={{this.projectsData}} class='p-0' />\n        {{#if (includes-feature-flags 'entityHasSubcontractorPackage')}}\n          <div class='mt-5 d-flex justify-content-center align-items-center'>\n            <p style='margin: 0; font-size: 14px;'>{{t\n                'shared.branding.Proudly powered by'\n              }}</p>\n            <img\n              style='margin-left: 10px; width: 180px;'\n              src={{this.attentionSafetyLogoSrc}}\n            />\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  </main>\n  */\n  {\n    \"id\": \"m0a4mQhT\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Projects\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,\\\"data-test-project-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search for projects\\\"],null]],[24,\\\"aria-label\\\",\\\"Search for projects\\\"],[24,\\\"data-test-project-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"projectsData\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,14],[[24,0,\\\"p-0\\\"]],[[\\\"@element\\\"],[[30,0,[\\\"projectsData\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"entityHasSubcontractorPackage\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt-5 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,5,\\\"margin: 0; font-size: 14px;\\\"],[12],[1,[28,[35,6],[\\\"shared.branding.Proudly powered by\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,5,\\\"margin-left: 10px; width: 180px;\\\"],[15,\\\"src\\\",[30,0,[\\\"attentionSafetyLogoSrc\\\"]]],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"si\\\"],false,[\\\"main\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h1\\\",\\\"t\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"input\\\",\\\"loading-icon\\\",\\\"report-engine-element\\\",\\\"includes-feature-flags\\\",\\\"p\\\",\\\"img\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Reports::Project\n      @selectedProject={{this.model.project.last.value}}\n      @openProjects={{this.model.openProjects.last.value}}\n      @selectedProjectIsLoading={{this.model.project.isRunning}}\n      @openProjectsIsLoading={{this.model.openProjects.isRunning}}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component\n        'module-navigation/reports/project'\n        model=this.model.project.last.value.id\n        selectedProject=this.model.project.last.value\n        openProjects=this.model.openProjects.last.value\n        selectedProjectIsLoading=this.model.project.isRunning\n        openProjectsIsLoading=this.model.openProjects.isRunning\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Project')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"doPK3UZ0\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/reports/project\\\",0,null,[[\\\"model\\\",\\\"selectedProject\\\",\\\"openProjects\\\",\\\"selectedProjectIsLoading\\\",\\\"openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Project\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/reports/project\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.report.last.value.name}}\n          </h2>\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button\n            type='button'\n            class='btn btn-secondary text-white m-1'\n            data-test-access-report-download\n          >\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv)}}\n            >\n              {{t 'shared.report.Download as CSV'}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv true)}}\n            >\n              {{t 'shared.reports.Download and save CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex flex-wrap gap-3 my-3'>\n        <div class='d-flex align-items-center'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='left'\n            @startDate={{this.dateRangeSelectorStartDate}}\n            @endDate={{this.dateRangeSelectorEndDate}}\n            @onApply={{this.setDateRange}}\n          />\n        </div>\n        <div class='d-flex align-items-center ms-2'>\n          <label>\n            <Input\n              @type='checkbox'\n              class='form-check-input ml-1 mb-1 mr-1'\n              @checked={{this.filterByDate}}\n              {{on 'click' (fn (mut this.filterByDate) (not this.filterByDate))}}\n            />\n            {{t 'common.Filter by date'}}\n          </label>\n        </div>\n        <div class='d-flex align-items-center'>\n          <label>{{t 'common.Selected workers'}}:&nbsp;&nbsp;</label>\n          <PowerSelectMultiple\n            @options={{this.model.workers.last.value}}\n            @selected={{this.selectedWorkers}}\n            @searchEnabled={{true}}\n            @searchField='fullName'\n            @placeholder='–'\n            @onChange={{fn (mut this.selectedWorkers)}}\n            as |worker|\n          >\n            {{worker.fullName}}\n          </PowerSelectMultiple>\n  \n          {{#if this.selectedWorkers.length}}\n            &nbsp;&nbsp;\n            <button\n              class='text-button'\n              type='button'\n              {{on 'click' this.removeAllWorkerFilters}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div class='alert alert-secondary d-flex align-items-center' role='alert'>\n        <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n        {{t\n          'entity.builda-price.reports.projects.project.access.accessReportDisclaimer'\n        }}\n      </div>\n  \n      <div id={{this.pdfExportTargetId}} class='container-sm p-0 m-0'>\n        <ReportEngineElementContainer\n          @elements={{this.model.report.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"zw5o6yS+\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"report\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,\\\"data-test-access-report-download\\\",\\\"\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-wrap gap-3 my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,13],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center ms-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"form-check-input ml-1 mb-1 mr-1\\\"],[4,[38,10],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"filterByDate\\\"]]],null],[28,[37,18],[[30,0,[\\\"filterByDate\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected workers\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedWorkers\\\"]],true,\\\"fullName\\\",\\\"–\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"selectedWorkers\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,2,[\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedWorkers\\\",\\\"length\\\"]],[[[1,\\\"            \\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllWorkerFilters\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"alert alert-secondary d-flex align-items-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"entity.builda-price.reports.projects.project.access.accessReportDisclaimer\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[14,0,\\\"container-sm p-0 m-0\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"report\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"worker\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"input\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"power-select-multiple\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/budget/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.budgetTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.budgetTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAndSaveCSV.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"T639uE3Z\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSaveCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/budget/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/budget/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.budgetTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.budgetTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"9ialFKbd\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/budget/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/chargeup/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.chargeupReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.chargeupReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"iHNwd1iS\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/chargeup/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.chargeupReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.chargeupReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"B72Ahjhu\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.projectLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <div class='alert alert-secondary mb-3' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span>\n            {{t\n              'entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive'\n            }}\n          </span>\n        </div>\n        <ReportEngineElementContainer\n          @elements={{this.model.projectLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"1dx7/mEh\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"alert alert-secondary mb-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,24],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,24],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"span\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.taskLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <div class='alert alert-secondary mb-3' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span>{{t\n              'entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive'\n            }}</span>\n        </div>\n        <ReportEngineElementContainer\n          @elements={{this.model.taskLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"z99wAMt0\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"alert alert-secondary mb-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,[28,[35,10],[\\\"entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,24],[[28,[37,24],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,25],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,25],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"span\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/cost\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.costTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <div>\n          <SelectInput\n            @value={{this.costType}}\n            @action={{this.setCostType}}\n            @class='form-control select-box'\n            as |si|\n          >\n            <si.option @value='TIMESHEETS'>{{t 'common.Timesheets'}}</si.option>\n            <si.option @value='BILLS'>{{t 'common.Bills'}}</si.option>\n            <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n          </SelectInput>\n        </div>\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex my-3'>\n        <div class='d-flex align-items-center'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='left'\n            @startDate={{this.dateRangeSelectorStartDate}}\n            @endDate={{this.dateRangeSelectorEndDate}}\n            @onApply={{this.setDateRange}}\n          />\n        </div>\n        <div class='d-flex align-items-center ms-2'>\n          <label>\n            <Input\n              @type='checkbox'\n              class='form-check-input ms-1 mb-1 me-1'\n              @checked={{this.filterByDate}}\n              {{on 'click' this.setFilterByDate}}\n            />\n            {{t 'common.Filter by date'}}\n          </label>\n        </div>\n        <div class='d-flex align-items-center'>\n          <label>&nbsp;&nbsp;&nbsp;&nbsp;{{t\n              'common.Selected tasks'\n            }}:&nbsp;&nbsp;</label>\n          <MultiTaskSelectorInput\n            @showTaskPopUp={{this.showTaskPopUp}}\n            @selectedProject={{this.model.project.last.value}}\n            @selectedTasks={{this.selectedTasks}}\n            @setSelectedTasks={{this.setSelectedTasks}}\n            @removeSelectedTask={{this.removeSelectedTask}}\n          />\n          {{#if this.selectedTasks.length}}\n            &nbsp;&nbsp;\n            <button\n              class='text-button'\n              type='button'\n              {{on 'click' this.removeAllTaskFilters}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n          {{#if this.showAllocationTypeFilter}}\n            <div class='ms-2'>\n              <FilterPill {{on 'click' (fn (mut this.allocationType) null)}}>\n                {{t 'common.Allocation type'}}:\n                {{this.allocationTypeLabel}}\n              </FilterPill>\n            </div>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.costTable.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"oKkJZMkU\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"costTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"costType\\\"]],[30,0,[\\\"setCostType\\\"]],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"TIMESHEETS\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.Timesheets\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"BILLS\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.Bills\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\" \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,16],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center ms-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,0,\\\"form-check-input ms-1 mb-1 me-1\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"setFilterByDate\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Selected tasks\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedTasks\\\"]],[30,0,[\\\"setSelectedTasks\\\"]],[30,0,[\\\"removeSelectedTask\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]],[[[1,\\\"            \\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showAllocationTypeFilter\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,20],[[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationType\\\"]]],null],null],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"common.Allocation type\\\"],null]],[1,\\\":\\\\n              \\\"],[1,[30,0,[\\\"allocationTypeLabel\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"costTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,25],[[28,[37,25],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,3,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,3,[\\\"value\\\"]]],[16,1,[30,4]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,4]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,4]],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,26],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,26],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"div\\\",\\\"select-input\\\",\\\"t\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"input\\\",\\\"multi-task-selector-input\\\",\\\"filter-pill\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/cost.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.forecastTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t 'shared.reports.forecastBreakdownReportExplanation'}}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n  \n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.forecastTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"VwH6ERFp\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"shared.reports.forecastBreakdownReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'shared.reports.Position report')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.forecastTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t 'shared.reports.forecastBreakdownReportExplanation'}}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.forecastTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"r03pXb/C\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"shared.reports.Position report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,12],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.reports.forecastBreakdownReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,15],[\\\"change\\\",[28,[37,16],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/invoicing/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.invoiceTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.invoiceTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"eZPA8uMm\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/invoicing/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.invoiceTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.invoiceTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"6uuME8Qv\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/labour-hours/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.labourHoursTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n  \n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.labourHoursTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"BQKiDBly\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"labourHoursTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"labourHoursTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/labour-hours/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.taskLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.taskLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"dqgfREuC\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/notes\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.noteReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv true)}}\n            >\n              {{t 'shared.reports.Download and save CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex flex-wrap gap-3 my-3'>\n        {{#if this.invoiceId}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' this.removeAllTaskFilters}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n          </button>\n        {{else}}\n          <div class='d-flex align-items-center flex-wrap gap-3'>\n            {{t 'common.Date range'}}:&nbsp;\n            <DateRangeSelector\n              @align='left'\n              @startDate={{this.dateRangeSelectorStartDate}}\n              @endDate={{this.dateRangeSelectorEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n  \n            <div class='d-flex align-items-center'>\n              <label>\n                <Input\n                  @type='checkbox'\n                  class='form-check-input ml-1 mb-1 mr-1'\n                  @checked={{this.filterByDate}}\n                  {{on 'click' this.setFilterByDate}}\n                />\n                {{t 'common.Filter by date'}}\n              </label>\n            </div>\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected tasks'}}:&nbsp;&nbsp;</label>\n            <MultiTaskSelectorInput\n              @showTaskPopUp={{this.showTaskPopUp}}\n              @selectedProject={{this.model.project.last.value}}\n              @selectedTasks={{this.selectedTasks}}\n              @setSelectedTasks={{this.setSelectedTasks}}\n              @removeSelectedTask={{this.removeSelectedTask}}\n            />\n            {{#if this.selectedTasks.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllTaskFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected workers'}}:&nbsp;&nbsp;</label>\n  \n            <PowerSelectMultiple\n              @options={{this.model.getWorkers.last.value}}\n              @selected={{this.selectedWorkers}}\n              @searchEnabled={{true}}\n              @searchField='fullName'\n              @placeholder='–'\n              @onChange={{fn (mut this.selectedWorkers)}}\n              as |worker|\n            >\n              {{worker.fullName}}\n            </PowerSelectMultiple>\n  \n            {{#if this.selectedWorkers.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllWorkerFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div id={{this.pdfExportTargetId}} class='container-sm p-0 m-0'>\n        <ReportEngineElementContainer\n          @elements={{this.model.noteReport.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"PUCMiaoQ\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-wrap gap-3 my-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceId\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap gap-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n          \\\"],[8,[39,13],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[24,0,\\\"form-check-input ml-1 mb-1 mr-1\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"setFilterByDate\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected tasks\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedTasks\\\"]],[30,0,[\\\"setSelectedTasks\\\"]],[30,0,[\\\"removeSelectedTask\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected workers\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,17],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"getWorkers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedWorkers\\\"]],true,\\\"fullName\\\",\\\"–\\\",[28,[37,18],[[28,[37,19],[[30,0,[\\\"selectedWorkers\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"fullName\\\"]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedWorkers\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllWorkerFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[14,0,\\\"container-sm p-0 m-0\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"worker\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"input\\\",\\\"multi-task-selector-input\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/notes.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/position/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.projectLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.projectLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"GPUf379U\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/position/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/position/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.taskLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.taskLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"9wgBODa5\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/position/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/profit-margins/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.profitMarginsTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.profitMarginsTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"IiOOKi5/\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/profit-margins/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.profitMarginsTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.profitMarginsTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"QKbeiUDc\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/quote/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.quoteTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.quoteTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"pzKVGpqu\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/quote/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/quote/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.quoteTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.quoteTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"dlhkBIc9\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/quote/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/scheduling\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='page__container-content overflow-hidden'>\n      {{outlet}}\n    </main>\n  \n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Scheduling'}}\n    />\n    <main class='page__container-content overflow-hidden h-100'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"QPVtVjaQ\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content overflow-hidden\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Scheduling\\\"]]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content overflow-hidden h-100\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/scheduling.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/scheduling/timeline\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO implement when there are more than two pages }}\n  {{!-- {{#unless (media 'isDesktop')}}\n    {{to-elsewhere\n      named='mobile-title-bar-middle-content'\n      send=(component 'mobile-title-bar/page-title' title='Timeline')\n    }}\n  {{/unless}} --}}\n  <article class='d-flex flex-column h-100'>\n    <div class='px-4 pt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='ms-0 me-3 my-2'>{{t 'common.Scheduling'}}</h1>\n        {{/if}}\n        <PowerSelectMultiple\n          @options={{this.model.projects.last.value}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @selected={{this.selectedProjects}}\n          @placeholder={{t 'common.Select a project'}}\n          @onChange={{this.onSetProjects}}\n          as |project|\n        >\n          {{project.name}}\n        </PowerSelectMultiple>\n      </header>\n    </div>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else if this.model.projects.last.value.length}}\n      <div\n        class='d-flex align-items-center mx-4 mb-3 flex-wrap'\n        {{did-insert (perform this.initializeGanttChart)}}\n      >\n        {{#if this.ganttChartIsVisible}}\n          <div class='d-flex align-items-center flex-lg-grow-1 flex-wrap'>\n            <div class='m-1 d-flex' role='group'>\n              <div class='position-relative'>\n                {{#if this.undoCount}}\n                  <span\n                    class='position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger'\n                  >\n                    {{this.undoCount}}\n                  </span>\n                {{/if}}\n  \n                <button\n                  type='button'\n                  title='Undo'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-start'\n                  disabled={{or (not this.undoCount) this.projectIsSetting}}\n                  {{on 'click' this.onUndo}}\n                >\n                  <FaIcon @icon='undo' />\n                </button>\n              </div>\n  \n              <div class='position-relative'>\n                {{#if this.redoCount}}\n                  <span\n                    class='position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger'\n                  >\n                    {{this.redoCount}}\n                  </span>\n                {{/if}}\n  \n                <button\n                  type='button'\n                  title='Redo'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-end'\n                  style='margin-left: -1px;'\n                  disabled={{or (not this.redoCount) this.projectIsSetting}}\n                  {{on 'click' this.onRedo}}\n                >\n                  <FaIcon @icon='redo' />\n                </button>\n              </div>\n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                title='Expand all'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onCollapseAllClick}}\n              >\n                <FaIcon @icon='angle-double-down' />\n              </button>\n              <button\n                type='button'\n                title='Collapse all'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onExpandAllClick}}\n              >\n                <FaIcon @icon='angle-double-up' />\n              </button>\n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                title='Zoom in'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onZoomInClick}}\n              >\n                <FaIcon @icon='search-plus' />\n              </button>\n  \n              <button\n                type='button'\n                title='Zoom out'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onZoomOutClick}}\n              >\n                <FaIcon @icon='search-minus' />\n              </button>\n              <button\n                type='button'\n                title='Zoom to fit'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onZoomToFitClick}}\n              >\n                <FaIcon @icon='compress-arrows-alt' />\n              </button>\n  \n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                title='Previous time span'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onShiftPreviousClick}}\n              >\n                <FaIcon @icon='caret-left' />\n              </button>\n              <button\n                type='button'\n                title='Go to today'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onGoToTodayClick}}\n              >\n                <FaIcon @icon='calendar-day' />\n              </button>\n              <button\n                type='button'\n                title='Next time span'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onShiftNextClick}}\n              >\n                <FaIcon @icon='caret-right' />\n              </button>\n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{or\n                  (not this.ganttChartIsVisible)\n                  this.projectIsSetting\n                }}\n                {{on 'click' this.downloadPDF}}\n              >\n                <FaIcon @icon='download' />\n              </button>\n            </div>\n  \n            <div class='btn-group m-1 position-relative' role='group'>\n              <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n                <button\n                  type='button'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                  disabled={{this.projectIsSetting}}\n                >\n                  <FaIcon @icon='cog' />\n                </button>\n                <po.Content>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttCriticalPathsEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttCriticalPathsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Critical paths'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttDependenciesEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttDependenciesEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Draw dependencies'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttFillTicksEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttFillTicksEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Stretch tasks to fill ticks'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttNonWorkingTimeEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttNonWorkingTimeEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Highlight non-working time'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttColumnLinesEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttColumnLinesEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show column lines'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttRollupsEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttRollupsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Show rollups'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttProgressLineEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttProgressLineEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show progress lines'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttParentAreaEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttParentAreaEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show parent area'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttLabelsEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttLabelsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Task labels'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttSubGridConfigsEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttSubGridConfigsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Hide schedule'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttTableCollapsed')}}\n                    data-test-hide-table-setting\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttTableCollapsed}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Hide table'}}\n                  </label>\n                </po.Content>\n              </PopOver>\n            </div>\n          </div>\n  \n          <span class='m-1'>\n            <input\n              class='form-control'\n              placeholder={{t 'common.Search'}}\n              aria-label='Search'\n              value={{this.searchString}}\n              {{on 'input' this.onSearchChange}}\n            />\n          </span>\n  \n          {{#if this.canUseImportAndManage}}\n            <span class='m-1'>\n              <button\n                type='button'\n                class='btn btn-primary'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' (fn (mut this.taskImportModalVisible) true)}}\n              >\n                <FaIcon @icon='tasks' />&nbsp;{{t\n                  'entity.builda-price.scheduling.timeline.Import tasks'\n                }}\n              </button>\n            </span>\n          {{/if}}\n  \n          <span class='m-1'>\n            {{#if this.onSyncGantt.isRunning}}\n              <button type='button' class='btn btn-primary' disabled={{true}}>\n                <span class='spinner-border spinner-border-sm'></span>&nbsp;{{t\n                  'common.Saving'\n                }}&hellip;\n              </button>\n            {{else}}\n              <button\n                type='button'\n                disabled={{or\n                  (not this.undoCount)\n                  (or (not this.ganttChartIsVisible) this.projectIsSetting)\n                }}\n                class='btn btn-primary text-nowrap'\n                {{on 'click' (perform this.onSyncGantt)}}\n              >\n                <FaIcon @icon='save' />&nbsp;{{t 'common.Save'}}\n              </button>\n            {{/if}}\n          </span>\n        {{/if}}\n      </div>\n  \n      {{#if this.ganttChartIsVisible}}\n        <div id='gantt-chart-container' class='flex-fill'></div>\n      {{else}}\n        <div class='p-3 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t\n                'entity.builda-price.scheduling.timeline.Choose a project to view its timeline'\n              }}\n            </b>\n          </p>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='p-3 d-flex flex-column align-items-center'>\n        <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n        <p class='fs-4 mt-0 mb-3'>\n          <b>\n            {{t\n              'entity.builda-price.scheduling.timeline.There are no projects yet'\n            }}\n          </b>\n        </p>\n        {{#if (includes-feature-flags 'canManageProjects')}}\n          <LinkTo @route='entity.builda-price.projects' class='btn btn-primary'>\n            {{t 'entity.builda-price.scheduling.timeline.Create a project'}}\n          </LinkTo>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.taskImportModalVisible}}\n    <TimelineTaskImportModal\n      @projects={{this.manageableProjects}}\n      @onClose={{this.onTaskImportModalClose}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"WjhouiId\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"d-flex flex-column h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"px-4 pt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"ms-0 me-3 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@options\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@selected\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"projects\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"name\\\",[30,0,[\\\"selectedProjects\\\"]],[28,[37,6],[\\\"common.Select a project\\\"],null],[30,0,[\\\"onSetProjects\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"projects\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"d-flex align-items-center mx-4 mb-3 flex-wrap\\\"],[4,[38,9],[[28,[37,10],[[30,0,[\\\"initializeGanttChart\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ganttChartIsVisible\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-lg-grow-1 flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"position-relative\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"undoCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"undoCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Undo\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-start\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"undoCount\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onUndo\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"undo\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"position-relative\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"redoCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"redoCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Redo\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-end\\\"],[24,5,\\\"margin-left: -1px;\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"redoCount\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onRedo\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"redo\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Expand all\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onCollapseAllClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-double-down\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Collapse all\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onExpandAllClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-double-up\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Zoom in\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onZoomInClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"search-plus\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Zoom out\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onZoomOutClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"search-minus\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Zoom to fit\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onZoomToFitClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"compress-arrows-alt\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Previous time span\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onShiftPreviousClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-left\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Go to today\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onGoToTodayClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"calendar-day\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Next time span\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onShiftNextClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-right\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"ganttChartIsVisible\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"downloadPDF\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1 position-relative\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],[[4,[38,15],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[15,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"cog\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttCriticalPathsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttCriticalPathsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Critical paths\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttDependenciesEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttDependenciesEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Draw dependencies\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttFillTicksEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttFillTicksEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Stretch tasks to fill ticks\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttNonWorkingTimeEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttNonWorkingTimeEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Highlight non-working time\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttColumnLinesEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttColumnLinesEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show column lines\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttRollupsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttRollupsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show rollups\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttProgressLineEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttProgressLineEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show progress lines\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttParentAreaEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttParentAreaEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show parent area\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttLabelsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttLabelsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Task labels\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttSubGridConfigsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttSubGridConfigsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Hide schedule\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-hide-table-setting\\\",\\\"\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttTableCollapsed\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttTableCollapsed\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Hide table\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[2]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search\\\"],[16,2,[30,0,[\\\"searchString\\\"]]],[4,[38,15],[\\\"input\\\",[30,0,[\\\"onSearchChange\\\"]]],null],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canUseImportAndManage\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[28,[37,21],[[30,0,[\\\"taskImportModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"tasks\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Import tasks\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSyncGantt\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"undoCount\\\"]]],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"ganttChartIsVisible\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],null]],[24,0,\\\"btn btn-primary text-nowrap\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onSyncGantt\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"save\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ganttChartIsVisible\\\"]],[[[1,\\\"      \\\"],[10,0],[14,1,\\\"gantt-chart-container\\\"],[14,0,\\\"flex-fill\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Choose a project to view its timeline\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.There are no projects yet\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[\\\"canManageProjects\\\"],null],[[[1,\\\"        \\\"],[8,[39,25],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Create a project\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"taskImportModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@projects\\\",\\\"@onClose\\\"],[[30,0,[\\\"manageableProjects\\\"]],[30,0,[\\\"onTaskImportModalClose\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"project\\\",\\\"po\\\"],false,[\\\"article\\\",\\\"div\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h1\\\",\\\"t\\\",\\\"power-select-multiple\\\",\\\"loading-icon\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"span\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"pop-over\\\",\\\"label\\\",\\\"fn\\\",\\\"input\\\",\\\"mut\\\",\\\"p\\\",\\\"b\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"timeline-task-import-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/scheduling/timeline.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/disabled\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='m-4 text-center'>\n    <h1 class='h1'>Your company has been disabled.</h1>\n    <p class='p'>This is usually due to a subscription cancellation or a\n      non-payment.</p>\n  \n    {{#if\n      (and\n        (includes-feature-flags 'userIsEntityAdmin') this.hasChargebeeSubscription\n      )\n    }}\n      <p class='p'>\n        <button\n          class='button'\n          type='button'\n          {{on 'click' this.openChargebee}}\n        >Manage your subscription</button>\n      </p>\n    {{else}}\n      <p class='p'>\n        If you believe this to be in error, please\n        <a\n          class='link'\n          href='https://buildaprice.zendesk.com/hc/en-us/requests/new'\n          target='_blank'\n          rel='noopener noreferrer'\n        >click here</a>\n        to contact support.\n      </p>\n      <button class='button' type='button' {{on 'click' this.logout}}>Sign out</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"xLSsrIsY\",\n    \"block\": \"[[[10,0],[14,0,\\\"m-4 text-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Your company has been disabled.\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"This is usually due to a subscription cancellation or a\\\\n    non-payment.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[[28,[37,5],[\\\"userIsEntityAdmin\\\"],null],[30,0,[\\\"hasChargebeeSubscription\\\"]]],null],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"openChargebee\\\"]]],null],[12],[1,\\\"Manage your subscription\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      If you believe this to be in error, please\\\\n      \\\"],[10,3],[14,0,\\\"link\\\"],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us/requests/new\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"click here\\\"],[13],[1,\\\"\\\\n      to contact support.\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,\\\"Sign out\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"h1\\\",\\\"p\\\",\\\"if\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/disabled.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"LKh/yDVu\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <EmberWormhole @to='title-bar__content'>\n  \n      {{#if (includes-feature-flags 'isAPBCustomer')}}\n        <a\n          href='https://www.buildaprice.co.nz'\n          target='_blank'\n          rel='noopener noreferrer'\n          class='btn btn-light btn-sm'\n        >\n          <img width='20' src={{this.buildaPriceLogoSrc}} />&nbsp;&nbsp;Powered by\n          Builda Price\n        </a>\n      {{/if}}\n  \n      <div\n        class='flex-grow-1 d-flex align-items-center justify-content-end text-light'\n      >\n        {{! month picker }}\n        <div class='d-flex align-items-center me-3'>\n          <MonthPicker @period={{this.sessionData.period}} @dark={{true}} />\n        </div>\n  \n        {{! support button }}\n        <a\n          href='https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='question-circle' />\n        </a>\n      </div>\n    </EmberWormhole>\n  \n    <div class='page__container'>\n      <ModuleNavigation::Financials />\n  \n      <main class='page__container-content'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-avatar-content'\n      @send={{component\n        'mobile-title-bar/avatar/avatar-link'\n        label='Support'\n        link='https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal'\n      }}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-right-content'\n      @send={{component\n        'month-picker'\n        period=this.sessionData.period\n        compact=true\n      }}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/financials'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"2evM6Xty\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@to\\\"],[\\\"title-bar__content\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[\\\"isAPBCustomer\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://www.buildaprice.co.nz\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-light btn-sm\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"img\\\"],[14,\\\"width\\\",\\\"20\\\"],[15,\\\"src\\\",[30,0,[\\\"buildaPriceLogoSrc\\\"]]],[12],[13],[1,\\\"  Powered by\\\\n        Builda Price\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-end text-light\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center me-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@period\\\",\\\"@dark\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,3],[14,6,\\\"https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-avatar-content\\\",[50,\\\"mobile-title-bar/avatar/avatar-link\\\",0,null,[[\\\"label\\\",\\\"link\\\"],[\\\"Support\\\",\\\"https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal\\\"]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-right-content\\\",[50,\\\"month-picker\\\",0,null,[[\\\"period\\\",\\\"compact\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],true]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/financials\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"ember-wormhole\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"img\\\",\\\"div\\\",\\\"month-picker\\\",\\\"fa-icon\\\",\\\"module-navigation/financials\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/chart-of-accounts-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"Ts96xiYg\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/chart-of-accounts-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Chart of accounts'}}\n    />\n  {{/unless}}\n  {{#unless this.isLoading}}\n    <StickyTop>\n      <div class='width--medium'>\n        <LoadingButton\n          @action={{action 'save'}}\n          @class='button float-end coa-editor__save-button'\n          @isLoading={{this.isSaving}}\n        >Save</LoadingButton>\n      </div>\n    </StickyTop>\n  {{/unless}}\n  \n  <div class='width--medium m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Chart of accounts</h1>\n      </header>\n    {{/if}}\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Profit &amp; Loss</h2>\n        </header>\n  \n        <CoaEditor\n          @class='profit-and-loss-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.profit-and-loss}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'profit-and-loss'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Balance Sheet</h2>\n        </header>\n  \n        <CoaEditor\n          @class='balance-sheet-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.balance-sheet}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'balance-sheet'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Other Data</h2>\n        </header>\n  \n        <CoaEditor\n          @class='other-data-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.other-data}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'other-data'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      {{#if this.isDeleting}}\n        <ModalDialog\n          @overlayClass='modal'\n          @translucentOverlay={{true}}\n          @containerClass='block-module'\n          @onClose={{action 'cancelDelete'}}\n        >\n          <p>Are you sure you want to delete this account? This action cannot be\n            undone and could break users’ reports.</p>\n          <footer>\n            <button\n              class='float-end button button--delete'\n              type='button'\n              {{action 'doDelete' this.account}}\n            >Delete</button>\n            <button\n              class='float-end button button--plain button--spaced'\n              type='button'\n              {{action 'cancelDelete'}}\n            >{{t 'common.Cancel'}}</button>\n          </footer>\n        </ModalDialog>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"G/0s0QOp\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Chart of accounts\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"  \\\"],[8,[39,4],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"width--medium\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,7],[[30,0],\\\"save\\\"],null],\\\"button float-end coa-editor__save-button\\\",[30,0,[\\\"isSaving\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"width--medium m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Chart of accounts\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Profit & Loss\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"profit-and-loss-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"profit-and-loss\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"profit-and-loss\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"balance-sheet-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"balance-sheet\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"balance-sheet\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"other-data-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"other-data\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"other-data\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,7],[[30,0],\\\"cancelDelete\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete this account? This action cannot be\\\\n          undone and could break users’ reports.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"doDelete\\\",[30,0,[\\\"account\\\"]]],null],[12],[1,\\\"Delete\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"cancelDelete\\\"],null],[12],[1,[28,[35,18],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"sticky-top\\\",\\\"div\\\",\\\"loading-button\\\",\\\"action\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"coa-editor\\\",\\\"footer\\\",\\\"button\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/chart-of-accounts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Dashboard'}}\n    />\n  {{/unless}}\n  <div class='m-4 dashboard'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <Dashboard::ModuleRows\n        @modules={{this.model.modules}}\n        @data={{this.model.configData}}\n      />\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"EgT+IJcZ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Dashboard\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"m-4 dashboard\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@modules\\\",\\\"@data\\\"],[[30,0,[\\\"model\\\",\\\"modules\\\"]],[30,0,[\\\"model\\\",\\\"configData\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"dashboard/module-rows\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/general-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"l96IA54h\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/general-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/general\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Reporting period'}}\n    />\n  {{/unless}}\n  <div class='width--medium m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Reporting period</h1>\n      </header>\n    {{/if}}\n    <form class='block-module'>\n      <div class='tabular-form-controls'>\n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='opening-balance-date-input'\n          >Opening Balance Date</label>\n  \n          <div class='tabular-form-controls__cell'>\n            <SelectInput\n              @value={{this.balanceDate}}\n              @action={{fn (mut this.balanceDate)}}\n              @id='opening-balance-date-input'\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.months as |month|}}\n                <si.option @value={{month.value}}>{{month.name}}</si.option>\n              {{/each}}\n            </SelectInput>\n          </div>\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          >\n            {{this.firstClosedPeriodLabel}}\n            <InfoPopup @text={{this.firstClosedPeriodExplanation}} />\n          </label>\n  \n          <div class='tabular-form-controls__cell'>\n            <SelectInput\n              @value={{this.firstClosedMonth}}\n              @action={{fn (mut this.firstClosedMonth)}}\n              @disabled={{this.openAllPeriods}}\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.months as |month|}}\n                <si.option @value={{month.value}}>{{month.name}}</si.option>\n              {{/each}}\n            </SelectInput>\n  \n            <SelectInput\n              @value={{this.firstClosedYear}}\n              @action={{fn (mut this.firstClosedYear)}}\n              @disabled={{this.openAllPeriods}}\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.years as |year|}}\n                <si.option @value={{year}}>{{year}}</si.option>\n              {{/each}}\n            </SelectInput>\n  \n            <label>\n              <Input @type='checkbox' @checked={{this.openAllPeriods}} />\n              Open All Periods\n            </label>\n          </div>\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button'\n          @isLoading={{this.isSaving}}\n          @action={{action 'save'}}\n          @buttonText='Save Entity'\n        />\n      </footer>\n    </form>\n  </div>\n  */\n  {\n    \"id\": \"FFRQhMl/\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Reporting period\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"width--medium m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Reporting period\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"form\\\"],[14,0,\\\"block-module\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"opening-balance-date-input\\\"],[12],[1,\\\"Opening Balance Date\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@id\\\",\\\"@class\\\"],[[30,0,[\\\"balanceDate\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"balanceDate\\\"]]],null]],null],\\\"opening-balance-date-input\\\",\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"months\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"firstClosedPeriodLabel\\\"]]],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[30,0,[\\\"firstClosedPeriodExplanation\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\",\\\"@class\\\"],[[30,0,[\\\"firstClosedMonth\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"firstClosedMonth\\\"]]],null]],null],[30,0,[\\\"openAllPeriods\\\"]],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"months\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\",\\\"@class\\\"],[[30,0,[\\\"firstClosedYear\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"firstClosedYear\\\"]]],null]],null],[30,0,[\\\"openAllPeriods\\\"]],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"years\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,6]]],[[\\\"default\\\"],[[[[1,[30,6]]],[]]]]],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"          \\\"]],[5]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"openAllPeriods\\\"]]]],null],[1,\\\"\\\\n            Open All Periods\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button\\\",[30,0,[\\\"isSaving\\\"]],[28,[37,19],[[30,0],\\\"save\\\"],null],\\\"Save Entity\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"si\\\",\\\"month\\\",\\\"si\\\",\\\"month\\\",\\\"si\\\",\\\"year\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"div\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"form\\\",\\\"label\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"info-popup\\\",\\\"input\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/general.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"iSm8OxT1\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Groups'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Groups</h1>\n      </header>\n    {{/if}}\n    <header>\n      <ul class='tabs'>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.membership'\n          >Membership</LinkTo></li>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.access'\n          >Access</LinkTo></li>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.order'\n          >Order</LinkTo></li>\n      </ul>\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{outlet}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"qxNjXtl1\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Groups\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Groups\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.membership\\\"]],[[\\\"default\\\"],[[[[1,\\\"Membership\\\"]],[]]]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.access\\\"]],[[\\\"default\\\"],[[[[1,\\\"Access\\\"]],[]]]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.order\\\"]],[[\\\"default\\\"],[[[[1,\\\"Order\\\"]],[]]]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"ul\\\",\\\"li\\\",\\\"link-to\\\",\\\"loading-icon\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups/membership-and-access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (eq this.propertyToToggle 'isInGroup')}}\n    <p>You are currently editing\n      <strong>group membership</strong>. A check mark means a branch’s data will\n      be included in that group’s averages or totals.</p>\n  {{else}}\n    <p>You are currently editing\n      <strong>group access</strong>. A check mark means a branch has permission to\n      view that group’s averages or totals.</p>\n  {{/if}}\n  \n  {{#unless this.noEditGroups}}\n    {{! If the noEditGroups option is set, do not allow editing or saving }}\n    <p>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isSaving}}\n      >Save</LoadingButton>\n      <button\n        class='button button--add'\n        type='button'\n        {{action 'addNewGroup'}}\n      >New group</button>\n    </p>\n  {{else}}\n    {{! This is to make sure that there is enough space where the buttons would have been }}\n    <br /><br />\n  {{/unless}}\n  \n  <table class='shrink groups-editor data-table'>\n    <thead>\n      <tr>\n        <th>Branches</th>\n        {{#each this.model.groups as |group|}}\n          <th><label><Input\n                @value={{group.name}}\n                placeholder='Unnamed'\n              /></label></th>\n        {{/each}}\n      </tr>\n    </thead>\n  \n    <tbody>\n      {{#each this.tableContent as |branch|}}\n        <tr>\n          <td>{{branch.name}}</td>\n  \n          {{! custom }}\n          {{#each branch.groupData as |groupData|}}\n            <td><label><Input\n                  @type='checkbox'\n                  @checked={{groupData.propertyToToggle}}\n                /></label></td>\n          {{/each}}\n        </tr>\n      {{/each}}\n    </tbody>\n  \n    <tfoot>\n      <tr class='subdued'>\n        <td>Consolidation group</td>\n        {{#each this.model.groups as |group|}}\n          <td><label><Input\n                @type='checkbox'\n                @checked={{group.consolidation}}\n              /></label></td>\n        {{/each}}\n      </tr>\n  \n      {{#unless this.noEditGroups}}\n        {{! Do not allow deleting if noEditGroups is true }}\n        <tr class='subdued'>\n          <td>Delete group…</td>\n  \n          {{#each this.model.groups as |group|}}\n            <td><button\n                class='text-button text-button--delete'\n                type='button'\n                {{action 'deleteGroup' group}}\n              ><FaIcon @icon='times' /></button></td>\n          {{/each}}\n        </tr>\n      {{/unless}}\n    </tfoot>\n  </table>\n  \n  {{#if this.groupBeingDeleted}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action 'cancelDeleteGroup'}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>Delete group</h2>\n      </header>\n  \n      <p>Are you sure you want to delete ‘{{this.groupBeingDeleted.name}}’?</p>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @action={{action 'confirmDeleteGroup' this.groupBeingDeleted}}\n          @isLoading={{this.isDeleting}}\n          @class='float-end button button--delete'\n        >\n          Delete\n        </LoadingButton>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action 'cancelDeleteGroup'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"dyX6nipJ\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"propertyToToggle\\\"]],\\\"isInGroup\\\"],null],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"You are currently editing\\\\n    \\\"],[10,\\\"strong\\\"],[12],[1,\\\"group membership\\\"],[13],[1,\\\". A check mark means a branch’s data will\\\\n    be included in that group’s averages or totals.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"You are currently editing\\\\n    \\\"],[10,\\\"strong\\\"],[12],[1,\\\"group access\\\"],[13],[1,\\\". A check mark means a branch has permission to\\\\n    view that group’s averages or totals.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,6],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isSaving\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"addNewGroup\\\"],null],[12],[1,\\\"New group\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[10,\\\"table\\\"],[14,0,\\\"shrink groups-editor data-table\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,\\\"Branches\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"th\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],[[24,\\\"placeholder\\\",\\\"Unnamed\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"name\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"tableContent\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,2,[\\\"groupData\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3,[\\\"propertyToToggle\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[14,0,\\\"subdued\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Consolidation group\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,4,[\\\"consolidation\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[14,0,\\\"subdued\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Delete group…\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"deleteGroup\\\",[30,5]],null],[12],[8,[39,20],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"groupBeingDeleted\\\"]],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,6],[[30,0],\\\"cancelDeleteGroup\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Delete group\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete ‘\\\"],[1,[30,0,[\\\"groupBeingDeleted\\\",\\\"name\\\"]]],[1,\\\"’?\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@action\\\",\\\"@isLoading\\\",\\\"@class\\\"],[[28,[37,6],[[30,0],\\\"confirmDeleteGroup\\\",[30,0,[\\\"groupBeingDeleted\\\"]]],null],[30,0,[\\\"isDeleting\\\"]],\\\"float-end button button--delete\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        Delete\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"cancelDeleteGroup\\\"],null],[12],[1,[28,[35,25],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"group\\\",\\\"branch\\\",\\\"groupData\\\",\\\"group\\\",\\\"group\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"p\\\",\\\"strong\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"action\\\",\\\"button\\\",\\\"br\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"input\\\",\\\"tbody\\\",\\\"td\\\",\\\"tfoot\\\",\\\"fa-icon\\\",\\\"modal-dialog\\\",\\\"header\\\",\\\"h2\\\",\\\"footer\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups/membership-and-access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups/order\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>Here you can edit the order in which groups will appear.</p>\n  \n  {{#unless this.noEditGroups}}\n    {{! Do not allow saving if noEditGroups is true }}\n    <LoadingButton\n      @isLoading={{this.isSaving}}\n      @class='button'\n      @action={{action 'save'}}\n    >Save</LoadingButton>\n  {{/unless}}\n  \n  {{#if this.model.groups}}\n    <SortableList\n      @content={{this.model.groups}}\n      @property='name'\n      @class='block'\n    />\n  {{else}}\n    <p class='ptl-placeholder'>There are no groups yet. Go to the\n      <LinkTo @route='entity.financials.groups.access'>memebership</LinkTo>\n      tab to add some.</p>\n  {{/if}}\n  */\n  {\n    \"id\": \"SyvPE4tB\",\n    \"block\": \"[[[10,2],[12],[1,\\\"Here you can edit the order in which groups will appear.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@isLoading\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"isSaving\\\"]],\\\"button\\\",[28,[37,3],[[30,0],\\\"save\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groups\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@content\\\",\\\"@property\\\",\\\"@class\\\"],[[30,0,[\\\"model\\\",\\\"groups\\\"]],\\\"name\\\",\\\"block\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"There are no groups yet. Go to the\\\\n    \\\"],[8,[39,6],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.access\\\"]],[[\\\"default\\\"],[[[[1,\\\"memebership\\\"]],[]]]]],[1,\\\"\\\\n    tab to add some.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"p\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"action\\\",\\\"if\\\",\\\"sortable-list\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups/order.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Import'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <div class='width--large'>\n      {{#if (media 'isDesktop')}}\n        <header class='border-bottom mb-3'>\n          <h1 class='h1'>Import</h1>\n        </header>\n      {{/if}}\n  \n      <nav class='steps step-{{this.step}}'>\n        <ol>\n          <li><LinkTo @route='entity.financials.import.start' class='link'>Select\n              period</LinkTo></li>\n          <li><LinkTo\n              @route='entity.financials.import.data'\n              @model='profit-and-loss'\n              class='link'\n            >Profit &amp; Loss</LinkTo></li>\n          <li><LinkTo\n              @route='entity.financials.import.data'\n              @model='balance-sheet'\n              class='link'\n            >Balance Sheet</LinkTo></li>\n  \n          {{#if this.hasOtherData}}\n            <li><LinkTo\n                @route='entity.financials.import.data'\n                @model='other-data'\n                class='link'\n              >Other Data</LinkTo></li>\n          {{/if}}\n        </ol>\n      </nav>\n  \n      <div>\n        {{outlet}}\n      </div>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"X0WCS1Fk\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Import\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,\\\"nav\\\"],[15,0,[29,[\\\"steps step-\\\",[30,0,[\\\"step\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"entity.financials.import.start\\\"]],[[\\\"default\\\"],[[[[1,\\\"Select\\\\n            period\\\"]],[]]]]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"profit-and-loss\\\"]],[[\\\"default\\\"],[[[[1,\\\"Profit & Loss\\\"]],[]]]]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"balance-sheet\\\"]],[[\\\"default\\\"],[[[[1,\\\"Balance Sheet\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasOtherData\\\"]],[[[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"other-data\\\"]],[[\\\"default\\\"],[[[[1,\\\"Other Data\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,13],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"nav\\\",\\\"ol\\\",\\\"li\\\",\\\"link-to\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <h2>\n    {{this.stepName}}\n    for\n    {{moment-format this.sessionData.period 'MMMM YYYY' 'YYYY-MM'}}\n  </h2>\n  \n  <div\n    class='financial-data-viewer limit-large\n      {{if this.isConfiguring \"configuring\"}}'\n  >\n    <FinancialDataTable\n      @accountList={{this.accountList}}\n      @selectedSystem={{this.selectedSystem}}\n      @remap={{action 'remap'}}\n      @invertMap={{action 'invertMap'}}\n      @toggleConfigPane={{action 'toggleConfigPane'}}\n    />\n  \n    <FinancialDataImporter\n      @period={{this.period}}\n      @systems={{this.visibleSystems}}\n      @selectedSystem={{this.selectedSystem}}\n      @canChangeSystem={{this.sessionData.entity.canChangeSystem}}\n      @maps={{this.unusedMaps}}\n      @isImporting={{this.isImporting}}\n      @importData={{this.model.import}}\n      @selectSystem={{action 'selectSystem'}}\n      @import={{action 'import'}}\n      @remap={{action 'remap'}}\n      @save={{action 'save'}}\n      @advance={{action 'advance'}}\n    />\n  </div>\n  */\n  {\n    \"id\": \"x/DCldKH\",\n    \"block\": \"[[[10,\\\"h2\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"stepName\\\"]]],[1,\\\"\\\\n  for\\\\n  \\\"],[1,[28,[35,1],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\",\\\"YYYY-MM\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[15,0,[29,[\\\"financial-data-viewer limit-large\\\\n    \\\",[52,[30,0,[\\\"isConfiguring\\\"]],\\\"configuring\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[8,[39,4],null,[[\\\"@accountList\\\",\\\"@selectedSystem\\\",\\\"@remap\\\",\\\"@invertMap\\\",\\\"@toggleConfigPane\\\"],[[30,0,[\\\"accountList\\\"]],[30,0,[\\\"selectedSystem\\\"]],[28,[37,5],[[30,0],\\\"remap\\\"],null],[28,[37,5],[[30,0],\\\"invertMap\\\"],null],[28,[37,5],[[30,0],\\\"toggleConfigPane\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@period\\\",\\\"@systems\\\",\\\"@selectedSystem\\\",\\\"@canChangeSystem\\\",\\\"@maps\\\",\\\"@isImporting\\\",\\\"@importData\\\",\\\"@selectSystem\\\",\\\"@import\\\",\\\"@remap\\\",\\\"@save\\\",\\\"@advance\\\"],[[30,0,[\\\"period\\\"]],[30,0,[\\\"visibleSystems\\\"]],[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"canChangeSystem\\\"]],[30,0,[\\\"unusedMaps\\\"]],[30,0,[\\\"isImporting\\\"]],[30,0,[\\\"model\\\",\\\"import\\\"]],[28,[37,5],[[30,0],\\\"selectSystem\\\"],null],[28,[37,5],[[30,0],\\\"import\\\"],null],[28,[37,5],[[30,0],\\\"remap\\\"],null],[28,[37,5],[[30,0],\\\"save\\\"],null],[28,[37,5],[[30,0],\\\"advance\\\"],null]]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"h2\\\",\\\"moment-format\\\",\\\"div\\\",\\\"if\\\",\\\"financial-data-table\\\",\\\"action\\\",\\\"financial-data-importer\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/done\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='block-module block-module--centered'>\n    <h3 class='h3'>Your import is complete!</h3>\n    <p>Go to the\n      <LinkTo @route='entity.financials.reports.kpis.index' class='link'>KPIs page</LinkTo>\n      to view analysis of these numbers.</p>\n  </div>\n  */\n  {\n    \"id\": \"QAGyQujn\",\n    \"block\": \"[[[10,0],[14,0,\\\"block-module block-module--centered\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,\\\"Your import is complete!\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Go to the\\\\n    \\\"],[8,[39,3],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"entity.financials.reports.kpis.index\\\"]],[[\\\"default\\\"],[[[[1,\\\"KPIs page\\\"]],[]]]]],[1,\\\"\\\\n    to view analysis of these numbers.\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"h3\\\",\\\"p\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/done.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"ItP0sLvo\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/start\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='block-module block-module--centered'>\n    <p>Get started by selecting a month to add or change.</p>\n    <p><MonthPicker @period={{this.sessionData.period}} /></p>\n    <button class='button' type='button' {{action 'advance'}}>Continue</button>\n  </div>\n  */\n  {\n    \"id\": \"HbUj3OTR\",\n    \"block\": \"[[[10,0],[14,0,\\\"block-module block-module--centered\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Get started by selecting a month to add or change.\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[8,[39,2],null,[[\\\"@period\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]]]],null],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Continue\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"month-picker\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/start.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"21lgQEX0\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='KPIs'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.model.length}}<LoadingButton\n        @isLoading={{this.isSaving}}\n        @action={{action 'save'}}\n        @class='float-end button'\n      >Save</LoadingButton>{{/if}}\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>KPIs</h1>\n      </header>\n    {{/if}}\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.model.length}}\n        <section class='master-detail'>\n          <aside class='master-detail__master'>\n            <SortableList @content={{this.model}} as |kpi|>\n              <li data-id={{kpi.id}}><LinkTo\n                  @route='entity.financials.kpis.kpi'\n                  @model={{kpi.id}}\n                >{{kpi.name}}</LinkTo></li>\n            </SortableList>\n          </aside>\n  \n          <article class='master-detail__detail'>\n            {{outlet}}\n          </article>\n        </section>\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>There are no KPIs set up.</h3>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"keyJndr0\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"KPIs\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[41,[30,0,[\\\"model\\\",\\\"length\\\"]],[[[8,[39,6],null,[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,7],[[30,0],\\\"save\\\"],null],\\\"float-end button\\\"]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"KPIs\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,\\\"section\\\"],[14,0,\\\"master-detail\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"aside\\\"],[14,0,\\\"master-detail__master\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@content\\\"],[[30,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"li\\\"],[15,\\\"data-id\\\",[30,1,[\\\"id\\\"]]],[12],[8,[39,15],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.kpis.kpi\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[30,1,[\\\"name\\\"]]]],[]]]]],[13],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"article\\\"],[14,0,\\\"master-detail__detail\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,16],null,null],null,null,null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no KPIs set up.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"kpi\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"loading-button\\\",\\\"action\\\",\\\"header\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"section\\\",\\\"aside\\\",\\\"sortable-list\\\",\\\"li\\\",\\\"link-to\\\",\\\"-outlet\\\",\\\"div\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis/kpi\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <header>\n    <h1 class='h1'>{{this.model.name}}</h1>\n  </header>\n  \n  <form>\n    <div class='tabular-form-controls'>\n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-name'\n        >Name</label>\n        <Input\n          @value={{this.model.name}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-name'\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-intro-line'\n        >Intro line</label>\n        <Input\n          @value={{this.model.introLine}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-intro-line'\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          for='kpi-active'\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n        >Active</label>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--info'\n        >\n          <Input\n            @type='checkbox'\n            id='kpi-active'\n            @checked={{this.model.active}}\n          />\n          Active KPIs are available on the Dashboard and the KPIs page.</label>\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-description'\n        >Description</label>\n        <Textarea\n          @value={{this.model.description}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-description'\n          rows='8'\n        />\n        <MarkdownToHtml\n          @class='tabular-form-controls__cell markdown-output'\n          @markdown={{this.model.description}}\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-strategies'\n        >Strategies</label>\n        <Textarea\n          @value={{this.model.strategies}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-strategies'\n          rows='8'\n        />\n        <MarkdownToHtml\n          @class='tabular-form-controls__cell markdown-output'\n          @markdown={{this.model.strategies}}\n        />\n      </div>\n    </div>\n  </form>\n  */\n  {\n    \"id\": \"bWrUjMDY\",\n    \"block\": \"[[[10,\\\"header\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-name\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-intro-line\\\"],[12],[1,\\\"Intro line\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-intro-line\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"introLine\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"kpi-active\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--info\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],[[24,1,\\\"kpi-active\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"model\\\",\\\"active\\\"]]]],null],[1,\\\"\\\\n        Active KPIs are available on the Dashboard and the KPIs page.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-description\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-description\\\"],[24,\\\"rows\\\",\\\"8\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"description\\\"]]]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@markdown\\\"],[\\\"tabular-form-controls__cell markdown-output\\\",[30,0,[\\\"model\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-strategies\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-strategies\\\"],[24,\\\"rows\\\",\\\"8\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"strategies\\\"]]]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@markdown\\\"],[\\\"tabular-form-controls__cell markdown-output\\\",[30,0,[\\\"model\\\",\\\"strategies\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"header\\\",\\\"h1\\\",\\\"form\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"textarea\\\",\\\"markdown-to-html\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis/kpi.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/planning/strategies\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Strategies'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <button\n          class='float-end button'\n          type='button'\n          {{action 'save'}}\n        >Save</button>\n        <h1 class='h1'>Strategies</h1>\n      </header>\n    {{/if}}\n  \n    <div class='width--large'>\n      <section>\n        <h2 class='h2'>Finances</h2>\n  \n        <StrategiesTable\n          @targets={{this.accountTargets}}\n          @metrics={{this.untargetedAccounts}}\n          @addTarget={{action 'addTarget'}}\n          @removeTarget={{action 'removeTarget'}}\n        />\n      </section>\n  \n      <section>\n        <h2 class='h2'>KPIs</h2>\n  \n        <StrategiesTable\n          @targets={{this.kpiTargets}}\n          @metrics={{this.untargetedKPIs}}\n          @includeBreakdowns={{true}}\n          @purgeEmptyBreakdownLines={{action 'purgeEmptyBreakdownLines'}}\n          @addTarget={{action 'addTarget'}}\n          @removeTarget={{action 'removeTarget'}}\n        />\n      </section>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"Nwzz8ozm\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Strategies\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"save\\\"],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Finances\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@targets\\\",\\\"@metrics\\\",\\\"@addTarget\\\",\\\"@removeTarget\\\"],[[30,0,[\\\"accountTargets\\\"]],[30,0,[\\\"untargetedAccounts\\\"]],[28,[37,8],[[30,0],\\\"addTarget\\\"],null],[28,[37,8],[[30,0],\\\"removeTarget\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"KPIs\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@targets\\\",\\\"@metrics\\\",\\\"@includeBreakdowns\\\",\\\"@purgeEmptyBreakdownLines\\\",\\\"@addTarget\\\",\\\"@removeTarget\\\"],[[30,0,[\\\"kpiTargets\\\"]],[30,0,[\\\"untargetedKPIs\\\"]],true,[28,[37,8],[[30,0],\\\"purgeEmptyBreakdownLines\\\"],null],[28,[37,8],[[30,0],\\\"addTarget\\\"],null],[28,[37,8],[[30,0],\\\"removeTarget\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"div\\\",\\\"section\\\",\\\"h2\\\",\\\"strategies-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/planning/strategies.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"07pKVGDn\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"tGMVp2Xv\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Balance sheet'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Balance Sheet</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.model.entities}}\n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Balance Sheet</th>\n  \n            {{#each this.orderedEntities as |entity|}}\n              <th class='financials-table__heading'>\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          <FinancialsTableSection\n            @canSeeBreakdown={{this.canSeeBreakdown}}\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n            @accounts={{this.balanceSheet}}\n            @showMonth={{true}}\n            @showYTD={{false}}\n            @totalsRow='Net Equity'\n            @hasGroups={{true}}\n          />\n        </tbody>\n      </table>\n  \n      <p class='ptl-placeholder'>Click on any table column heading to put that\n        column first.</p>\n  \n      <p class='ptl-placeholder limit-small'>* Numbers in this row will be sum of\n        its subsections for a single branch but not necessarily for groups. More\n        information can be found on the\n        <a\n          href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n          class='link'\n        >support site.</a></p>\n  \n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  \n    {{#if this.showBreakdown}}\n      <MetricBreakdown\n        @selectedMetric={{this.selectedMetric}}\n        @selectedGroup={{this.selectedGroup}}\n        @periodType={{this.selectedPeriodType}}\n        @overlay-class='breakdown'\n        @clickOutsideToClose={{true}}\n        @translucentOverlay={{true}}\n        @close={{action 'toggleShowBreakdown'}}\n        @accountType='balances'\n      />\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"meYSuJbW\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Balance sheet\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,21],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"balanceSheet\\\"]],true,false,\\\"Net Equity\\\",true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"Click on any table column heading to put that\\\\n      column first.\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[14,0,\\\"ptl-placeholder limit-small\\\"],[12],[1,\\\"* Numbers in this row will be sum of\\\\n      its subsections for a single branch but not necessarily for groups. More\\\\n      information can be found on the\\\\n      \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"    \\\"],[8,[39,29],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/balance-sheet.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"m4XRRNIb\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='ITM custom P&L'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n      {{/if}}\n  \n      <nav class='tabs'>\n        <ul class='tabs__group'>\n          <li class='tabs__tab'>\n            <a\n              class='{{if this.profitAndLossTableVisible \"active\"}}'\n              {{action 'setProfitAndLossTableVisible' true}}\n            >\n              Profit And Loss\n            </a>\n          </li>\n          <li class='tabs__tab'>\n            <a\n              class='{{unless this.profitAndLossTableVisible \"active\"}}'\n              {{action 'setProfitAndLossTableVisible' false}}\n            >\n              Expenses Table\n            </a>\n          </li>\n        </ul>\n      </nav>\n    </header>\n  \n    <div class='itm-financials-controls'>\n      <div class='itm-financials-controls__section'>\n        <span class='itm-financials-controls__section__title'>\n          Stores:\n        </span>\n        <PowerSelectMultiple\n          @options={{this.allowedEntities}}\n          @selected={{this.selectedEntities}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder='Click to add a store…'\n          @onChange={{action 'selectEntity'}}\n          as |entity|\n        >\n          {{entity.name}}\n        </PowerSelectMultiple>\n  \n        <span class='itm-financials-controls__section__title--last'>\n          Groups:\n        </span>\n        <PowerSelectMultiple\n          @options={{this.allowedGroups}}\n          @selected={{this.selectedGroups}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder='Click to add a group…'\n          @onChange={{action 'selectGroup'}}\n          as |group|\n        >\n          {{group.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='itm-financials-controls__section'>\n        {{! Only show this option if the user is an entity admin }}\n        {{#if (includes-feature-flags 'userIsEntityAdmin')}}\n          <button\n            class='button itm-financials-controls__invite-button'\n            type='button'\n            {{action this.set 'userCreateModalVisible' true}}\n          >\n            Invite Someone to Compare\n          </button>\n        {{/if}}\n  \n        <OverlaidDropdown\n          @buttonText='Filter Table'\n          @title='Filters'\n          @align='right'\n          @buttonClasses='button button--secondary file-input-button'\n        >\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'toggleMonthVisible'}}\n          >\n            {{#if this.monthVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show Month values\n          </label>\n  \n          <label class='overlaid-dropdown__option' {{action 'toggleYtdVisible'}}>\n            {{#if this.ytdVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show YTD values\n          </label>\n  \n          <label\n            class='overlaid-dropdown__option'\n            {{action this.toggleProperty 'lastYearVisible'}}\n          >\n            {{#if this.lastYearVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show last year values\n          </label>\n  \n          <label\n            class='overlaid-dropdown__option'\n            {{action this.toggleProperty 'percentageVisible'}}\n          >\n            {{#if this.percentageVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show % of values\n          </label>\n        </OverlaidDropdown>\n      </div>\n    </div>\n  \n    {{#if this.model}}\n      {{#if this.profitAndLossTableVisible}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{#if this.sessionData.entity.parent.id}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{this.sessionData.entity.name}}</span>\n                </th>\n              {{/if}}\n              {{#each this.selectedEntities as |entity|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{entity.name}}</span>\n                </th>\n              {{/each}}\n              {{#each this.selectedGroups as |group|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{group.name}}{{if group.consolidation ' total' ' avg'}}</span>\n                </th>\n              {{/each}}\n            </tr>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month}}\n                {{#if this.monthVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Current Month</span>\n                  </th>\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Year To Date</span>\n                  </th>\n                {{/if}}\n              {{/each}}\n            </tr>\n            <tr class='data-table__subheading-row'>\n              <th class='financials-table__heading' colspan='2'>Description</th>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month}}\n                {{#if this.monthVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Cost Of Sales }}\n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @expandableTotalRow={{true}}\n              @depth={{0}}\n              @data={{this.model.sales}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @data={{this.model.costOfSales}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.systemMargin}}\n              @title='System Margin'\n            />\n  \n            {{#each this.model.stockVariation.children as |child|}}\n              <ItmFinancialTableSection\n                @childrenHidden={{true}}\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.achievedMargin}}\n              @title='Achieved Margin'\n            />\n  \n            {{! Loyalties & Freight }}\n            {{#each this.model.loyaltiesAndFreight.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.grossMargin}}\n              @title='Gross Margin'\n            />\n  \n            {{! Expenses }}\n            {{#each this.model.expenses.children as |child|}}\n              <ItmFinancialTableSection\n                @childrenHidden={{true}}\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @childrenHidden={{true}}\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @data={{this.model.expenses}}\n              @highlighted={{true}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.ebitda}}\n              @title='EBITDA'\n            />\n  \n            {{! Sundry }}\n            {{#each this.model.otherIncomeAndDepreciation.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.netProfit}}\n              @title='Net Profit'\n            />\n  \n          </tbody>\n        </table>\n      {{else}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{#if this.sessionData.entity.parent.id}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{this.sessionData.entity.name}}</span>\n                </th>\n              {{/if}}\n              {{#each this.selectedEntities as |entity|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{entity.name}}</span>\n                </th>\n              {{/each}}\n              {{#each this.selectedGroups as |group|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{group.name}}{{if group.consolidation ' total' ' avg'}}</span>\n                </th>\n              {{/each}}\n            </tr>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Current Month</span>\n                  </th>\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Year To Date</span>\n                  </th>\n                {{/if}}\n              {{/each}}\n            </tr>\n            <tr class='data-table__subheading-row'>\n              <th class='financials-table__heading' colspan='2'>Description</th>\n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Expenses }}\n            {{#each this.model.expenses.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @showChildren={{true}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n                @parentScoped={{false}}\n              />\n            {{/each}}\n  \n            <tr class='data-table__total-row'>\n              <td colspan='2'>Total Expenses</td>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <td\n                    class='text-right\n                      {{if\n                        (lt this.model.expenses.month 0)\n                        \"financials-table__negative-value\"\n                      }}'\n                  >\n                    {{number-format\n                      (object-at this.model.expenses.month index)\n                      maximumFractionDigits=0\n                      dashZero=true\n                    }}\n                  </td>\n                  {{#if this.lastYearVisible}}\n                    <td\n                      class='text-right\n                        {{if\n                          (lt this.model.expenses.monthPrev 0)\n                          \"financials-table__negative-value\"\n                        }}'\n                    >\n                      {{number-format\n                        (object-at this.model.expenses.monthPrev index)\n                        maximumFractionDigits=0\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <td\n                    class='text-right\n                      {{if\n                        (lt this.model.expenses.ytd 0)\n                        \"financials-table__negative-value\"\n                      }}'\n                  >\n                    {{number-format\n                      (object-at this.model.expenses.ytd index)\n                      maximumFractionDigits=0\n                      dashZero=true\n                    }}\n                  </td>\n                  {{#if this.lastYearVisible}}\n                    <td\n                      class='text-right\n                        {{if\n                          (lt this.model.expenses.ytdPrev 0)\n                          \"financials-table__negative-value\"\n                        }}'\n                    >\n                      {{number-format\n                        (object-at this.model.expenses.ytdPrev index)\n                        maximumFractionDigits=0\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </tbody>\n        </table>\n      {{/if}}\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>Pick a store or group to see report.</h3>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.userCreateModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action this.toggleProperty 'userCreateModalVisible'}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>Create User</h2>\n      </header>\n  \n      <div class='tabular-form-controls'>\n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-first-name'\n          >First name</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.firstName}}\n            id='user-first-name'\n          />\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-last-name'\n          >Last name</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.lastName}}\n            id='user-last-name'\n          />\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-email'\n          >Email</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.email}}\n            @type='email'\n            id='user-email'\n          />\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button button--spaced'\n          @isLoading={{this.isCreatingNewUser}}\n          @action={{action 'createNewUser'}}\n          @buttonText='Create'\n        />\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action this.toggleProperty 'userCreateModalVisible'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"t1Bfr1pg\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"ITM custom P&L\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,\\\"nav\\\"],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"tabs__group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[16,0,[29,[[52,[30,0,[\\\"profitAndLossTableVisible\\\"]],\\\"active\\\"]]]],[4,[38,12],[[30,0],\\\"setProfitAndLossTableVisible\\\",true],null],[12],[1,\\\"\\\\n            Profit And Loss\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[16,0,[29,[[52,[51,[30,0,[\\\"profitAndLossTableVisible\\\"]]],\\\"active\\\"]]]],[4,[38,12],[[30,0],\\\"setProfitAndLossTableVisible\\\",false],null],[12],[1,\\\"\\\\n            Expenses Table\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"itm-financials-controls\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"itm-financials-controls__section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"itm-financials-controls__section__title\\\"],[12],[1,\\\"\\\\n        Stores:\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"allowedEntities\\\"]],[30,0,[\\\"selectedEntities\\\"]],true,\\\"name\\\",\\\"Click to add a store…\\\",[28,[37,12],[[30,0],\\\"selectEntity\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,1],[14,0,\\\"itm-financials-controls__section__title--last\\\"],[12],[1,\\\"\\\\n        Groups:\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"allowedGroups\\\"]],[30,0,[\\\"selectedGroups\\\"]],true,\\\"name\\\",\\\"Click to add a group…\\\",[28,[37,12],[[30,0],\\\"selectGroup\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"itm-financials-controls__section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[\\\"userIsEntityAdmin\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button itm-financials-controls__invite-button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"userCreateModalVisible\\\",true],null],[12],[1,\\\"\\\\n          Invite Someone to Compare\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@buttonText\\\",\\\"@title\\\",\\\"@align\\\",\\\"@buttonClasses\\\"],[\\\"Filter Table\\\",\\\"Filters\\\",\\\"right\\\",\\\"button button--secondary file-input-button\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],\\\"toggleMonthVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show Month values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],\\\"toggleYtdVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show YTD values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"lastYearVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show last year values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"percentageVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show % of values\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\"]],[[[41,[30,0,[\\\"profitAndLossTableVisible\\\"]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"parent\\\",\\\"id\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedGroups\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[1,[52,[30,4,[\\\"consolidation\\\"]],\\\" total\\\",\\\" avg\\\"]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Current Month\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Year To Date\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@expandableTotalRow\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],true,0,[30,0,[\\\"model\\\",\\\"sales\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,0,[\\\"model\\\",\\\"costOfSales\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"systemMargin\\\"]],\\\"System Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"stockVariation\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,5]]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"achievedMargin\\\"]],\\\"Achieved Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"loyaltiesAndFreight\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,6]]],null],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"grossMargin\\\"]],\\\"Gross Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,7]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\",\\\"@highlighted\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,0,[\\\"model\\\",\\\"expenses\\\"]],true]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"ebitda\\\"]],\\\"EBITDA\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"otherIncomeAndDepreciation\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,8]]],null],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"netProfit\\\"]],\\\"Net Profit\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"parent\\\",\\\"id\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,9,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedGroups\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,10,[\\\"name\\\"]]],[1,[52,[30,10,[\\\"consolidation\\\"]],\\\" total\\\",\\\" avg\\\"]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Current Month\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Year To Date\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[11,12]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[13,14]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@showChildren\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\",\\\"@parentScoped\\\"],[[30,0,[\\\"lastYearVisible\\\"]],true,[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,15],false]],null],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Total Expenses\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                    \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"month\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                      \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"monthPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"monthPrev\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                    \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytd\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                      \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytdPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytdPrev\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[16,17]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Pick a store or group to see report.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"userCreateModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,37],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"userCreateModalVisible\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Create User\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-first-name\\\"],[12],[1,\\\"First name\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-first-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newUserData\\\",\\\"firstName\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-last-name\\\"],[12],[1,\\\"Last name\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-last-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newUserData\\\",\\\"lastName\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-email\\\"],[12],[1,\\\"Email\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-email\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"newUserData\\\",\\\"email\\\"]],\\\"email\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,40],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button button--spaced\\\",[30,0,[\\\"isCreatingNewUser\\\"]],[28,[37,12],[[30,0],\\\"createNewUser\\\"],null],\\\"Create\\\"]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"userCreateModalVisible\\\"],null],[12],[1,[28,[35,41],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"group\\\",\\\"entity\\\",\\\"group\\\",\\\"child\\\",\\\"child\\\",\\\"child\\\",\\\"child\\\",\\\"entity\\\",\\\"group\\\",\\\"unused\\\",\\\"index\\\",\\\"unused\\\",\\\"index\\\",\\\"child\\\",\\\"unused\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"nav\\\",\\\"ul\\\",\\\"li\\\",\\\"a\\\",\\\"span\\\",\\\"power-select-multiple\\\",\\\"includes-feature-flags\\\",\\\"overlaid-dropdown\\\",\\\"label\\\",\\\"fa-icon\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tbody\\\",\\\"itm-financial-table-section\\\",\\\"td\\\",\\\"lt\\\",\\\"number-format\\\",\\\"object-at\\\",\\\"h2\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"input\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/other-data-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"781vr8D5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/other-data-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Other data'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n          <div class='data-withheld-notice-container'>\n            {{#if this.model.groupsRedacted}}\n              <GroupsRedactedNotice />\n            {{/if}}\n  \n            {{#if this.model.ownDataWithheld}}\n              <DataWithheldNotice />\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n  \n        <h1 class='h1'>Other Data</h1>\n      </header>\n    {{else}}\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n    {{/if}}\n  \n    {{#if this.otherData}}\n      {{#if this.model.entities}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th>Other Data</th>\n  \n              {{#each this.orderedEntities as |entity|}}\n                <th colspan={{this.colSpan}} class='financials-table__heading'>\n                  <a\n                    {{action 'shiftFarLeft' entity}}\n                    class='financials-table__heading-link'\n                    title='Click to put this column first'\n                  >\n                    {{entity.name}}\n                    {{if\n                      (is-array entity.members)\n                      (if entity.consolidation 'total' 'avg')\n                    }}\n                    {{#if entity.includedEntities}}\n                      <br />\n                      ({{entity.includedEntities}}\n                      /\n                      {{entity.members.length}}\n                      entities)\n                    {{/if}}\n                  </a>\n                </th>\n              {{/each}}\n            </tr>\n  \n            <tr class='data-table__subheading-row'>\n              <th></th>\n  \n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.orderedEntities as |entity|}}\n                <th class='financials-table__heading'>Month</th>\n                <th class='financials-table__heading'>YTD</th>\n              {{/each}}\n            </tr>\n          </thead>\n          <tbody>\n            <FinancialsTableSection\n              @canSeeBreakdown={{this.canSeeBreakdown}}\n              @toggleShowChildren={{action 'toggleShowChildren'}}\n              @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n              @accounts={{this.otherData}}\n              @showMonth={{true}}\n              @showYTD={{true}}\n            />\n          </tbody>\n        </table>\n  \n        <p class='ptl-placeholder'>Click on any table column heading to put that\n          column first.</p>\n  \n        <p class='ptl-placeholder limit-small'>* Numbers in this row will be sum\n          of its subsections for a single branch but not necessarily for groups.\n          More information can be found on the\n          <a\n            href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n            class='link'\n          >support site.</a></p>\n  \n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n          <p>If you believe you have received this message in error, please check\n            with your system administrator.</p>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>This entity has no accounts in this\n          section.</h3>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showBreakdown}}\n    <MetricBreakdown\n      @selectedMetric={{this.selectedMetric}}\n      @selectedGroup={{this.selectedGroup}}\n      @periodType={{this.selectedPeriodType}}\n      @overlay-class='breakdown'\n      @clickOutsideToClose={{true}}\n      @translucentOverlay={{true}}\n      @close={{action 'toggleShowBreakdown'}}\n      @accountType='balances'\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"WwqTnkLZ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Other data\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"            \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"otherData\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"],[1,[52,[28,[37,21],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                    /\\\\n                    \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                    entities)\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,24],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"otherData\\\"]],true,true]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"Click on any table column heading to put that\\\\n        column first.\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder limit-small\\\"],[12],[1,\\\"* Numbers in this row will be sum\\\\n        of its subsections for a single branch but not necessarily for groups.\\\\n        More information can be found on the\\\\n        \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n          with your system administrator.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"This entity has no accounts in this\\\\n        section.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/other-data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/personal-data-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"2Bqeh+Jz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/personal-data-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Personal data'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Personal Data</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.model}}\n      <div class='financials-controls do-not-print control-wrapper'>\n        <label class='financials-controls__option'>\n          <Input @type='checkbox' @checked={{this.monthVisible}} />\n          Show month values\n        </label>\n  \n        <label class='financials-controls__option'>\n          <Input @type='checkbox' @checked={{this.ytdVisible}} />\n          Show YTD values\n        </label>\n  \n        <div class='financials-controls__option'>\n          <label class='options-selection' for='duration-picker'>\n            Number of periods:\n          </label>\n          <SelectInput\n            @value={{this.duration}}\n            @action={{fn (mut this.duration)}}\n            @class='select-box'\n            @id='duration-picker'\n            as |si|\n          >\n            {{#each this.durationOptions as |option|}}\n              <si.option @value={{option}}>{{option}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n  \n        <div class='financials-controls__option'>\n          <label class='options-selection'>\n            Interval:\n          </label>\n          <SelectInput\n            @value={{this.interval}}\n            @action={{fn (mut this.interval)}}\n            @class='select-box'\n            as |si|\n          >\n            {{#each this.intervalOptions as |option|}}\n              <si.option @value={{option.value}}>{{option.name}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Profit and Loss</th>\n  \n            {{#each this.dateRange as |date|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                <a class='financials-table__heading'>\n                  {{moment-format date 'MMM YYYY'}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n            {{! Empty cell to line up }}\n            {{#each this.intervalCount}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th></th>\n              {{/if}}\n            {{/each}}\n          </tr>\n  \n        </thead>\n  \n        <tbody>\n          <PersonalFinancialTableSection\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @accounts={{this.profitAndLoss}}\n            @showMonth={{this.monthVisible}}\n            @showYTD={{this.ytdVisible}}\n            @totalsRow='Net Profit'\n            @filterHeaders={{true}}\n            @periodCount={{this.duration}}\n            @doNotPrintTotal={{this.doNotPrintNetProfit}}\n          />\n        </tbody>\n      </table>\n  \n      <table class='financials-table data-table'>\n        <thead>\n          <tr>\n            <th>Balance Sheet</th>\n  \n            {{#each this.dateRange as |date|}}\n              <th class='financials-table__heading'>\n                <a class='financials-table__heading'>\n                  {{moment-format date 'MMM YYYY'}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n            {{! Empty cell to line up }}\n            {{#each this.intervalCount}}\n              <th class='financials-table__heading'>YTD</th>\n            {{/each}}\n          </tr>\n        </thead>\n  \n        <tbody>\n          <PersonalFinancialTableSection\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @accounts={{this.balanceSheet}}\n            @showMonth={{true}}\n            @totalsRow='Net Equity'\n            @filterHeaders={{true}}\n            @periodCount={{this.duration}}\n            @doNotPrintTotal={{this.doNotPrintNetEquity}}\n          />\n        </tbody>\n      </table>\n  \n      <p>You can prevent sections from printing by clicking on the\n        <FaIcon @icon='eye' />\n        icons.</p>\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"aHdhvCKc\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Personal data\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Personal Data\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls do-not-print control-wrapper\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n        Show month values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n        Show YTD values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"options-selection\\\"],[14,\\\"for\\\",\\\"duration-picker\\\"],[12],[1,\\\"\\\\n          Number of periods:\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\",\\\"@id\\\"],[[30,0,[\\\"duration\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"duration\\\"]]],null]],null],\\\"select-box\\\",\\\"duration-picker\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"durationOptions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2]]],[[\\\"default\\\"],[[[[1,[30,2]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"options-selection\\\"],[12],[1,\\\"\\\\n          Interval:\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"interval\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"interval\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalOptions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"]],[3]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"dateRange\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,23],[[30,5],\\\"MMM YYYY\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalCount\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[28,[37,25],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],null,[[\\\"@toggleShowChildren\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@periodCount\\\",\\\"@doNotPrintTotal\\\"],[[28,[37,8],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"profitAndLoss\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],\\\"Net Profit\\\",true,[30,0,[\\\"duration\\\"]],[30,0,[\\\"doNotPrintNetProfit\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"financials-table data-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"dateRange\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,23],[[30,6],\\\"MMM YYYY\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalCount\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],null,[[\\\"@toggleShowChildren\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@periodCount\\\",\\\"@doNotPrintTotal\\\"],[[28,[37,8],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"balanceSheet\\\"]],true,\\\"Net Equity\\\",true,[30,0,[\\\"duration\\\"]],[30,0,[\\\"doNotPrintNetEquity\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[12],[1,\\\"You can prevent sections from printing by clicking on the\\\\n      \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"eye\\\"]],null],[1,\\\"\\\\n      icons.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"si\\\",\\\"option\\\",\\\"si\\\",\\\"option\\\",\\\"date\\\",\\\"date\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"a\\\",\\\"moment-format\\\",\\\"not\\\",\\\"or\\\",\\\"tbody\\\",\\\"personal-financial-table-section\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"h2\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/personal-data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"br2Wd9IA\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Profit and loss'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n  \n        <h1 class='h1'>Profit and Loss</h1>\n      {{/if}}\n    </header>\n    {{#if this.showBreakdown}}\n      <MetricBreakdown\n        @selectedMetric={{this.selectedMetric}}\n        @selectedGroup={{this.selectedGroup}}\n        @periodType={{this.selectedPeriodType}}\n        @overlay-class='breakdown'\n        @clickOutsideToClose={{true}}\n        @translucentOverlay={{true}}\n        @close={{action 'toggleShowBreakdown'}}\n        @accountType='balances'\n      />\n    {{/if}}\n  \n    {{#if this.model.entities}}\n      <div class='financials-controls'>\n        <div class='control-wrapper'>\n          <label>\n            <Input @type='checkbox' @checked={{this.monthVisible}} />\n            Show month values\n          </label>\n  \n          <label>\n            <Input @type='checkbox' @checked={{this.ytdVisible}} />\n            Show YTD values\n          </label>\n        </div>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Profit and Loss</th>\n  \n            {{#each this.orderedEntities as |entity|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n  \n            {{! template-lint-disable no-unused-block-params }}\n            {{#each this.orderedEntities as |entity|}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th class='financials-table__heading'>–</th>\n              {{/if}}\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          <FinancialsTableSection\n            @canSeeBreakdown={{this.canSeeBreakdown}}\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n            @accounts={{this.profitAndLoss}}\n            @showMonth={{this.monthVisible}}\n            @showYTD={{this.ytdVisible}}\n            @totalsRow='Net Profit'\n            @hasGroups={{true}}\n          />\n        </tbody>\n      </table>\n  \n      <div class='footnote'>\n        <p>Click on any table column heading to put that column first.</p>\n        <p>* Numbers in this row will be sum of its subsections for a single\n          branch but not necessarily for groups. More information can be found on\n          the\n          <a\n            href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n            class='link'\n          >support site.</a></p>\n      </div>\n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"Qn0F0TpQ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Profit and loss\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"    \\\"],[8,[39,14],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"control-wrapper\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n          Show month values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n          Show YTD values\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,24],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[[28,[37,7],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"profitAndLoss\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],\\\"Net Profit\\\",true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"footnote\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"Click on any table column heading to put that column first.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"* Numbers in this row will be sum of its subsections for a single\\\\n        branch but not necessarily for groups. More information can be found on\\\\n        the\\\\n        \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,31],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"entity\\\",\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"metric-breakdown\\\",\\\"label\\\",\\\"input\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"not\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/profit-and-loss.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/imports-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"e5Wr5pst\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/imports-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/imports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Data availability'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Data Availability</h1>\n      </header>\n    {{/if}}\n  \n    <table class='data-table import-timeline-table'>\n      <thead>\n        <tr>\n          <th></th>\n  \n          {{#each this.model.periods as |period index|}}\n            {{#if (or (eq index 0) (eq (moment-format period.date 'M') '1'))}}\n              <th\n                colspan={{math 13 '-' (moment-format period.date 'M')}}\n              >{{moment-format period.date 'YYYY'}}</th>\n            {{/if}}\n          {{/each}}\n        </tr>\n        <tr>\n          <th></th>\n  \n          {{#each this.model.periods as |period|}}\n            <th class='text-center'>{{moment-format period.date 'MM'}}</th>\n          {{/each}}\n        </tr>\n      </thead>\n      <tbody>\n        {{#each this.model.entities as |branch|}}\n          <tr>\n            <td>{{branch.name}}</td>\n  \n            {{#each branch.periods as |period|}}\n              <td class={{if period 'present'}}></td>\n            {{/each}}\n          </tr>\n        {{/each}}\n      </tbody>\n      <tfoot>\n        <tr class='data-table__total-row'>\n          <td>Total (out of {{this.model.entities.length}})</td>\n  \n          {{#each this.model.periods as |period|}}\n            <td>{{period.count}}</td>\n          {{/each}}\n        </tr>\n      </tfoot>\n    </table>\n  </article>\n  */\n  {\n    \"id\": \"V0WVpuPC\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Data availability\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Data Availability\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table import-timeline-table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[41,[28,[37,14],[[28,[37,15],[[30,2],0],null],[28,[37,15],[[28,[37,16],[[30,1,[\\\"date\\\"]],\\\"M\\\"],null],\\\"1\\\"],null]],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[28,[37,17],[13,\\\"-\\\",[28,[37,16],[[30,1,[\\\"date\\\"]],\\\"M\\\"],null]],null]],[12],[1,[28,[35,16],[[30,1,[\\\"date\\\"]],\\\"YYYY\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1,2]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,16],[[30,3,[\\\"date\\\"]],\\\"MM\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"entities\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,4,[\\\"periods\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[52,[30,5],\\\"present\\\"]],[12],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Total (out of \\\"],[1,[30,0,[\\\"model\\\",\\\"entities\\\",\\\"length\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,[30,6,[\\\"count\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"period\\\",\\\"index\\\",\\\"period\\\",\\\"branch\\\",\\\"period\\\",\\\"period\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"math\\\",\\\"tbody\\\",\\\"td\\\",\\\"tfoot\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/imports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"kfdiUxil\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"AFDDhDvm\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title='Key performance indicators'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n          <div class='data-withheld-notice-container'>\n            {{#if this.model.groupsRedacted}}\n              <GroupsRedactedNotice />\n            {{/if}}\n  \n            {{#if this.model.ownDataWithheld}}\n              <DataWithheldNotice />\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Key Performance Indicators</h1>\n  \n      </header>\n    {{else}}\n  \n      {{#if this.model.groupsRedacted}}\n        <p class='h4'>\n          Group data has not yet been released for this period\n        </p>\n      {{/if}}\n    {{/if}}\n  \n    {{#if (get this.model.kpis '0.data.length')}}\n      <div class='financials-controls'>\n        <label>\n          <Input @type='checkbox' @checked={{this.monthVisible}} />\n          Show month values\n        </label>\n  \n        <label>\n          <Input @type='checkbox' @checked={{this.ytdVisible}} />\n          Show YTD values\n        </label>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>KPI</th>\n            {{#each this.orderedEntities as |entity|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                {{! template-lint-disable link-href-attributes }}\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th>{{this.periodString}}</th>\n            {{! template-lint-disable no-unused-block-params }}\n            {{#each this.orderedEntities as |_entity|}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th class='financials-table__heading'>–</th>\n              {{/if}}\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#each this.kpisSortedByEntity as |kpi|}}\n            <tr>\n              {{! KPI name column }}\n              <td>\n                {{#if this.linkToDetail}}\n                  <LinkTo\n                    @route='entity.financials.reports.kpis.kpi'\n                    @model={{kpi.slug}}\n                    class='link'\n                  >{{kpi.name}}</LinkTo>\n                {{else}}\n                  {{kpi.name}}\n                {{/if}}\n              </td>\n  \n              {{! Data columns }}\n              {{#each kpi.data as |data index|}}\n                {{#if this.monthVisible}}\n                  {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n                    <td\n                      {{action 'toggleShowBreakdown' kpi data.entity 'month'}}\n                      class='text-right financials-table__inspectable-cell'\n                    >\n                      {{number-format\n                        data.month\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-right'>\n                      {{number-format\n                        data.month\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n                    <td\n                      {{action 'toggleShowBreakdown' kpi data.entity 'ytd'}}\n                      class='text-right financials-table__inspectable-cell'\n                    >\n                      {{number-format\n                        data.ytd\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-right'>\n                      {{number-format\n                        data.ytd\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          {{/each}}\n  \n        </tbody>\n  \n      </table>\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>There are no reports accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showBreakdown}}\n    <MetricBreakdown\n      @selectedMetric={{this.selectedMetric}}\n      @selectedGroup={{this.selectedGroup}}\n      @periodType={{this.selectedPeriodType}}\n      @clickOutsideToClose={{true}}\n      @translucentOverlay={{true}}\n      @close={{action 'toggleShowBreakdown'}}\n      @accountType='kpis'\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"TnvEg80Q\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Key performance indicators\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"            \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Key Performance Indicators\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n        Group data has not yet been released for this period\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"model\\\",\\\"kpis\\\"]],\\\"0.data.length\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n        Show month values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n        Show YTD values\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"KPI\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,25],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,[30,0,[\\\"periodString\\\"]]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[28,[37,7],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"kpisSortedByEntity\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"linkToDetail\\\"]],[[[1,\\\"                \\\"],[8,[39,30],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.reports.kpis.kpi\\\",[30,3,[\\\"slug\\\"]]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,3,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[41,[28,[37,31],[[28,[37,32],[[30,5],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,0,\\\"text-right financials-table__inspectable-cell\\\"],[4,[38,12],[[30,0],\\\"toggleShowBreakdown\\\",[30,3],[30,4,[\\\"entity\\\"]],\\\"month\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"month\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"month\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[41,[28,[37,31],[[28,[37,32],[[30,5],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,0,\\\"text-right financials-table__inspectable-cell\\\"],[4,[38,12],[[30,0],\\\"toggleShowBreakdown\\\",[30,3],[30,4,[\\\"entity\\\"]],\\\"ytd\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"ytd\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"ytd\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[4,5]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,35],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"There are no reports accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"  \\\"],[8,[39,37],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"kpis\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"_entity\\\",\\\"kpi\\\",\\\"data\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"p\\\",\\\"get\\\",\\\"label\\\",\\\"input\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"not\\\",\\\"tbody\\\",\\\"td\\\",\\\"link-to\\\",\\\"and\\\",\\\"not-eq\\\",\\\"number-format\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      <RadioSlider\n        @options={{this.periodTypeOptions}}\n        @selected={{this.periodType}}\n        @class='float-end'\n      />\n      <h1 class='h1'>KPI Detail</h1>\n    </header>\n  \n    <section class='master-detail kpi-page'>\n      <aside class='master-detail__master'>\n        <ul>\n          {{#each this.model.kpiMeta as |kpi|}}\n            <li>\n              <LinkTo\n                @route='entity.financials.reports.kpis.kpi'\n                @model={{kpi.id}}\n              >\n                {{kpi.name}}\n              </LinkTo>\n            </li>\n          {{/each}}\n        </ul>\n      </aside>\n  \n      <article\n        class='master-detail__detail kpi-page__detail\n          {{if this.noData \"no-data error-page kpi-page--error\"}}'\n      >\n        {{#unless this.noData}}\n          {{#let this.currentStats as |stats|}}\n            <section class='stats'>\n              {{#if stats.rankable}}\n                <div class='metric ranking'>\n                  <div class='number'>\n                    {{#if stats.rankings}}\n                      {{get stats.rankings '0.rank'}}<sup>\n                        {{ordinal-for stats.rankings '0.rank'}}</sup>\n                    {{else}}\n                      –\n                    {{/if}}\n                  </div>\n                  <div class='label'>Ranking out of\n                    {{get stats.rankings '0.outOf'}}\n                    entities</div>\n                </div>\n                <div class='metric'>\n                  <div class='number'>{{if\n                      stats.best\n                      (number-format\n                        stats.best\n                        style=(get this.formattedStyle this.model.kpi.meta.format)\n                        maximumFractionDigits=2\n                        dashZero=false\n                      )\n                      '–'\n                    }}</div>\n                  <div class='label'>National best for\n                    {{moment-format this.period 'MM/YYYY' 'YYYY-MM'}}</div>\n                </div>\n              {{/if}}\n  \n              <div class='metric'>\n                <div class='number'>{{if\n                    stats.mean\n                    (number-format\n                      stats.mean\n                      style=(get this.formattedStyle this.model.kpi.meta.format)\n                      maximumFractionDigits=2\n                      dashZero=false\n                    )\n                    '–'\n                  }}</div>\n                <div class='label'>National average for\n                  {{moment-format this.period 'MM/YYYY' 'YYYY-MM'}}</div>\n              </div>\n  \n              <div class='metric'>\n                <div class='number'>\n                  {{#if\n                    (or\n                      (get stats.rankings '0.value')\n                      (eq (get stats.rankings '0.value') 0)\n                    )\n                  }}\n                    {{number-format\n                      stats.rankings\n                      '0.value'\n                      style=(get this.formattedStyle this.model.kpi.meta.format)\n                      maximumFractionDigits=2\n                      dashZero=false\n                    }}\n                  {{else}}\n                    –\n                  {{/if}}\n                </div>\n                <div class='label'>{{this.sessionData.branch.name}}\n                  for\n                  {{moment-format\n                    this.sessionData.period\n                    'MM/YYYY'\n                    'YYYY-MM'\n                  }}</div>\n              </div>\n            </section>\n          {{/let}}\n  \n          <section class='kpi-chart'>\n            <Charts::LineChart\n              @metrics={{this.model.kpi}}\n              @series={{this.model.series}}\n              @period={{this.chartPeriod}}\n              @reuse={{false}}\n            />\n          </section>\n  \n          {{#if this.selectedPeriodData}}\n            {{#let\n              (get this.selectedPeriodData.periodTypes this.periodType)\n              as |calculation|\n            }}\n              <section class='breakdown'>\n                <CalculationBreakdown\n                  @calc={{this.model.kpi.meta.calculationSteps}}\n                  @inputs={{calculation.inputs}}\n                  @result={{calculation.value}}\n                  @format={{get this.formattedStyle this.model.kpi.meta.format}}\n                />\n              </section>\n            {{/let}}\n          {{else}}\n            <section class='breakdown breakdown--no-data'>\n              No calculation data for current period\n            </section>\n          {{/if}}\n  \n          {{#if\n            (or this.model.kpi.meta.description this.model.kpi.meta.strategies)\n          }}\n            <section class='kpi-information'>\n              {{#if this.model.kpi.meta.description}}\n                <div>\n                  <h2>Explanation</h2>\n                  <MarkdownToHtml @markdown={{this.model.kpi.meta.description}} />\n                </div>\n              {{/if}}\n  \n              {{#if this.model.kpi.meta.strategies}}\n                <div>\n                  <h2>Strategies</h2>\n                  <MarkdownToHtml @markdown={{this.model.kpi.meta.strategies}} />\n                </div>\n              {{/if}}\n            </section>\n          {{/if}}\n        {{else}}\n          <p class='error-page__title'>There is no data to display for this\n            period.</p>\n        {{/unless}}\n      </article>\n    </section>\n  </article>\n  */\n  {\n    \"id\": \"d8BWObul\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@class\\\"],[[30,0,[\\\"periodTypeOptions\\\"]],[30,0,[\\\"periodType\\\"]],\\\"float-end\\\"]],null],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"KPI Detail\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"master-detail kpi-page\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"aside\\\"],[14,0,\\\"master-detail__master\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"kpiMeta\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,10],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.reports.kpis.kpi\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"article\\\"],[15,0,[29,[\\\"master-detail__detail kpi-page__detail\\\\n        \\\",[52,[30,0,[\\\"noData\\\"]],\\\"no-data error-page kpi-page--error\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"noData\\\"]]],[[[44,[[30,0,[\\\"currentStats\\\"]]],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"stats\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"rankable\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"metric ranking\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"rankings\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,15],[[30,2,[\\\"rankings\\\"]],\\\"0.rank\\\"],null]],[10,\\\"sup\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,17],[[30,2,[\\\"rankings\\\"]],\\\"0.rank\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    –\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Ranking out of\\\\n                  \\\"],[1,[28,[35,15],[[30,2,[\\\"rankings\\\"]],\\\"0.outOf\\\"],null]],[1,\\\"\\\\n                  entities\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,[52,[30,2,[\\\"best\\\"]],[28,[37,18],[[30,2,[\\\"best\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]],\\\"–\\\"]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"National best for\\\\n                  \\\"],[1,[28,[35,19],[[30,0,[\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,[52,[30,2,[\\\"mean\\\"]],[28,[37,18],[[30,2,[\\\"mean\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]],\\\"–\\\"]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"National average for\\\\n                \\\"],[1,[28,[35,19],[[30,0,[\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[28,[37,15],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],null],[28,[37,21],[[28,[37,15],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],null],0],null]],null],[[[1,\\\"                  \\\"],[1,[28,[35,18],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  –\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"branch\\\",\\\"name\\\"]]],[1,\\\"\\\\n                for\\\\n                \\\"],[1,[28,[35,19],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"\\\\n        \\\"],[10,\\\"section\\\"],[14,0,\\\"kpi-chart\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@metrics\\\",\\\"@series\\\",\\\"@period\\\",\\\"@reuse\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\"]],[30,0,[\\\"model\\\",\\\"series\\\"]],[30,0,[\\\"chartPeriod\\\"]],false]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedPeriodData\\\"]],[[[44,[[28,[37,15],[[30,0,[\\\"selectedPeriodData\\\",\\\"periodTypes\\\"]],[30,0,[\\\"periodType\\\"]]],null]],[[[1,\\\"            \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,23],null,[[\\\"@calc\\\",\\\"@inputs\\\",\\\"@result\\\",\\\"@format\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"calculationSteps\\\"]],[30,3,[\\\"inputs\\\"]],[30,3,[\\\"value\\\"]],[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown breakdown--no-data\\\"],[12],[1,\\\"\\\\n            No calculation data for current period\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"kpi-information\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Explanation\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,25],null,[[\\\"@markdown\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,25],null,[[\\\"@markdown\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"error-page__title\\\"],[12],[1,\\\"There is no data to display for this\\\\n          period.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"kpi\\\",\\\"stats\\\",\\\"calculation\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"radio-slider\\\",\\\"h1\\\",\\\"section\\\",\\\"aside\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"link-to\\\",\\\"if\\\",\\\"unless\\\",\\\"let\\\",\\\"div\\\",\\\"get\\\",\\\"sup\\\",\\\"ordinal-for\\\",\\\"number-format\\\",\\\"moment-format\\\",\\\"or\\\",\\\"eq\\\",\\\"charts/line-chart\\\",\\\"calculation-breakdown\\\",\\\"h2\\\",\\\"markdown-to-html\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis/kpi.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/module-dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (gt this.sessionData.entities.length 1)}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/module-dashboard'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  {{/if}}\n  <main class='page__container'>\n    <div class='dashboard-container'>\n      <div class='dashboard-section__modules'>\n        {{#if this.modules.allowedModules}}\n          <div class='dashboard-section__modules-container'>\n            <div class='dashboard-section__modules-row'>\n              {{#each this.modules.allowedModules as |module|}}\n                <span role='button' {{on 'click' (fn this.goToModule module)}}>\n                  <DashboardItem::Module @module={{module}} />\n                </span>\n              {{/each}}\n            </div>\n          </div>\n        {{else}}\n          <h2 class='h2'>\n            Your entity doesn't have any modules yet\n          </h2>\n        {{/if}}\n      </div>\n    </div>\n  </main>\n  */\n  {\n    \"id\": \"S+DbdrNd\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/module-dashboard\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"main\\\"],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"dashboard-container\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"dashboard-section__modules\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"dashboard-section__modules-container\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"dashboard-section__modules-row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"goToModule\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@module\\\"],[[30,1]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"\\\\n          Your entity doesn't have any modules yet\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"module\\\"],false,[\\\"if\\\",\\\"gt\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"main\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"dashboard-item/module\\\",\\\"h2\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/module-dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <div class='page__container'>\n      <ModuleNavigation::Settings />\n  \n      <main class='page__container-content gap-zendesk-support-widget'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/settings'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"3aGiyhar\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/settings\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,7],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"div\\\",\\\"module-navigation/settings\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/auto-mapping-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"afOjJVir\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/auto-mapping-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/auto-mapping\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Auto mapping')\n      }}\n    />\n  {{/unless}}\n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Auto mapping'}}</h2>\n      {{/if}}\n    </header>\n    <form class='block-module width--large'>\n      <div class='block-module__header'>\n        <div>\n          <LoadingButton\n            @isLoading={{this.isSaving}}\n            @action={{action 'save'}}\n            @class='button float-end'\n            @buttonText={{t 'common.Save'}}\n            data-test-save-button\n          />\n          <h2 class='h2'>{{t\n              'entity.settings.auto-mapping.Bill Auto Mapping Directives'\n            }}</h2>\n        </div>\n  \n        <p>\n          {{t\n            'entity.settings.auto-mapping.theDirectivesBelowWillBeUsedWhenAnBillIsImported'\n          }}\n          {{! TODO make sure there is an auto-map button on the invoices }}\n        </p>\n        <p>\n          {{t\n            'entity.settings.auto-mapping.billReferenceDirectivesTakePrecedenceOverMerchantAccountOnes'\n          }}\n        </p>\n      </div>\n  \n      <div class='{{if this.showInvalid \"show-invalid\"}}'>\n        <div class='float-end'>\n          <span>{{t 'entity.settings.auto-mapping.Directive Type'}}:</span>\n          <RadioSlider\n            @options={{this.displayOptions}}\n            @selected={{this.selectedDisplayOption}}\n            @class='button--spaced'\n            data-test-toggle-directive-type\n          />\n        </div>\n  \n        {{#if (eq this.selectedDisplayOption 'reference')}}\n          {{! Reference type directives }}\n          <div>\n            <span class='h3 no-wrap'>{{t\n                'entity.settings.auto-mapping.Bill Reference Directives'\n              }}</span>\n            <button\n              class='text-button text-button--add button--spaced'\n              data-test-add-reference-directive=''\n              type='submit'\n              {{action 'addDirective' 'reference'}}\n            >{{t 'common.Add'}}</button>\n          </div>\n  \n          <br />\n  \n          <div class='auto-mapping__directive-section'>\n            {{#unless\n              (or\n                this.openReferenceDirectives.length\n                this.closedReferenceDirectives.length\n              )\n            }}\n              {{! If there are no reference directives, then show a message explainin what they are }}\n              <span data-test-no-reference-directives-message=''>\n                <p>{{t\n                    'entity.settings.auto-mapping.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide'\n                  }}</p>\n                <p>{{t\n                    'entity.settings.auto-mapping.youDonNotHaveAnyBillReferenceDirectivesYet'\n                  }}</p>\n              </span>\n            {{else}}\n              {{! Show the list of open reference directives }}\n              {{#each this.openReferenceDirectives as |directive|}}\n                <br />\n                <AutoMapping::DirectivePm\n                  @class={{if\n                    (get this.duplicates directive.lowerValue)\n                    'invalid'\n                  }}\n                  @directive={{directive}}\n                  @projects={{this.model.projects}}\n                  @delete={{action this.set 'readyToDelete' directive}}\n                  data-test-directive='reference'\n                />\n              {{/each}}\n  \n              {{! Show a title for directives with projects that are not open }}\n              {{#if this.closedReferenceDirectives.length}}\n                <div class='h4' data-test-project-open-separator=''>\n                  {{! Show a separating line if there are directives with open projects to separate from }}\n                  {{#if this.openReferenceDirectives.length}}<br /><hr />{{/if}}\n                  {{t\n                    'entity.settings.auto-mapping.billReferenceDirectivesForClosedProjects'\n                  }}\n                  <br />\n                </div>\n              {{/if}}\n  \n              {{! Show the list of closed reference directives }}\n              {{#each this.closedReferenceDirectives as |directive|}}\n                <br />\n                <AutoMapping::DirectivePm\n                  @class={{if\n                    (get this.duplicates directive.lowerValue)\n                    'invalid'\n                  }}\n                  @directive={{directive}}\n                  @projects={{this.model.projects}}\n                  @delete={{action this.set 'readyToDelete' directive}}\n                  data-test-directive='reference'\n                />\n              {{/each}}\n            {{/unless}}\n          </div>\n  \n        {{else if (eq this.selectedDisplayOption 'account')}}\n          {{! Account type directives }}\n          <div>\n            <span class='h3'>{{t\n                'entity.settings.auto-mapping.Merchant Account Directives'\n              }}</span>\n            <button\n              class='text-button text-button--add button--spaced'\n              data-test-add-account-directive=''\n              type='submit'\n              {{action 'addDirective' 'account'}}\n            >{{t 'common.Add'}}</button>\n          </div>\n  \n          <br />\n  \n          <div class='auto-mapping__directive-section'>\n            {{#unless this.model.merchantAccounts.length}}\n              {{! Only show a message if there are no merchant accounts to pick from }}\n              <p>{{t\n                  'entity.settings.auto-mapping.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet'\n                }}\n                {{t\n                  'entity.settings.auto-mapping.thisSectionWillBecomeAvailableOnceWeDo'\n                }}\n                {{t\n                  'entity.settings.auto-mapping.theAccountsMustBeProjectSpecificSubAccounts'\n                }}</p>\n            {{else}}\n  \n              {{#unless this.accountDirectives.length}}\n                {{! If there are no account directives, show a message explaining them }}\n                <span data-test-no-account-directives-message=''>\n                  <p>{{t\n                      'entity.settings.auto-mapping.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount'\n                    }}</p>\n                  <p>{{t\n                      'entity.settings.auto-mapping.youDonNotHaveAnyMerchantAccountDirectivesYet'\n                    }}</p>\n                </span>\n              {{else}}\n                {{! Show a list of account directives for open projects }}\n                {{#each this.openAccountDirectives as |directive|}}\n                  <br />\n                  <AutoMapping::DirectivePm\n                    @directive={{directive}}\n                    @projects={{this.model.projects}}\n                    @allAccounts={{this.model.merchantAccounts}}\n                    @unusedAccounts={{this.unusedAccounts}}\n                    @showInvalid={{this.showInvalid}}\n                    @delete={{action this.set 'readyToDelete' directive}}\n                    data-test-directive='account'\n                  />\n                {{/each}}\n  \n                {{! Show a title for directives with projects that are not open }}\n                {{#if this.closedAccountDirectives.length}}\n                  <div class='h4' data-test-project-open-separator=''>\n                    {{! Show a separating line if there are directives with open projects to separate from }}\n                    {{#if this.openAccountDirectives.length}}<br /><hr />{{/if}}\n                    {{t\n                      'entity.settings.auto-mapping.merchantAccountDirectivesForClosedProjects'\n                    }}\n                    <br />\n                  </div>\n  \n                  {{! Show a list of account directives for closed projects }}\n                  {{#each this.closedAccountDirectives as |directive|}}\n                    <br />\n                    <AutoMapping::DirectivePm\n                      @directive={{directive}}\n                      @projects={{this.model.projects}}\n                      @allAccounts={{this.model.merchantAccounts}}\n                      @unusedAccounts={{this.unusedAccounts}}\n                      @showInvalid={{this.showInvalid}}\n                      @delete={{action this.set 'readyToDelete' directive}}\n                      data-test-directive='account'\n                    />\n                  {{/each}}\n                {{/if}}\n              {{/unless}}\n            {{/unless}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @isLoading={{this.isSaving}}\n          @action={{action 'save'}}\n          @class='button float-end'\n          @buttonText={{t 'common.Save'}}\n          data-test-save-button\n        />\n      </footer>\n    </form>\n  \n    {{#if this.readyToDelete}}\n      <ModalDialog\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n        @onClose={{action this.set 'readyToDelete' null}}\n      >\n        <p>{{t\n            'entity.settings.auto-mapping.areYouSureYouWantToDeleteThisDirective'\n          }}\n          {{t 'common.This action cannot be undone'}}</p>\n        <LoadingButton\n          @class='float-end button button--spaced button--delete'\n          @action={{action 'deleteDirective' this.readyToDelete}}\n          @buttonText={{t 'common.Delete'}}\n          data-test-confirm-delete-button\n        />\n        <button\n          class='float-end button button--spaced button--plain'\n          type='button'\n          {{action this.set 'readyToDelete' null}}\n        >{{t 'common.Cancel'}}</button>\n      </ModalDialog>\n    {{/if}}\n  \n  </article>\n  */\n  {\n    \"id\": \"vf4NQug+\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Auto mapping\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Auto mapping\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"form\\\"],[14,0,\\\"block-module width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\",\\\"@buttonText\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,12],[[30,0],\\\"save\\\"],null],\\\"button float-end\\\",[28,[37,4],[\\\"common.Save\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Bill Auto Mapping Directives\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.theDirectivesBelowWillBeUsedWhenAnBillIsImported\\\"],null]],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesTakePrecedenceOverMerchantAccountOnes\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,0,[29,[[52,[30,0,[\\\"showInvalid\\\"]],\\\"show-invalid\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Directive Type\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,15],[[24,\\\"data-test-toggle-directive-type\\\",\\\"\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@class\\\"],[[30,0,[\\\"displayOptions\\\"]],[30,0,[\\\"selectedDisplayOption\\\"]],\\\"button--spaced\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"selectedDisplayOption\\\"]],\\\"reference\\\"],null],[[[1,\\\"        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"h3 no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Bill Reference Directives\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-add-reference-directive\\\",\\\"\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"addDirective\\\",\\\"reference\\\"],null],[12],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"auto-mapping__directive-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"openReferenceDirectives\\\",\\\"length\\\"]],[30,0,[\\\"closedReferenceDirectives\\\",\\\"length\\\"]]],null]],[[[1,\\\"            \\\"],[10,1],[14,\\\"data-test-no-reference-directives-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.youDonNotHaveAnyBillReferenceDirectivesYet\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"openReferenceDirectives\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"reference\\\"]],[[\\\"@class\\\",\\\"@directive\\\",\\\"@projects\\\",\\\"@delete\\\"],[[52,[28,[37,23],[[30,0,[\\\"duplicates\\\"]],[30,1,[\\\"lowerValue\\\"]]],null],\\\"invalid\\\"],[30,1],[30,0,[\\\"model\\\",\\\"projects\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,1]],null]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"closedReferenceDirectives\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"h4\\\"],[14,\\\"data-test-project-open-separator\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[41,[30,0,[\\\"openReferenceDirectives\\\",\\\"length\\\"]],[[[10,\\\"br\\\"],[12],[13],[10,\\\"hr\\\"],[12],[13]],[]],null],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesForClosedProjects\\\"],null]],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"closedReferenceDirectives\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"reference\\\"]],[[\\\"@class\\\",\\\"@directive\\\",\\\"@projects\\\",\\\"@delete\\\"],[[52,[28,[37,23],[[30,0,[\\\"duplicates\\\"]],[30,2,[\\\"lowerValue\\\"]]],null],\\\"invalid\\\"],[30,2],[30,0,[\\\"model\\\",\\\"projects\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,2]],null]]],null],[1,\\\"\\\\n\\\"]],[2]],null]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,0,[\\\"selectedDisplayOption\\\"]],\\\"account\\\"],null],[[[1,\\\"        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Merchant Account Directives\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-add-account-directive\\\",\\\"\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"addDirective\\\",\\\"account\\\"],null],[12],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"auto-mapping__directive-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"merchantAccounts\\\",\\\"length\\\"]]],[[[1,\\\"            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.thisSectionWillBecomeAvailableOnceWeDo\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.theAccountsMustBeProjectSpecificSubAccounts\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"accountDirectives\\\",\\\"length\\\"]]],[[[1,\\\"              \\\"],[10,1],[14,\\\"data-test-no-account-directives-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.youDonNotHaveAnyMerchantAccountDirectivesYet\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"openAccountDirectives\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"account\\\"]],[[\\\"@directive\\\",\\\"@projects\\\",\\\"@allAccounts\\\",\\\"@unusedAccounts\\\",\\\"@showInvalid\\\",\\\"@delete\\\"],[[30,3],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"merchantAccounts\\\"]],[30,0,[\\\"unusedAccounts\\\"]],[30,0,[\\\"showInvalid\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,3]],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"closedAccountDirectives\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"h4\\\"],[14,\\\"data-test-project-open-separator\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[41,[30,0,[\\\"openAccountDirectives\\\",\\\"length\\\"]],[[[10,\\\"br\\\"],[12],[13],[10,\\\"hr\\\"],[12],[13]],[]],null],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.merchantAccountDirectivesForClosedProjects\\\"],null]],[1,\\\"\\\\n                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"closedAccountDirectives\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"account\\\"]],[[\\\"@directive\\\",\\\"@projects\\\",\\\"@allAccounts\\\",\\\"@unusedAccounts\\\",\\\"@showInvalid\\\",\\\"@delete\\\"],[[30,4],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"merchantAccounts\\\"]],[30,0,[\\\"unusedAccounts\\\"]],[30,0,[\\\"showInvalid\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,4]],null]]],null],[1,\\\"\\\\n\\\"]],[4]],null]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,11],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\",\\\"@buttonText\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,12],[[30,0],\\\"save\\\"],null],\\\"button float-end\\\",[28,[37,4],[\\\"common.Save\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"readyToDelete\\\"]],[[[1,\\\"    \\\"],[8,[39,26],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",null],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.areYouSureYouWantToDeleteThisDirective\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,11],[[24,\\\"data-test-confirm-delete-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button button--spaced button--delete\\\",[28,[37,12],[[30,0],\\\"deleteDirective\\\",[30,0,[\\\"readyToDelete\\\"]]],null],[28,[37,4],[\\\"common.Delete\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",null],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"directive\\\",\\\"directive\\\",\\\"directive\\\",\\\"directive\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"form\\\",\\\"div\\\",\\\"loading-button\\\",\\\"action\\\",\\\"p\\\",\\\"span\\\",\\\"radio-slider\\\",\\\"eq\\\",\\\"button\\\",\\\"br\\\",\\\"or\\\",\\\"each\\\",\\\"-track-array\\\",\\\"auto-mapping/directive-pm\\\",\\\"get\\\",\\\"hr\\\",\\\"footer\\\",\\\"modal-dialog\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/auto-mapping.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>\n        {{t 'entity.settings.chart-of-accounts.Chart of accounts'}}\n      </h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"2FfQmBsT\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"entity.settings.chart-of-accounts.Chart of accounts\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n        {{#if this.showSyncIcon}}\n          <FaIcon\n            @title='This account is synced with your accounting package'\n            class='ms-3'\n            @icon='sync'\n          />\n        {{/if}}\n      </div>\n      {{#let\n        (changeset this.glAccount this.glAccountValidationMap)\n        as |glAccountModel|\n      }}\n  \n        {{#if (includes this.accountingPlatform.glAccountVisibleFields 'name')}}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{glAccountModel}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n        {{#if (includes this.accountingPlatform.glAccountVisibleFields 'code')}}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Code'}}\n            @key='code'\n            @model={{glAccountModel}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n  \n        {{#if\n          (includes this.accountingPlatform.glAccountVisibleFields 'taxRate')\n        }}\n          <PtlInput\n            @type='percentage'\n            @label={{t 'common.Tax rate'}}\n            @key='taxRate'\n            @model={{glAccountModel}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n        {{#if this.canEditGlAccounts}}\n          <div class='d-flex align-items-centers'>\n            {{#unless\n              (or\n                this.glAccount.isNew\n                this.glAccount.isLinkedToActiveAccountingPlatform\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{or\n                  this.deleteAccount.isRunning\n                  this.saveAccount.isRunning\n                }}\n                {{on 'click' (perform this.deleteAccount)}}\n              >\n                {{#if this.deleteAccount.isRunning}}\n                  <span class='spinner-border spinner-border-sm'></span>\n                  &nbsp;&nbsp;{{t 'common.Deleting'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.settings.chart-of-accounts.chart-of-account.Delete account'\n                  }}\n                {{/if}}\n              </button>\n            {{/unless}}\n            <div class='float-end ms-auto'>\n              {{#if\n                (and\n                  this.accountingPlatform.isActive\n                  this.glAccount.isLinkedToActiveAccountingPlatform\n                )\n              }}\n                <div>\n                  <a\n                    href={{this.glAccount.viewGlAccountUrl}}\n                    class='btn btn-primary'\n                    target='_blank'\n                    rel='noopener noreferrer'\n                    role='button'\n                    aria-disabled='true'\n                  >\n                    {{t\n                      'entity.settings.chart-of-accounts.chart-of-account.editAccountInLabel'\n                      label=this.accountingPlatform.label\n                    }}\n                  </a>\n                </div>\n              {{else}}\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{or\n                    this.deleteAccount.isRunning\n                    this.saveAccount.isRunning\n                  }}\n                  {{on 'click' (perform this.saveAccount glAccountModel)}}\n                >\n                  {{#if this.saveAccount.isRunning}}\n                    <span class='spinner-border spinner-border-sm'></span>\n                    &nbsp;&nbsp;{{t 'common.Saving'}}\n                    &hellip;\n                  {{else}}\n                    {{if\n                      this.glAccount.isNew\n                      (t 'common.Create')\n                      (t 'common.Save')\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </div>\n          </div>\n        {{/if}}\n      {{/let}}\n    </PtlForm>\n  {{/if}}\n  */\n  {\n    \"id\": \"+YUTDy2b\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showSyncIcon\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"ms-3\\\"]],[[\\\"@title\\\",\\\"@icon\\\"],[\\\"This account is synced with your accounting package\\\",\\\"sync\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,9],[[30,0,[\\\"glAccount\\\"]],[30,0,[\\\"glAccountValidationMap\\\"]]],null]],[[[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"name\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,1],true,[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"code\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Code\\\"],null],\\\"code\\\",[30,1],true,[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"taxRate\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,6],[\\\"common.Tax rate\\\"],null],\\\"taxRate\\\",[30,1],[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canEditGlAccounts\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,14],[[30,0,[\\\"glAccount\\\",\\\"isNew\\\"]],[30,0,[\\\"glAccount\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteAccount\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.chart-of-accounts.chart-of-account.Delete account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"float-end ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,0,[\\\"glAccount\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,3],[15,6,[30,0,[\\\"glAccount\\\",\\\"viewGlAccountUrl\\\"]]],[14,0,\\\"btn btn-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.settings.chart-of-accounts.chart-of-account.editAccountInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveAccount\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n                  …\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"glAccount\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"common.Create\\\"],null],[28,[37,6],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"glAccountModel\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"let\\\",\\\"changeset\\\",\\\"includes\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"unless\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"and\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts/chart-of-account.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    {{#if (and this.isEditable this.model.glAccounts.last.value.length)}}\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-link text-danger text-decoration-underline float-start'\n          type='button'\n          {{on 'click' (fn (mut this.isDeletingAccounts) true)}}\n          disabled={{or (not this.selectedAccountIds.size) this.isLoading}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      value={{this.searchString}}\n      data-test-gl-account-search\n      readonly={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      type='search'\n      autofocus='true'\n    />\n  \n    {{#if this.isEditable}}\n      {{#if this.accountingPlatform.isActive}}\n        <button\n          type='button'\n          class='btn btn-primary text-white text-nowrap m-1'\n          disabled={{this.syncWithAccountingPackage.isRunning}}\n          {{on 'click' (perform this.syncWithAccountingPackage)}}\n        >\n          {{#if this.syncWithAccountingPackage.isRunning}}\n            {{t 'common.Syncing'}}&hellip;\n          {{else}}\n            {{t 'common.syncWithLabel' label=this.accountingPlatform.label}}\n          {{/if}}\n        </button>\n      {{/if}}\n      <button\n        type='button'\n        class='btn btn-success text-white text-nowrap m-1'\n        disabled={{this.isLoading}}\n        {{on 'click' this.addNewGlAccount}}\n        data-test-add-gl-account\n      >\n        <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n      </button>\n    {{/if}}\n  </div>\n  \n  <div class='gl-accounts__table-container'>\n    <PaginationTable\n      @tableHeader={{this.tableHeader}}\n      @tableData={{this.tableData}}\n      @noDataText={{t 'entity.settings.chart-of-accounts.No accounts'}}\n      @isLoading={{this.model.glAccounts.isRunning}}\n      @pageSizes={{this.model.pageSizes}}\n      @pageSize={{this.model.pageSize}}\n      @pageIndex={{this.model.pageNumber}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  \n  {{#if this.isDeletingAccounts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='block-module'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.isDeletingAccounts) false}}\n    >\n      <p>\n        {{t\n          'entity.settings.chart-of-accounts.areYouSureYouWantToDeleteXGlAccounts'\n          number=this.selectedAccountIds.size\n          accounts=(pluralize this.selectedAccountIds.size 'account')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-danger text-white ms-2'\n            type='button'\n            disabled={{this.deleteAccounts.isRunning}}\n            {{on 'click' (perform this.deleteAccounts)}}\n          >\n            {{#if this.deleteAccounts.isRunning}}\n              {{t 'common.Deleting'}}&hellip;\n            {{else}}\n              {{t 'common.Delete'}}\n            {{/if}}\n          </button>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.deleteAccounts.isRunning}}\n            {{on 'click' (fn (mut this.isDeletingAccounts) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"INNUDBRB\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,9],[\\\"common.Search\\\"],null]],[16,2,[30,0,[\\\"searchString\\\"]]],[24,\\\"data-test-gl-account-search\\\",\\\"\\\"],[16,\\\"readonly\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,4,\\\"search\\\"],[4,[38,6],[\\\"input\\\",[28,[37,11],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"syncWithAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.syncWithLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-gl-account\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"addNewGlAccount\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"gl-accounts__table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,13],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[28,[37,9],[\\\"entity.settings.chart-of-accounts.No accounts\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingAccounts\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal\\\",\\\"block-module\\\",true,[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,9],[\\\"entity.settings.chart-of-accounts.areYouSureYouWantToDeleteXGlAccounts\\\"],[[\\\"number\\\",\\\"accounts\\\"],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]],[28,[37,16],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]],\\\"account\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"deleteAccounts\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/company-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"soLo31TY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/company-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/company\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'entity.settings.company.Company details')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Settings'}}</h2>\n      {{/if}}\n    </header>\n    {{#if (or this.model.companyLogo.isRunning this.model.glAccounts.isRunning)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t 'entity.settings.company.Company details'}}</h3>\n        {{#let\n          (changeset this.model.entity this.entityValidationMap)\n          as |entityModel|\n        }}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{entityModel}}\n            @required={{true}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'shared.contacts.Contact email'}}\n            @key='contactEmail'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{this.businessNumberLabel}}\n            @key='businessNumber'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          {{#if (not-eq this.model.entity.region 'AUS')}}\n            <PtlInput\n              @type='text'\n              @label={{this.taxNumberLabel}}\n              @key='taxNumber'\n              @model={{entityModel}}\n              disabled={{this.saveEntity.isRunning}}\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n            />\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n            )\n          }}\n            <PtlInput\n              @type='powerSelect'\n              @label={{t 'entity.settings.company.Default purchases account'}}\n              @key='purchasesGlAccount'\n              @optionKeys={{array 'code' 'name'}}\n              @options={{this.model.glAccounts.last.value}}\n              @model={{entityModel}}\n              @description={{t\n                'entity.settings.company.purchasesGlAccountDescription'\n              }}\n              @placeholder={{t 'entity.settings.company.No default account'}}\n              @searchEnabled={{true}}\n              @searchField='code'\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n              @allowClear={{true}}\n              @disabled={{this.saveEntity.isRunning}}\n            />\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n            )\n          }}\n            <PtlInput\n              @type='powerSelect'\n              @label={{t 'entity.settings.company.Default sales account'}}\n              @key='salesGlAccount'\n              @optionKeys={{array 'code' 'name'}}\n              @options={{this.model.glAccounts.last.value}}\n              @model={{entityModel}}\n              @description={{t\n                'entity.settings.company.salesGlAccountDescription'\n              }}\n              @placeholder={{t 'entity.settings.company.No default account'}}\n              @searchEnabled={{true}}\n              @searchField='code'\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n              @allowClear={{true}}\n              @disabled={{this.saveEntity.isRunning}}\n            />\n          {{/if}}\n  \n          <h4>{{t 'common.Logo'}}</h4>\n          <div class='d-flex align-items-center' style='min-height: 60px;'>\n            {{#if entityModel.companyLogo}}\n              <img\n                class='d-inline-block overflow-hidden mb-2 me-2'\n                id='image-preview'\n                src={{entityModel.companyLogo.href}}\n                style='object-fit: contain; height:100px; width:100px'\n              />\n              <button\n                class='btn btn-link text-danger text-decoration-underline float-start'\n                type='button'\n                {{on 'click' (fn this.clearLogo entityModel)}}\n              >\n                {{t 'entity.settings.company.Clear logo'}}\n              </button>\n            {{else}}\n              <div\n                class='d-inline-block overflow-hidden bg-light rounded mb-2 me-2'\n                style='height:100px; width:100px'\n              ></div>\n              <input\n                aria-label='logo-upload'\n                type='file'\n                {{on 'change' (fn this.updateLogo entityModel)}}\n                accept='.jpg, .jpeg, .png, .gif'\n              />\n            {{/if}}\n          </div>\n  \n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveEntity.isRunning}}\n              {{on 'click' (perform this.saveEntity entityModel)}}\n            >\n              {{#if this.saveEntity.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t\n                  'entity.settings.company.Saving details'\n                }}&hellip;\n              {{else}}\n                {{t 'entity.settings.company.Save company details'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if\n      (and (includes-feature-flags 'userIsEntityAdmin') this.chargebee.ready)\n    }}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='h3'>{{t 'entity.settings.company.Subscription'}}</h3>\n        <p class='p'>{{t\n            'entity.settings.company.clickTheButtonBelowToManageYourSubscription'\n          }}</p>\n        <div class='d-flex'>\n          <button\n            class='button'\n            type='button'\n            {{on 'click' (action 'openChargebee')}}\n          >{{t 'entity.settings.company.Manage your subscription'}}</button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseInvoices')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.invoiceOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='mb-3'>{{t 'entity.settings.company.Invoicing details'}}</h3>\n          {{#let\n            (changeset\n              this.model.invoiceOptions.last.value this.invoiceValidationMap\n            )\n            as |invoiceOptionsModel|\n          }}\n            <h4 class='mb-2'>{{t 'common.Invoice'}}</h4>\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='invoicePrefix'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextInvoiceNumber'}}\n                  @key='nextInvoiceNumber'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <div class='mb-2'>\n              <label class='mb-1' for='paymentTermDay'>\n                {{t 'shared.contacts.Payment terms'}}\n              </label>\n              <div class='d-flex align-items-centers'>\n                <div class='me-2'>\n                  <PtlInput\n                    @type='number'\n                    @key='paymentTermDay'\n                    min='1'\n                    style='width: 75px;'\n                    @model={{invoiceOptionsModel}}\n                    @forceValidationVisible={{gt\n                      this.saveSupplier.performCount\n                      0\n                    }}\n                    disabled={{this.disableForm}}\n                  />\n                </div>\n                <div class='flex-grow-1'>\n                  <PtlInput\n                    @type='select'\n                    @key='paymentTermType'\n                    @selectNoBlankOption={{true}}\n                    @options={{this.paymentTermType}}\n                    @model={{invoiceOptionsModel}}\n                    @forceValidationVisible={{gt\n                      this.saveSupplier.performCount\n                      0\n                    }}\n                    disabled={{this.disableForm}}\n                  />\n                </div>\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='invoiceFooterNotes'\n              @model={{invoiceOptionsModel}}\n              disabled={{this.saveInvoiceOption.isRunning}}\n              @forceValidationVisible={{gt this.saveInvoiceOption.performCount 0}}\n            />\n            <h4 class='mb-2'>{{t 'common.Credit note'}}</h4>\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='creditNotePrefix'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextCreditNoteNumber'}}\n                  @key='nextCreditNoteNumber'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='creditNoteFooterNotes'\n              @model={{invoiceOptionsModel}}\n              disabled={{this.saveInvoiceOption.isRunning}}\n              @forceValidationVisible={{gt this.saveInvoiceOption.performCount 0}}\n            />\n            <div class='text-left'>\n              <button\n                class='btn btn-link m-0 p-0 text-decoration-underline'\n                {{on 'click' this.initInvoiceBreakdown}}\n                type='button'\n              >\n                {{t 'entity.settings.company.Default breakdown options'}}\n              </button>\n            </div>\n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveInvoiceOption.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveInvoiceOption invoiceOptionsModel)\n                }}\n              >\n                {{#if this.saveInvoiceOption.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save invoicing details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePurchaseOrders')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.purchaseOrderOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='h3 mb-3'>{{t\n              'entity.settings.company.Purchase order details'\n            }}</h3>\n  \n          {{#let\n            (changeset\n              this.model.purchaseOrderOptions.last.value\n              this.purchaseOrderValidationMap\n            )\n            as |purchaseOrderOptionsModel|\n          }}\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='prefix'\n                  @model={{purchaseOrderOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.savePurchaseOrderOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.savePurchaseOrderOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextPurchaseOrderNumber'}}\n                  @key='nextPurchaseOrderNumber'\n                  @model={{purchaseOrderOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.savePurchaseOrderOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.savePurchaseOrderOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='footerNotes'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t\n                'entity.settings.company.Percentage tolerance for matching'\n              }}\n              @key='matchingPercentageTolerance'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n            <PtlInput\n              @type='currency'\n              @label={{t 'entity.settings.company.Amount tolerance for matching'}}\n              @key='matchingAmountTolerance'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.savePurchaseOrderOption.isRunning}}\n                {{on\n                  'click'\n                  (perform this.savePurchaseOrderOption purchaseOrderOptionsModel)\n                }}\n              >\n                {{#if this.savePurchaseOrderOption.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save purchase order details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseStagePayments')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.stagePaymentOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='h3 mb-3'>\n            {{t 'entity.settings.company.Stage payment details'}}\n          </h3>\n          {{#let\n            (changeset\n              this.stagePaymentOption this.stagePaymentsOptionsValidationMap\n            )\n            as |stagePaymentOptionsModel|\n          }}\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Default stage payment notes'}}\n              @key='footerNotes'\n              @model={{stagePaymentOptionsModel}}\n              disabled={{this.saveStagePaymentOptions.isRunning}}\n              @forceValidationVisible={{gt\n                this.saveStagePaymentOptions.performCount\n                0\n              }}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveStagePaymentOptions.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveStagePaymentOptions stagePaymentOptionsModel)\n                }}\n              >\n                {{#if this.saveStagePaymentOptions.isRunning}}\n                  <span class='spinner-border spinner-border-sm'>\n                  </span>{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save stage payment details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canManageProfitMargin')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.loadEntityProfitMargin.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n  \n          {{#let\n            (changeset this.profitMargin this.profitMarginValidationMap)\n            as |profitMarginsModel|\n          }}\n            <h3 class='h3 mb-3'>{{t 'common.Profit margins'}}</h3>\n            <p>\n              {{t\n                'entity.settings.company.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection'\n              }}\n              {{t\n                'entity.settings.company.generallyThisMarginWillBeUsedToCalculateQuoteFiguresFromABudget'\n              }}\n            </p>\n            <PtlInput\n              @type='select'\n              @toolTip={{t\n                'shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit'\n              }}\n              @label={{t 'shared.profit-margins.Profit type'}}\n              @key='profitType'\n              @required={{true}}\n              @options={{this.profitTypes}}\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n              @selectNoBlankOption={{true}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Labour'}}\n              @key='labourPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <div class='mb-3'>\n              <label\n                class='form-check form-switch d-flex align-items-center mb-0'\n              >\n                <Input\n                  data-test-company-additional-labour-margin-toggle\n                  @type='checkbox'\n                  class='form-check-input mt-0 me-2'\n                  @checked={{not-eq\n                    profitMarginsModel.additionalLabourMargin\n                    null\n                  }}\n                  disabled={{this.updateProfitMargins.isRunning}}\n                  {{on\n                    'click'\n                    (fn this.toggleAdditionalLabourMargin profitMarginsModel)\n                  }}\n                />\n                {{t 'shared.profit-margins.Additional labour margin'}}\n              </label>\n            </div>\n            {{#if (not-eq profitMarginsModel.additionalLabourMargin null)}}\n              <PtlInput\n                data-test-company-additional-labour-margin-input\n                @type='percentage'\n                @key='additionalLabourMargin'\n                @model={{profitMarginsModel}}\n                @forceValidationVisible={{gt\n                  this.updateProfitMargins.performCount\n                  0\n                }}\n                disabled={{this.updateProfitMargins.isRunning}}\n                @description={{t\n                  'shared.profit-margins.additionalLabourMarginDescription'\n                }}\n              />\n            {{/if}}\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Materials'}}\n              @key='materialsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Subcontractors'}}\n              @key='subcontractorsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Sums'}}\n              @key='sumsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.updateProfitMargins.isRunning}}\n                {{on\n                  'click'\n                  (perform this.updateProfitMargins profitMarginsModel)\n                }}\n              >\n                {{#if this.updateProfitMargins.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t\n                    'entity.settings.company.updating profit margins'\n                  }}…\n                {{else}}\n                  {{t 'shared.profit-margins.Save profit margins'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  </article>\n  \n  {{#if this.invoiceBreakdownOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.invoiceBreakdownOptions) null}}\n      @containerClass='modal-content w-auto h-auto modal-dialog-scrollable'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'entity.settings.company.Breakdown options'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body'>\n        <PtlInput\n          @type='textarea'\n          @label={{t 'entity.settings.company.Notes'}}\n          @key='breakdownNotes'\n          @model={{this.invoiceBreakdownOptions}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n  \n        <PtlInput\n          @containerClass='form-check mb-2'\n          @type='checkbox'\n          @label={{t 'entity.settings.company.Include billable'}}\n          @key='includeBillable'\n          @model={{this.invoiceBreakdownOptions}}\n          @description={{t 'entity.settings.company.includeBillableDescription'}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n        <PtlInput\n          @containerClass='form-check mb-2'\n          @type='checkbox'\n          @label={{t 'entity.settings.company.Include previously invoiced'}}\n          @key='includeInvoiced'\n          @model={{this.invoiceBreakdownOptions}}\n          @description={{t 'entity.settings.company.includeInvoicedDescription'}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.First group by'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='firstGroupBy'\n            @id='groupByTask'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Task'}}\n            @value='TASK'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n          <PtlInput\n            @type='radio'\n            @key='firstGroupBy'\n            @id='groupByAllocationType'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Allocation type'}}\n            @value='ALLOCATION_TYPE'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Labour bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourSection'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourBill'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourItem'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeLabourBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'common.Timesheets'}}\n        </label>\n        <div class='ms-1 mb-1'>\n          <GroupingSelector\n            @groups={{this.timesheetGroupingOptions}}\n            @value={{this.invoiceBreakdownOptions.timesheetDetails}}\n            @onChange={{fn (mut this.invoiceBreakdownOptions.timesheetDetails)}}\n            as |gs|\n          >\n            {{#each gs.axes as |axis i|}}\n              <label class='pdf-export-options__grouping-label'>\n                {{#if (eq i 0)}}\n                  {{t 'shared.report-builder.First break down by'}}…\n                {{else}}\n                  …{{t 'shared.report-builder.and then by'}}…\n                {{/if}}\n              </label>\n  \n              <select\n                class='pdf-export-options__grouping-control'\n                {{on 'change' (action axis.update value='target.value')}}\n                disabled={{this.saveBreakdownOptions.isRunning}}\n              >\n                {{#each axis.options as |opt|}}\n                  <option value={{opt.key}} selected={{opt.isSelected}}>\n                    {{opt.name}}\n                  </option>\n                {{/each}}\n              </select>\n              <br />\n            {{/each}}\n          </GroupingSelector>\n        </div>\n        {{#if\n          this.model.entity.effectiveProfitMargin.additionalLabourMargin.value\n        }}\n          <div class='ms-1'>\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'entity.settings.company.Additional margin'}}\n              @key='includeTimesheetsProfitMargins'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.settings.company.includeTimesheetsProfitMarginsDescription'\n              }}\n              disabled={{this.saveBreakdownOptions.isRunning}}\n              {{on\n                'change'\n                (fn\n                  this.onToggleTimesheetMargin\n                  'includeTimesheetsProfitMargins'\n                  'includeTimesheetsCostMargins'\n                )\n              }}\n            />\n          </div>\n        {{/if}}\n  \n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Show cost margin'}}\n            @key='includeTimesheetsCostMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeTimesheetsCostMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            {{on\n              'change'\n              (fn\n                this.onToggleTimesheetMargin\n                'includeTimesheetsCostMargins'\n                'includeTimesheetsProfitMargins'\n              )\n            }}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Material bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsSection'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsBill'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsItem'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeMaterialBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Subcontractor bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1 mt-0'>\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsSection'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsBill'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsItem'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeSubcontractorBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.invoiceBreakdownOptions) null)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.saveBreakdownOptions)}}\n        >\n          {{#if this.saveBreakdownOptions.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>\n            &nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"QHiyCAZz\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.settings.company.Company details\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Settings\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"companyLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Company details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"entity\\\"]],[30,0,[\\\"entityValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"shared.contacts.Contact email\\\"],null],\\\"contactEmail\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Address\\\"],null],\\\"address\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,0,[\\\"businessNumberLabel\\\"]],\\\"businessNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"entity\\\",\\\"region\\\"]],\\\"AUS\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,0,[\\\"taxNumberLabel\\\"]],\\\"taxNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@allowClear\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,4],[\\\"entity.settings.company.Default purchases account\\\"],null],\\\"purchasesGlAccount\\\",[28,[37,19],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],[30,1],[28,[37,4],[\\\"entity.settings.company.purchasesGlAccountDescription\\\"],null],[28,[37,4],[\\\"entity.settings.company.No default account\\\"],null],true,\\\"code\\\",[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null],true,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@allowClear\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,4],[\\\"entity.settings.company.Default sales account\\\"],null],\\\"salesGlAccount\\\",[28,[37,19],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],[30,1],[28,[37,4],[\\\"entity.settings.company.salesGlAccountDescription\\\"],null],[28,[37,4],[\\\"entity.settings.company.No default account\\\"],null],true,\\\"code\\\",[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null],true,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[12],[1,[28,[35,4],[\\\"common.Logo\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[14,5,\\\"min-height: 60px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"companyLogo\\\"]],[[[1,\\\"            \\\"],[10,\\\"img\\\"],[14,0,\\\"d-inline-block overflow-hidden mb-2 me-2\\\"],[14,1,\\\"image-preview\\\"],[15,\\\"src\\\",[30,1,[\\\"companyLogo\\\",\\\"href\\\"]]],[14,5,\\\"object-fit: contain; height:100px; width:100px\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[30,0,[\\\"clearLogo\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Clear logo\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-inline-block overflow-hidden bg-light rounded mb-2 me-2\\\"],[14,5,\\\"height:100px; width:100px\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,\\\"aria-label\\\",\\\"logo-upload\\\"],[24,\\\"accept\\\",\\\".jpg, .jpeg, .png, .gif\\\"],[24,4,\\\"file\\\"],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"updateLogo\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveEntity\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Saving details\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save company details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,29],[[28,[37,30],[\\\"userIsEntityAdmin\\\"],null],[30,0,[\\\"chargebee\\\",\\\"ready\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Subscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.clickTheButtonBelowToManageYourSubscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,32],[[30,0],\\\"openChargebee\\\"],null]],null],[12],[1,[28,[35,4],[\\\"entity.settings.company.Manage your subscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUseInvoices\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoiceOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Invoicing details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"invoiceOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"invoiceValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,4],[\\\"common.Invoice\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"invoicePrefix\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextInvoiceNumber\\\"],null],\\\"nextInvoiceNumber\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"paymentTermDay\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"paymentTermDay\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"paymentTermType\\\",true,[30,0,[\\\"paymentTermType\\\"]],[30,2],[28,[37,16],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"invoiceFooterNotes\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,4],[\\\"common.Credit note\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"creditNotePrefix\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextCreditNoteNumber\\\"],null],\\\"nextCreditNoteNumber\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"creditNoteFooterNotes\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,0,[\\\"initInvoiceBreakdown\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Default breakdown options\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveInvoiceOption\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save invoicing details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUsePurchaseOrders\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"purchaseOrderOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Purchase order details\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"purchaseOrderOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"purchaseOrderValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"prefix\\\",[30,3],\\\"\\\",[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextPurchaseOrderNumber\\\"],null],\\\"nextPurchaseOrderNumber\\\",[30,3],\\\"\\\",[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"footerNotes\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"entity.settings.company.Percentage tolerance for matching\\\"],null],\\\"matchingPercentageTolerance\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,4],[\\\"entity.settings.company.Amount tolerance for matching\\\"],null],\\\"matchingAmountTolerance\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"savePurchaseOrderOption\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save purchase order details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUseStagePayments\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"stagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Stage payment details\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"stagePaymentOption\\\"]],[30,0,[\\\"stagePaymentsOptionsValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Default stage payment notes\\\"],null],\\\"footerNotes\\\",[30,4],[28,[37,16],[[30,0,[\\\"saveStagePaymentOptions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveStagePaymentOptions\\\"]],[30,4]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n                \\\"],[13],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save stage payment details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[4]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadEntityProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"profitMargin\\\"]],[30,0,[\\\"profitMarginValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,[28,[35,4],[\\\"common.Profit margins\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.company.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection\\\"],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.company.generallyThisMarginWillBeUsedToCalculateQuoteFiguresFromABudget\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@toolTip\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@selectNoBlankOption\\\"],[\\\"select\\\",[28,[37,4],[\\\"shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit\\\"],null],[28,[37,4],[\\\"shared.profit-margins.Profit type\\\"],null],\\\"profitType\\\",true,[30,0,[\\\"profitTypes\\\"]],[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Labour\\\"],null],\\\"labourPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check form-switch d-flex align-items-center mb-0\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,\\\"data-test-company-additional-labour-margin-toggle\\\",\\\"\\\"],[24,0,\\\"form-check-input mt-0 me-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"click\\\",[28,[37,25],[[30,0,[\\\"toggleAdditionalLabourMargin\\\"]],[30,5]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,17],[[30,5,[\\\"additionalLabourMargin\\\"]],null],null]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.profit-margins.Additional labour margin\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,5,[\\\"additionalLabourMargin\\\"]],null],null],[[[1,\\\"            \\\"],[8,[39,15],[[24,\\\"data-test-company-additional-labour-margin-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"additionalLabourMargin\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null],[28,[37,4],[\\\"shared.profit-margins.additionalLabourMarginDescription\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Materials\\\"],null],\\\"materialsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Subcontractors\\\"],null],\\\"subcontractorsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Sums\\\"],null],\\\"sumsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"updateProfitMargins\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.company.updating profit margins\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceBreakdownOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\"]]],null],null],null],\\\"modal-content w-auto h-auto modal-dialog-scrollable\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Notes\\\"],null],\\\"breakdownNotes\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include billable\\\"],null],\\\"includeBillable\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeBillableDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include previously invoiced\\\"],null],\\\"includeInvoiced\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeInvoicedDescription\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.First group by\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByTask\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Task\\\"],null],\\\"TASK\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByAllocationType\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Allocation type\\\"],null],\\\"ALLOCATION_TYPE\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Labour bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeLabourBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1 mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,37],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]],[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,39],[[28,[37,39],[[30,6,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,40],[[30,8],0],null],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,32],[[30,0],[30,7,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,39],[[28,[37,39],[[30,7,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"option\\\"],[15,2,[30,9,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,9,[\\\"isSelected\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[30,9,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\"        \\\"]],[6]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsProfitMargins\\\",\\\"includeTimesheetsCostMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Additional margin\\\"],null],\\\"includeTimesheetsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeTimesheetsProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsCostMargins\\\",\\\"includeTimesheetsProfitMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Show cost margin\\\"],null],\\\"includeTimesheetsCostMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeTimesheetsCostMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Material bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeMaterialBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Subcontractor bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1 mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeSubcontractorBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveBreakdownOptions\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entityModel\\\",\\\"invoiceOptionsModel\\\",\\\"purchaseOrderOptionsModel\\\",\\\"stagePaymentOptionsModel\\\",\\\"profitMarginsModel\\\",\\\"gs\\\",\\\"axis\\\",\\\"i\\\",\\\"opt\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"not-eq\\\",\\\"includes\\\",\\\"array\\\",\\\"h4\\\",\\\"div\\\",\\\"img\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"input\\\",\\\"perform\\\",\\\"span\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"p\\\",\\\"action\\\",\\\"label\\\",\\\"modal-dialog\\\",\\\"mut\\\",\\\"h5\\\",\\\"grouping-selector\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"select\\\",\\\"option\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/company.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.contacts'}}</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"5WbU548I\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.contacts\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts/contact\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <FaIcon\n            @title='This supplier is synced with your accounting package'\n            class='ms-3'\n            @icon='sync'\n          />\n        {{/if}}\n      </div>\n      <PtlInput\n        @type='text'\n        @label={{t 'common.Name'}}\n        @key='name'\n        @model={{this.model.supplierChangeset.last.value}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact person'}}\n        @key='contactPerson'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact number'}}\n        @key='contactNumber'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact email'}}\n        @key='contactEmail'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'common.Address'}}\n        @key='address'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n  \n      <label class='mb-1'>\n        {{t 'entity.settings.contacts.contact.Default allocation type'}}\n        &nbsp;<InfoPopup\n          @text={{t\n            'entity.settings.contacts.contact.defaultAllocationFeatureTooltip'\n          }}\n        />\n      </label>\n      <div class='d-flex align-items-center gap-3'>\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='MATERIALS'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Materials'}}\n          @value='MATERIALS'\n        />\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='SUBCONTRACTORS'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Subcontractors'}}\n          @value='SUBCONTRACTORS'\n        />\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='LABOUR'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Labour'}}\n          @value='LABOUR'\n        />\n      </div>\n  \n      <h4 class='mb-2'>{{t 'common.Purchases'}}</h4>\n      <div class='mb-3'>\n        <label class='mb-1' for='paymentTermDay'>\n          {{t 'shared.contacts.Payment terms'}}\n        </label>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <Input\n            class='form-control'\n            id='paymentTermDay'\n            name='paymentTermDay'\n            @type='text'\n            placeholder={{this.supplier.purchaseDisplayPaymentTerm}}\n            autocomplete='off'\n            disabled={{true}}\n          />\n        {{else}}\n          <div class='d-flex align-items-centers'>\n            <div class='me-2'>\n              <PtlInput\n                @type='number'\n                @key='paymentTermDay'\n                @containerClass='m-0'\n                min='1'\n                style='width: 75px;'\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='select'\n                @key='paymentTermType'\n                @containerClass='m-0'\n                @selectNoBlankOption={{true}}\n                @options={{this.paymentTermType}}\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n          </div>\n        {{/if}}\n      </div>\n  \n      <h4 class='mb-2'>{{t 'common.Sales'}}</h4>\n      <div class='mb-3'>\n        <label class='mb-1' for='salesPaymentTermDay'>\n          {{t 'shared.contacts.Payment terms'}}\n        </label>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <Input\n            class='form-control'\n            id='salesPaymentTermDay'\n            name='salesPaymentTermDay'\n            @type='text'\n            placeholder={{this.supplier.salesDisplayPaymentTerm}}\n            autocomplete='off'\n            disabled={{true}}\n          />\n        {{else}}\n          <div class='d-flex align-items-centers'>\n            <div class='me-2'>\n              <PtlInput\n                @type='number'\n                @key='salesPaymentTermDay'\n                @containerClass='m-0'\n                min='1'\n                style='width: 75px;'\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='select'\n                @containerClass='m-0'\n                @key='salesPaymentTermType'\n                @selectNoBlankOption={{true}}\n                @options={{this.salesPaymentTermType}}\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n          </div>\n        {{/if}}\n      </div>\n  \n      {{#if\n        (and\n          this.accountingPlatform.isActive\n          (not this.supplier.isContactLinkedToAccountingPlatform)\n        )\n      }}\n        <div class='mb-3'>\n          <label class='mb-1' for='sync-with-accounting-platform'>\n            <Input\n              class='form-check-input'\n              id='sync-with-accounting-platform'\n              name='sync-with-accounting-platform'\n              @type='checkbox'\n              @checked={{this.onChangeSyncWithAccountingPlatform}}\n              {{on\n                'change'\n                (fn\n                  (mut this.onChangeSyncWithAccountingPlatform)\n                  (not this.onChangeSyncWithAccountingPlatform)\n                )\n              }}\n              autocomplete='off'\n            />\n  \n            {{if\n              this.supplier.isNew\n              (t\n                'entity.settings.contacts.contact.alsoCreateInLabel'\n                label=this.accountingPlatform.label\n              )\n              (t\n                'entity.settings.contacts.contact.syncWithLabelOnSave'\n                label=this.accountingPlatform.label\n              )\n            }}\n  \n          </label>\n        </div>\n      {{/if}}\n  \n      <div class='d-flex justify-content-between align-items-center'>\n        <h4 class='m-0'>Aliases &nbsp;<InfoPopup\n            @text={{html-safe\n              (t 'entity.settings.contacts.contact.aliasFeatureTooltip')\n            }}\n          /></h4>\n        <button\n          type='button'\n          class='btn btn-link text-primary text-decoration-underline m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddAliasModal) true)}}\n        >\n          {{t 'entity.settings.contacts.contact.Add new alias'}}\n        </button>\n      </div>\n      <div class='mb-2'>\n        <PaginationTable\n          @tableHeader={{this.aliasesTableHeader}}\n          @tableData={{this.aliasesTableData}}\n          @isLoading={{this.isLoading}}\n          @noDataText='No aliases'\n          @class='table-bordered '\n          @hidePagination={{true}}\n        />\n      </div>\n  \n      {{#if this.canEditSupplier}}\n        <div class='d-flex align-items-center'>\n          {{#unless this.supplier.isNew}}\n            <LabelPopup @text={{this.deleteSupplierDisabledTitle}}>\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{or\n                  this.deleteSupplier.isRunning\n                  this.saveSupplier.isRunning\n                  this.supplier.isLinkedToResources\n                  this.supplier.isLinkedToActiveAccountingPlatform\n                }}\n                {{on 'click' (fn (mut this.isDeletingSupplier) true)}}\n              >\n                {{t 'entity.settings.contacts.contact.Delete contact'}}\n              </button>\n            </LabelPopup>\n          {{/unless}}\n          {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n            <div class='ms-auto d-flex gap-2'>\n              <a\n                href={{this.supplier.viewContactUrl}}\n                class='btn btn-primary'\n                target='_blank'\n                rel='noopener noreferrer'\n                role='button'\n                aria-disabled='true'\n              >\n                {{t\n                  'entity.settings.contacts.contact.editContactInLabel'\n                  label=this.accountingPlatform.label\n                }}\n              </a>\n              {{#if this.accountingPlatform.isActive}}\n                <button\n                  type='button'\n                  class='btn btn-primary'\n                  disabled={{this.updateSingleContact.isRunning}}\n                  {{on 'click' (perform this.updateSingleContact)}}\n                >\n                  {{#if this.updateSingleContact.isRunning}}\n                    <span class='spinner-border spinner-border-sm'>\n                    </span>&nbsp;&nbsp;{{t 'common.Updating'}}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.contacts.contact.updateFromLabel'\n                      label=this.accountingPlatform.label\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </div>\n          {{/if}}\n          <button\n            type='button'\n            class='btn btn-primary\n              {{if\n                this.supplier.isContactLinkedToAccountingPlatform\n                \"ms-2\"\n                \"ms-auto\"\n              }}'\n            disabled={{or\n              this.deleteSupplier.isRunning\n              this.saveSupplier.isRunning\n            }}\n            {{on\n              'click'\n              (perform this.saveSupplier this.model.supplierChangeset.last.value)\n            }}\n          >\n            {{#if this.saveSupplier.isRunning}}\n              <span class='spinner-border spinner-border-sm'>\n              </span>&nbsp;&nbsp;\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{if this.supplier.isNew (t 'common.Create') (t 'common.Save')}}\n            {{/if}}\n          </button>\n        </div>\n      {{/if}}\n    </PtlForm>\n  {{/if}}\n  {{#if this.showAddAliasModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeAddAliasModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t 'entity.settings.contacts.contact.Add new alias'}}\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <label class='mb-1' for='alias'>\n          {{t 'entity.settings.contacts.contact.Alias name'}}\n          <sup class='text-danger'>*</sup>\n        </label>\n        <div class='input-group'>\n          <Input\n            class='form-control'\n            id='alias'\n            @type='text'\n            @value={{this.aliasNameInput}}\n            disabled={{this.addNewAlias.isRunning}}\n            {{did-insert this.focusInput}}\n          />\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeAddAliasModal}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewAlias.isRunning}}\n          {{on 'click' (perform this.addNewAlias)}}\n        >\n          {{#if this.addNewAlias.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'entity.settings.contacts.contact.Add alias'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isDeletingSupplier}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingSupplier) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n  \n      <div class='modal-body'>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <div class='alert alert-warning' role='alert'>\n            <FaIcon @icon='exclamation-triangle' @size='lg' class='me-2' />\n            <span class='me-2'>\n              {{t\n                'entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync'\n                label=this.accountingPlatform.label\n              }}\n            </span>\n            <a\n              role='button'\n              class='btn btn-outline-primary'\n              target='_blank'\n              href={{this.supplier.viewContactUrl}}\n              rel='noopener noreferrer'\n            >\n              {{t\n                'entity.settings.contacts.contact.viewInLabel'\n                label=this.accountingPlatform.label\n              }}\n            </a>\n          </div>\n        {{/if}}\n        <p>\n          {{t\n            'entity.settings.contacts.contact.areYouSureYouWantToDeleteTheContact'\n          }}\n          {{t 'common.This action cannot be undone'}}\n        </p>\n      </div>\n  \n      <div class='modal-footer'>\n  \n        <button\n          class='btn btn-danger text-white'\n          type='button'\n          disabled={{this.deleteSupplier.isRunning}}\n          {{on 'click' (perform this.deleteSupplier)}}\n        >\n          {{#if this.deleteSupplier.isRunning}}\n            {{t 'common.Deleting'}}&hellip;\n          {{else}}\n            {{t 'common.Delete'}}\n          {{/if}}\n        </button>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{this.deleteSupplier.isRunning}}\n          {{on 'click' (fn (mut this.isDeletingSupplier) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n  \n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"ZXWeuRr2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"ms-3\\\"]],[[\\\"@title\\\",\\\"@icon\\\"],[\\\"This supplier is synced with your accounting package\\\",\\\"sync\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact person\\\"],null],\\\"contactPerson\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact number\\\"],null],\\\"contactNumber\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact email\\\"],null],\\\"contactEmail\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Default allocation type\\\"],null]],[1,\\\"\\\\n       \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[28,[37,6],[\\\"entity.settings.contacts.contact.defaultAllocationFeatureTooltip\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"MATERIALS\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Materials\\\"],null],\\\"MATERIALS\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"SUBCONTRACTORS\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Subcontractors\\\"],null],\\\"SUBCONTRACTORS\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"LABOUR\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Labour\\\"],null],\\\"LABOUR\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Purchases\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"paymentTermDay\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"paymentTermDay\\\"],[24,3,\\\"paymentTermDay\\\"],[16,\\\"placeholder\\\",[30,0,[\\\"supplier\\\",\\\"purchaseDisplayPaymentTerm\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"paymentTermDay\\\",\\\"m-0\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"paymentTermType\\\",\\\"m-0\\\",true,[30,0,[\\\"paymentTermType\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Sales\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"salesPaymentTermDay\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"salesPaymentTermDay\\\"],[24,3,\\\"salesPaymentTermDay\\\"],[16,\\\"placeholder\\\",[30,0,[\\\"supplier\\\",\\\"salesDisplayPaymentTerm\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"salesPaymentTermDay\\\",\\\"m-0\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"m-0\\\",\\\"salesPaymentTermType\\\",true,[30,0,[\\\"salesPaymentTermType\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,15],[[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]]],null]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sync-with-accounting-platform\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],[[24,0,\\\"form-check-input\\\"],[24,1,\\\"sync-with-accounting-platform\\\"],[24,3,\\\"sync-with-accounting-platform\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,16],[\\\"change\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]],null],[28,[37,15],[[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[1,[52,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.contacts.contact.alsoCreateInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]],[28,[37,6],[\\\"entity.settings.contacts.contact.syncWithLabelOnSave\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]]],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex justify-content-between align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Aliases  \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[28,[37,19],[[28,[37,6],[\\\"entity.settings.contacts.contact.aliasFeatureTooltip\\\"],null]],null]]],null],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showAddAliasModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add new alias\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"aliasesTableHeader\\\"]],[30,0,[\\\"aliasesTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No aliases\\\",\\\"table-bordered \\\",true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEditSupplier\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]]],[[[1,\\\"          \\\"],[8,[39,23],null,[[\\\"@text\\\"],[[30,0,[\\\"deleteSupplierDisabledTitle\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"supplier\\\",\\\"isLinkedToResources\\\"]],[30,0,[\\\"supplier\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Delete contact\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-auto d-flex gap-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[15,6,[30,0,[\\\"supplier\\\",\\\"viewContactUrl\\\"]]],[14,0,\\\"btn btn-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.editContactInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateSingleContact\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"updateSingleContact\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateSingleContact\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.updateFromLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-primary\\\\n            \\\",[52,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],\\\"ms-2\\\",\\\"ms-auto\\\"]]]],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"saveSupplier\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"  \\\\n            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[52,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"common.Create\\\"],null],[28,[37,6],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"showAddAliasModal\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeAddAliasModal\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add new alias\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"alias\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Alias name\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"alias\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]]],[4,[38,30],[[30,0,[\\\"focusInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"aliasNameInput\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"closeAddAliasModal\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"addNewAlias\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add alias\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingSupplier\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"btn btn-outline-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[30,0,[\\\"supplier\\\",\\\"viewContactUrl\\\"]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.areYouSureYouWantToDeleteTheContact\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.This action cannot be undone\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"deleteSupplier\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"info-popup\\\",\\\"h4\\\",\\\"input\\\",\\\"and\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"html-safe\\\",\\\"button\\\",\\\"pagination-table\\\",\\\"unless\\\",\\\"label-popup\\\",\\\"or\\\",\\\"a\\\",\\\"perform\\\",\\\"span\\\",\\\"modal-dialog\\\",\\\"sup\\\",\\\"did-insert\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts/contact.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    {{#if (and this.isEditable this.model.suppliers.last.value.length)}}\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-link text-danger text-decoration-underline float-start'\n          type='button'\n          {{on 'click' this.onDeletingSuppliers}}\n          disabled={{or (not this.selectedSupplierIds.size) this.isLoading}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      value={{this.searchString}}\n      readonly={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      type='search'\n      autofocus='true'\n    />\n  \n    {{#if this.isEditable}}\n      {{#if this.model.hasDuplicateSuppliers.last.value}}\n        <button\n          class='btn btn-primary m-1'\n          {{on 'click' this.openMergeDuplicateSuppliersDialog}}\n          type='button'\n        >{{t 'entity.settings.contacts.Fix duplicates'}}</button>\n      {{/if}}\n      {{#if this.accountingPlatform.isActive}}\n        <button\n          type='button'\n          class='btn btn-primary text-white text-nowrap m-1'\n          disabled={{this.syncWithAccountingPackage.isRunning}}\n          {{on 'click' (perform this.syncWithAccountingPackage)}}\n        >\n          {{#if this.syncWithAccountingPackage.isRunning}}\n            {{t 'common.Syncing'}}&hellip;\n          {{else}}\n            {{t 'common.syncWithLabel' label=this.accountingPlatform.label}}\n          {{/if}}\n        </button>\n      {{/if}}\n      <button\n        type='button'\n        class='btn btn-success text-white text-nowrap m-1'\n        disabled={{this.isLoading}}\n        {{on 'click' this.goNewSupplier}}\n      >\n        <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n      </button>\n    {{/if}}\n  </div>\n  \n  <div class='suppliers__table-container'>\n    <PaginationTable\n      @tableHeader={{this.supplierTableHeader}}\n      @tableData={{this.supplierTableData}}\n      @noDataText={{t 'common.No suppliers'}}\n      @isLoading={{this.model.suppliers.isRunning}}\n      @pageSizes={{this.model.pageSizes}}\n      @pageSize={{this.model.pageSize}}\n      @pageIndex={{this.model.pageNumber}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  \n  {{#if this.isDeletingSuppliers}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingSuppliers) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{#if this.needDeleteXeroSuppliers.length}}\n        <div class='alert alert-warning' role='alert'>\n          <FaIcon @icon='exclamation-triangle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{t\n              'entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync'\n            }}\n          </span>\n  \n          <div class='suppliers__delete-xero-suppliers-container mt-3'>\n            {{#each this.needDeleteXeroSuppliers as |supplier|}}\n              <p class='mt-0'>\n                <a\n                  target='_blank'\n                  href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.xeroIntegration.companyId}}&redirecturl=/Contacts/View/{{supplier.xeroContactId}}'\n                  rel='noopener noreferrer'\n                >\n                  <FaIcon @icon='external-link-alt' />\n                  {{supplier.name}}\n                </a>\n              </p>\n            {{/each}}\n          </div>\n        </div>\n      {{/if}}\n  \n      <p>\n        {{t 'entity.settings.contacts.Are you sure you want to delete'}}\n        {{pluralize this.selectedSupplierIds.size (t 'common.supplier')}}?\n        {{t 'common.This action cannot be undone'}}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteSuppliers.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteSuppliers.isRunning}}\n              {{on 'click' (perform this.deleteSuppliers)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteSuppliers.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingSuppliers) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.onMergeDuplicateSuppliers}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeDuplicateSupplierModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n  \n      {{#if this.onCheckingDuplicateSuppliers.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='modal-header'>\n          <div>\n            <h2 class='h2'>{{t\n                'entity.settings.contacts.Fix duplicate suppliers'\n              }}</h2>\n          </div>\n        </div>\n  \n        <div class='modal-body suppliers__duplicate-supplier-list-container'>\n          <LazyEach\n            @items={{this.mergeOptions}}\n            @automatic={{true}}\n            @initialNumberOfItemsVisible='5'\n            @increment='5'\n            @itemDisplayName='suppliers'\n            @emptyText={{t 'entity.settings.contacts.No duplicate suppliers'}}\n            as |options identifier optionsIndex|\n          >\n            {{#if (get (get options 0) 'text')}}\n              <div\n                class='card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-{{optionsIndex}}'\n              >\n                <div class='row'>\n                  <div class='col-md col-12'>\n                    <div class='fw-bold'> {{get (get options 0) 'title'}}</div>\n                    <div> {{get (get options 0) 'text'}}</div>\n                  </div>\n                  <div class='col-md col-12'>\n                    <button\n                      class='btn btn-primary float-end'\n                      {{on 'click' (perform this.mergeDuplicatedSupplier)}}\n                      disabled={{this.mergeDuplicatedSupplier.isRunning}}\n                      type='button'\n                    >\n                      {{#if this.mergeDuplicatedSupplier.isRunning}}\n                        <span\n                          class='spinner-border spinner-border-sm'\n                        ></span>&nbsp;&nbsp;{{t 'common.Merging'}}…\n                      {{else}}\n                        <span>\n                          {{t 'common.Merge'}}\n                        </span>\n                      {{/if}}\n                    </button>\n                  </div>\n                </div>\n              </div>\n            {{else}}\n              <div\n                class='{{identifier}}\n                  card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-{{optionsIndex}}'\n              >\n                {{#each options as |option index|}}\n                  <div\n                    class='row py-2 align-items-center\n                      {{if\n                        (not-eq index (math options.length \"-\" 1))\n                        \"border-bottom\"\n                      }}'\n                  >\n                    <div class='col-md col-12'>\n                      <div\n                        class='fw-bold\n                          {{if\n                            (eq\n                              option.supplierInfo.name.attributeAction \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq option.supplierInfo.name.attributeAction \"ADDED\")\n                            \"text-success\"\n                          }}'\n                      >\n                        {{option.supplierInfo.name.value}}\n                      </div>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactPerson.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactPerson.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactPerson.value}}\n                          {{option.supplierInfo.contactPerson.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact person'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactEmail.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactEmail.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactEmail.value}}\n                          {{option.supplierInfo.contactEmail.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact Email'}}\n                        {{/if}}\n                      </div>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactNumber.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactNumber.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactNumber.value}}\n                          {{option.supplierInfo.contactNumber.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact number'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.address.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.address.attributeAction \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.address.value}}\n                          {{option.supplierInfo.address.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No address'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.paymentTerm.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.paymentTerm.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.paymentTerm.value}}\n                          {{option.supplierInfo.paymentTerm.value}}\n                        {{else}}\n                          {{t 'shared.contacts.No payment terms'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      {{#if\n                        (or\n                          (eq option.mergeType 'TARGET_ATTRIBUTES_READ_ONLY')\n                          (eq option.mergeType 'TARGET_ATTRIBUTES_UPDATED')\n                        )\n                      }}\n                        <button\n                          class='btn btn-primary float-end'\n                          {{on\n                            'click'\n                            (perform\n                              this.mergeAndUseDuplicatedSupplier options index\n                            )\n                          }}\n                          disabled={{and\n                            (eq this.mergeIndex optionsIndex)\n                            this.mergeAndUseDuplicatedSupplier.isRunning\n                          }}\n                          type='button'\n                        >\n                          {{#if\n                            (and\n                              (eq this.mergeIndex optionsIndex)\n                              this.mergeAndUseDuplicatedSupplier.isRunning\n                            )\n                          }}\n                            <span\n                              class='spinner-border spinner-border-sm'\n                            ></span>&nbsp;&nbsp;{{t 'common.Merging'}}…\n                          {{else}}\n                            <span>\n                              {{t 'common.mergeUse'}}\n                            </span>\n                          {{/if}}\n                        </button>\n                      {{/if}}\n                      {{#if (eq option.mergeType 'READ_ONLY')}}\n                        {{#if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.xeroContactId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.xeroIntegration.companyId}}&redirecturl=/Contacts/View/{{option.supplierInfo.xeroContactId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'common.View in Xero'}}\n                            </a>\n                          </div>\n                        {{else if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.quickbooksContactId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='{{this.quickbooks.quickbooksUrl}}/app/customerdetail?nameId={{option.supplierInfo.quickbooksContactId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'entity.settings.contacts.View in QuickBooks'}}\n                            </a>\n                          </div>\n  \n                        {{else if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.quickbooksVendorId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='{{this.quickbooks.quickbooksUrl}}/app/vendordetail?nameId={{option.supplierInfo.quickbooksVendorId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'entity.settings.contacts.View in QuickBooks'}}\n                            </a>\n                          </div>\n                        {{/if}}\n                      {{/if}}\n                    </div>\n                  </div>\n                {{/each}}\n              </div>\n            {{/if}}\n          </LazyEach>\n        </div>\n  \n        <div class='modal-footer d-flex'>\n          <div class='d-flex align-items-center'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              disabled={{or\n                this.mergeAndUseDuplicatedSupplier.isRunning\n                this.mergeDuplicatedSupplier.isRunning\n              }}\n              {{on 'click' this.closeDuplicateSupplierModal}}\n            >{{t 'common.Close'}}</button>\n          </div>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"AdE0TKIx\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"model\\\",\\\"suppliers\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"selectedSupplierIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"onDeletingSuppliers\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"common.Search\\\"],null]],[16,2,[30,0,[\\\"searchString\\\"]]],[16,\\\"readonly\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,4,\\\"search\\\"],[4,[38,6],[\\\"input\\\",[28,[37,9],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"hasDuplicateSuppliers\\\",\\\"last\\\",\\\"value\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"openMergeDuplicateSuppliersDialog\\\"]]],null],[12],[1,[28,[35,7],[\\\"entity.settings.contacts.Fix duplicates\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"syncWithAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.syncWithLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"goNewSupplier\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"suppliers__table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,11],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"supplierTableHeader\\\"]],[30,0,[\\\"supplierTableData\\\"]],[28,[37,7],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"model\\\",\\\"suppliers\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingSuppliers\\\"]],[[[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isDeletingSuppliers\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"needDeleteXeroSuppliers\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"suppliers__delete-xero-suppliers-container mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"needDeleteXeroSuppliers\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"xeroIntegration\\\",\\\"companyId\\\"]],\\\"&redirecturl=/Contacts/View/\\\",[30,1,[\\\"xeroContactId\\\"]]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.Are you sure you want to delete\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,20],[[30,0,[\\\"selectedSupplierIds\\\",\\\"size\\\"]],[28,[37,7],[\\\"common.supplier\\\"],null]],null]],[1,\\\"?\\\\n      \\\"],[1,[28,[35,7],[\\\"common.This action cannot be undone\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"deleteSuppliers\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isDeletingSuppliers\\\"]]],null],false],null]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onMergeDuplicateSuppliers\\\"]],[[[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeDuplicateSupplierModal\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"onCheckingDuplicateSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,22],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,7],[\\\"entity.settings.contacts.Fix duplicate suppliers\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-body suppliers__duplicate-supplier-list-container\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyText\\\"],[[30,0,[\\\"mergeOptions\\\"]],true,\\\"5\\\",\\\"5\\\",\\\"suppliers\\\",[28,[37,7],[\\\"entity.settings.contacts.No duplicate suppliers\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[28,[37,25],[[30,2],0],null],\\\"text\\\"],null],[[[1,\\\"            \\\"],[10,0],[15,0,[29,[\\\"card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-\\\",[30,4]]]],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"fw-bold\\\"],[12],[1,\\\" \\\"],[1,[28,[35,25],[[28,[37,25],[[30,2],0],null],\\\"title\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,0],[12],[1,\\\" \\\"],[1,[28,[35,25],[[28,[37,25],[[30,2],0],null],\\\"text\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary float-end\\\"],[16,\\\"disabled\\\",[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"mergeDuplicatedSupplier\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Merging\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,1],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,7],[\\\"common.Merge\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[15,0,[29,[[30,3],\\\"\\\\n                card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-\\\",[30,4]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,2]],null]],null],null,[[[1,\\\"                \\\"],[10,0],[15,0,[29,[\\\"row py-2 align-items-center\\\\n                    \\\",[52,[28,[37,26],[[30,6],[28,[37,27],[[30,2,[\\\"length\\\"]],\\\"-\\\",1],null]],null],\\\"border-bottom\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[\\\"fw-bold\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"value\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact person\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact Email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact number\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No address\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"shared.contacts.No payment terms\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"TARGET_ATTRIBUTES_READ_ONLY\\\"],null],[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"TARGET_ATTRIBUTES_UPDATED\\\"],null]],null],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary float-end\\\"],[16,\\\"disabled\\\",[28,[37,2],[[28,[37,28],[[30,0,[\\\"mergeIndex\\\"]],[30,4]],null],[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\"]],[30,2],[30,6]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[28,[37,28],[[30,0,[\\\"mergeIndex\\\"]],[30,4]],null],[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Merging\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"common.mergeUse\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"READ_ONLY\\\"],null],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"xeroContactId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"xeroIntegration\\\",\\\"companyId\\\"]],\\\"&redirecturl=/Contacts/View/\\\",[30,5,[\\\"supplierInfo\\\",\\\"xeroContactId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"common.View in Xero\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"quickbooksContactId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[[30,0,[\\\"quickbooks\\\",\\\"quickbooksUrl\\\"]],\\\"/app/customerdetail?nameId=\\\",[30,5,[\\\"supplierInfo\\\",\\\"quickbooksContactId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"quickbooksVendorId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[[30,0,[\\\"quickbooks\\\",\\\"quickbooksUrl\\\"]],\\\"/app/vendordetail?nameId=\\\",[30,5,[\\\"supplierInfo\\\",\\\"quickbooksVendorId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"]],[]],null]],[]]]],[]]]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[2,3,4]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"closeDuplicateSupplierModal\\\"]]],null],[12],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"supplier\\\",\\\"options\\\",\\\"identifier\\\",\\\"optionsIndex\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"a\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"lazy-each\\\",\\\"get\\\",\\\"not-eq\\\",\\\"math\\\",\\\"eq\\\",\\\"info-popup\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/estimates/embedded-page\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=this.model.pageTitle}}\n    />\n  {{/unless}}\n  {{#if this.model.sessionId.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    {{#if (or this.model.isUnknown (not this.model.sessionId.value))}}\n      <div\n        class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'\n      >\n        <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n        <h1 class='mb-0'>Oops!</h1>\n        <h3>{{t 'common.Could not load page'}}</h3>\n      </div>\n    {{else}}\n      <PricingPage\n        @path={{this.model.path}}\n        @sessionId={{this.model.sessionId.value}}\n      />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Dzl8HJ9B\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[30,0,[\\\"model\\\",\\\"pageTitle\\\"]]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"model\\\",\\\"isUnknown\\\"]],[28,[37,7],[[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"value\\\"]]],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops!\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,12],[\\\"common.Could not load page\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@path\\\",\\\"@sessionId\\\"],[[30,0,[\\\"model\\\",\\\"path\\\"]],[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"or\\\",\\\"not\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\",\\\"t\\\",\\\"pricing-page\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/estimates/embedded-page.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/integrations\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Integrations')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Integrations'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if this.model.defaultEntityFeatures.length}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t\n            'entity.settings.integrations.Integration options'\n          }}</h3>\n        {{#each this.model.defaultEntityFeatures as |feature|}}\n          <PtlInput\n            @type='checkbox'\n            @label={{feature.label}}\n            @key={{feature.key}}\n            @description={{feature.description}}\n            @model={{this.model.featurePermissionsChangeset}}\n            disabled={{this.updateCompanyFeatures.isRunning}}\n          />\n        {{/each}}\n        <div class='d-flex flex-grow-1 mt-3'>\n          <button\n            type='button'\n            class='btn btn-primary ms-auto'\n            disabled={{this.updateCompanyFeatures.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.updateCompanyFeatures this.model.featurePermissionsChangeset\n              )\n            }}\n          >\n            {{#if this.updateCompanyFeatures.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t\n                'entity.settings.integrations.Saving options'\n              }}&hellip;\n            {{else}}\n              {{t 'entity.settings.integrations.Save options'}}\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  \n    {{#if this.newFeatureFlags.entityCanUseIPS}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t 'common.IPS'}}</h3>\n  \n        {{#if this.ips.ready}}\n          <IpsUsage class='mt-0 mb-3' />\n        {{/if}}\n  \n        {{#if this.model.ipsConnection.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else if this.model.ipsConnection.last.value}}\n          {{#let\n            (changeset\n              this.model.ipsConnection.last.value this.ipsConnectionValidator\n            )\n            as |ipsCon|\n          }}\n            {{#if ipsCon.isNew}}\n              {{! no connection yet, so this form creates one; the server issues the ipsEmail }}\n              <p class='mt-0'>\n                {{t\n                  'entity.settings.integrations.setUpIpsToStartProcessingYourDocuments'\n                }}\n              </p>\n  \n              <PtlInput\n                @type='email'\n                @label={{t\n                  'entity.settings.integrations.Email address for unprocessed documents'\n                }}\n                @key='contactEmail'\n                @model={{ipsCon}}\n                @required={{true}}\n                @description={{t\n                  'entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress'\n                }}\n                @forceValidationVisible={{gt\n                  this.saveIpsConnection.performCount\n                  0\n                }}\n                disabled={{this.saveIpsConnection.isRunning}}\n                data-test-ips-contact-email\n              />\n  \n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-ips-create\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveIpsConnection.isRunning}}\n                  {{on 'click' (perform this.saveIpsConnection ipsCon)}}\n                >\n                  {{#if this.saveIpsConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t\n                      'entity.settings.integrations.Setting up IPS'\n                    }}&hellip;\n                  {{else}}\n                    {{t 'entity.settings.integrations.Set up IPS'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{else}}\n              <div class='mb-3'>\n                <label class='mb-1' for='ips-email'>\n                  {{t 'entity.settings.integrations.Your IPS email address'}}\n                </label>\n                <Input\n                  data-test-ips-email\n                  class='form-control'\n                  id='ips-email'\n                  @type='text'\n                  @value={{ipsCon.ipsEmail}}\n                  disabled={{true}}\n                />\n                <div class='form-text text-muted'>\n                  {{t\n                    'entity.settings.integrations.documentsSentToThisAddressWillArriveInTheSystem'\n                  }}\n                </div>\n              </div>\n  \n              <PtlInput\n                @type='email'\n                @label={{t\n                  'entity.settings.integrations.Email address for unprocessed documents'\n                }}\n                @key='contactEmail'\n                @model={{ipsCon}}\n                @required={{true}}\n                @description={{t\n                  'entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress'\n                }}\n                @forceValidationVisible={{gt\n                  this.saveIpsConnection.performCount\n                  0\n                }}\n                disabled={{this.saveIpsConnection.isRunning}}\n                data-test-ips-contact-email\n              />\n  \n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-ips-save\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveIpsConnection.isRunning}}\n                  {{on 'click' (perform this.saveIpsConnection ipsCon)}}\n                >\n                  {{#if this.saveIpsConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                  {{else}}\n                    {{t 'common.Save'}}\n                    {{t 'common.IPS'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n          {{/let}}\n        {{else}}\n          <p class='mt-0'>\n            {{t\n              'entity.settings.integrations.noIpsConnectionFoundPleaseContactSupport'\n            }}\n          </p>\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUsePayroll' 'canUseBills' 'canUseFinancialReporting'\n      )\n    }}\n      {{#unless this.quickbooks.ready}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='h2'>Xero</h3>\n          {{#if this.xeroCompanyName}}\n            <div class='row align-items-center mt-2 mb-3'>\n              <a\n                data-test-xero-organisation-link\n                class='link'\n                target='_black'\n                href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.shortCode}}'\n              >\n                {{this.xeroCompanyName}}&nbsp;&nbsp;\n                <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n              </a>\n            </div>\n          {{else}}\n            <div class='mt-2'>\n              <button\n                data-test-xero-connect\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.setXeroCompany)}}\n              >{{t\n                  'entity.settings.integrations.Connect Xero organisation'\n                }}</button>\n            </div>\n          {{/if}}\n  \n          {{#if this.xeroCompanyName}}\n            {{#let\n              (changeset this.xeroConnection this.xeroValidationMap)\n              as |xeroModel|\n            }}\n              <PtlInput\n                @type='select'\n                @label={{t 'entity.settings.integrations.Send bills with status'}}\n                @key='defaultInvoiceStatus'\n                @options={{this.defaultInvoiceStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <PtlInput\n                @type='select'\n                @label={{t\n                  'entity.settings.integrations.Send credit notes with status'\n                }}\n                @key='defaultCreditNoteStatus'\n                @options={{this.defaultCreditNoteStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <PtlInput\n                @type='select'\n                @label={{t\n                  'entity.settings.integrations.Send timesheets with status'\n                }}\n                @key='defaultTimesheetStatus'\n                @options={{this.defaultTimesheetStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-xero-disconnect\n                  type='button'\n                  class='btn btn-danger text-white'\n                  disabled={{this.removeXeroCompany.isRunning}}\n                  {{on 'click' (perform this.removeXeroCompany)}}\n                >\n                  {{#if this.removeXeroCompany.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n                  {{else}}\n                    {{t 'common.Disconnect'}}\n                  {{/if}}\n                </button>\n                <button\n                  data-test-xero-save\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveXeroConnection.isRunning}}\n                  {{on 'click' (perform this.saveXeroConnection xeroModel)}}\n                >\n                  {{#if this.saveXeroConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                  {{else}}\n                    {{t 'common.Save'}}\n                    Xero\n                  {{/if}}\n                </button>\n              </div>\n            {{/let}}\n          {{/if}}\n        </PtlForm>\n      {{/unless}}\n  \n      {{#unless this.xeroIntegration.ready}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='h2'>{{t 'common.QuickBooks'}}</h3>\n          {{#if (and this.quickbooks.companyName this.quickbooks.ready)}}\n            <div class='row align-items-center mt-2 mb-3'>\n              <a\n                class='link'\n                target='_black'\n                href='{{this.quickbooksUrl}}/app/get-things-done?companyid={{this.quickbooks.companyId}}'\n              >\n                {{this.quickbooks.companyName}}&nbsp;&nbsp;\n                <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n              </a>\n            </div>\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-danger text-white'\n                disabled={{this.removeQuickBooksCompany.isRunning}}\n                {{on 'click' (perform this.removeQuickBooksCompany)}}\n              >\n                {{#if this.removeQuickBooksCompany.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n                {{else}}\n                  {{t 'common.Disconnect'}}\n                {{/if}}\n              </button>\n            </div>\n          {{else}}\n            <div class='mt-2'>\n              <button\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.setQuickBooksCompany)}}\n              >\n                {{t 'entity.settings.integrations.Connect to QuickBooks'}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  \n    {{#unless this.updatePlaceMakersIntegration.isRunning}}\n      {{#if (eq this.sessionData.entity.region 'NZL')}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='m-0'>PlaceMakers</h3>\n          {{! computed property is not computing value change, we added the task Running check to unload and render}}\n          {{#if (includes-feature-flags 'canUsePlaceMakers')}}\n            <PmIntegrationSettings />\n          {{else}}\n            <div class='m-0'>\n              <p>{{t\n                  'entity.settings.integrations.toUseThePlacemakersIntegrationPleaseEnableItFirst'\n                }}</p>\n              <button\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.updatePlaceMakersIntegration true)}}\n                disabled={{this.updatePlaceMakersIntegration.isRunning}}\n              >\n                {{#if this.updatePlaceMakersIntegration.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Enabling'}}&hellip;\n                {{else}}\n                  {{t 'common.Enable'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n      {{/if}}\n    {{/unless}}\n  \n    {{#if (includes-feature-flags 'canUseItmInvoiceIntegration')}}\n      {{#if (eq this.sessionData.entity.region 'NZL')}}\n        <PtlForm class='width--small mb-4'>\n          <h3>ITM {{t 'common.Invoice'}}</h3>\n          {{#if this.model.itmSuppliers.isRunning}}\n            <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n          {{else}}\n            <div>\n              <p>{{t\n                  'entity.settings.integrations.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically'\n                }}</p>\n              <p>{{t\n                  'entity.settings.integrations.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick'\n                }}\n                <i>{{t\n                    'entity.settings.integrations.Request Integration'\n                  }}</i>.</p>\n            </div>\n  \n            <PowerSelectMultiple\n              @tagName='div'\n              @options={{this.requestableItmStores}}\n              @selected={{this.selectedItmStores}}\n              @searchEnabled={{true}}\n              @searchField='name'\n              @placeholder={{t 'entity.settings.integrations.Select ITM stores'}}\n              @onChange={{fn (mut this.selectedItmStores)}}\n              as |store|\n            >\n              {{store.name}}\n            </PowerSelectMultiple>\n  \n            <div class='mt-2'>\n              <button\n                type='button'\n                class='btn btn-primary pull-right ms-auto'\n                disabled={{or\n                  this.requestItmStores.isRunning\n                  (not this.selectedItmStores.length)\n                }}\n                {{on 'click' (perform this.requestItmStores)}}\n              >\n                {{#if this.requestItmStores.isRunning}}\n                  {{t\n                    'entity.settings.integrations.Requesting Integration'\n                  }}&hellip;\n                {{else}}\n                  {{t 'entity.settings.integrations.Request Integration'}}\n                {{/if}}\n              </button>\n            </div>\n  \n            {{#if this.requestedItmStores.length}}\n              <div>\n                <p>{{t\n                    'entity.settings.integrations.integrationRequestsHaveBeenSentToTheFollowingStores'\n                  }}</p>\n                <p>{{t\n                    'entity.settings.integrations.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease'\n                  }}\n                  <a class='link' href='#' {{on 'click' this.contactSupport}}>{{t\n                      'entity.settings.integrations.Contact support'\n                    }}</a>.\n                </p>\n              </div>\n              <div>\n                <table class='itm-invoice-integration-settings-table'>\n                  <thead>\n                    <tr>\n                      <th>{{t 'common.Integration'}}</th>\n                      <th>{{t 'common.Status'}}</th>\n                      <th>{{t 'common.Action'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    {{#each this.requestedItmStores as |store|}}\n                      <tr>\n                        <td>{{store.name}}</td>\n                        <td>{{store.status}}</td>\n                        <td>\n                          {{#if\n                            (or\n                              (eq store.status 'Connected')\n                              (eq store.status 'Pending')\n                            )\n                          }}\n                            <button\n                              class='text-button'\n                              type='button'\n                              {{on 'click' (fn this.cancelItmStoreRequest store)}}\n                            >\n                              <FaIcon\n                                @icon='times'\n                                @fixedWidth={{true}}\n                                @size='1'\n                              />\n                              {{t 'common.Cancel'}}\n                            </button>\n                          {{else if (eq store.status 'Canceled')}}\n                            <button\n                              class='text-button'\n                              type='button'\n                              {{on\n                                'click'\n                                (fn this.reconnectITmStoreRequest store)\n                              }}\n                            >\n                              <FaIcon @icon='plug' @fixedWidth={{true}} />\n                              {{t 'common.Reconnect'}}\n                            </button>\n                          {{/if}}\n                        </td>\n                      </tr>\n                    {{/each}}\n                  </tbody>\n                </table>\n              </div>\n            {{else}}\n              <div class='itm-invoice-integration-settings-table__placeholder'>\n                <FaIcon @icon='cogs' @fixedWidth={{true}} @size='2' />\n                <p>{{t\n                    'entity.settings.integrations.yourIntegrationRequestsWillAppearHere'\n                  }}</p>\n              </div>\n            {{/if}}\n          {{/if}}\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"tTh/Z40v\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Integrations\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Integrations\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"defaultEntityFeatures\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Integration options\\\"],null]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"defaultEntityFeatures\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\"],[\\\"checkbox\\\",[30,1,[\\\"label\\\"]],[30,1,[\\\"key\\\"]],[30,1,[\\\"description\\\"]],[30,0,[\\\"model\\\",\\\"featurePermissionsChangeset\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"updateCompanyFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featurePermissionsChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Saving options\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Save options\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseIPS\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"common.IPS\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"        \\\"],[8,[39,19],[[24,0,\\\"mt-0 mb-3\\\"]],null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,20],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"last\\\",\\\"value\\\"]],[[[44,[[28,[37,22],[[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"ipsConnectionValidator\\\"]]],null]],[[[41,[30,2,[\\\"isNew\\\"]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.setUpIpsToStartProcessingYourDocuments\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-ips-contact-email\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"email\\\",[28,[37,4],[\\\"entity.settings.integrations.Email address for unprocessed documents\\\"],null],\\\"contactEmail\\\",[30,2],true,[28,[37,4],[\\\"entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress\\\"],null],[28,[37,24],[[30,0,[\\\"saveIpsConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-ips-create\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveIpsConnection\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Setting up IPS\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Set up IPS\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"ips-email\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Your IPS email address\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,\\\"data-test-ips-email\\\",\\\"\\\"],[24,0,\\\"form-control\\\"],[24,1,\\\"ips-email\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,2,[\\\"ipsEmail\\\"]]]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.documentsSentToThisAddressWillArriveInTheSystem\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-ips-contact-email\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"email\\\",[28,[37,4],[\\\"entity.settings.integrations.Email address for unprocessed documents\\\"],null],\\\"contactEmail\\\",[30,2],true,[28,[37,4],[\\\"entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress\\\"],null],[28,[37,24],[[30,0,[\\\"saveIpsConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-ips-save\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveIpsConnection\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"common.IPS\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[2]]]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.noIpsConnectionFoundPleaseContactSupport\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"canUsePayroll\\\",\\\"canUseBills\\\",\\\"canUseFinancialReporting\\\"],null],[[[41,[51,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]]],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Xero\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroCompanyName\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center mt-2 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[14,\\\"data-test-xero-organisation-link\\\",\\\"\\\"],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_black\\\"],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"shortCode\\\"]]]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"xeroCompanyName\\\"]]],[1,\\\"  \\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-connect\\\",\\\"\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"setXeroCompany\\\"]]],null]],null],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Connect Xero organisation\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroCompanyName\\\"]],[[[44,[[28,[37,22],[[30,0,[\\\"xeroConnection\\\"]],[30,0,[\\\"xeroValidationMap\\\"]]],null]],[[[1,\\\"            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send bills with status\\\"],null],\\\"defaultInvoiceStatus\\\",[30,0,[\\\"defaultInvoiceStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send credit notes with status\\\"],null],\\\"defaultCreditNoteStatus\\\",[30,0,[\\\"defaultCreditNoteStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send timesheets with status\\\"],null],\\\"defaultTimesheetStatus\\\",[30,0,[\\\"defaultTimesheetStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-disconnect\\\",\\\"\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"removeXeroCompany\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"removeXeroCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removeXeroCompany\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-save\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveXeroConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveXeroConnection\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveXeroConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n                  Xero\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]]],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.QuickBooks\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[[30,0,[\\\"quickbooks\\\",\\\"companyName\\\"]],[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center mt-2 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_black\\\"],[15,6,[29,[[30,0,[\\\"quickbooksUrl\\\"]],\\\"/app/get-things-done?companyid=\\\",[30,0,[\\\"quickbooks\\\",\\\"companyId\\\"]]]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"quickbooks\\\",\\\"companyName\\\"]]],[1,\\\"  \\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"removeQuickBooksCompany\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"removeQuickBooksCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removeQuickBooksCompany\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"setQuickBooksCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Connect to QuickBooks\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]]],[[[41,[28,[37,31],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"PlaceMakers\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[\\\"canUsePlaceMakers\\\"],null],[[[1,\\\"          \\\"],[8,[39,33],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.toUseThePlacemakersIntegrationPleaseEnableItFirst\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"updatePlaceMakersIntegration\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Enabling\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Enable\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[\\\"canUseItmInvoiceIntegration\\\"],null],[[[41,[28,[37,31],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[12],[1,\\\"ITM \\\"],[1,[28,[35,4],[\\\"common.Invoice\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"itmSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick\\\"],null]],[1,\\\"\\\\n              \\\"],[10,\\\"i\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Request Integration\\\"],null]],[13],[1,\\\".\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,35],null,[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[\\\"div\\\",[30,0,[\\\"requestableItmStores\\\"]],[30,0,[\\\"selectedItmStores\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"entity.settings.integrations.Select ITM stores\\\"],null],[28,[37,36],[[28,[37,37],[[30,0,[\\\"selectedItmStores\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary pull-right ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,38],[[30,0,[\\\"requestItmStores\\\",\\\"isRunning\\\"]],[28,[37,39],[[30,0,[\\\"selectedItmStores\\\",\\\"length\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"requestItmStores\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"requestItmStores\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Requesting Integration\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Request Integration\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"requestedItmStores\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.integrationRequestsHaveBeenSentToTheFollowingStores\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease\\\"],null]],[1,\\\"\\\\n                \\\"],[11,3],[24,0,\\\"link\\\"],[24,6,\\\"#\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"contactSupport\\\"]]],null],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Contact support\\\"],null]],[13],[1,\\\".\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,\\\"table\\\"],[14,0,\\\"itm-invoice-integration-settings-table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Integration\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"requestedItmStores\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,[30,5,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,[30,5,[\\\"status\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Connected\\\"],null],[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Pending\\\"],null]],null],[[[1,\\\"                          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,36],[[30,0,[\\\"cancelItmStoreRequest\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"times\\\",true,\\\"1\\\"]],null],[1,\\\"\\\\n                            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Canceled\\\"],null],[[[1,\\\"                          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,36],[[30,0,[\\\"reconnectITmStoreRequest\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plug\\\",true]],null],[1,\\\"\\\\n                            \\\"],[1,[28,[35,4],[\\\"common.Reconnect\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"]],[]],null]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"itm-invoice-integration-settings-table__placeholder\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"cogs\\\",true,\\\"2\\\"]],null],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.yourIntegrationRequestsWillAppearHere\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"feature\\\",\\\"ipsCon\\\",\\\"xeroModel\\\",\\\"store\\\",\\\"store\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ptl-input\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"ips-usage\\\",\\\"loading-icon\\\",\\\"let\\\",\\\"changeset\\\",\\\"p\\\",\\\"gt\\\",\\\"label\\\",\\\"input\\\",\\\"includes-some-feature-flags\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"and\\\",\\\"eq\\\",\\\"includes-feature-flags\\\",\\\"pm-integration-settings\\\",\\\"i\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"or\\\",\\\"not\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/integrations.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.People'}}</h2>\n    </header>\n    <div class='d-flex mt-3 width--large'>\n      <ul class='list-group' style='min-width: 200px;'>\n        {{#each this.tabs as |tab|}}\n          <LinkTo\n            @route={{tab.route}}\n            draggable={{false}}\n            class='list-group-item'\n          >\n            <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n            {{tab.name}}\n          </LinkTo>\n        {{/each}}\n      </ul>\n      <div class='flex-grow-1 ms-3'>\n        {{outlet}}\n      </div>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"a2v3DoTb\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.People\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,8],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,11],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"tab\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"WbrVkX40\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n  \n        <div class='d-flex flex-grow-1 mt-2'>\n          {{#if this.user.isNew}}\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveUser.isRunning}}\n              {{on\n                'click'\n                (perform this.saveUser this.model.userChangeset.last.value)\n              }}\n            >\n              {{#if this.saveUser.isRunning}}\n                {{t\n                  'entity.settings.people.clients.client.Saving client'\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.user.isNew\n                  (t 'entity.settings.people.clients.client.Create client')\n                  (t 'entity.settings.people.clients.client.Save client')\n                }}\n              {{/if}}\n            </button>\n          {{else if this.canManageUser}}\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{t\n                  'entity.settings.people.clients.client.Deleting client'\n                }}&hellip;\n              {{else}}\n                {{t 'entity.settings.people.clients.client.Delete client'}}\n              {{/if}}\n            </button>\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#unless (or this.user.isNew (not this.canManageUser))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-3'>\n            {{t\n              'entity.settings.people.clients.client.clientEntityPermissionsExplanation'\n            }}\n          </p>\n  \n          <div class='d-flex'>\n            <LinkTo\n              class='btn btn-primary m-1'\n              @route='entity.builda-price.projects'\n            >\n              {{t 'entity.settings.people.clients.client.Go to projects'}}\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n            </LinkTo>\n          </div>\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"o/pZ4KGr\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Saving client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.clients.client.Create client\\\"],null],[28,[37,6],[\\\"entity.settings.people.clients.client.Save client\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Deleting client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Delete client\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,9],[[30,0,[\\\"canManageUser\\\"]]],null]],null]],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.clientEntityPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,19],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Go to projects\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"unless\\\",\\\"fn\\\",\\\"concat\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.clients.client'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"7ldE7v8F\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"BcvWO5X4\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"nJ4fVtuX\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n  \n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n  \n        {{#if this.canManageUser}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            {{#unless this.user.isNew}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{this.deleteUser.isRunning}}\n                {{on 'click' (perform this.deleteUser)}}\n              >\n                {{#if this.deleteUser.isRunning}}\n                  {{t 'shared.people-editor.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Delete user'}}\n                {{/if}}\n              </button>\n            {{/unless}}\n  \n            {{#if this.canEditUser}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveUser.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveUser this.model.userChangeset.last.value)\n                }}\n              >\n                {{#if this.saveUser.isRunning}}\n                  {{t\n                    'entity.settings.people.subcontractors.subcontractor.Saving subcontractor'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t\n                      'entity.settings.people.subcontractors.subcontractor.Create subcontractor'\n                    )\n                    (t\n                      'entity.settings.people.subcontractors.subcontractor.Save subcontractor'\n                    )\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#unless\n        (or\n          (or this.user.isNew this.user.lastLoginDate)\n          (not this.canManageUserPermissions)\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{this.user.firstName}}\n            {{t 'shared.people-editor.trySendReminderEmail'}}\n          </span>\n          <button\n            type='button'\n            class='btn btn-outline-primary'\n            {{on\n              'click'\n              (perform\n                this.sendPasswordResetEmail this.model.userChangeset.last.value\n              )\n            }}\n            disabled={{this.sendPasswordResetEmail.isRunning}}\n          >\n            {{#if this.sendPasswordResetEmail.isRunning}}\n              {{t 'shared.people-editor.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'shared.people-editor.Send reminder email'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/unless}}\n  \n      {{#if (and this.canManageUserPermissions (not this.user.isNew))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'shared.people-editor.userPermissionsExplanation'}}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can see all projects'}}\n              @key='canViewProjects'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n            {{#if\n              (or\n                this.model.permissionsChangeset.last.value.canManageProjects\n                this.model.permissionsChangeset.last.value.canViewProjects\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can manage all projects'}}\n                @description={{t\n                  'shared.people-editor.canManageAllProjectsDescription'\n                }}\n                @key='canManageProjects'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can see all tasks'}}\n              @description={{t\n                'shared.people-editor.Lets the user see all tasks'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n            {{#if\n              (or\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can manage all tasks'}}\n                @description={{t\n                  'shared.people-editor.canManageAllTasksDescription'\n                }}\n                @key='canManageTasks'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project budgets'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectBudgetsDescription'\n                }}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project budgets'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectBudgetsDescription'\n                  }}\n                  @key='canManageBudgets'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project quotes'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectQuotesDescription'\n                }}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project quotes'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectQuotesDescription'\n                  }}\n                  @key='canManageQuotes'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project progress'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectProgressDescription'\n                }}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project progress'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectProgressDescription'\n                  }}\n                  @key='canManageProgress'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all documents'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsDescription'\n                }}\n                @key='canViewFileStorage'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all documents'}}\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsDescription'\n                  }}\n                  @key='canManageFileStorage'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all products'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsDescription'\n                }}\n                @key='canViewProducts'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all products'}}\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsDescription'\n                  }}\n                  @key='canManageProducts'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make estimates'}}\n                @key='canEstimate'\n                @description={{t\n                  'shared.people-editor.canMakeEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canManageEstimateSettings'}}\n                @key='canManageEstimateSettings'\n                @description={{t\n                  'shared.people-editor.canManageEstimateSettingsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if\n            (or\n              this.newFeatureFlags.entityCanUseTimesheets\n              this.newFeatureFlags.entityCanUseBills\n            )\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can see all timesheets and notes'\n                  }}\n                  @key='canViewTimesheets'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageTimesheets\n                    this.model.permissionsChangeset.last.value.canViewTimesheets\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.Can manage all timesheets and notes'\n                    }}\n                    @description={{t\n                      'shared.people-editor.canManageAllTimesheetsAndNotesDescription'\n                    }}\n                    @key='canManageTimesheets'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n                <PtlInput\n                  @type='powerSelectMultiple'\n                  @label={{t 'shared.people-editor.Timesheet workers'}}\n                  @key='workers'\n                  @description={{t\n                    'shared.people-editor.timesheetWorkersDescription'\n                  }}\n                  @optionKeys={{array 'fullName'}}\n                  @options={{this.model.workers.last.value}}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField='fullName'\n                  @placeholder={{t\n                    'shared.people-editor.Select a worker grant permissions for'\n                  }}\n                  @disabled={{this.saveUserPermissions.isRunning}}\n                />\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseBills}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can see all the bills'}}\n                  @key='canViewBills'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageBills\n                    this.model.permissionsChangeset.last.value.canViewBills\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t 'shared.people-editor.Can manage all bills'}}\n                    @description={{t\n                      'shared.people-editor.Lets the user create and map bills'\n                    }}\n                    @key='canManageBills'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n  \n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n  \n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canSeeAllBudgetDataInReports'}}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all quote data in reports'\n                }}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canSeeAllCostDataInReports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.Can see all invoicing data in reports'\n                }}\n                @key='canViewInvoicingReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.settingsPermissionsVisible)\n                (not this.settingsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Settings'}}\n            </h4>\n            {{#if this.settingsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.settingsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.settingsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.settingsPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.canViewWorkers'}}\n              @key='canViewWorkers'\n              @description={{t 'shared.people-editor.Lets users view workers'}}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"D0i/EvsA\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Delete user\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEditUser\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.subcontractors.subcontractor.Saving subcontractor\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.subcontractors.subcontractor.Create subcontractor\\\"],null],[28,[37,6],[\\\"entity.settings.people.subcontractors.subcontractor.Save subcontractor\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[30,0,[\\\"user\\\",\\\"lastLoginDate\\\"]]],null],[28,[37,9],[[30,0,[\\\"canManageUserPermissions\\\"]]],null]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.trySendReminderEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"sendPasswordResetEmail\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Send reminder email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"canManageUserPermissions\\\"]],[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.userPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all projects\\\"],null],\\\"canViewProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all projects\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectsDescription\\\"],null],\\\"canManageProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user see all tasks\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTasksDescription\\\"],null],\\\"canManageTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectBudgetsDescription\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectBudgetsDescription\\\"],null],\\\"canManageBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectQuotesDescription\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectQuotesDescription\\\"],null],\\\"canManageQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectProgressDescription\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectProgressDescription\\\"],null],\\\"canManageProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsDescription\\\"],null],\\\"canViewFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],\\\"canManageFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsDescription\\\"],null],\\\"canViewProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProductsDescription\\\"],null],\\\"canManageProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"shared.people-editor.canMakeEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettingsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all timesheets and notes\\\"],null],\\\"canViewTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTimesheets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTimesheets\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTimesheetsAndNotesDescription\\\"],null],\\\"canManageTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,6],[\\\"shared.people-editor.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"shared.people-editor.timesheetWorkersDescription\\\"],null],[28,[37,24],[\\\"fullName\\\"],null],[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],true,\\\"fullName\\\",[28,[37,6],[\\\"shared.people-editor.Select a worker grant permissions for\\\"],null],[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the bills\\\"],null],\\\"canViewBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBills\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBills\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all bills\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user create and map bills\\\"],null],\\\"canManageBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllBudgetDataInReports\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Settings\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"settingsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"settingsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"shared.people-editor.Lets users view workers\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"fn\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"and\\\",\\\"p\\\",\\\"mut\\\",\\\"h4\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"E9jATaW6\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          data-test-user-search\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.users.user'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"5RgJo2CI\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]],[24,\\\"data-test-user-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        {{#if this.canManageUser}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            {{#unless this.user.isNew}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{this.deleteUser.isRunning}}\n                {{on 'click' (perform this.deleteUser)}}\n              >\n                {{#if this.deleteUser.isRunning}}\n                  {{t 'shared.people-editor.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Delete user'}}\n                {{/if}}\n              </button>\n            {{/unless}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n  \n            {{#if this.canEditUser}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveUser.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveUser this.model.userChangeset.last.value)\n                }}\n              >\n                {{#if this.saveUser.isRunning}}\n                  {{t 'entity.settings.people.users.user.Saving user'}}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t 'entity.settings.people.users.user.Create user')\n                    (t 'entity.settings.people.users.user.Save user')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#unless\n        (or\n          (or this.user.isNew this.user.lastLoginDate)\n          (not this.canManageUserPermissions)\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{this.user.firstName}}\n            {{t 'shared.people-editor.trySendReminderEmail'}}\n          </span>\n          <button\n            type='button'\n            class='btn btn-outline-primary'\n            {{on\n              'click'\n              (perform\n                this.sendPasswordResetEmail this.model.userChangeset.last.value\n              )\n            }}\n            disabled={{this.sendPasswordResetEmail.isRunning}}\n          >\n            {{#if this.sendPasswordResetEmail.isRunning}}\n              {{t 'shared.people-editor.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'shared.people-editor.Send reminder email'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/unless}}\n  \n      {{#if (and this.canManageUserPermissions (not this.user.isNew))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n  \n          {{#if this.permissionsDescription}}\n            <p class='mb-4'>\n              {{this.permissionsDescription}}\n            </p>\n          {{/if}}\n  \n          {{#if (includes-feature-flags 'userIsEntityAdmin')}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.settings.people.users.user.Can be a company administrator'\n              }}\n              @key='isCompanyAdministrator'\n              @description={{t\n                'entity.settings.people.users.user.canBeACompanyAdministratorDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n          {{/if}}\n  \n          {{#if (includes-feature-flags 'canUseBuildaPrice')}}\n            {{#unless\n              this.model.permissionsChangeset.last.value.isCompanyAdministrator\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.settings.people.users.user.Can be a company manager'\n                }}\n                @key='canManageEverything'\n                @description={{t\n                  'entity.settings.people.users.user.canBeACompanyManagerDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n  \n              {{#unless\n                this.model.permissionsChangeset.last.value.canManageEverything\n              }}\n                <div\n                  class='d-flex align-items-center mb-3'\n                  role='button'\n                  {{on\n                    'click'\n                    (fn\n                      (mut this.projectPermissionsVisible)\n                      (not this.projectPermissionsVisible)\n                    )\n                  }}\n                >\n                  <h4 class='m-0'>\n                    {{t 'common.Project'}}\n                  </h4>\n                  {{#if this.projectPermissionsCount}}\n                    <span class='ms-2 badge bg-info'>\n                      {{this.projectPermissionsCount}}\n                    </span>\n                  {{/if}}\n                  <h4 class='m-0 ms-auto'>\n                    <FaIcon\n                      @icon={{if\n                        this.projectPermissionsVisible\n                        'chevron-down'\n                        'chevron-right'\n                      }}\n                    />\n                  </h4>\n                </div>\n                {{#if this.projectPermissionsVisible}}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t 'shared.people-editor.Can see all projects'}}\n                    @key='canViewProjects'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canManageProjects\n                      this.model.permissionsChangeset.last.value.canViewProjects\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can manage all projects'}}\n                      @description={{t\n                        'shared.people-editor.canManageAllProjectsDescription'\n                      }}\n                      @key='canManageProjects'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canViewProjects\n                      this.model.permissionsChangeset.last.value.canViewTasks\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all tasks'}}\n                      @description={{t\n                        'shared.people-editor.Lets the user see all tasks'\n                      }}\n                      @key='canViewTasks'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canManageTasks\n                      this.model.permissionsChangeset.last.value.canViewTasks\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can manage all tasks'}}\n                      @description={{t\n                        'shared.people-editor.canManageAllTasksDescription'\n                      }}\n                      @key='canManageTasks'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project budgets'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectBudgetsDescription'\n                      }}\n                      @key='canViewBudgets'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageBudgets\n                        this.model.permissionsChangeset.last.value.canViewBudgets\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project budgets'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectBudgetsDescription'\n                        }}\n                        @key='canManageBudgets'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project quotes'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectQuotesDescription'\n                      }}\n                      @key='canViewQuotes'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageQuotes\n                        this.model.permissionsChangeset.last.value.canViewQuotes\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project quotes'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectQuotesDescription'\n                        }}\n                        @key='canManageQuotes'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project progress'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectProgressDescription'\n                      }}\n                      @key='canViewProgress'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageProgress\n                        this.model.permissionsChangeset.last.value.canViewProgress\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project progress'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectProgressDescription'\n                        }}\n                        @key='canManageProgress'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all documents'}}\n                      @description={{t\n                        'shared.people-editor.canSeeAllDocumentsDescription'\n                      }}\n                      @key='canViewFileStorage'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageFileStorage\n                        this.model.permissionsChangeset.last.value.canViewFileStorage\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all documents'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllDocumentsDescription'\n                        }}\n                        @key='canManageFileStorage'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProducts}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all products'}}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProductsDescription'\n                      }}\n                      @key='canViewProducts'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageProducts\n                        this.model.permissionsChangeset.last.value.canViewProducts\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all products'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProductsDescription'\n                        }}\n                        @key='canManageProducts'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseEstimates}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can make estimates'}}\n                      @key='canEstimate'\n                      @description={{t\n                        'shared.people-editor.canMakeEstimatesDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canManageEstimateSettings'\n                      }}\n                      @key='canManageEstimateSettings'\n                      @description={{t\n                        'shared.people-editor.canManageEstimateSettingsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if this.newFeatureFlags.entityCanUseScheduling}}\n                  <div\n                    class='d-flex align-items-center mb-3'\n                    role='button'\n                    {{on\n                      'click'\n                      (fn\n                        (mut this.schedulingPermissionsVisible)\n                        (not this.schedulingPermissionsVisible)\n                      )\n                    }}\n                  >\n                    <h4 class='m-0'>\n                      {{t 'common.Scheduling'}}\n                    </h4>\n                    {{#if this.schedulingPermissionsCount}}\n                      <span class='ms-2 badge bg-info'>\n                        {{this.schedulingPermissionsCount}}\n                      </span>\n                    {{/if}}\n                    <h4 class='m-0 ms-auto'>\n                      <FaIcon\n                        @icon={{if\n                          this.schedulingPermissionsVisible\n                          'chevron-down'\n                          'chevron-right'\n                        }}\n                      />\n                    </h4>\n                  </div>\n                  {{#if this.schedulingPermissionsVisible}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see scheduling reports'\n                      }}\n                      @key='canViewSchedulingReports'\n                      @description={{t\n                        'shared.people-editor.Gives access to see the timeline'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can make scheduling changes'\n                      }}\n                      @key='canManageSchedulingReports'\n                      @description={{t\n                        'shared.people-editor.canMakeSchedulingChangesDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if\n                  (or\n                    this.newFeatureFlags.entityCanUseTimesheets\n                    this.newFeatureFlags.entityCanUseBills\n                  )\n                }}\n                  <div\n                    class='d-flex align-items-center mb-3'\n                    role='button'\n                    {{on\n                      'click'\n                      (fn\n                        (mut this.allocationsPermissionsVisible)\n                        (not this.allocationsPermissionsVisible)\n                      )\n                    }}\n                  >\n                    <h4 class='m-0'>\n                      {{t 'common.Allocations'}}\n                    </h4>\n                    {{#if this.allocationsPermissionsCount}}\n                      <span class='ms-2 badge bg-info'>\n                        {{this.allocationsPermissionsCount}}\n                      </span>\n                    {{/if}}\n                    <h4 class='m-0 ms-auto'>\n                      <FaIcon\n                        @icon={{if\n                          this.allocationsPermissionsVisible\n                          'chevron-down'\n                          'chevron-right'\n                        }}\n                      />\n                    </h4>\n                  </div>\n  \n                  {{#if this.allocationsPermissionsVisible}}\n                    {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can see all timesheets and notes'\n                        }}\n                        @key='canViewTimesheets'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageTimesheets\n                          this.model.permissionsChangeset.last.value.canViewTimesheets\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.Can manage all timesheets and notes'\n                          }}\n                          @description={{t\n                            'shared.people-editor.canManageAllTimesheetsAndNotesDescription'\n                          }}\n                          @key='canManageTimesheets'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      <PtlInput\n                        @type='powerSelectMultiple'\n                        @label={{t 'shared.people-editor.Timesheet workers'}}\n                        @key='workers'\n                        @description={{t\n                          'shared.people-editor.timesheetWorkersDescription'\n                        }}\n                        @optionKeys={{array 'fullName'}}\n                        @options={{this.model.workers.last.value}}\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        @searchEnabled={{true}}\n                        @searchField='fullName'\n                        @placeholder={{t\n                          'shared.people-editor.Select a worker grant permissions for'\n                        }}\n                        @disabled={{this.saveUserPermissions.isRunning}}\n                      />\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseBills}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t 'shared.people-editor.Can see all the bills'}}\n                        @key='canViewBills'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageBills\n                          this.model.permissionsChangeset.last.value.canViewBills\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t 'shared.people-editor.Can manage all bills'}}\n                          @description={{t\n                            'shared.people-editor.Lets the user create and map bills'\n                          }}\n                          @key='canManageBills'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseInvoices}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.users.user.entity.Can see all invoices'\n                        }}\n                        @description={{t\n                          'shared.people-editor.users.user.entity.canViewInvoicesDescription'\n                        }}\n                        @key='canViewInvoices'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageInvoices\n                          this.model.permissionsChangeset.last.value.canViewInvoices\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.users.user.entity.Can create invoices'\n                          }}\n                          @description={{t\n                            'shared.people-editor.users.user.entity.canManageInvoicesDescription'\n                          }}\n                          @key='canManageInvoices'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageInvoices\n                          this.model.permissionsChangeset.last.value.canApproveInvoices\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.users.user.entity.Can approve invoices'\n                          }}\n                          @description={{t\n                            'shared.people-editor.users.user.entity.canApproveInvoicesDescription'\n                          }}\n                          @key='canApproveInvoices'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUsePurchaseOrders}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'entity.settings.people.users.user.Can see all the purchase orders'\n                        }}\n                        @description={{t\n                          'entity.settings.people.users.user.canSeeAllThePurchaseOrdersDescription'\n                        }}\n                        @key='canViewPurchaseOrders'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                          this.model.permissionsChangeset.last.value.canViewPurchaseOrders\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can manage all purchase orders'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canManageAllPurchaseOrdersDescription'\n                          }}\n                          @key='canManagePurchaseOrders'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                          this.model.permissionsChangeset.last.value.canApprovePurchaseOrders\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can approve all purchase orders'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canApproveAllPurchaseOrdersDescription'\n                          }}\n                          @key='canApprovePurchaseOrders'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseStagePayments}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'entity.settings.people.users.user.Can see all the stage payments'\n                        }}\n                        @description={{t\n                          'entity.settings.people.users.user.canSeeAllTheStagePaymentsDescription'\n                        }}\n                        @key='canViewStagePayments'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageStagePayments\n                          this.model.permissionsChangeset.last.value.canViewStagePayments\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can manage all stage payments'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canManageAllStagePaymentsDescription'\n                          }}\n                          @key='canManageStagePayments'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                  {{/if}}\n                {{/if}}\n                <div\n                  class='d-flex align-items-center mb-3'\n                  role='button'\n                  {{on\n                    'click'\n                    (fn\n                      (mut this.reportsPermissionsVisible)\n                      (not this.reportsPermissionsVisible)\n                    )\n                  }}\n                >\n                  <h4 class='m-0'>\n                    {{t 'common.Reports'}}\n                  </h4>\n                  {{#if this.reportsPermissionsCount}}\n                    <span class='ms-2 badge bg-info'>\n                      {{this.reportsPermissionsCount}}\n                    </span>\n                  {{/if}}\n                  <h4 class='m-0 ms-auto'>\n                    <FaIcon\n                      @icon={{if\n                        this.reportsPermissionsVisible\n                        'chevron-down'\n                        'chevron-right'\n                      }}\n                    />\n                  </h4>\n                </div>\n                {{#if this.reportsPermissionsVisible}}\n                  {{#if this.newFeatureFlags.canUsePayroll}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'entity.settings.people.users.user.Can run payroll reports'\n                      }}\n                      @key='canViewPayrollReports'\n                      @description={{t\n                        'entity.settings.people.users.user.canRunPayrollReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.canUseReportBuilder}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'entity.settings.people.users.user.Can use the report builder'\n                      }}\n                      @key='canUseReportBuilderReport'\n                      @description={{t\n                        'entity.settings.people.users.user.canUseTheReportBuilderDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n  \n                  <div class='alert alert-primary' role='alert'>\n                    <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n                    <span class='me-2'>\n                      {{#if this.canViewReports.length}}\n                        {{t\n                          'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                        }}\n                        <span class='fw-bold'>{{this.canViewReports}}</span>.\n                      {{else}}\n                        {{t\n                          'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                        }}\n                      {{/if}}\n                    </span>\n                  </div>\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canSeeAllBudgetDataInReports'\n                      }}\n                      @description={{t\n                        'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                      }}\n                      @key='canViewBudgetFinancialReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                      }}\n                      @description={{t\n                        'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                      }}\n                      @key='canViewBudgetLabourHourReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all quote data in reports'\n                      }}\n                      @key='canViewQuoteReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.newFeatureFlags.entityCanUseTimesheets\n                      this.newFeatureFlags.entityCanUseBills\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canSeeAllCostDataInReports'\n                      }}\n                      @key='canViewCostFinancialReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                      }}\n                      @key='canViewCostLabourHourReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all work value data in reports'\n                      }}\n                      @key='canViewChargeupReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all progress data in reports'\n                      }}\n                      @key='canViewProgressReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllProgressDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.Can see all invoicing data in reports'\n                      }}\n                      @key='canViewInvoicingReports'\n                      @description={{t\n                        'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseGeofencing}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label='Can see all site access data in reports?'\n                      @key='canViewAccessReports'\n                      @description='Site access reports show real-time site occupancy and access history.'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n              {{/unless}}\n            {{/unless}}\n          {{/if}}\n  \n          {{#unless\n            this.model.permissionsChangeset.last.value.isCompanyAdministrator\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.settingsPermissionsVisible)\n                  (not this.settingsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Settings'}}\n              </h4>\n  \n              {{#if this.settingsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.settingsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.settingsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.settingsPermissionsVisible}}\n              {{#if (includes-feature-flags 'canUseBuildaPrice')}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canViewWorkers'}}\n                  @key='canViewWorkers'\n                  @description={{t\n                    'shared.people-editor.Lets users view workers'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageWorkers\n                    this.model.permissionsChangeset.last.value.canViewWorkers\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.settings.people.users.user.canManageWorkers'\n                    }}\n                    @key='canManageWorkers'\n                    @description={{t\n                      'entity.settings.people.users.user.canManageWorkersDescription'\n                    }}\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n  \n              <PtlInput\n                @type='checkbox'\n                @label={{t 'entity.settings.people.users.user.canViewUsers'}}\n                @key='canViewUsers'\n                @description={{t\n                  'entity.settings.people.users.user.canViewUsersDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageUsers\n                  this.model.permissionsChangeset.last.value.canViewUsers\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'entity.settings.people.users.user.canManageUsers'}}\n                  @key='canManageUsers'\n                  @description={{t\n                    'entity.settings.people.users.user.canManageUsersDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n  \n              {{#if (includes-feature-flags 'canUseIntegrations')}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.settings.people.users.user.canManageIntegrations'\n                  }}\n                  @key='canManageIntegrations'\n                  @description={{t\n                    'entity.settings.people.users.user.canManageIntegrationsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/unless}}\n  \n          {{#if (includes-feature-flags 'canUseFinancialReporting')}}\n            {{#unless\n              this.model.permissionsChangeset.last.value.isCompanyAdministrator\n            }}\n              <div\n                class='d-flex align-items-center mb-3'\n                role='button'\n                {{on\n                  'click'\n                  (fn\n                    (mut this.financialReportingPermissionsVisible)\n                    (not this.financialReportingPermissionsVisible)\n                  )\n                }}\n              >\n                <h4 class='m-0'>\n                  {{t 'common.Financial portal'}}\n                </h4>\n                {{#if this.financialReportingPermissionsCount}}\n                  <span class='ms-2 badge bg-info'>\n                    {{this.financialReportingPermissionsCount}}\n                  </span>\n                {{/if}}\n                <h4 class='m-0 ms-auto'>\n                  <FaIcon\n                    @icon={{if\n                      this.financialReportingPermissionsVisible\n                      'chevron-down'\n                      'chevron-right'\n                    }}\n                  />\n                </h4>\n              </div>\n  \n              {{#if this.financialReportingPermissionsVisible}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.settings.people.users.user.Can view financials'\n                  }}\n                  @key='canViewFinancialReporting'\n                  @description={{t\n                    'entity.settings.people.users.user.canViewFinancialsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  this.model.permissionsChangeset.last.value.canViewFinancialReporting\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.settings.people.users.user.Can manage financials'\n                    }}\n                    @key='canManageFinancialReporting'\n                    @description={{t\n                      'entity.settings.people.users.user.canManageFinancialsDescription'\n                    }}\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/unless}}\n          {{/if}}\n  \n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"iepkcC2B\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Delete user\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEditUser\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.users.user.Saving user\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.users.user.Create user\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.Save user\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[30,0,[\\\"user\\\",\\\"lastLoginDate\\\"]]],null],[28,[37,9],[[30,0,[\\\"canManageUserPermissions\\\"]]],null]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.trySendReminderEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"sendPasswordResetEmail\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Send reminder email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"canManageUserPermissions\\\"]],[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"permissionsDescription\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"permissionsDescription\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsEntityAdmin\\\"],null],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can be a company administrator\\\"],null],\\\"isCompanyAdministrator\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canBeACompanyAdministratorDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseBuildaPrice\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can be a company manager\\\"],null],\\\"canManageEverything\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canBeACompanyManagerDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageEverything\\\"]]],[[[1,\\\"              \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all projects\\\"],null],\\\"canViewProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all projects\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectsDescription\\\"],null],\\\"canManageProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user see all tasks\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTasksDescription\\\"],null],\\\"canManageTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectBudgetsDescription\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectBudgetsDescription\\\"],null],\\\"canManageBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectQuotesDescription\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectQuotesDescription\\\"],null],\\\"canManageQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectProgressDescription\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectProgressDescription\\\"],null],\\\"canManageProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsDescription\\\"],null],\\\"canViewFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],\\\"canManageFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsDescription\\\"],null],\\\"canViewProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProductsDescription\\\"],null],\\\"canManageProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"shared.people-editor.canMakeEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettingsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all timesheets and notes\\\"],null],\\\"canViewTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTimesheets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTimesheets\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTimesheetsAndNotesDescription\\\"],null],\\\"canManageTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,6],[\\\"shared.people-editor.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"shared.people-editor.timesheetWorkersDescription\\\"],null],[28,[37,24],[\\\"fullName\\\"],null],[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],true,\\\"fullName\\\",[28,[37,6],[\\\"shared.people-editor.Select a worker grant permissions for\\\"],null],[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the bills\\\"],null],\\\"canViewBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBills\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBills\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all bills\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user create and map bills\\\"],null],\\\"canManageBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoices\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can see all invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canViewInvoicesDescription\\\"],null],\\\"canViewInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewInvoices\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can create invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canManageInvoicesDescription\\\"],null],\\\"canManageInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApproveInvoices\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can approve invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canApproveInvoicesDescription\\\"],null],\\\"canApproveInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUsePurchaseOrders\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can see all the purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canSeeAllThePurchaseOrdersDescription\\\"],null],\\\"canViewPurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewPurchaseOrders\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage all purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canManageAllPurchaseOrdersDescription\\\"],null],\\\"canManagePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApprovePurchaseOrders\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can approve all purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canApproveAllPurchaseOrdersDescription\\\"],null],\\\"canApprovePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseStagePayments\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can see all the stage payments\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canSeeAllTheStagePaymentsDescription\\\"],null],\\\"canViewStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageStagePayments\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewStagePayments\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage all stage payments\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canManageAllStagePaymentsDescription\\\"],null],\\\"canManageStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"              \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"canUsePayroll\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can run payroll reports\\\"],null],\\\"canViewPayrollReports\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canRunPayrollReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"canUseReportBuilder\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can use the report builder\\\"],null],\\\"canUseReportBuilderReport\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canUseTheReportBuilderDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                      \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllBudgetDataInReports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can see all site access data in reports?\\\",\\\"canViewAccessReports\\\",\\\"Site access reports show real-time site occupancy and access history.\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Settings\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"settingsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"settingsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsVisible\\\"]],[[[41,[28,[37,15],[\\\"canUseBuildaPrice\\\"],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"shared.people-editor.Lets users view workers\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageWorkers\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewWorkers\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageWorkers\\\"],null],\\\"canManageWorkers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageWorkersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewUsers\\\"],null],\\\"canViewUsers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewUsersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageUsers\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewUsers\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageUsers\\\"],null],\\\"canManageUsers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageUsersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseIntegrations\\\"],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageIntegrations\\\"],null],\\\"canManageIntegrations\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageIntegrationsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseFinancialReporting\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"financialReportingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"financialReportingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Financial portal\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"financialReportingPermissionsCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"financialReportingPermissionsCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"financialReportingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"financialReportingPermissionsVisible\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can view financials\\\"],null],\\\"canViewFinancialReporting\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewFinancialsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFinancialReporting\\\"]],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage financials\\\"],null],\\\"canManageFinancialReporting\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageFinancialsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"fn\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"and\\\",\\\"p\\\",\\\"mut\\\",\\\"h4\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"ob0AmGTn\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <SelectInput\n          @value={{this.filter}}\n          @action={{fn (mut this.filter)}}\n          @class='form-control select-box'\n          data-test-worker-filter\n          as |si|\n        >\n          <si.option @value='active'>{{t\n              'entity.settings.people.workers.Active workers'\n            }}</si.option>\n          <si.option @value='all'>{{t\n              'entity.settings.people.workers.All workers'\n            }}</si.option>\n          <si.option @value='inactive'>{{t\n              'entity.settings.people.workers.Inactive workers'\n            }}</si.option>\n        </SelectInput>\n      </span>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-worker-search\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.workers.worker'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n            data-test-add-worker\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n      @showWorkerCode={{true}}\n      @onCopyAuthCode={{this.copyAuthCode}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"ouIJAUog\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,\\\"data-test-worker-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"filter\\\"]],[28,[37,5],[[28,[37,6],[[30,0,[\\\"filter\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"active\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.Active workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.All workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.Inactive workers\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"shared.people-editor.workers.Search for workers\\\"],null]],[24,\\\"data-test-worker-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-add-worker\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,11],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,13],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showWorkerCode\\\",\\\"@onCopyAuthCode\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,7],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,11],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null],true,[30,0,[\\\"copyAuthCode\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"si\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'shared.contacts.Contact email'}}\n          @description={{t\n            'entity.settings.people.workers.worker.contactEmailDescription'\n          }}\n          @key='email'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.workerChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n  \n        <PtlInput\n          @type='select'\n          @label={{t 'common.Language'}}\n          @key='language'\n          @options={{this.languages}}\n          @model={{this.model.workerChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n  \n        {{#if this.canManageWorkers}}\n          {{#if this.canUseWorkerType}}\n            <PtlInput\n              @type='select'\n              @label={{t 'entity.settings.people.workers.worker.Worker type'}}\n              @key='isContractor'\n              @options={{this.workerTypes}}\n              @description={{t\n                'entity.settings.people.workers.worker.workerTypeDescription'\n              }}\n              @model={{this.model.workerChangeset.last.value}}\n              @required={{true}}\n              @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n              disabled={{or\n                this.saveWorker.isRunning\n                (not this.canManageWorkers)\n              }}\n            />\n          {{/if}}\n          {{#unless this.model.workerChangeset.last.value.isContractor}}\n            {{#if this.canUsePayRate}}\n              <PtlInput\n                @type='currency'\n                @label={{t 'common.Pay rate'}}\n                @key='payRate'\n                @formatterOptions={{hash dashZero=false}}\n                @model={{this.model.workerChangeset.last.value}}\n                @required={{true}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n            {{#if this.canUseCostRate}}\n              <PtlInput\n                @type='currency'\n                @label={{t 'entity.settings.people.workers.worker.Cost rate'}}\n                @key='costRate'\n                @formatterOptions={{hash dashZero=false}}\n                @model={{this.model.workerChangeset.last.value}}\n                @required={{true}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @onChange={{this.setDefaultChargeOutRate}}\n                @containerClass={{if\n                  (or\n                    this.canUseWorkerCostCalculator\n                    (and (not this.worker.isNew) this.canUseBackdateCostRate)\n                  )\n                  'mb-2'\n                  'mb-3'\n                }}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.canUseWorkerCostCalculator\n                (and (not this.worker.isNew) this.canUseBackdateCostRate)\n              )\n            }}\n              <div class='d-flex mb-3'>\n                {{#if this.canUseWorkerCostCalculator}}\n                  <div class='text-left me-2'>\n                    <WorkerCostCalculator\n                      @worker={{this.model.worker.last.value}}\n                      @payRate={{this.model.workerChangeset.last.value.payRate}}\n                      @labourCostCalculators={{this.model.labourCostCalculators.last.value}}\n                    />\n                  </div>\n                {{/if}}\n                {{#if (and (not this.worker.isNew) this.canUseBackdateCostRate)}}\n                  <div class='text-left'>\n                    <button\n                      type='button'\n                      class='btn btn-link text-decoration-underline m-0 p-0'\n                      {{on 'click' this.initBackdateCostRateChangeset}}\n                      disabled={{this.backdateCostRate.isRunning}}\n                    >\n                      {{t\n                        'entity.settings.people.workers.worker.Change cost rate on existing timesheets'\n                      }}\n                    </button>\n                  </div>\n                {{/if}}\n              </div>\n            {{/if}}\n          {{/unless}}\n          {{#if this.canUseChargeOutRate}}\n            <div class='d-flex mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='currency'\n                  @label={{t 'common.Charge-out rate'}}\n                  @key='chargeOutRate'\n                  @formatterOptions={{hash dashZero=false}}\n                  class='rounded-0 rounded-start'\n                  @model={{this.model.workerChangeset.last.value}}\n                  @required={{true}}\n                  @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                  @containerClass={{if\n                    (and (not this.worker.isNew) this.canUseBackdateChargeOutRate)\n                    'mb-2'\n                    'mb-3'\n                  }}\n                  disabled={{or\n                    this.saveWorker.isRunning\n                    (not this.canManageWorkers)\n                  }}\n                />\n                {{#if\n                  (and (not this.worker.isNew) this.canUseBackdateChargeOutRate)\n                }}\n                  <div class='text-left'>\n                    <button\n                      type='button'\n                      class='btn btn-link text-decoration-underline m-0 p-0'\n                      {{on 'click' this.initBackdateChargeOutRateChangeset}}\n                      disabled={{this.backdateChargeOutRate.isRunning}}\n                    >\n                      {{t\n                        'entity.settings.people.workers.worker.changeChargeOutRateOnExistingTimesheets'\n                      }}\n                    </button>\n                  </div>\n                {{/if}}\n              </div>\n              {{#unless this.model.workerChangeset.last.value.isContractor}}\n                <div>\n                  <div>\n                    <label class='mb-1'>\n                      {{profit-type-label\n                        this.sessionData.entity.effectiveProfitMargin.labourPercentage.type\n                        effective=true\n                      }}\n                    </label>\n                    <div class='input-group d-block mb-2'>\n                      <span\n                        class='input-group-text text-muted rounded-0 rounded-end'\n                      >\n                        {{number-format\n                          this.effectiveProfitMargin\n                          style='percent'\n                          dashZero=false\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}</span>\n                    </div>\n                    {{#if\n                      this.sessionData.entity.effectiveProfitMargin.labourPercentage.value\n                    }}\n                      <button\n                        class='btn btn-link m-0 p-0 text-decoration-underline'\n                        {{on 'click' this.setDefaultEffectiveMargin}}\n                        type='button'\n                      >\n                        {{concat\n                          (t 'common.Use default')\n                          ' '\n                          (number-format\n                            this.sessionData.entity.effectiveProfitMargin.labourPercentage.value\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                        }}\n                      </button>\n                    {{else}}\n                      <div class='form-text text-muted'>\n                        {{t 'shared.financial.There is no default value'}}\n                      </div>\n                    {{/if}}\n                  </div>\n                </div>\n              {{/unless}}\n            </div>\n          {{/if}}\n          <h4 class='mb-2'>{{t\n              'entity.settings.people.workers.worker.Emergency contacts'\n            }}</h4>\n          <div class='row'>\n            <div class='col-4'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='emergencyContactNameOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-3'>\n              <PtlInput\n                @type='text'\n                @label={{t 'entity.settings.people.workers.worker.Relationship'}}\n                @key='emergencyContactRelationshipOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-5'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Phone number'}}\n                @key='emergencyContactPhoneNumberOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n          </div>\n  \n          <div class='row'>\n            <div class='col-4'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='emergencyContactNameTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-3'>\n              <PtlInput\n                @type='text'\n                @label={{t 'entity.settings.people.workers.worker.Relationship'}}\n                @key='emergencyContactRelationshipTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-5'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Phone number'}}\n                @key='emergencyContactPhoneNumberTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n          </div>\n  \n          {{#if\n            (or\n              (includes-some-feature-flags\n                'entityCanUseSmartPayroll' 'entityCanUseKeypay'\n              )\n              (and\n                this.accountingPlatform.isActive\n                (eq this.accountingPlatform.activePlatform 'xero')\n                (includes-feature-flags 'canUseXeroIntegration')\n              )\n              (and\n                this.accountingPlatform.isActive\n                (eq this.accountingPlatform.activePlatform 'quickbooks')\n                (includes-feature-flags 'canUseQuickbooksIntegration')\n              )\n            )\n          }}\n            <h4 class='mb-2'>{{t 'common.Integrations'}}</h4>\n            {{#if (includes-feature-flags 'entityCanUseSmartPayroll')}}\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Smartly employee code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.smartlyEmployeeCodeDescription'\n                }}\n                @key='smartPayrollEmployeeCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Smartly employee department code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.smartlyEmployeeDepartmentCodeDescription'\n                }}\n                @key='smartPayrollEmployeeDepartmentCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n  \n            {{#if (includes-feature-flags 'entityCanUseKeypay')}}\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Keypay employee code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.keypayEmployeeCodeDescription'\n                }}\n                @key='keypayEmployeeCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{this.saveWorker.isRunning}}\n              />\n            {{/if}}\n  \n            {{#if\n              (and\n                (eq this.accountingPlatform.activePlatform 'xero')\n                (includes-feature-flags 'canUseXeroIntegration')\n              )\n            }}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t 'entity.settings.people.workers.worker.Xero employee'}}\n                @key='xeroEmployee'\n                @optionKeys={{array 'name'}}\n                @description={{t\n                  'entity.settings.people.workers.worker.xeroEmployeeDescription'\n                }}\n                @options={{this.model.accountingPlatformEmployees.last.value}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEmployees.isRunning\n                }}\n              />\n              <div>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline m-0 p-0 mb-2'\n                  {{on 'click' (perform this.reloadEmployees)}}\n                  disabled={{this.reloadEmployees.isRunning}}\n                >\n                  {{#if this.reloadEmployees.isRunning}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reloading Xero employees'\n                    }}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reload Xero employees'\n                    }}\n                  {{/if}}\n                </button>\n              </div>\n  \n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.settings.people.workers.worker.Xero earnings rate'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.xeroEarningsRateDescription'\n                }}\n                @key='xeroEarningsRate'\n                @options={{this.model.xeroEarningsRates.last.value}}\n                @optionKeys={{array 'name'}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEarningsRates.isRunning\n                }}\n              />\n  \n              <div>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline m-0 p-0 mb-2'\n                  {{on 'click' (perform this.reloadEarningsRates)}}\n                  disabled={{this.reloadEarningsRates.isRunning}}\n                >\n                  {{#if this.reloadEarningsRates.isRunning}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reloading Xero earnings rates'\n                    }}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reload Xero earnings rates'\n                    }}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n  \n            {{#if\n              (and\n                (eq this.accountingPlatform.activePlatform 'quickbooks')\n                (includes-feature-flags 'canUseQuickbooksIntegration')\n              )\n            }}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.settings.people.workers.worker.QuickBooks employee'\n                }}\n                @key='quickbooksEmployee'\n                @optionKeys={{array 'name'}}\n                @description={{t\n                  'entity.settings.people.workers.worker.quickbooksEmployeeHelperText'\n                }}\n                @options={{this.model.accountingPlatformEmployees.last.value}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @allowClear={{true}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEmployees.isRunning\n                }}\n                @afterOptionsComponent={{component\n                  'power-select-after-options-button'\n                  onClick=(perform this.reloadEmployees)\n                  icon='sync'\n                  text=(t\n                    'entity.settings.people.workers.worker.Reload QuickBooks employees'\n                  )\n                  isLoading=this.reloadEmployees.isRunning\n                  loadingText=(t\n                    'entity.settings.people.workers.worker.Loading QuickBooks employees'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n        {{/if}}\n  \n        <div class='d-flex flex-grow-1'>\n          {{#if (and this.worker.isActive (not this.enableWorker.isRunning))}}\n            {{#unless this.worker.isNew}}\n              {{#if this.canManageWorkers}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.deleteWorker.isRunning\n                    this.saveWorker.isRunning\n                  }}\n                  {{on 'click' (perform this.deleteWorker)}}\n                >\n                  {{#if this.deleteWorker.isRunning}}\n                    {{if\n                      this.canDeleteWorker\n                      (t 'entity.settings.people.workers.worker.Deleting worker')\n                      (t 'entity.settings.people.workers.worker.Disabling worker')\n                    }}&hellip;\n                  {{else}}\n                    {{if\n                      this.canDeleteWorker\n                      (t 'entity.settings.people.workers.worker.Delete worker')\n                      (t 'entity.settings.people.workers.worker.Disable worker')\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            {{/unless}}\n  \n            {{#if this.canManageWorkers}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{or\n                  this.deleteWorker.isRunning\n                  this.saveWorker.isRunning\n                }}\n                {{on\n                  'click'\n                  (perform this.saveWorker this.model.workerChangeset.last.value)\n                }}\n              >\n                {{#if this.saveWorker.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Saving worker'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.isNew\n                    (t 'entity.settings.people.workers.worker.Create worker')\n                    (t 'entity.settings.people.workers.worker.Save worker')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          {{else}}\n            {{#if this.canManageWorkers}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.enableWorker.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.enableWorker this.model.workerChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.enableWorker.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Enabling worker'\n                  }}&hellip;\n                {{else}}\n                  {{t 'entity.settings.people.workers.worker.Enable worker'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if this.canManageWorkers}}\n        {{#unless this.worker.isNew}}\n          <PtlForm class='mb-3'>\n            <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n            <p class='mb-4'>\n              {{t\n                'entity.settings.people.workers.worker.workerPermissionsExplanation'\n              }}\n            </p>\n  \n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.settings.people.workers.worker.Can see all projects and tasks'\n              }}\n              @key='canSeeProjectsAndTasks'\n              @description={{t\n                'entity.settings.people.workers.worker.canSeeAllProjectsAndTasksDescription'\n              }}\n              @model={{this.model.workerPermissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n              disabled={{this.saveWorker.isRunning}}\n            />\n  \n            {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.workerPermissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{this.saveWorker.isRunning}}\n              />\n            {{/if}}\n  \n            <div class='d-flex flex-grow-1'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.savePermissions.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.savePermissions\n                    this.model.workerPermissionsChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.savePermissions.isRunning}}\n                  {{t 'shared.people-editor.Saving permissions'}}&hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Save permissions'}}\n                {{/if}}\n              </button>\n            </div>\n          </PtlForm>\n        {{/unless}}\n      {{/if}}\n  \n      {{#unless this.worker.isNew}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-3'>{{t\n              'entity.settings.people.workers.worker.Worker login code'\n            }}</h3>\n          <p class='mt-0'>\n            {{t\n              'entity.settings.people.workers.worker.workerLoginCodeExplanation'\n            }}\n          </p>\n          <div class='d-flex align-items-center position-relative'>\n  \n            {{#if this.worker.authCode}}\n              <div\n                role='button'\n                class='bg-white border rounded px-2 py-1 flex-grow-1'\n                data-bs-placement='bottom'\n                {{on 'click' this.copyAuthCode}}\n                {{bootstrap-tooltip\n                  (if\n                    this.copiedAuthCode\n                    (t 'common.Copied')\n                    (t 'common.Click to copy')\n                  )\n                }}\n              >\n                <span class='fw-bold'>\n                  {{this.worker.authCode}}\n                </span>\n              </div>\n            {{else}}\n              <div\n                role='button'\n                class='bg-white border rounded px-2 py-1 flex-grow-1'\n              >\n                <span class='fw-bold'>\n                  {{t 'common.Not set'}}\n                </span>\n              </div>\n            {{/if}}\n  \n            {{#if this.canManageWorkers}}\n              <button\n                class='btn ms-2\n                  {{if\n                    this.worker.authCode\n                    \"btn-outline-danger\"\n                    \"btn-outline-success\"\n                  }}'\n                type='button'\n                {{on 'click' (perform this.resetWorkerAuthCode)}}\n              >\n                {{#if this.resetWorkerAuthCode.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Generating new code'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.authCode\n                    (t 'entity.settings.people.workers.worker.Generate new code')\n                    (t 'entity.settings.people.workers.worker.Generate code')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  </div>\n  \n  {{#if this.backdateChargeOutRateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateChargeOutRateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'entity.settings.people.workers.worker.overwriteTheChargeOutRatesConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='currency'\n          @label={{t 'common.Charge-out rate'}}\n          @key='chargeOutRate'\n          @formatterOptions={{hash dashZero=false}}\n          @required={{true}}\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.From'}}\n          @key='startDate'\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.To'}}\n          @key='endDate'\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.backdateChargeOutRate.isRunning}}\n            {{on 'click' (fn (mut this.backdateChargeOutRateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.backdateChargeOutRate.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.backdateChargeOutRate this.model.workerChangeset.last.value\n              )\n            }}\n          >\n            {{#if this.backdateChargeOutRate.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.backdateCostRateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateCostRateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'entity.settings.people.workers.worker.overwriteTheCostRatesConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='currency'\n          @label={{t 'entity.settings.people.workers.worker.Cost rate'}}\n          @key='costRate'\n          @formatterOptions={{hash dashZero=false}}\n          @required={{true}}\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.From'}}\n          @key='startDate'\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.To'}}\n          @key='endDate'\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.backdateCostRate.isRunning}}\n            {{on 'click' (fn (mut this.backdateCostRateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.backdateCostRate.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.backdateCostRate this.model.workerChangeset.last.value\n              )\n            }}\n          >\n            {{#if this.backdateCostRate.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"a142buBC\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact email\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.contactEmailDescription\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,6],[\\\"common.Language\\\"],null],\\\"language\\\",[30,0,[\\\"languages\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[41,[30,0,[\\\"canUseWorkerType\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@description\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Worker type\\\"],null],\\\"isContractor\\\",[30,0,[\\\"workerTypes\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.workerTypeDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isContractor\\\"]]],[[[41,[30,0,[\\\"canUsePayRate\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Pay rate\\\"],null],\\\"payRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canUseCostRate\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@containerClass\\\"],[\\\"currency\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Cost rate\\\"],null],\\\"costRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setDefaultChargeOutRate\\\"]],[52,[28,[37,8],[[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null]],null],\\\"mb-2\\\",\\\"mb-3\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left me-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,14],null,[[\\\"@worker\\\",\\\"@payRate\\\",\\\"@labourCostCalculators\\\"],[[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"payRate\\\"]],[30,0,[\\\"model\\\",\\\"labourCostCalculators\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"initBackdateCostRateChangeset\\\"]]],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Change cost rate on existing timesheets\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"canUseChargeOutRate\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,7],[[24,0,\\\"rounded-0 rounded-start\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@containerClass\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Charge-out rate\\\"],null],\\\"chargeOutRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],[52,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateChargeOutRate\\\"]]],null],\\\"mb-2\\\",\\\"mb-3\\\"]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateChargeOutRate\\\"]]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"initBackdateChargeOutRateChangeset\\\"]]],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.changeChargeOutRateOnExistingTimesheets\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isContractor\\\"]]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,18],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],[[\\\"effective\\\"],[true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"input-group d-block mb-2\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"input-group-text text-muted rounded-0 rounded-end\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,20],[[30,0,[\\\"effectiveProfitMargin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"setDefaultEffectiveMargin\\\"]]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,21],[[28,[37,6],[\\\"common.Use default\\\"],null],\\\" \\\",[28,[37,20],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,6],[\\\"shared.financial.There is no default value\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Emergency contacts\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-4\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"emergencyContactNameOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Relationship\\\"],null],\\\"emergencyContactRelationshipOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-5\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"emergencyContactPhoneNumberOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-4\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"emergencyContactNameTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Relationship\\\"],null],\\\"emergencyContactRelationshipTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-5\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"emergencyContactPhoneNumberTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,8],[[28,[37,23],[\\\"entityCanUseSmartPayroll\\\",\\\"entityCanUseKeypay\\\"],null],[28,[37,13],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,25],[\\\"canUseXeroIntegration\\\"],null]],null],[28,[37,13],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[28,[37,25],[\\\"canUseQuickbooksIntegration\\\"],null]],null]],null],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Integrations\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[\\\"entityCanUseSmartPayroll\\\"],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Smartly employee code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.smartlyEmployeeCodeDescription\\\"],null],\\\"smartPayrollEmployeeCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Smartly employee department code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.smartlyEmployeeDepartmentCodeDescription\\\"],null],\\\"smartPayrollEmployeeDepartmentCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[\\\"entityCanUseKeypay\\\"],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Keypay employee code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.keypayEmployeeCodeDescription\\\"],null],\\\"keypayEmployeeCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,25],[\\\"canUseXeroIntegration\\\"],null]],null],[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@description\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Xero employee\\\"],null],\\\"xeroEmployee\\\",[28,[37,26],[\\\"name\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.xeroEmployeeDescription\\\"],null],[30,0,[\\\"model\\\",\\\"accountingPlatformEmployees\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mb-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"reloadEmployees\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reloading Xero employees\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reload Xero employees\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@options\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Xero earnings rate\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.xeroEarningsRateDescription\\\"],null],\\\"xeroEarningsRate\\\",[30,0,[\\\"model\\\",\\\"xeroEarningsRates\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,26],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]]],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mb-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"reloadEarningsRates\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reloading Xero earnings rates\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reload Xero earnings rates\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[28,[37,25],[\\\"canUseQuickbooksIntegration\\\"],null]],null],[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@description\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@disabled\\\",\\\"@afterOptionsComponent\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.QuickBooks employee\\\"],null],\\\"quickbooksEmployee\\\",[28,[37,26],[\\\"name\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.quickbooksEmployeeHelperText\\\"],null],[30,0,[\\\"model\\\",\\\"accountingPlatformEmployees\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",true,[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],null],[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[28,[37,27],[[30,0,[\\\"reloadEmployees\\\"]]],null],\\\"sync\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Reload QuickBooks employees\\\"],null],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Loading QuickBooks employees\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,0,[\\\"worker\\\",\\\"isActive\\\"]],[28,[37,9],[[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]]],null]],null],[[[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"canDeleteWorker\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Deleting worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Disabling worker\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"canDeleteWorker\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Delete worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Disable worker\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveWorker\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Saving worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Create worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Save worker\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"enableWorker\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Enabling worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Enable worker\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[1,\\\"        \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.workerPermissionsExplanation\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Can see all projects and tasks\\\"],null],\\\"canSeeProjectsAndTasks\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.canSeeAllProjectsAndTasksDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Worker login code\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.workerLoginCodeExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center position-relative\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],[[[1,\\\"            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[24,\\\"data-bs-placement\\\",\\\"bottom\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"copyAuthCode\\\"]]],null],[4,[38,30],[[52,[30,0,[\\\"copiedAuthCode\\\"]],[28,[37,6],[\\\"common.Copied\\\"],null],[28,[37,6],[\\\"common.Click to copy\\\"],null]]],null],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"worker\\\",\\\"authCode\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Not set\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn ms-2\\\\n                \\\",[52,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],\\\"btn-outline-danger\\\",\\\"btn-outline-success\\\"]]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"resetWorkerAuthCode\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"resetWorkerAuthCode\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Generating new code\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Generate new code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Generate code\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,31],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.overwriteTheChargeOutRatesConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Charge-out rate\\\"],null],\\\"chargeOutRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],true,[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.From\\\"],null],\\\"startDate\\\",[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.To\\\"],null],\\\"endDate\\\",[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"backdateChargeOutRate\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateCostRateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,31],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateCostRateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.overwriteTheCostRatesConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Cost rate\\\"],null],\\\"costRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],true,[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.From\\\"],null],\\\"startDate\\\",[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.To\\\"],null],\\\"endDate\\\",[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateCostRateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"backdateCostRate\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"hash\\\",\\\"and\\\",\\\"worker-cost-calculator\\\",\\\"button\\\",\\\"on\\\",\\\"label\\\",\\\"profit-type-label\\\",\\\"span\\\",\\\"number-format\\\",\\\"concat\\\",\\\"h4\\\",\\\"includes-some-feature-flags\\\",\\\"eq\\\",\\\"includes-feature-flags\\\",\\\"array\\\",\\\"perform\\\",\\\"component\\\",\\\"p\\\",\\\"bootstrap-tooltip\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/profile\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Profile')}}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Profile'}}</h2>\n      {{/if}}\n    </header>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm\n        class='width--small mb-4'\n        {{did-insert this.initUserCanManageHealthAndSafety}}\n      >\n  \n        <h3 class='mb-3'>{{t 'entity.settings.profile.User details'}}</h3>\n        {{#let\n          (changeset this.model.user.last.value this.userValidationMap)\n          as |userModel|\n        }}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.First name'}}\n            @key='firstName'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Last name'}}\n            @key='lastName'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Email'}}\n            @key='email'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Phone number'}}\n            @key='phoneNumber'\n            @model={{userModel}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='select'\n            @label={{t 'common.Language'}}\n            @key='language'\n            @options={{this.languages}}\n            @model={{userModel}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n            disabled={{this.saveUser.isRunning}}\n          />\n  \n          <div class='mb-3'>\n            <button\n              type='button'\n              class='btn btn-link text-decoration-underline p-0'\n              {{on 'click' (fn (mut this.termsOfServiceModalVisible) true)}}\n            >\n              {{t 'entity.settings.profile.View Terms of Service'}}\n            </button>\n          </div>\n  \n          {{#if\n            (includes-feature-flags\n              'userIsEntityAdmin' 'entityCanUseHealthAndSafety'\n            )\n          }}\n            <h4 class='mb-3'>\n              {{t 'common.healthAndSafety'}}\n            </h4>\n  \n            <div class='form-check mb-3'>\n              <label>\n                <Input\n                  class='form-check-input'\n                  @type='checkbox'\n                  @checked={{this.userCanManageHealthAndSafety}}\n                  disabled={{this.saveUser.isRunning}}\n                />\n                {{t 'entity.settings.profile.Manage health and safety'}}\n              </label>\n              <div class='form-text text-muted'>\n                {{t\n                  'entity.settings.profile.grantYourselfAccessToManageAndSuperviseHealthAndSafety'\n                }}\n              </div>\n            </div>\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveUser.isRunning}}\n              {{on 'click' (perform this.saveUser userModel)}}\n            >\n              {{#if this.saveUser.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </PtlForm>\n  \n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-1'>{{t 'entity.settings.profile.Change password'}}</h3>\n        <div>\n          <button\n            type='button'\n            class='btn btn-link text-decoration-underline m-0 p-0 mt-2'\n            {{on 'click' (fn (mut this.passwordModalVisible) true)}}\n          >\n            {{t 'entity.settings.profile.Click here to change password'}}\n          </button>\n        </div>\n      </PtlForm>\n  \n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-1'>{{t\n            'entity.settings.profile.Remove yourself from company'\n          }}</h3>\n        <p>\n          {{t\n            'entity.settings.profile.ifYouChooseToDoThisYouWillNotBeAbleToAccess'\n          }}\n          <b>{{this.sessionData.entity.name}}</b>\n        </p>\n        <div>\n          <button\n            type='button'\n            class='btn btn-link text-danger text-decoration-underline m-0 p-0'\n            {{on 'click' (perform this.deleteUser)}}\n          >\n            {{t 'entity.settings.profile.Remove me from this company'}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  </article>\n  \n  {{#if this.passwordModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{perform this.closePasswordModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <div class='form-group mb-2'>\n          <label for='old-password'>{{t\n              'entity.settings.profile.Current password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.oldPassword}}\n            class='form-control'\n            id='old-password'\n          />\n  \n        </div>\n        <div class='form-group mb-2'>\n          <label for='new-password'>{{t\n              'entity.settings.profile.New password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.newPassword}}\n            class='form-control'\n            id='new-password'\n          />\n        </div>\n        <div class='form-group mb-2'>\n          <label for='confirm-password'>{{t\n              'entity.settings.profile.Confirm password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.confirmPassword}}\n            class='form-control'\n            id='confirm-password'\n          />\n        </div>\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on 'click' (perform this.closePasswordModal)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='float-end btn btn-primary'\n          type='button'\n          {{on 'click' (perform (mut this.changePassword))}}\n        >\n          {{#if this.changePassword.isRunning}}\n            {{t 'common.Changing'}}&hellip;\n          {{else}}\n            {{t 'common.Confirm change'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.termsOfServiceModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.termsOfServiceModalVisible) false}}\n      @containerClass='modal-content modal-dialog-scrollable w-75'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        {{html-safe this.model.terms.last.value}}\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          aria-label='button close'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.termsOfServiceModalVisible) false)}}\n        >{{t 'common.Close'}}</button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"pEqIxCum\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Profile\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Profile\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,9],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"],[4,[38,11],[[30,0,[\\\"initUserCanManageHealthAndSafety\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.User details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"userValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Email\\\"],null],\\\"email\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Language\\\"],null],\\\"language\\\",[30,0,[\\\"languages\\\"]],[30,1],[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline p-0\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.View Terms of Service\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,22],[\\\"userIsEntityAdmin\\\",\\\"entityCanUseHealthAndSafety\\\"],null],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-check mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"userCanManageHealthAndSafety\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Manage health and safety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.grantYourselfAccessToManageAndSuperviseHealthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"saveUser\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Change password\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mt-2\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"passwordModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Click here to change password\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Remove yourself from company\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.ifYouChooseToDoThisYouWillNotBeAbleToAccess\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline m-0 p-0\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Remove me from this company\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"passwordModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,26],[[30,0,[\\\"closePasswordModal\\\"]]],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"old-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Current password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"old-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"oldPassword\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"new-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.New password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"new-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"newPassword\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirm-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Confirm password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"confirm-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"confirmPassword\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"closePasswordModal\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[28,[37,21],[[30,0,[\\\"changePassword\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changePassword\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Changing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Confirm change\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"termsOfServiceModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],false],null],\\\"modal-content modal-dialog-scrollable w-75\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,31],[[30,0,[\\\"model\\\",\\\"terms\\\",\\\"last\\\",\\\"value\\\"]]],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"button close\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"userModel\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"did-insert\\\",\\\"h3\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"includes-feature-flags\\\",\\\"h4\\\",\\\"label\\\",\\\"input\\\",\\\"perform\\\",\\\"span\\\",\\\"p\\\",\\\"b\\\",\\\"modal-dialog\\\",\\\"html-safe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/profile.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/error\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'>\n    <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n    <h1 class='mb-0'>Oops</h1>\n    <h3>Something went wrong</h3>\n  \n    <LinkTo @route='index' class='btn btn-lg btn-primary'>Try again</LinkTo>\n  </div>\n  */\n  {\n    \"id\": \"S/xBlQ7T\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops\\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Something went wrong\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],[[24,0,\\\"btn btn-lg btn-primary\\\"]],[[\\\"@route\\\"],[\\\"index\\\"]],[[\\\"default\\\"],[[[[1,\\\"Try again\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/error.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/initiate-password-reset\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n  \n          <form {{action 'resetPassword' on='submit'}}>\n            <h1 class='mb-3'>Reset your password</h1>\n            <div class='mb-3'>\n              <Input\n                id='email-address'\n                class='form-control form-control-lg'\n                @value={{this.email}}\n              />\n            </div>\n            <LoadingButton\n              @class='btn btn-primary btn-lg w-100'\n              @isLoading={{this.isResettingPassword}}\n              @action={{action 'resetPassword'}}\n              @buttonText='Send password reset email'\n            />\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"ouRsjDc1\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"form\\\"],[4,[38,2],[[30,0],\\\"resetPassword\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],[[24,1,\\\"email-address\\\"],[24,0,\\\"form-control form-control-lg\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"email\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"btn btn-primary btn-lg w-100\\\",[30,0,[\\\"isResettingPassword\\\"]],[28,[37,2],[[30,0],\\\"resetPassword\\\"],null],\\\"Send password reset email\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"form\\\",\\\"action\\\",\\\"h1\\\",\\\"input\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/templates/initiate-password-reset.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"xQuGqETj\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/login\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"0q3Z2Pb9\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/login.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/logout-redirect\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"/Dnn3c5w\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/logout-redirect.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/no-access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n          <h1 class='mb-3'>\n            You can't access this company\n          </h1>\n          <p>\n            Either you haven't been given access to this company, or the company\n            has been disabled.\n          </p>\n          <p>\n            If you believe you have received this message in error, please contact\n            the company manager.\n          </p>\n  \n          {{#if (gt this.sessionData.allowedEntities.length 1)}}\n            <button\n              type='button'\n              class='btn btn-primary btn-lg w-100'\n              {{on 'click' (fn (mut this.orgSelectorOpen) true)}}\n            >\n              Change company\n            </button>\n          {{else}}\n            <button\n              class='btn btn-primary btn-lg w-100'\n              type='button'\n              {{on 'click' this.signOut}}\n            >\n              Sign out\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </div>\n  </div>\n  \n  {{#if this.orgSelectorOpen}}\n    <EntitySelector @onClose={{fn (mut this.orgSelectorOpen) false}} />\n  {{/if}}\n  */\n  {\n    \"id\": \"9zP/Hc7f\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          You can't access this company\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          Either you haven't been given access to this company, or the company\\\\n          has been disabled.\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          If you believe you have received this message in error, please contact\\\\n          the company manager.\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"sessionData\\\",\\\"allowedEntities\\\",\\\"length\\\"]],1],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            Change company\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"signOut\\\"]]],null],[12],[1,\\\"\\\\n            Sign out\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"orgSelectorOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@onClose\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"h1\\\",\\\"p\\\",\\\"if\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"entity-selector\\\"]]\",\n    \"moduleName\": \"portal/templates/no-access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/not-found\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='page__container'>\n    <div\n      class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'\n    >\n      <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n      <h1 class='mb-0'>404</h1>\n      <h3>Page not found</h3>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"nSS0ZRzF\",\n    \"block\": \"[[[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"404\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Page not found\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/not-found.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/project\", [\"exports\", \"oss-portal-addon/templates/project\"], function (_exports, _project) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _project.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/no-site\", [\"exports\", \"oss-portal-addon/templates/project/no-site\"], function (_exports, _noSite) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _noSite.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/no-site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site\", [\"exports\", \"oss-portal-addon/templates/project/site\"], function (_exports, _site) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _site.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/dashboard\", [\"exports\", \"oss-portal-addon/templates/project/site/dashboard\"], function (_exports, _dashboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dashboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/dashboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/details\", [\"exports\", \"oss-portal-addon/templates/project/site/details\"], function (_exports, _details) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _details.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/details\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards\"], function (_exports, _hazards) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _hazards.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards/board\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards/board\"], function (_exports, _board) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _board.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards/board\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards/selection\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards/selection\"], function (_exports, _selection) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _selection.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards/selection\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/index\", [\"exports\", \"oss-portal-addon/templates/project/site/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _index.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/index\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/ppe\", [\"exports\", \"oss-portal-addon/templates/project/site/ppe\"], function (_exports, _ppe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ppe.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/ppe\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/reports/index\", [\"exports\", \"oss-portal-addon/templates/project/site/reports/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _index.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/reports/index\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/reports/report\", [\"exports\", \"oss-portal-addon/templates/project/site/reports/report\"], function (_exports, _report) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _report.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/reports/report\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup\", [\"exports\", \"oss-portal-addon/templates/project/site/setup\"], function (_exports, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _setup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup/notifiable\", [\"exports\", \"oss-portal-addon/templates/project/site/setup/notifiable\"], function (_exports, _notifiable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notifiable.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup/notifiable\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup/summary\", [\"exports\", \"oss-portal-addon/templates/project/site/setup/summary\"], function (_exports, _summary) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _summary.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup/summary\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/signin\", [\"exports\", \"oss-portal-addon/templates/project/site/signin\"], function (_exports, _signin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _signin.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/signin\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/reports\", [\"exports\", \"oss-portal-addon/templates/reports\"], function (_exports, _reports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _reports.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/reports\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/reset-password\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n          {{#unless this.tokenExpired}}\n            <h1 class='mb-3'>Reset your password</h1>\n  \n            <form autocomplete='off' {{action 'resetPasswordForm' on='submit'}}>\n              <div class='mb-3'>\n                <Input\n                  id='new-password'\n                  @type='password'\n                  class='form-control form-control-lg'\n                  placeholder='New password'\n                  @value={{this.newPassword}}\n                />\n              </div>\n              <div class='mb-3'>\n                <Input\n                  id='confirm-password'\n                  @type='password'\n                  class='form-control form-control-lg'\n                  placeholder='Confirm password'\n                  @value={{this.confirmPassword}}\n                />\n              </div>\n              <LoadingButton\n                @class='btn btn-primary btn-lg w-100'\n                @isLoading={{this.isResettingPassword}}\n                @action={{action 'resetPasswordForm'}}\n                @buttonText='Reset password'\n              />\n            </form>\n          {{else}}\n            <h1 class='mb-3'>Reset your password</h1>\n            <p class='mb-3'>Your token is invalid or has expired.</p>\n            <button\n              type='button'\n              class='btn btn-primary btn-lg w-100'\n              {{action 'handleRequestPasswordReset'}}\n            >\n              Click here to request a new reset link…\n            </button>\n          {{/unless}}\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"OLs82MBi\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"tokenExpired\\\"]]],[[[1,\\\"          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[11,\\\"form\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,4],[[30,0],\\\"resetPasswordForm\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],[[24,1,\\\"new-password\\\"],[24,0,\\\"form-control form-control-lg\\\"],[24,\\\"placeholder\\\",\\\"New password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"newPassword\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],[[24,1,\\\"confirm-password\\\"],[24,0,\\\"form-control form-control-lg\\\"],[24,\\\"placeholder\\\",\\\"Confirm password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"confirmPassword\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"btn btn-primary btn-lg w-100\\\",[30,0,[\\\"isResettingPassword\\\"]],[28,[37,4],[[30,0],\\\"resetPasswordForm\\\"],null],\\\"Reset password\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Your token is invalid or has expired.\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"handleRequestPasswordReset\\\"],null],[12],[1,\\\"\\\\n            Click here to request a new reset link…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"unless\\\",\\\"h1\\\",\\\"form\\\",\\\"action\\\",\\\"input\\\",\\\"loading-button\\\",\\\"p\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/templates/reset-password.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/site\", [\"exports\", \"oss-portal-addon/templates/site\"], function (_exports, _site) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _site.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/terms-of-service\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg w-75'>\n        <div class='card-body p-sm-5 text-center'>\n          <form>\n            <h1 class='mb-3'>Terms of service</h1>\n  \n            <div class='overflow-auto mb-3 border p-3' style='height: 50vh'>\n              {{html-safe this.model.terms}}\n            </div>\n  \n            <div class='form-check mb-3 text-left'>\n              <Input\n                class='form-check-input'\n                id='terms'\n                @type='checkbox'\n                @checked={{this.model.user.hasAcceptedTerms}}\n              />\n              <label class='form-check-label' for='terms'>\n                I agree to these terms\n              </label>\n            </div>\n  \n            <LoadingButton\n              @isLoading={{this.isSubmitting}}\n              @action={{action 'continue'}}\n              @class='btn btn-primary btn-lg w-100'\n            >\n              Continue\n            </LoadingButton>\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"DH5du54D\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg w-75\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Terms of service\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"overflow-auto mb-3 border p-3\\\"],[14,5,\\\"height: 50vh\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,0,[\\\"model\\\",\\\"terms\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-check mb-3 text-left\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],[[24,0,\\\"form-check-input\\\"],[24,1,\\\"terms\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"hasAcceptedTerms\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"terms\\\"],[12],[1,\\\"\\\\n              I agree to these terms\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,6],null,[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"isSubmitting\\\"]],[28,[37,7],[[30,0],\\\"continue\\\"],null],\\\"btn btn-primary btn-lg w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            Continue\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"form\\\",\\\"h1\\\",\\\"html-safe\\\",\\\"input\\\",\\\"label\\\",\\\"loading-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/terms-of-service.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/test-support/helpers\", [\"exports\", \"ember-power-calendar/test-support/helpers\"], function (_exports, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _helpers.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/test-support/helpers\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/array\", [\"exports\", \"@ember/array\", \"@ember-data/serializer/transform\"], function (_exports, _array, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n  class _default extends _transform.default {\n    deserialize(serialized) {\n      return (0, _array.isArray)(serialized) ? serialized : [];\n    }\n    serialize(deserialized) {\n      return (0, _array.isArray)(deserialized) ? deserialized : [];\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/transforms/boolean\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.BooleanTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/date\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.DateTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/number\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.NumberTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/string\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.StringTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transitions\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _default() {\n    this.setDefault({\n      duration: 200,\n      easing: 'ease-out'\n    });\n\n    // From any route to a deeper entity route\n    this.transition(this.fromRoute(() => true), this.toRoute((newRoute, oldRoute) => {\n      const newParts = newRoute.split('.');\n      const oldParts = oldRoute.split('.');\n      if (['index', 'index_loading'].includes((0, _object.get)(newParts, 'lastObject'))) {\n        newParts.pop();\n      }\n      if (['index', 'index_loading'].includes((0, _object.get)(oldParts, 'lastObject'))) {\n        oldParts.pop();\n      }\n      return newParts[0] === 'entity' && oldParts[0] === 'entity' && oldParts.length < newParts.length;\n    }), this.use('toLeft'), this.reverse('toRight'), this.media('(max-width: 992px)'));\n  }\n});","define(\"portal/utils/am5-bp-theme\", [\"exports\", \"@amcharts/amcharts5\"], function (_exports, am5) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@amcharts/amcharts5\"eaimeta@70e063a35619d71f\n  class BpTheme extends am5.Theme {\n    setupDefaultRules() {\n      this.rule('InterfaceColors').setAll({\n        positive: am5.color('#5cb85c'),\n        negative: am5.color('#ff7052')\n      });\n      // variations of these colors will be generated by the library\n      this.rule('ColorSet').set('colors', [\n      // am5.color('#5cb85c'), // green\n      am5.color('#20aaff'),\n      // blue\n      am5.color('#B95F89'),\n      // purple\n      am5.color('#ffbe0b') // yellow\n      ]);\n    }\n  }\n  _exports.default = BpTheme;\n});","define(\"portal/utils/auto-map\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = autoMap;\n  _exports.sanitizeString = sanitizeString;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  /**\n   * Selects one directive from a list that applies to the invoice\n   * @param {Object} invoice - The invoice that is to be mapped\n   * @param {Object[]} directives - The directives to choose from\n   * @returns {Object} directive\n   */\n  function autoMap(invoice, directives = []) {\n    // Return a matching reference directive if one can be found\n    const invoiceReference = (0, _object.get)(invoice, 'reference');\n    const matchingReferenceDirective = invoiceReference && directives.find(d => (0, _object.get)(d, 'kind') === 'reference' && sanitizeString((0, _object.get)(d, 'value')) === sanitizeString(invoiceReference));\n    if (matchingReferenceDirective) return matchingReferenceDirective;\n\n    // Return a matching account directive if one can be found\n    const invoiceAccount = (0, _object.get)(invoice, 'supplierDebtorAccountCode');\n    const matchingAccountDirective = invoiceAccount && directives.find(d => (0, _object.get)(d, 'kind') === 'account' && sanitizeString((0, _object.get)(d, 'value')) === sanitizeString(invoiceAccount));\n    if (matchingAccountDirective) return matchingAccountDirective;\n\n    // Return null since no directive can be found\n    return null;\n  }\n  function sanitizeString(string) {\n    return string\n    // Ignore case\n    .toLowerCase()\n    // Ignore length of white space\n    .replace(/\\s\\s+/g, ' ')\n    // Replace tabs or any other type of white space with a space character\n    .replace(/\\s/g, ' ')\n    // Ignore leading or trailaing white space\n    .trim();\n  }\n});","define(\"portal/utils/balance-calculator\", [\"exports\", \"@ember/object/computed\", \"@ember/object\"], function (_exports, _computed, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addValue = addValue;\n  _exports.default = calcBalacnes;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function calcBalacnes(accounts, imp, maps, step) {\n    const balances = [];\n    const extBals = (0, _object.get)(imp, 'externalBalances') || [];\n    const manBals = (0, _object.get)(imp, 'manualBalances') || [];\n    accounts.forEach(account => {\n      const manBal = manBals.findBy('account', (0, _object.get)(account, 'id'));\n      const balance = _object.default.extend({\n        account,\n        date: (0, _object.get)(imp, 'date'),\n        value: (0, _object.computed)('manualBalance', 'manualBalance.value', 'maps.[]', 'maps.@each.value', 'maps.@each.inverted', function () {\n          const manual = (0, _object.get)(this, 'manualBalance');\n          if (manual) {\n            return (0, _object.get)(manual, 'value');\n          }\n          let total = null;\n          (0, _object.get)(this, 'maps').forEach(map => {\n            if ((0, _object.get)(map, 'value') != null) {\n              total += (0, _object.get)(map, 'value');\n            }\n          });\n          return total;\n        }),\n        isManual: (0, _computed.notEmpty)('manualBalance'),\n        entity: (0, _object.get)(imp, 'entity'),\n        manualBalance: manBal ? _object.default.create(manBal) : null,\n        maps: []\n      }).create();\n      const mapsForAccount = maps.filterBy('account.id', (0, _object.get)(account, 'id')).filterBy('system', (0, _object.get)(imp, 'system'));\n      mapsForAccount.forEach(map => {\n        const extBal = extBals.findBy('externalId', (0, _object.get)(map, 'externalId'));\n        if (!(0, _object.get)(map, 'sourceBalance')) {\n          addValue(map, extBal, step);\n        } else {\n          (0, _object.set)(map, 'sourceBalance', extBal);\n        }\n        (0, _object.get)(balance, 'maps').pushObject(map);\n      });\n      balances.pushObject(balance);\n    });\n    return balances;\n  }\n  function addValue(map, balance, step) {\n    (0, _object.set)(map, 'step', step);\n    (0, _object.set)(map, 'sourceBalance', balance);\n  }\n});","define(\"portal/utils/bill-parsers/bunnings\", [\"exports\", \"moment\", \"portal/utils/parse-currency-string\"], function (_exports, _moment, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = bunningsInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function bunningsInvoiceParser(source) {\n    const types = {\n      10: 'head',\n      20: 'item',\n      30: 'total'\n    };\n    try {\n      const invoices = source.reduce((bills, line, index) => {\n        const [type] = line;\n        const lastBill = bills[0];\n        switch (types[type]) {\n          case 'head':\n            bills.unshift(extractHead(line, index + 1));\n            break;\n          case 'item':\n            if (lastBill) {\n              lastBill.items.push(extractItem(line, index + 1));\n              break;\n            } else {\n              throw new Error('Invalid file, invoice item found before invoice. Invoice row (10) must precede item row (20).');\n            }\n          case 'total':\n            checkTotal(lastBill, line, index + 1);\n            break;\n          default:\n            throw new Error(`Unknown row type${type ? ' \"' + type + '\" ' : ' '}on bill ${bills.length}, row ${index + 1}, column 1. Expected 10, 20, or 30.` // eslint-disable-line max-len\n            );\n        }\n        return bills;\n      }, []);\n      return {\n        invoices: invoices.reverse(),\n        errors: []\n      };\n    } catch (error) {\n      return {\n        invoices: [],\n        errors: [error.message]\n      };\n    }\n  }\n  function extractHead(line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    customerNumber,\n    // eslint-disable-line no-unused-vars\n    issuedTo,\n    // eslint-disable-line no-unused-vars\n    issueDate, invoiceNumber, orderNumber, jobNumber, specialInstructions] = line;\n    const reference = [orderNumber, jobNumber, specialInstructions].filter(i => i).join(' - ');\n    if (!invoiceNumber) throw new Error(`Expected \"Invoice Number\" at row ${rowIndex}, column 5.`);\n    if (!issueDate) throw new Error(`Expected \"Issue Date\" at row ${rowIndex}, column 4.`);\n    const parsedIssueDate = (0, _moment.default)(issueDate, 'DD/MM/YYYY');\n    if (!parsedIssueDate.isValid()) throw new Error(`Expected issue date in \"DD/MM/YYYY\" format. Instead got ${issueDate}.`);\n    return {\n      reference,\n      billNumber: invoiceNumber,\n      issuer: 'Bunnings',\n      issueDate: parsedIssueDate.toDate(),\n      dueDate: parsedIssueDate.add(1, 'month').set('date', 20).toDate(),\n      items: [],\n      source: 'web:bunnings'\n    };\n  }\n  function extractItem(line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    sku, description, unit,\n    // eslint-disable-line no-unused-vars\n    quantity, price,\n    // eslint-disable-line no-unused-vars\n    discount,\n    // eslint-disable-line no-unused-vars\n    net, total // eslint-disable-line no-unused-vars\n    ] = line;\n    if (!description) throw new Error(`Expected \"Description\" at row ${rowIndex}, column 3.`);\n    if (!sku) throw new Error(`Expected \"SKU\" at row ${rowIndex}, column 2.`);\n    if (!quantity) throw new Error(`Expected \"Quantity\" at row ${rowIndex}, column 5.`);\n    if (!net) throw new Error(`Expected \"Net\" at row ${rowIndex}, column 8.`);\n    return {\n      description,\n      productCode: sku,\n      quantity: Number(quantity),\n      unitPrice: (0, _parseCurrencyString.default)(net)\n    };\n  }\n  function checkTotal(invoice, line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    _subTotal, gst,\n    // eslint-disable-line no-unused-vars\n    total // eslint-disable-line no-unused-vars\n    ] = line;\n    const subTotal = Number((0, _parseCurrencyString.default)(_subTotal));\n    const itemsTotal = invoice.items.reduce((total, item) => total + item.quantity * item.unitPrice, 0);\n    if (Math.abs(itemsTotal - subTotal) > 0.1) {\n      throw new Error(`Expected \"Sub Total\" on row ${rowIndex}, column 2 to equal the sum of the items (${itemsTotal.toFixed(2)}). Instead got ${subTotal.toFixed(2)}.` // eslint-disable-line max-len\n      );\n    }\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-1\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Document Date', 'Document Number', 'Type', 'Your Ref.', 'Contract Number', 'Address', 'Status', 'Total Value', 'Outstanding Value', 'Due Date'];\n\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser(source) {\n    const newInvoice = {\n      reference: source[1][3],\n      billNumber: source[1][1],\n      issuer: 'Carters',\n      issueDate: (0, _moment.default)(source[1][0], 'DD/MM/YYYY').toDate(),\n      dueDate: (0, _moment.default)(source[1][9], 'DD/MM/YYYY').toDate(),\n      items: [{\n        description: `Total (invoice number ${source[1][1]})`,\n        quantity: 1,\n        unitPrice: extractNumber(source[1][7] / 1.15) // Total in file is including GST\n      }],\n      source: 'web:carters-type-1'\n    };\n    return {\n      invoices: [newInvoice]\n    };\n  }\n\n  /**\n   * Checks that the number is valid and rounds to 2DP\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number with 2DP accuracy\n   */\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Math.floor(Number(input) * 100) / 100;\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-2\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser2;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['ContactName', 'InvoiceNumber', 'InvoiceDate', 'DueDate', 'Description', 'Quantity', 'UnitAmount'];\n\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser2(source) {\n    const invoicesMap = {};\n\n    // Get the column indices for each header in the first line.\n    const indices = source[0].reduce((allKeys, header, index) => Object.assign(allKeys, {\n      [header]: index\n    }), {});\n\n    // Iterate over the lines of the file, skip the first line as it has headers in it.\n    for (const line of source.slice(1)) {\n      const billNumber = line[indices['InvoiceNumber']];\n      let invoice = invoicesMap[billNumber];\n      if (!invoice) {\n        // If it is the first line for a new invoice, it should contain a description (the reference) and not a quantity or unit price.\n        if (line[indices['Quantity']] || line[indices['UnitAmount']]) {\n          return {\n            errors: 'Could not find reference line for bill: ' + billNumber\n          };\n        }\n        invoice = {\n          billNumber,\n          reference: line[indices['Description']],\n          // The reference is stored in the description of the first item.\n          issuer: line[indices['ContactName']],\n          issueDate: (0, _findDate.default)(line[indices['InvoiceDate']], 'DD/MM/YYYY'),\n          dueDate: (0, _findDate.default)(line[indices['DueDate']], 'DD/MM/YYYY'),\n          items: [],\n          source: 'web:carters-type-2'\n        };\n        invoicesMap[billNumber] = invoice;\n      } else {\n        // If it is not the first line for a new invoice, it should contain a valid item with a quantity and unit price.\n        if (line[indices['Quantity']] == null || line[indices['UnitAmount']] == null || !line[indices['Description']]) {\n          return {\n            errors: 'Invalid item line: ' + line\n          };\n        }\n        invoice.items.push({\n          description: line[indices['Description']],\n          quantity: line[indices['Quantity']],\n          unitPrice: (0, _extractNumber.default)(line[indices['UnitAmount']])\n        });\n      }\n    }\n    const invoicesArray = Object.keys(invoicesMap).map(key => invoicesMap[key]);\n    return {\n      invoices: invoicesArray\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-3\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser3;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Account Number', 'Invoice Number', 'Credit Address', 'Delivery Address', 'Document Type', 'Document Date', 'Branch', 'Customer Number', 'Customer Order Number', 'Contract Number', 'Delivery Date', 'Tax', 'Total Nett', 'Total Gross'];\n  const indices = REQUIRED_HEADERS.reduce((allKeys, header, index) => Object.assign(allKeys, {\n    [header]: index\n  }), {});\n  function cartersInvoiceParser3(source) {\n    const invoices = [];\n    // Dump the header row\n    // Each line is a separate invoice\n    for (const [index, invoice] of source.slice(1).entries()) {\n      const billNumber = invoice[indices['Invoice Number']];\n      const totalNet = invoice[indices['Total Nett']]; // Yes, this is misspelled in the format.\n      const documentDate = invoice[indices['Document Date']];\n      const customerOrderNumber = invoice[indices['Customer Order Number']];\n      const deliveryDate = invoice[indices['Delivery Date']];\n      // const accountNumber       = invoice[indices['Account Number']];\n      // const creditAddress       = invoice[indices['Credit Address']];\n      // const deliveryAddress     = invoice[indices['Delivery Address']];\n      // const documentType        = invoice[indices['Document Type']];\n      // const branch              = invoice[indices['Branch']];\n      // const customerNumber      = invoice[indices['Customer Number']];\n      // const contractNumber      = invoice[indices['Contract Number']];\n      // const totalGross          = invoice[indices['Total Gross']];\n      // const tax                 = invoice[indices['Tax']];\n\n      if (!billNumber) return {\n        errors: [`Invoice number not provided on line ${index + 2}`]\n      };\n      if (!totalNet) return {\n        errors: [`Total nett not provided on line ${index + 2}`]\n      };\n      invoices.push({\n        billNumber,\n        reference: customerOrderNumber,\n        issuer: 'Carters',\n        issueDate: (0, _findDate.default)(documentDate, 'DD/MM/YYYY'),\n        dueDate: (0, _findDate.default)(deliveryDate, 'DD/MM/YYYY'),\n        items: [{\n          description: `Total (invoice number ${billNumber})`,\n          quantity: 1,\n          unitPrice: (0, _extractNumber.default)(totalNet)\n        }],\n        source: 'web:carters-type-3'\n      });\n    }\n    return {\n      invoices\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-4\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser4;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Account Number', 'Invoice Number', 'Customer Number', 'Customer Order Number', 'Contract Number', 'Delivery Date', 'Product Code', 'Product Description', 'Quantity Delivered', 'Sales Unit', 'Unit Price excluding GST', 'Discount %', 'Nett Value', 'Extended Line Value'];\n  const indices = REQUIRED_HEADERS.reduce((allKeys, header, index) => Object.assign(allKeys, {\n    [header]: index\n  }), {});\n  function cartersInvoiceParser4(source) {\n    const invoices = {};\n    // Dump the header row\n    // Each line is a invoice line\n    for (const [_index, invoice] of source.slice(1).entries()) {\n      // eslint-disable-line no-unused-vars\n      // deal with the invoice\n      const billNumber = invoice[indices['Invoice Number']];\n      const customerOrderNumber = invoice[indices['Customer Order Number']];\n      const deliveryDate = invoice[indices['Delivery Date']];\n      if (!billNumber) continue;\n      if (!invoices[billNumber]) {\n        invoices[billNumber] = {\n          billNumber,\n          reference: customerOrderNumber,\n          issuer: 'Carters',\n          // issueDate: findDate(documentDate, 'DD/MM/YYYY'), missing from format...\n          issueDate: (0, _findDate.default)(deliveryDate, 'DD/MM/YYYY'),\n          source: 'web:carters-type-4',\n          items: []\n        };\n      }\n\n      // deal with the item\n      const productCode = invoice[indices['Product Code']];\n      const productDescription = invoice[indices['Product Description']];\n      const quantityDelivered = invoice[indices['Quantity Delivered']];\n      const unitPriceExcludingGST = invoice[indices['Unit Price excluding GST']];\n      invoices[billNumber].items.push({\n        description: productDescription,\n        productCode: productCode,\n        quantity: (0, _extractNumber.default)(quantityDelivered),\n        unitPrice: (0, _extractNumber.default)(unitPriceExcludingGST)\n      });\n    }\n    return {\n      invoices: Object.values(invoices)\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters\", [\"exports\", \"portal/utils/bill-parsers/carters-type-1\", \"portal/utils/bill-parsers/carters-type-2\", \"portal/utils/bill-parsers/carters-type-3\", \"portal/utils/bill-parsers/carters-type-4\"], function (_exports, _cartersType, _cartersType2, _cartersType3, _cartersType4) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = cartersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/bill-parsers/carters-type-1\",0,\"portal/utils/bill-parsers/carters-type-2\",0,\"portal/utils/bill-parsers/carters-type-3\",0,\"portal/utils/bill-parsers/carters-type-4\"eaimeta@70e063a35619d71f\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser(source) {\n    const isType1 = _cartersType.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType2 = _cartersType2.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType3 = _cartersType3.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType4 = _cartersType4.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    if (isType1) return (0, _cartersType.default)(source);else if (isType2) return (0, _cartersType2.default)(source);else if (isType3) return (0, _cartersType3.default)(source);else if (isType4) return (0, _cartersType4.default)(source);else return {\n      errors: ['Unrecognized format']\n    };\n  }\n});","define(\"portal/utils/bill-parsers/csv\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = csvParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  function csvParser(report) {\n    const invoices = [];\n    let index = 0;\n    do {\n      const {\n        errors,\n        invoice,\n        items,\n        i\n      } = parseInvoice(report, index);\n      if (errors.length) {\n        return {\n          errors\n        };\n      }\n      index = i;\n      invoice.items = items;\n      invoices.push(invoice);\n    } while (index);\n    return {\n      invoices\n    };\n  }\n  function parseInvoice(report, i = 0) {\n    const errors = [];\n    const items = [];\n    const invoice = {\n      source: 'web:generic-csv'\n    };\n\n    // Skip empty rows at top\n    while (i < report.length) {\n      if (rowIsEmpty(report[i])) {\n        i++;\n      } else {\n        break;\n      }\n    }\n\n    // Extract meta\n    if (report[i][0].trim() !== 'Invoice Number') {\n      errors.push(`Invalid file, expected 'Invoice Number' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.number = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Invoice Name') {\n      errors.push(`Invalid file, expected 'Invoice Name' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.name = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Issuer') {\n      errors.push(`Invalid file, expected 'Issuer' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.issuer = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Issue Date') {\n      errors.push(`Invalid file, expected 'Issue Date' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.issueDate = (0, _moment.default)(report[i][1], 'DD-MM-YYYY').toDate();\n    i++;\n    if (report[i][0].trim() !== 'Due Date') {\n      errors.push(`Invalid file, expected 'Due Date' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.dueDate = (0, _moment.default)(report[i][1], 'DD-MM-YYYY').toDate();\n    i++;\n\n    // Check header row\n    if (!report[i] === ['Item Code', 'Item Name', 'Item Quantity', 'Item Unit Price']) {\n      errors.push(`Expected the headers 'Item Code, Item Name, Item Quantity, Item Unit Price' at row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    i++;\n    while (i < report.length) {\n      if (report[i][0] === 'Invoice Number' || rowIsEmpty(report[i])) {\n        return {\n          errors,\n          invoice,\n          items,\n          i\n        };\n      }\n      const newItem = {\n        productCode: report[i][0],\n        name: report[i][1],\n        quantity: Number(report[i][2]),\n        unitPrice: Number(report[i][3])\n      };\n      if (isNaN(newItem.quantity) || newItem.quantity == null) {\n        errors.push(`Item Quantity on row ${i + 1} could not be parsed`);\n        return {\n          errors\n        };\n      }\n      if (isNaN(newItem.unitPrice) || newItem.unitPrice == null) {\n        errors.push(`Item Unit Price on row ${i + 1} could not be parsed`);\n        return {\n          errors\n        };\n      }\n      items.push(newItem);\n      i++;\n    }\n    return {\n      errors,\n      invoice,\n      items\n    };\n  }\n  function rowIsEmpty(row) {\n    for (var i = 0; i < row.length; i++) {\n      if (row[i]) return false;\n    }\n    return true;\n  }\n});","define(\"portal/utils/bill-parsers/itm\", [\"exports\", \"lodash\"], function (_exports, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = itmInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\"eaimeta@70e063a35619d71f\n  const FOOTER_ROW_NAMES = ['Subtotal', 'GST', 'Total'];\n  const COLUMN_NAMES = ['Item Code', 'Description', 'Qty Ordered', 'Qty Backordred', 'Qty Supplied', 'Unit Price', 'Extended'];\n  function itmInvoiceParser(report) {\n    const items = [];\n    let invoice = {\n      source: 'web:itm'\n    };\n    const errors = [];\n    if (!report.length) {\n      errors.push('This file appears to be empty');\n      return {\n        items,\n        invoice,\n        errors\n      };\n    }\n    invoice = {\n      reference: report[0][0],\n      // issueDate: couldnt find this on the csv\n      total: report[report.length - 1][6]\n    };\n    if (!report[0] || !report[0].length) {\n      errors.push('Wrong format, no quote title found in cell 1,1');\n    }\n    if (!report[1] || !report[1].length) {\n      errors.push('Wrong format, no headers found on line 2');\n    }\n    const headerRow = report[1].map(cell => cell.trim());\n\n    // Check that all the headers are in the right place\n    if (!_lodash.default.isEqual(headerRow, COLUMN_NAMES)) {\n      errors.push('Wrong format, missing or incorrect coloum descriptions on line 2');\n    }\n\n    // Extract main body of report\n    // Native filter rather than Ember's reject: this module is reached without\n    // the application having booted, and the array prototype extensions are not\n    // installed until it has.\n    const trimmedReport = report.slice(2).filter(row => {\n      const hasFooterLabel = FOOTER_ROW_NAMES.includes(row[0]);\n      const hasNoContent = row.slice(1, 5).filter(cell => cell !== '').length === 0;\n      return !(hasFooterLabel && hasNoContent);\n    });\n    trimmedReport.forEach((row, i) => {\n      const thisRowsQuantity = parseInt(row[6], 10);\n\n      // Skip rows that do not have a quantity as they are likely to be NOTE rows\n      if (!thisRowsQuantity) return;\n      if (!row[0].trim()) {\n        errors.push(`Cell 1, line ${i + 3} must not be empty`);\n      }\n      if (!row[1].trim()) {\n        errors.push(`Cell 2, line ${i + 3} must not be empty`);\n      }\n      for (let index = 2; index < 6; index++) {\n        if (isNaN(row[index])) {\n          errors.push(`Cell ` + index + `, line ${i + 3} must be a number`);\n        }\n      }\n      const item = {\n        productCode: row[0],\n        description: row[1],\n        quantity: row[2],\n        unitPrice: row[5]\n      };\n      items.push(item);\n    });\n    return {\n      items,\n      invoice,\n      errors\n    };\n  }\n});","define(\"portal/utils/bill-parsers/mitre\", [\"exports\", \"moment\", \"lodash\", \"portal/utils/parse-currency-string\"], function (_exports, _moment, _lodash, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = mitreInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"lodash\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  const ITEM_HEADERS_OLD = ['Invoice number', 'Date', 'Type', 'Order reference', 'SKU', 'Product title', 'Quantity', 'Unit Rate', 'Sub total'];\n  const ITEM_HEADERS = ['Invoice Reference', 'Document Type', 'Created Date', 'Due Date', 'Order Number', 'Store Code', 'Store Name', 'Job', 'Docket Number', 'Customer Reference', 'SKU', 'Product Title', 'UOM', 'Quantity', 'Unit Rate', 'Sub Total', 'GST', 'Total'];\n\n  /**\n   * Checks that the number is valid, if so returns the number or zero\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number or zero\n   */\n  const extractNumber = input => {\n    const parsedNumber = (0, _parseCurrencyString.default)(input);\n    return isNaN(parsedNumber) ? 0 : Number(parsedNumber);\n  };\n  /**\n   * Creates invoice item from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice item\n   */\n  const createItemFromOldFormat = line => {\n    const quantity = extractNumber(line[6]);\n    const subtotal = extractNumber(line[8]);\n    const unitPrice = subtotal / (quantity || Infinity);\n    return {\n      description: line[5],\n      productCode: line[4],\n      quantity,\n      unitPrice\n    };\n  };\n\n  /**\n   * Creates invoice from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice\n   */\n  const createInvoiceFromOldFormat = line => {\n    const yearLength = line[1].split('/')[2].length;\n    if (yearLength !== 2 && yearLength !== 4) {\n      throw new Error('Your invoice has an invalid date format. The format must either be DD/MM/YY or DD/MM/YYYY.');\n    }\n    const dateFormat = 'DD/MM/' + 'Y'.repeat(yearLength);\n    return {\n      reference: line[3],\n      billNumber: line[0],\n      issuer: 'Mitre 10',\n      issueDate: new Date(),\n      dueDate: (0, _moment.default)(line[1], dateFormat).toDate(),\n      items: [],\n      source: 'web:mitre'\n    };\n  };\n\n  /**\n   * Creates invoice item from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice item\n   */\n  const createItem = line => {\n    const quantity = extractNumber(line[13]);\n    const unitPrice = extractNumber(line[14]);\n    return {\n      description: line[11],\n      productCode: line[10],\n      quantity,\n      unitPrice\n    };\n  };\n\n  /**\n   * Creates invoice from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice\n   */\n  const createInvoice = line => {\n    const createdDateStr = line[2];\n    const dueDateStr = line[3];\n    return {\n      billNumber: line[0],\n      reference: line[9],\n      issuer: 'Mitre 10',\n      issueDate: createdDateStr ? (0, _moment.default)(createdDateStr, 'DD/MM/YYYY').toDate() : new Date(),\n      dueDate: (0, _moment.default)(dueDateStr, 'DD/MM/YYYY').toDate(),\n      items: [],\n      source: 'web:mitre'\n    };\n  };\n  function mitreInvoiceParser(source) {\n    try {\n      const headerLine = source[0] || [];\n      const newFormatHeaderColumns = ['Store Code', 'Document Type', 'Invoice Reference', 'Docket Number'];\n      const isNewFormat = headerLine.length === ITEM_HEADERS.length || headerLine.some(column => newFormatHeaderColumns.includes(column));\n      const HEADERS = isNewFormat ? ITEM_HEADERS : ITEM_HEADERS_OLD;\n      const linesWithErrors = [];\n      source.forEach((line, i) => {\n        if (line.length !== HEADERS.length) {\n          linesWithErrors.push(i + 1);\n        }\n      });\n      if (linesWithErrors.length) {\n        return {\n          errors: [`Incorrect format, expected line/s ${linesWithErrors} to have the following information: ${HEADERS.join(',')}`]\n        };\n      }\n\n      /*\n          The first interesting line is after the header\n          so we delete it if found.\n      */\n      const hasHeaderRow = _lodash.default.isEqual(source[0], HEADERS);\n      if (hasHeaderRow) source.shift();\n      const invoices = [];\n      source.forEach((row, i) => {\n        try {\n          const matchInvoice = invoice => invoice.billNumber === row[0];\n\n          // Find or create the invoice that the row belongs to\n          const invoiceExists = invoices.some(matchInvoice);\n          let invoice = invoices.find(matchInvoice);\n          if (!invoiceExists) {\n            invoice = isNewFormat ? createInvoice(row) : createInvoiceFromOldFormat(row);\n            invoices.push(invoice);\n          }\n          const item = isNewFormat ? createItem(row) : createItemFromOldFormat(row);\n          // Create an item and add it to the invoice\n          invoice.items.push(item);\n        } catch (error) {\n          throw new Error(`Error on line ${i + 1}: ${error.message}`);\n        }\n      });\n      return {\n        invoices\n      };\n    } catch (error) {\n      return {\n        errors: [error.message]\n      };\n    }\n  }\n});","define(\"portal/utils/bill-parsers/placemakers\", [\"exports\", \"moment\", \"portal/utils/bill-parsers/xero\"], function (_exports, _moment, _xero) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = placemakersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"portal/utils/bill-parsers/xero\"eaimeta@70e063a35619d71f\n  const INVOICE_HEADERS = ['H',\n  // 0\n  'Branch',\n  // 1\n  'Branch Name',\n  // 2\n  'Parent Account',\n  // 3\n  'Account Code',\n  // 4\n  'Customer Name',\n  // 5\n  'Date',\n  // 6\n  'Customer Order Number',\n  // 7\n  'Transaction number',\n  // 8\n  'Transaction type (IN/CR)',\n  // 9\n  'Packing Slip Number',\n  // 10\n  'Freight Amount(excl GST)',\n  // 11\n  'Total including GST',\n  // 12\n  'GST Total' // 13\n  ];\n  const ITEM_HEADERS = ['D',\n  // 0\n  'Line number',\n  // 1\n  'Product Code (Suppliers)',\n  // 2\n  'Description',\n  // 3\n  'Qty Supplied',\n  // 4\n  'Unit',\n  // 5\n  'Unit Rate',\n  // 6\n  'Extended Line Total (excluding GST)',\n  // 7\n  'GST Rate %',\n  // 8\n  'GST Amount' // 9\n  ];\n  function placemakersInvoiceParser(source) {\n    let parser;\n    // Check we are dealing with the original expected format.\n    if (INVOICE_HEADERS.every((h, i) => h === source[0][i])) {\n      if (ITEM_HEADERS.some((h, i) => h !== source[1][i])) {\n        return {\n          errors: [`Incorrect headers, expected line 2 to be ${ITEM_HEADERS.join(',')}`]\n        };\n      }\n      parser = placemakersParser;\n\n      // We could also be dealing with a Xero Style format.\n    } else if (_xero.REQUIRED_HEADERS.every(h => source[0].includes(h))) {\n      parser = _xero.default;\n\n      // Throw an error if we cannot match a format.\n    } else {\n      return {\n        errors: [`Incorrect headers, expected line 1 to be ${INVOICE_HEADERS.join(',')}`]\n      };\n    }\n    const parsedInvoices = parser(source);\n\n    // if the parser was xero search the invoice items for a reference line\n    if (parser === _xero.default) parsedInvoices.invoices = parsePlacemakersXeroInvoiceItemsForReference(parsedInvoices.invoices);\n    return parsedInvoices;\n  }\n  function parsePlacemakersXeroInvoiceItemsForReference(invoices) {\n    return invoices.map(invoice => {\n      // if the invoice already has a reference, don't bother checking the items\n      if (invoice.reference) return invoice;\n      const referenceLineIndex = invoice.items.findIndex(item => item.description?.toLowerCase().includes('reference:'));\n      // if a reference line is found proceed in pulling the reference from it and setting it to the invoice\n      if (referenceLineIndex >= 0) {\n        const [referenceLine] = invoice.items.splice(referenceLineIndex, 1);\n        const reference = referenceLine.description.split(':').slice(1).join(':').trim();\n        invoice.reference = reference;\n      }\n      return invoice;\n    });\n  }\n  function placemakersParser(source) {\n    // The first interesting line is 2 so start the counter 1 earlier than that.\n    let lineNumber = 1;\n    let lineKey = source[lineNumber][0];\n    function updateLine() {\n      lineNumber++;\n      lineKey = source[lineNumber][0];\n    }\n    const newInvoices = [];\n    while (lineNumber < source.length - 1) {\n      // Update line number first so that when the while condition hits the last line,\n      // it can stop and the last line has already been read. Prevents array out of bounds.\n      updateLine();\n      if (lineKey === 'H') {\n        // Create new invoice and add to new invoices.\n        newInvoices.push(createInvoiceFromHeaderLine(source[lineNumber], lineNumber));\n      }\n      if (lineKey === 'D') {\n        // Create new item and add to last invoice.\n        newInvoices[newInvoices.length - 1].items.push(createItemFromLine(source[lineNumber], lineNumber));\n      }\n    }\n    return {\n      invoices: newInvoices\n    };\n  }\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Number(input);\n  }\n  function createItemFromLine(line) {\n    return {\n      description: line[3],\n      productCode: line[2],\n      quantity: extractNumber(line[4]),\n      unitPrice: extractNumber(line[6])\n    };\n  }\n  function createInvoiceFromHeaderLine(line) {\n    const yearLength = line[6].split('/')[2].length;\n    if (yearLength !== 2 && yearLength !== 4) {\n      throw new Error('Your invoice has an invalid date format. The format must either be DD/MM/YY or DD/MM/YYYY.');\n    }\n    const dateFormat = 'DD/MM/' + 'Y'.repeat(yearLength);\n    return {\n      reference: line[7],\n      billNumber: line[8],\n      issuer: `PlaceMakers ${line[2]}`,\n      issueDate: (0, _moment.default)(line[6], dateFormat).toDate(),\n      dueDate: (0, _moment.default)(line[14], dateFormat).toDate(),\n      items: [],\n      source: 'web:placemakers'\n    };\n  }\n});","define(\"portal/utils/bill-parsers/xero\", [\"exports\", \"portal/utils/find-date\"], function (_exports, _findDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = xeroInvoiceParser;\n  _exports.getUnitPriceWithDiscount = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['ContactName', 'InvoiceNumber', 'InvoiceDate', 'DueDate', 'Description', 'Quantity', 'UnitAmount'];\n  function xeroInvoiceParser(source) {\n    // Check we are dealing with the expected format.\n    const missingHeader = REQUIRED_HEADERS.find(h => !source[0].includes(h));\n    if (missingHeader) return {\n      errors: [`Incorrect headers, expected line 1 to contain '${missingHeader}'`]\n    };\n    const columnKeys = source[0].reduce((indices, h, index) => Object.assign({}, indices, {\n      [h]: index\n    }), {});\n\n    // The first interesting line is 2 so start the counter 1 earlier than that.\n    let lineNumber = 0;\n    let lineKey = source[lineNumber][columnKeys.InvoiceNumber];\n    function updateLine() {\n      lineNumber++;\n      lineKey = createIdentifier(source[lineNumber][columnKeys.InvoiceNumber], source[lineNumber][columnKeys.ContactName]);\n    }\n    function matchInvoice(invoice) {\n      return createIdentifier(invoice.billNumber, invoice.issuer) === lineKey;\n    }\n    function createIdentifier(billNumber, issuer) {\n      return billNumber + ':::' + issuer;\n    }\n    const newInvoices = [];\n    while (lineNumber < source.length - 1) {\n      // Update line number first so that when the while condition hits the last line,\n      // it can stop and the last line has already been read. Prevents array out of bounds.\n      updateLine();\n      const lineInvoice = newInvoices.find(matchInvoice);\n      if (lineInvoice) {\n        // Create new invoice and add to new invoices.\n        lineInvoice.items.push(createItemFromLine(source[lineNumber], columnKeys));\n      } else {\n        newInvoices.push(createInvoiceFromHeaderLine(source[lineNumber], columnKeys));\n        newInvoices.find(matchInvoice).items.push(createItemFromLine(source[lineNumber], columnKeys));\n      }\n    }\n    return {\n      invoices: newInvoices\n    };\n  }\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Number(input);\n  }\n  const getUnitPriceWithDiscount = (unitPrice, discount) => (100 - discount) / 100 * unitPrice;\n  _exports.getUnitPriceWithDiscount = getUnitPriceWithDiscount;\n  function createItemFromLine(line, columnKeys) {\n    const unitPrice = extractNumber(line[columnKeys.UnitAmount]);\n    const discount = extractNumber(line[columnKeys.Discount]);\n    const unitPriceWithDiscount = getUnitPriceWithDiscount(unitPrice, discount);\n    return {\n      description: line[columnKeys.Description],\n      productCode: line[columnKeys.InventoryItemCode] || null,\n      quantity: extractNumber(line[columnKeys.Quantity]),\n      unitPrice: unitPriceWithDiscount\n    };\n  }\n  function createInvoiceFromHeaderLine(line, columnKeys) {\n    return {\n      reference: line[columnKeys.Reference],\n      billNumber: line[columnKeys.InvoiceNumber],\n      issuer: line[columnKeys.ContactName],\n      issueDate: (0, _findDate.default)(line[columnKeys.InvoiceDate], 'DD/MM/YYYY'),\n      dueDate: (0, _findDate.default)(line[columnKeys.DueDate], 'DD/MM/YYYY'),\n      items: [],\n      source: 'web:xero'\n    };\n  }\n});","define(\"portal/utils/bunnings-bill-csv-normalizer\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.NORMALIZED_BUNNINGS_HEADERS = void 0;\n  _exports.default = normalizeBunningsBillCsv;\n  _exports.isBunningsBillCsv = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  const NORMALIZED_BUNNINGS_HEADERS = _exports.NORMALIZED_BUNNINGS_HEADERS = ['Invoice Number', 'Issue Date', 'Due Date', 'Customer Reference', 'Code', 'Description', 'Unit Price', 'Quantity'];\n  const isBunningsBillCsv = (csv = []) => {\n    const rowTypes = csv.map(row => String(row[0]));\n    return rowTypes[0] === '10' && rowTypes.includes('20') && rowTypes.includes('30');\n  };\n  _exports.isBunningsBillCsv = isBunningsBillCsv;\n  function normalizeBunningsBillCsv(csv = []) {\n    if (!isBunningsBillCsv(csv)) return csv;\n    const normalizedRows = [NORMALIZED_BUNNINGS_HEADERS];\n    let currentBill = null;\n    csv.forEach(row => {\n      // means this is header of invoice\n      if (String(row[0]) === '10') {\n        const issueDate = (0, _moment.default)(row[3], 'DD/MM/YYYY');\n        currentBill = {\n          invoiceNumber: row[4],\n          issueDate: row[3],\n          dueDate: issueDate.add(1, 'month').set('date', 20).format('DD/MM/YYYY'),\n          reference: [row[5], row[6], row[7]].filter(Boolean).join(' - ')\n        };\n        return;\n      }\n\n      // 20 means invoice item row, if it is not invoice item row skip it\n      if (String(row[0]) !== '20' || !currentBill) return;\n      normalizedRows.push([currentBill.invoiceNumber, currentBill.issueDate, currentBill.dueDate, currentBill.reference, row[1], row[2], row[7], row[4]]);\n    });\n    return normalizedRows;\n  }\n});","define(\"portal/utils/calc-map-balance\", [\"exports\", \"@ember/array\", \"@ember/utils\", \"@ember/object\"], function (_exports, _array, _utils, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = calcMapBalance;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/utils\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function calcMapBalance(map, balances, account = (0, _object.get)(map, 'account')) {\n    const step = (0, _object.get)(map, 'step');\n    const drCrCorrection = (0, _object.get)(account, 'debitCredit') === 'DEBIT' ? 1 : -1;\n    const invertCorrection = (0, _object.get)(map, 'inverted') ? -1 : 1;\n    const periodic = (0, _object.get)(account, 'periodic') || step === 'profit-and-loss';\n    let balance;\n    if ((0, _array.isArray)(balances)) {\n      balance = balances.findBy('externalId', (0, _object.get)(map, 'externalId'));\n    } else {\n      balance = balances;\n    }\n    if ((0, _utils.isEmpty)(balance)) {\n      return null;\n    }\n    const {\n      period,\n      ytd,\n      periodDebit,\n      periodCredit,\n      ytdDebit,\n      ytdCredit\n    } = balance;\n\n    // Single value\n    if (periodic ? period != null : ytd != null) {\n      return invertCorrection * (periodic ? period : ytd);\n    }\n\n    // Period value\n    if (periodic ? periodDebit != null : ytdDebit != null) {\n      return invertCorrection * drCrCorrection * (periodic ? periodDebit : ytdDebit);\n    }\n\n    // Credit value\n    if (periodic ? periodCredit != null : ytdCredit != null) {\n      return invertCorrection * drCrCorrection * -(periodic ? periodCredit : ytdCredit);\n    }\n  }\n});","define(\"portal/utils/collection-to-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = collectionToArray;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function collectionToArray(collection) {\n    if (!collection) return [];\n    if (Array.isArray(collection)) return collection;\n    if (typeof collection.toArray === 'function') {\n      return collection.toArray();\n    }\n    if (collection.content) {\n      return collectionToArray(collection.content);\n    }\n    if (typeof collection.value === 'function') {\n      return collectionToArray(collection.value());\n    }\n    if (typeof collection[Symbol.iterator] === 'function') {\n      return Array.from(collection);\n    }\n    if (typeof collection.length === 'number') {\n      return Array.from(collection);\n    }\n    return [];\n  }\n});","define(\"portal/utils/computed\", [\"exports\", \"@ember/object\", \"portal/utils/sums\"], function (_exports, _object, _sums) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dividedBy = dividedBy;\n  _exports.sum = sum;\n  _exports.sumBy = sumBy;\n  _exports.sumByProducts = sumByProducts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/sums\"eaimeta@70e063a35619d71f\n  const {\n    sum: _sum,\n    sumBy: _sumBy,\n    sumByProducts: _sumByProducts\n  } = _sums.default;\n  function sum(...keys) {\n    return (0, _object.computed)(...keys, function () {\n      return _sum(this, ...keys);\n    });\n  }\n  function sumBy(arrayStr, keyStr) {\n    return (0, _object.computed)(`${arrayStr}.@each.${keyStr}`, function () {\n      return _sumBy((0, _object.get)(this, arrayStr), keyStr);\n    });\n  }\n  function sumByProducts(arrayStr, ...keys) {\n    return (0, _object.computed)(`${arrayStr}.@each.{${keys.join(',')}}`, function () {\n      return _sumByProducts((0, _object.get)(this, arrayStr), ...keys);\n    });\n  }\n  function dividedBy(numeratorKey, denominatorKey) {\n    return (0, _object.computed)(numeratorKey, denominatorKey, function () {\n      if (!(0, _object.get)(this, denominatorKey)) return 0;\n      return (0, _object.get)(this, numeratorKey) / (0, _object.get)(this, denominatorKey);\n    });\n  }\n});","define(\"portal/utils/crystal-csv-generator\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateCrystalCSV = generateCrystalCSV;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  // Headings used in this Crystal CSV format\n  const headings = ['Employee ID', 'Date', 'Action Type', 'Hours', 'Payrate'];\n\n  /**\n   * Takes worker details, payrate and totals over a period of days and returns a 2D array\n   * @param {Array} workers - An array of objects with worker names, totals and payrates\n   * @param {Array} days - An array of report days\n   * @returns {Array} - A 2D array representation of the Crystal CSV format\n   */\n  function generateCrystalCSV(workers = [], days = []) {\n    const formattedDays = days.map(d => (0, _moment.default)(d).format('DD/MM/YYYY'));\n    const table = [headings];\n    workers.forEach(({\n      fullName,\n      totals\n    }) => {\n      // Calculate the work done by the worker over the whole period.\n      // if no work has been done, we can exit early\n      if (!totals.some(totalObj => totalObj.totalHours > 0)) return;\n      totals.forEach((totalObj, i) => {\n        const total = totalObj.totalHours;\n\n        // only care about days where a total exists\n        // cannot use filter on array because we need the array index\n        if (total > 0) {\n          const date = formattedDays[i];\n          const row = [fullName, date, 'ord', total, 0 // Omit pay rate as it is ignored by Crystal anyway\n          ];\n          table.push(row);\n        }\n      });\n    });\n    return table;\n  }\n});","define(\"portal/utils/csv-builder\", [\"exports\", \"@ember/object\", \"portal/utils/sanitize-filename\"], function (_exports, _object, _sanitizeFilename) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildCSV;\n  _exports.downloadCSV = downloadCSV;\n  _exports.downloadCSVCrystal = downloadCSVCrystal;\n  _exports.downloadXlsx = downloadXlsx;\n  _exports.generateCSVBlob = generateCSVBlob;\n  _exports.generateDataRows = generateDataRows;\n  _exports.generateHeaderRows = generateHeaderRows;\n  _exports.generateMetaDataRows = generateMetaDataRows;\n  _exports.toCSV = toCSV;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/sanitize-filename\"eaimeta@70e063a35619d71f\n  function buildCSV(meta, orderedEntities, metricsSortedByEntity) {\n    const rows = [\n    // generates metadata about the report, when it was created and by whom\n    ...generateMetaDataRows(meta),\n    // generates all the table headers to the document.\n    ...generateHeaderRows(orderedEntities),\n    // adds in page data\n    ...generateDataRows(metricsSortedByEntity)];\n    return rows;\n  }\n\n  /**\n   * Transforms a 2d array into a CSV string. Values of\n   * @param {Array.[]} rows - Array to be used.\n   * @returns {String} A CSV string\n   */\n  function toCSV(rows, {\n    quoteValues = true\n  } = {}) {\n    const rowsAsStrings = rows.map(row => {\n      const joiner = quoteValues ? '\",\"' : ',';\n      const rowAsText = row.join(joiner);\n      const textWithoutNewLines = rowAsText.replaceAll(/\\r\\n|\\r|\\n|\\x0B|\\x0C|\\u0085|\\u2028|\\u2029/gm, ' '); // eslint-disable-line no-control-regex\n\n      return quoteValues ? `\"${textWithoutNewLines}\"` : textWithoutNewLines;\n    });\n    return rowsAsStrings.join('\\n');\n  }\n\n  /**\n   * Generates metadata for the report.\n   * @param {Object} meta - Metadata to be used in the report.\n   * @param {String} meta.entityName - The name of the entity that is the focus of the report.\n   * @param {String} meta.userEmail - The email of the user generating the report.\n   * @param {String} meta.category - The account category included.\n   * @return {Array} A 2d array that represents the metadata for the report.\n   */\n  function generateMetaDataRows(meta) {\n    return [['Report for:', (0, _object.get)(meta, 'entityName')], ['Report period:', (0, _object.get)(meta, 'period')], ['Created on:', Date()], ['Created by:', (0, _object.get)(meta, 'userEmail')], ['Accounts category:', (0, _object.get)(meta, 'category')],\n    // Excel will ignore the empty line unless it has at least one comma in it.\n    ['', '']];\n  }\n\n  /**\n   * Creates an array containing the headers for the report.\n   * @param {Object.[]} entities - Objects containing the names of the entities / groups to be included.\n   * @return {Array} rows - An array where each item in the array represents a row.\n   */\n  function generateHeaderRows(entities) {\n    return [\n    // Build a header row for entity / group names.\n    entities.reduce((total, entity) => [...total, (0, _object.get)(entity, 'name'), ''], ['Entity Name']),\n    // Build a subheader row for Month / YTD labels\n    entities.reduce(total => [...total, 'Month', 'YTD'], ['Account Name'])];\n  }\n\n  /**\n   * Converts an nested set of accounts into a 2d array for output to csv.\n   * @param  {Array} nestedReport - A tree where each node is an object that contains the\n   * name of the account and an array for the report values.\n   * @param {Number} depth - Keeps track of how deep the recursion goes. Does not need to be passed in.\n   * @return {Array} rows - A 2d array that represents the nested report data as a flat table.\n   */\n  function generateDataRows(nestedReport, depth = 0) {\n    let rows = [];\n    nestedReport.forEach(lineData => {\n      // Indent the account name by 4 spaces times its depth.\n      const name = `${'    '.repeat(depth)}${(0, _object.get)(lineData, 'name')}`;\n\n      // If the account has children, then rows for the children need to be created as well.\n      if ((0, _object.get)(lineData, 'children.length')) {\n        // Add a row that names the parent account but is otherwise empty\n        rows.push([name]);\n\n        // Recursively call this function to add rows for the child accounts.\n        rows = rows.concat(generateDataRows((0, _object.get)(lineData, 'children'), depth + 1));\n\n        // Add a total row for the parent account\n        rows.push([`${'    '.repeat(depth)}Total ${lineData.name}`, ...extractReportValues(lineData)]);\n      } else {\n        // Add a row for the account\n        rows.push([name, ...extractReportValues(lineData)]);\n      }\n    });\n    return rows;\n  }\n  function generateCSVBlob(csv, {\n    includeBOM = true\n  } = {}) {\n    // '\\uFEFF' fixes Excel opening csv with wrong encoding; https://github.com/eligrey/FileSaver.js/issues/28#issue-15333709\n    const parsedCsv = includeBOM ? '\\uFEFF' + toCSV(csv) : toCSV(csv);\n    const blob = new Blob([parsedCsv], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    return blob;\n  }\n\n  /**\n   * Creates downloadable csv\n   * @param   {Array}   csv      - csv array.\n   * @param   {String}  fileName - The desired file name.\n   * @param   {Object}  options  - Options are includeBOM, and quoteValues\n   * @returns {null}             - Returns nothing.\n   */\n  function downloadCSV(csv, _fileName, {\n    includeBOM = true,\n    quoteValues = true\n  } = {}) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n\n    // '\\uFEFF' fixes Excel opening csv with wrong encoding; https://github.com/eligrey/FileSaver.js/issues/28#issue-15333709\n    const parsedCsv = includeBOM ? '\\uFEFF' + toCSV(csv, {\n      quoteValues\n    }) : toCSV(csv, {\n      quoteValues\n    });\n    const blob = new Blob([parsedCsv], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Trigger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n  function downloadXlsx(blob, _fileName) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Triger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n\n  /**\n   * This implements the same API as downloadCSV but uses UNICODE and windows style line endings as required by Crystal Payroll\n   * @param   {Array}  csv\n   * @param   {String} fileName\n   * @returns {null}\n   */\n  function downloadCSVCrystal(csv, _fileName) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n\n    // This CSV string has windows style line endings and no quotes around the values\n    const csvAsString = csv.map(row => `${row.join(',')}`).join('\\r\\n');\n    const blob = new Blob([csvAsString], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Triger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n\n  /**\n   * Ectracts values from a line in the nested report and turns it into a flat array.\n   * @param  {Array} reportLine - An object containing a data variable to be extracted.\n   * @return {Array} values - An array of data values.\n   */\n  function extractReportValues(reportLine) {\n    return (0, _object.get)(reportLine, 'data').reduce((total, data = {}) => {\n      const month = (0, _object.get)(data, 'month') || (0, _object.get)(data, 'periods.0.periodTypes.month.value');\n      const ytd = (0, _object.get)(data, 'ytd') || (0, _object.get)(data, 'periods.0.periodTypes.ytd.value');\n\n      // Only use the values if they are valid numbers.\n      // Call anything less than a 1,000,000th, zero.\n      return [...total, isNaN(month) || Math.abs(month) < 0.000001 ? 0 : month, isNaN(ytd) || Math.abs(ytd) < 0.000001 ? 0 : ytd];\n    }, []);\n  }\n});","define(\"portal/utils/deprecation-filter\", [\"exports\", \"@ember/debug\", \"portal/config/environment\"], function (_exports, _debug, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.deprecationTally = deprecationTally;\n  _exports.installDeprecationFilter = installDeprecationFilter;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  // Ember re-fires the same deprecation on every render and every request, and\n  // LOG_STACKTRACE_ON_DEPRECATION prints a full stack for each one — thousands of\n  // stack captures per page, which is enough to make dev noticeably slow. Log the\n  // first occurrence of each id and tally the rest silently: the signal is what\n  // fires, not how often, and one stack per id locates the source better than\n  // thousands of duplicates. Call `deprecationTally()` for the counts.\n  //\n  // Not in `test`, where every occurrence has to keep flowing down the handler\n  // chain — tests/smoke/deprecation-report.js tallies from there, and deduping\n  // here would flatten every count to 1.\n  const DEDUPE = _environment.default.environment !== 'test';\n  const SEEN = new Map();\n\n  // The app installs this from an initializer, which only runs once something\n  // boots the app — which unit and integration tests never do, so for most of the\n  // suite the filter was absent and every deprecation went to Ember's default\n  // handler. tests/test-helper.js installs it directly to cover them, so this\n  // guard keeps the app's own boot from registering a second copy.\n  let installed = false;\n  function deprecationTally() {\n    return [...SEEN.entries()].sort((a, b) => b[1] - a[1]);\n  }\n  function installDeprecationFilter() {\n    if (installed) return;\n    installed = true;\n    (0, _debug.registerDeprecationHandler)((message, options, next) => {\n      const untilMajor = Number.parseInt(options?.until, 10);\n\n      // Show deprecations that must be resolved before upgrading to Ember 6.\n      // Anything with `until: 7.0` or later stays silenced — Ember 7 is not on\n      // the roadmap yet, and those warnings would drown out the ones that are.\n      // WarpDrive's `until` is a package version (\"@warp-drive/core 6.0\"), which\n      // parses as NaN and is silenced with them.\n      if (!Number.isFinite(untilMajor) || untilMajor > 6) {\n        return;\n      }\n      const id = options?.id ?? 'unknown';\n      const count = (SEEN.get(id) ?? 0) + 1;\n      SEEN.set(id, count);\n      if (!DEDUPE || count === 1) {\n        next(message, options);\n      }\n    });\n  }\n});","define(\"portal/utils/download\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.download = download;\n  _exports.downloadUrl = downloadUrl;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // eslint-disable-next-line complexity\n  function download(data, strFileName, strMimeType) {\n    const isReactNative = !!window.ReactNativeWebView;\n    if (isReactNative) {\n      // convert Blob to base64 if necessary\n      if (data instanceof Blob) {\n        const reader = new FileReader();\n        reader.onloadend = function () {\n          const base64data = reader.result; // \"data:application/zip;base64,....\"\n          window.ReactNativeWebView.postMessage(JSON.stringify({\n            type: 'DOWNLOAD_BLOB',\n            data: base64data,\n            name: `${strFileName}.zip` || 'download',\n            mimeType: data.type\n          }));\n        };\n        reader.readAsDataURL(data);\n        return;\n      }\n\n      // if already a base64/data URL\n      window.ReactNativeWebView.postMessage(JSON.stringify({\n        type: 'DOWNLOAD_BLOB',\n        data: data,\n        name: strFileName || 'download'\n      }));\n      return;\n    }\n    var self = window; // this script is only for browsers anyway...\n    var defaultMime = 'application/octet-stream'; // this default mime also triggers iframe downloads\n    var mimeType = strMimeType || defaultMime;\n    var payload = data;\n    var url = !strFileName && !strMimeType && payload;\n    var anchor = document.createElement('a');\n    var toString = function (a) {\n      return String(a);\n    };\n    var MyBlob = self.Blob || self.MozBlob || self.WebKitBlob || toString;\n    var fileName = strFileName || 'download';\n    var blob;\n    var reader;\n    MyBlob = MyBlob.call ? MyBlob.bind(self) : Blob;\n    if (String(this) === 'true') {\n      // reverse arguments, allowing download.bind(true, \"text/xml\", \"export.xml\") to act as a callback\n      payload = [payload, mimeType];\n      mimeType = payload[0];\n      payload = payload[1];\n    }\n    if (url && url.length < 2048) {\n      // if no filename and no mime, assume a url was passed as the only argument\n      fileName = url.split('/').pop().split('?')[0];\n      anchor.href = url; // assign href prop to temp anchor\n      if (anchor.href.indexOf(url) !== -1) {\n        // if the browser determines that it's a potentially valid url path:\n        var ajax = new XMLHttpRequest();\n        ajax.open('GET', url, true);\n        ajax.responseType = 'blob';\n        ajax.onload = function (e) {\n          download(e.target.response, fileName, defaultMime);\n        };\n        setTimeout(function () {\n          ajax.send();\n        }, 0); // allows setting custom ajax headers using the return:\n        return ajax;\n      } // end if valid url?\n    } // end if url?\n\n    // go ahead and download dataURLs right away\n    if (/^data:([\\w+-]+\\/[\\w+.-]+)?[,;]/.test(payload)) {\n      if (payload.length > 1024 * 1024 * 1.999 && MyBlob !== toString) {\n        payload = dataUrlToBlob(payload);\n        mimeType = payload.type || defaultMime;\n      } else {\n        return navigator.msSaveBlob // IE10 can't do a[download], only Blobs:\n        ? navigator.msSaveBlob(dataUrlToBlob(payload), fileName) : saver(payload); // everyone else can save dataURLs un-processed\n      }\n    } else if (/([\\x80-\\xff])/.test(payload)) {\n      // not data url, is it a string with special needs?\n      // if (/([\\x80-\\xff])/.test(payload)) {\n      var i = 0;\n      var tempUiArr = new Uint8Array(payload.length);\n      var mx = tempUiArr.length;\n      for (i; i < mx; ++i) tempUiArr[i] = payload.charCodeAt(i);\n      payload = new MyBlob([tempUiArr], {\n        type: mimeType\n      });\n      // }\n    }\n    blob = payload instanceof MyBlob ? payload : new MyBlob([payload], {\n      type: mimeType\n    });\n    function dataUrlToBlob(strUrl) {\n      var parts = strUrl.split(/[:;,]/);\n      var type = parts[1];\n      var indexDecoder = strUrl.indexOf('charset') > 0 ? 3 : 2;\n      var decoder = parts[indexDecoder] === 'base64' ? atob : decodeURIComponent;\n      var binData = decoder(parts.pop());\n      var mx = binData.length;\n      var i = 0;\n      var uiArr = new Uint8Array(mx);\n      for (i; i < mx; ++i) uiArr[i] = binData.charCodeAt(i);\n      return new MyBlob([uiArr], {\n        type: type\n      });\n    }\n    function saver(url, winMode) {\n      if ('download' in anchor) {\n        // html5 A[download]\n        anchor.href = url;\n        anchor.setAttribute('download', fileName);\n        anchor.className = 'download-js-link';\n        anchor.innerHTML = 'downloading...';\n        anchor.style.display = 'none';\n        anchor.addEventListener('click', function (e) {\n          e.stopPropagation();\n          // eslint-disable-next-line no-caller\n          this.removeEventListener('click', arguments.callee);\n        });\n        document.body.appendChild(anchor);\n        setTimeout(function () {\n          anchor.click();\n          document.body.removeChild(anchor);\n          if (winMode === true) {\n            setTimeout(function () {\n              self.URL.revokeObjectURL(anchor.href);\n            }, 250);\n          }\n        }, 66);\n        return true;\n      }\n\n      // handle non-a[download] safari as best we can:\n      if (/(Version)\\/(\\d+)\\.(\\d+)(?:\\.(\\d+))?.*Safari\\//.test(navigator.userAgent)) {\n        if (/^data:/.test(url)) url = 'data:' + url.replace(/^data:([\\w\\/\\-\\+]+)/, defaultMime);\n        if (!window.open(url)) {\n          // popup blocked, offer direct download:\n          // eslint-disable-next-line max-len,no-alert\n          if (confirm('Displaying New Document\\n\\nUse Save As... to download, then click back to return to this page.')) {\n            location.href = url;\n          }\n        }\n        return true;\n      }\n\n      // do iframe dataURL download (old ch+FF):\n      var f = document.createElement('iframe');\n      document.body.appendChild(f);\n      if (!winMode && /^data:/.test(url)) {\n        // force a mime that will download:\n        url = 'data:' + url.replace(/^data:([\\w\\/\\-\\+]+)/, defaultMime);\n      }\n      f.src = url;\n      setTimeout(function () {\n        document.body.removeChild(f);\n      }, 333);\n    } // end saver\n\n    if (navigator.msSaveBlob) {\n      // IE10+ : (has Blob, but not a[download] or URL)\n      return navigator.msSaveBlob(blob, fileName);\n    }\n    if (self.URL) {\n      // simple fast and modern way using Blob and URL:\n      saver(self.URL.createObjectURL(blob), true);\n    } else {\n      // handle non-Blob()+non-URL browsers:\n      if (typeof blob === 'string' || blob.constructor === toString) {\n        try {\n          return saver('data:' + mimeType + ';base64,' + self.btoa(blob));\n        } catch (y) {\n          return saver('data:' + mimeType + ',' + encodeURIComponent(blob));\n        }\n      }\n\n      // Blob but not URL support:\n      reader = new FileReader();\n      reader.onload = function () {\n        saver(this.result);\n      };\n      reader.readAsDataURL(blob);\n    }\n    return true;\n  }\n  function downloadUrl(file) {\n    const isReactNative = !!window.ReactNativeWebView;\n    if (isReactNative) {\n      window.ReactNativeWebView.postMessage(JSON.stringify({\n        type: 'DOWNLOAD_URL',\n        url: file.href,\n        name: file.name\n      }));\n    } else {\n      const a = document.createElement('a');\n      a.download = file.name;\n      a.rel = 'noopener noreferrer'; // tabnabbing\n      a.target = '_blank';\n      a.href = file.href;\n      a.style.display = 'none';\n      a.click();\n      a.remove();\n    }\n  }\n});","define(\"portal/utils/duration-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatDuration = formatDuration;\n  _exports.parseDuration = parseDuration;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatDuration([duration], options = {}) {\n    const {\n      abs,\n      emptyPlaceholder = ''\n    } = options;\n    const total = isNaN(duration) ? 0 : abs ? Math.abs(Number(duration)) : Number(duration);\n    let minutes = String(Math.abs(Math.round(total % 1 * 60)));\n    let hours = Math[total > 0 ? 'floor' : 'ceil'](total);\n    if (minutes.length < 2) {\n      minutes = '0' + minutes;\n    }\n\n    // Floating point errors\n    if (minutes.length > 2) {\n      minutes = minutes.substring(0, 2);\n    }\n    if (minutes === '60') {\n      hours = String(hours + 1);\n      minutes = '00';\n    }\n    return hours || parseInt(minutes, 10) ? `${Math.floor(hours)}:${minutes}` : emptyPlaceholder;\n  }\n  function parseDuration(duration) {\n    // Null input\n    if ([null, undefined, ''].includes(duration)) {\n      return null;\n    }\n    if (!isNaN(duration)) return Number(duration);\n    const parts = duration.replace('.', ':').replace(/[^0-9:-]+/g, '').split(':');\n\n    // Invalid input\n    if (!parts.find(p => p !== '') || parts.length === 0) {\n      return null;\n    }\n    const [hours, minutes = 0] = parts.map(str => Number(str));\n    return hours + (hours >= 0 ? 1 : -1) * minutes / 60;\n  }\n});","define(\"portal/utils/email-validator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = emailValidator;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function emailValidator(email) {\n    // eslint-disable-line complexity\n    const [localPart, domain, extra] = email.split('@');\n\n    // Return false if the email doesn't have exactly 1 @\n    if (!localPart || !domain || extra) return false;\n\n    // Return false if the local part has any characters that aren't the allowed characters\n    if (/[^\\ \"\\d\\w\\.!#$%&'*/=?^_+-`{|}~]+/.test(localPart)) return false;\n\n    // Local part can be max 64 chars long\n    if (localPart.length > 64) return false;\n    // Local part may not have quotes unless they are the leading AND trailing char\n    if (localPart.slice(1, -1).includes('\"')) return false;\n\n    // If local part is not quoted, do not allow leading dots, trailing dots, double dots, or spaces\n    if (!(localPart.startsWith('\"') && localPart.endsWith('\"'))) {\n      if (/\\.\\./.test(localPart)) return false;\n      if (/^\\./.test(localPart)) return false;\n      if (/\\.$/.test(localPart)) return false;\n      if (localPart.includes(' ')) return false;\n      // If the leading AND trailing char are not quotes, then don't allow any quotes.\n      if (localPart.includes('\"')) return false;\n    }\n\n    // Validate the domain, if test fails, return false\n    const subdomains = domain.split('.');\n    if (subdomains.some(part => !part.length || /[^a-zA-Z0-9\\-]/.test(part))) return false;\n\n    // No reason to invalidate, return true\n    return true;\n  }\n});","define(\"portal/utils/extract-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = extractNumber;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Checks that the number is valid and rounds to 2DP\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number with 2DP accuracy\n   */\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Math.floor(Number(input) * 100) / 100;\n  }\n});","define(\"portal/utils/favicon-title\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.changeFavicon = changeFavicon;\n  _exports.changeTitle = changeTitle;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function changeFavicon(src) {\n    src = src + '?=' + Math.random(); // invalidate the cached icon\n    const link = document.createElement('link');\n    const oldLink = document.getElementById('dynamic-favicon');\n    link.id = 'dynamic-favicon';\n    link.rel = 'icon';\n    link.href = src;\n    if (oldLink) document.head.removeChild(oldLink);\n    document.head.appendChild(link);\n  }\n  function changeTitle(title) {\n    document.title = title;\n  }\n});","define(\"portal/utils/find-date\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  function _default(dateString, format) {\n    let date = (0, _moment.default)(dateString, format);\n    if (date.isValid()) return date.toDate();\n    date = (0, _moment.default)(dateString);\n    if (date.isValid()) return date.toDate();\n    return null;\n  }\n});","define(\"portal/utils/find-param\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = findParam;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function findParam(routeDescription, routeName, paramName) {\n    // If this is the correct route, look for the param\n    if (routeDescription.name === routeName) {\n      return routeDescription.params[paramName];\n    }\n\n    // If this is still a sub-route, look in the parent\n    if (routeDescription.name.startsWith(routeName)) {\n      return findParam(routeDescription.parent, routeName, paramName);\n    }\n\n    // Route could not be found so return null\n    return null;\n  }\n});","define(\"portal/utils/get-default-language\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getDefaultUserOrWorkerLanguage = getDefaultUserOrWorkerLanguage;\n  _exports.languages = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const languages = _exports.languages = [{\n    value: 'zh-Hans',\n    label: 'Chinese (简体中文)'\n  }, {\n    value: 'en-AU',\n    label: 'English (Australia)'\n  }, {\n    value: 'en-NZ',\n    label: 'English (New Zealand)'\n  }, {\n    value: 'en-GB',\n    label: 'English (United Kingdom)'\n  }, {\n    value: 'en-US',\n    label: 'English (United States)'\n  }];\n  function getDefaultUserOrWorkerLanguage() {\n    const supportedTranslations = ['zh-Hans', 'en-AU', 'en-NZ', 'en-GB', 'en-US'];\n    if (supportedTranslations.includes(navigator.language)) return navigator.language;\n    return 'en-NZ';\n  }\n});","define(\"portal/utils/gl-import-parsers/banklink\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = banklinkReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function banklinkReportParser(report) {\n    const maps = [];\n    const balances = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach(row => {\n        // Check line name starts with number (account code)\n        if (isNaN(parseInt(row[0].split(' ')[0], 10))) {\n          return;\n        }\n\n        // Check both data columns contain numbers\n        if (isNaN(parseInt(row[1], 10)) || isNaN(parseInt(row[2], 10))) {\n          return;\n        }\n        const period = (0, _parseCurrencyString.default)(row[1]);\n        const ytd = (0, _parseCurrencyString.default)(row[2]);\n        const map = {\n          externalId: row[0].split(' ')[0],\n          code: row[0].split(' ')[0],\n          name: row[0].split(' ').slice(1).join(' '),\n          system: 'banklink'\n        };\n        const balance = {\n          externalId: row[0].split(' ')[0],\n          period,\n          ytd\n        };\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/empower\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = empowerReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function empowerReportParser(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      for (let i = 0; i < report.length; i++) {\n        report.shift();\n        if (report[0][0] && report[0][0].trim() === 'Account') {\n          report.shift();\n          break;\n        }\n      }\n\n      // Extract useful info\n      report.forEach(row => {\n        if (!row[0] || !row[1]) {\n          return;\n        }\n        const map = {\n          externalId: row[0],\n          code: row[0],\n          name: row[1],\n          system: 'empower'\n        };\n        const balance = {\n          externalId: row[0],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const value = (0, _parseCurrencyString.default)(row[2]);\n\n        // Credit values are negative\n        if (value > 0) {\n          (0, _object.set)(balance, 'periodCredit', -value);\n          (0, _object.set)(balance, 'ytdCredit', -value);\n        } else {\n          (0, _object.set)(balance, 'periodDebit', value);\n          (0, _object.set)(balance, 'ytdDebit', value);\n        }\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/frameworks\", [\"exports\", \"@ember/utils\", \"portal/utils/parse-currency-string\", \"lodash\"], function (_exports, _utils, _parseCurrencyString, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"portal/utils/parse-currency-string\",0,\"lodash\"eaimeta@70e063a35619d71f\n  const fileError = noun => `The file you uploaded didn't have the ${noun} we were expecting. Please check it is a CSV report from Frameworks.`;\n  const contentError = (value, ordinal, lineNo) => `We expected to find ${value} in the ${ordinal} column on line ${lineNo}, but that cell was empty.`;\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (!Array.isArray(report) || !Array.isArray(report[0]) || report.length < 2) {\n      errors.push(fileError('structure'));\n    } else if (!_lodash.default.isEqual(report[0].slice(0, -1), ['Type', 'Account', 'Account Name', 'Current Balance'])) {\n      errors.push(fileError('headers'));\n    } else if (report[report.length - 1][0] !== 'T1') {\n      errors.push(fileError('footer row'));\n    }\n    if (errors.length === 0 && report.length > 2) {\n      // Skip header and footer rows\n      report = report.slice(1, -1);\n\n      // Extract useful info\n      report.forEach((row, i) => {\n        // Check for account code\n        if ((0, _utils.isEmpty)(row[1])) {\n          errors.push(contentError('an account code', 'second', i + 2));\n          return;\n        }\n\n        // Check for account name\n        if ((0, _utils.isEmpty)(row[2])) {\n          errors.push(contentError('an account name', 'third', i + 2));\n          return;\n        }\n        maps.push({\n          externalId: row[1],\n          code: row[1],\n          name: row[2],\n          system: 'frameworks'\n        });\n        const value = (0, _parseCurrencyString.default)(row[4]);\n        if (value) {\n          balances.push({\n            externalId: row[1],\n            periodDebit: value,\n            ytdDebit: value\n          });\n        }\n      });\n    }\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/gj-gardner\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = gjGardnerReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function gjGardnerReportParser(report) {\n    const maps = [];\n    const balances = [];\n\n    // Shallow clone\n    report = [...report];\n    validateHeaders(report.shift());\n    if (report.length) {\n      let level = 1;\n      const headers = [];\n      report.forEach(row => {\n        // Extract row data\n        const accountNumber = typeof row[0] === 'string' && row[0].trim();\n        let accountName = typeof row[1] === 'string' && row[1].trim();\n        const accountLevel = typeof row[2] === 'string' && Number(row[2].trim());\n        const accountType = typeof row[3] === 'string' && row[3].trim();\n        const actual = typeof row[4] === 'string' && row[4].length > 0 && (0, _parseCurrencyString.default)(row[4]);\n\n        // If the account name ends with it's header name, remove it\n        const currentHeader = headers[headers.length - 1];\n        if (headers.length && accountName.endsWith(currentHeader)) {\n          accountName = accountName.replace(currentHeader, '').trim();\n        }\n\n        // End of section\n        if (accountLevel < level) {\n          headers.pop();\n          level -= 1;\n        }\n\n        // Track which section we're in\n        if (accountType === 'H') {\n          headers.push(accountName);\n          level += 1;\n        }\n\n        // Skip header and total rows\n        if (accountType !== 'D') {\n          return;\n        }\n\n        // Skip if this is an account row, but for some reason this doesn't have a value\n        if (Number.isNaN(actual)) {\n          return;\n        }\n\n        // If we've reach this point, this is an account with data we need to extract\n\n        maps.push({\n          externalId: accountNumber,\n          code: accountNumber,\n          name: buildAccountName(headers, accountName),\n          system: 'gj-gardner'\n        });\n        balances.push({\n          externalId: accountNumber,\n          period: actual,\n          ytd: actual\n        });\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n  function validateHeaders(headers) {\n    if (!headers) throw new Error('CSV file appears to be empty');\n    const check = (header, expected, index) => {\n      if (!Array.isArray(expected)) {\n        expected = [expected];\n      }\n      if (!expected.includes(header.trim())) {\n        throw new Error(`Expected column ${index} to be named '${expected}', but found '${header.trim()}'`);\n      }\n    };\n    check(headers[0], 'AccountNumber', 1);\n    check(headers[1], 'AccountName', 2);\n    check(headers[2], 'AccountLevel', 3);\n    check(headers[3], 'AccountType', 4);\n    check(headers[4], ['Actual', 'Amount'], 5);\n    if (headers.length > 6) {\n      throw new Error(`Expected 5 or 6 columns, but found ${headers.length}`);\n    }\n  }\n\n  /*\n   * e.g. ([ Income, Sales ], Timber) => 'Income / Sales / Timber'\n   */\n  function buildAccountName(headers, account) {\n    return headers.map(header => header + ' / ').join('') + account;\n  }\n});","define(\"portal/utils/gl-import-parsers/itm-manual\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = itmManualParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function itmManualParser(report) {\n    var maps = [];\n    var balances = [];\n    report.shift();\n    report.forEach(row => {\n      if (!row[0] || !row[1] || !row[2]) return;\n      maps.push({\n        externalId: row[0],\n        code: row[0],\n        name: row[1],\n        system: 'itm-manual'\n      });\n      const balance = {\n        externalId: row[0],\n        period: null\n      };\n      const value = (0, _parseCurrencyString.default)(row[2]);\n\n      // Since this is a manual format, no assumptions can really be made on whether,\n      // an account is supposed to be a period value or a YTD one. Nor, whether the source\n      // account is a credit or debit account.\n      (0, _object.set)(balance, 'period', value);\n      (0, _object.set)(balance, 'ytd', value);\n      balances.push(balance);\n    });\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/maxim\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = maximReportParser;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function maximReportParser(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach((row, i) => {\n        const map = {\n          externalId: row[3],\n          code: row[3],\n          name: row[4],\n          system: 'maxim'\n        };\n        const balance = {\n          externalId: row[3],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const periodValue = extractValue(row[5]);\n        if (periodValue < 0) {\n          balance.periodCredit = -periodValue;\n        } else {\n          balance.periodDebit = periodValue;\n        }\n        const ytdValue = extractValue(row[6]);\n        if (ytdValue < 0) {\n          balance.ytdCredit = -ytdValue;\n        } else {\n          balance.ytdDebit = ytdValue;\n        }\n        if (!map.externalId || !map.name || !map.code) {\n          errors.push(`Line ${i + 2} of the provided csv file did not contain valid data.`);\n        } else {\n          maps.push(map);\n          balances.push(balance);\n        }\n      });\n    }\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n  function extractValue(source) {\n    if (!source || !source.replace) {\n      return null;\n    }\n    source = source.replace(/,/g, '');\n    if (source.indexOf('(') > -1) {\n      source = source.replace('(', '-').replace(')', '');\n    }\n    return parseFloat(source);\n  }\n});","define(\"portal/utils/gl-import-parsers/myob-ao\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function _default(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      for (let i = 0; i < report.length; i++) {\n        report.shift();\n        if (report[0][0] && report[0][0].trim() === 'No.') {\n          report.shift();\n          report.shift();\n          break;\n        }\n      }\n\n      // Extract useful info\n      report.forEach(function (row) {\n        const map = {\n          externalId: row[0],\n          code: row[0],\n          name: row[1],\n          system: 'myob-ao'\n        };\n        const value = (0, _parseCurrencyString.default)(row[2]);\n        const balance = {\n          externalId: row[0],\n          period: value,\n          ytd: value\n        };\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/myob\", [\"exports\", \"@ember/object\", \"@ember/array\", \"portal/utils/parse-currency-string\", \"moment\", \"lodash\"], function (_exports, _object, _array, _parseCurrencyString, _moment, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = myobReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/array\",0,\"portal/utils/parse-currency-string\",0,\"moment\",0,\"lodash\"eaimeta@70e063a35619d71f\n  /**\n   * Format is as follows\n   * @example\n   * *Created:*,  businessName\n   * unused\n   * reportName\n   * unused\n   * period\n   *\n   * OR\n   *\n   * blank line\n   * businessName\n   * some lines\n   * `General Ledger [Summary]`\n   * reportName\n   * periodStart\n   *\n   * THEN\n   *\n   * some linescd\n   * Account No. OR Acct No.,   Account Name,   Net Activity,   Ending Balance\n   * some lines\n   * positiveDigit-positiveDigit\n   *\n   * @param {array} report - The lines of a csv file\n   * @returns {{meta: {}, maps: Array, balances: Array, errors: Array}} An object containing the import data.\n   */\n  function myobReportParser(report) {\n    const meta = {};\n    const maps = [];\n    const balances = [];\n    let errors = [];\n    if (!(0, _array.isArray)(report) || report.length <= 8 || !report.every(_array.isArray)) {\n      errors.push('Input could not be parsed');\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    if (report[0][0].indexOf('Created:') === 0) {\n      // Business name\n      (0, _object.set)(meta, 'businessName', report[0][1]);\n\n      // Report name\n      (0, _object.set)(meta, 'reportName', report[2][0]);\n\n      // Report period\n      (0, _object.set)(meta, 'periodStart', report[4][0]);\n      if ((0, _object.get)(meta, 'periodStart')) {\n        (0, _object.set)(meta, 'periodEnd', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(13, 10), 'DD/MM/YYYY').toDate());\n        (0, _object.set)(meta, 'periodStart', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(0, 10), 'DD/MM/YYYY').toDate());\n      }\n    } else {\n      (0, _object.set)(meta, 'businessName', report.shift()[0]);\n      while (report[0][0] !== 'General Ledger [Summary]') {\n        report.shift();\n      }\n      (0, _object.set)(meta, 'reportName', report.shift()[0]);\n      (0, _object.set)(meta, 'periodStart', report.shift()[0]);\n      if ((0, _object.get)(meta, 'periodStart')) {\n        (0, _object.set)(meta, 'periodEnd', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(13, 10), 'DD/MM/YYYY').endOf('day').toDate());\n        (0, _object.set)(meta, 'periodStart', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(0, 10), 'DD/MM/YYYY').startOf('day').toDate());\n      }\n    }\n\n    // Error checking\n\n    if (!(0, _object.get)(meta, 'businessName')) {\n      errors.push('Could not find business name.');\n    }\n    if (!(0, _object.get)(meta, 'reportName') || (0, _object.get)(meta, 'reportName') !== 'General Ledger [Summary]') {\n      errors.push('Could not find report name.');\n    }\n    if (!(0, _object.get)(meta, 'periodStart') || !(0, _object.get)(meta, 'periodEnd')) {\n      errors.push('Could not find report date.');\n    }\n    if (errors.length) {\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    while (!report[0][0].match(/Acc(?:oun)?t No\\./)) {\n      report.shift();\n    }\n\n    // Find which column holds which data\n    let code = null;\n    let name = null;\n    let period = null;\n    let ytd = null;\n    report.shift().forEach((header, index) => {\n      if (header.match(/^Acc(?:oun)?t No\\.$/)) {\n        code = index;\n      } else if (header === 'Account Name') {\n        name = index;\n      } else if (header === 'Net Activity') {\n        period = index;\n      } else if (header === 'Ending Balance') {\n        ytd = index;\n      }\n    });\n    if (code == null) errors.push('Could not find code column');\n    if (name == null) errors.push('Could not find name column');\n    if (period == null) errors.push('Could not find period column');\n    if (ytd == null) errors.push('Could not find YTD column');\n    while (!report[0][0].match(/\\d+-\\d+/)) {\n      report.shift();\n    }\n    if (!report.length) {\n      errors.push('Could not find report data');\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    report.forEach(row => {\n      if (!row[0].match(/^\\d+-\\d+$/)) {\n        return;\n      }\n      if (!row[code] || !row[name] || !row[period] || !row[ytd]) {\n        errors.push('Failed to parse at least one row.');\n      }\n      maps.push({\n        externalId: row[code].trim(),\n        code: row[code].trim(),\n        name: row[name].trim(),\n        system: 'myob'\n      });\n      var balance = {\n        externalId: row[code]\n      };\n      if (row[period].indexOf('cr') > -1 || row[period].indexOf('(') > -1) {\n        (0, _object.set)(balance, 'periodCredit', (0, _parseCurrencyString.default)(row[period]));\n      } else {\n        (0, _object.set)(balance, 'periodDebit', (0, _parseCurrencyString.default)(row[period]));\n      }\n      if (row[ytd].indexOf('cr') > -1 || row[ytd].indexOf('(') > -1) {\n        (0, _object.set)(balance, 'ytdCredit', (0, _parseCurrencyString.default)(row[ytd]));\n      } else {\n        (0, _object.set)(balance, 'ytdDebit', (0, _parseCurrencyString.default)(row[ytd]));\n      }\n      balances.push(balance);\n    });\n    errors = _lodash.default.uniq(errors);\n    return {\n      meta,\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/new-xero-parser\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  /* eslint-disable complexity */\n  /**\n   * extracts account code from a string\n   * @example\n   * Sales (200)\n   * @param {string} label produced by Xero\n   * @returns {string} An account code\n   */\n  const extractAccountCode = label => label.substring(label.lastIndexOf('(') + 1, label.lastIndexOf(')'));\n\n  /**\n   * extracts account name from a string\n   * @example\n   * Sales (200)\n   * @param {string} label produced by Xero\n   * @returns {string} An account name\n   */\n  const extractAccountName = label => label.slice(0, label.lastIndexOf('(')).trim();\n\n  /**\n   * Format is as follows\n   * @example\n   * some lines\n   * 'Account', *\n   * one blank line\n   * accountLabel, periodDebit, periodCredit, ytdDebit, ytdCredit\n   * repeat many times\n   * can have lines that don't match (they will be ignored)\n   * Total, *\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    let linesRemoved = 1;\n    if (!report.length) {\n      errors.push('Report must not be empty');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n\n    // Remove header rows\n    while (report.length && report[0][0].trim() !== 'Account') {\n      report.shift();\n      linesRemoved++;\n    }\n    if (!report.length) errors.push('Incorrect format. Could not find the Header \"Account\"');\n    report.shift(); // Column headers\n    linesRemoved++;\n    // Extract useful info\n    report.forEach(function (row, i) {\n      const [label, ...rest] = row;\n      const [debit, credit, ytdDebit, ytdCredit] = rest;\n      const rowHasNoInformation = rest.every(column => column === '');\n      if (rowHasNoInformation || row[0].trim() === 'Total') {\n        return;\n      }\n      const id = extractAccountCode(label);\n      const name = extractAccountName(label);\n      if (!id || !id.length) return errors.push(`Could not parse ID for line ${i + linesRemoved}`);\n      if (!name || !name.length) return errors.push(`Could not parse name for line ${i + linesRemoved}`);\n      const map = {\n        externalId: id,\n        code: id,\n        name,\n        system: 'xero-csv'\n      };\n      const isDebit = () => ytdDebit !== '';\n      const ytdValue = isDebit() ? ytdDebit : ytdCredit;\n      const balance = {\n        externalId: id,\n        periodDebit: debit.trim() !== '' ? (0, _parseCurrencyString.default)(debit) : null,\n        periodCredit: credit.trim() !== '' ? (0, _parseCurrencyString.default)(credit) : null,\n        ytd: ytdValue.trim() !== '' ? isDebit() ? -(0, _parseCurrencyString.default)(ytdValue) : (0, _parseCurrencyString.default)(ytdValue) : null\n      };\n      maps.push(map);\n      balances.push(balance);\n    });\n    if (!maps.length || !balances.length) errors.push('No imports were found');\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/old-xero-parser\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  /* eslint-disable complexity */\n  /**\n   * Format is as follows\n   * @example\n   * some lines\n   * 'Account Code', *\n   * one blank line\n   * accountCode, accountName, accountType, periodDebit, periodCredit, ytd,\n   * repeat many times\n   * can have lines that don't match (they will be ignored)\n   * Total, *\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (!report.length) {\n      errors.push('Report must not be empty');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n\n    // Remove header rows\n    while (report.length && report[0][0].trim() !== 'Account Code') {\n      report.shift();\n    }\n    if (!report.length) errors.push('Incorrect format. Could not find the Header \"Account Code\"');\n    report.shift(); // Column headers\n\n    // Extract useful info\n    report.forEach(function (row, i) {\n      if (!row[0] && !row[1] && !row[2] && !row[3] && !row[4] && !row[5] || row[0].trim() === 'Total') {\n        return;\n      }\n      const id = row[0];\n      const name = row[1];\n      if (!id || !id.length) return errors.push(`Could not parse ID for line ${i + 5}`);\n      if (!name || !name.length) return errors.push(`Could not parse name for line ${i + 5}`);\n      const map = {\n        externalId: id,\n        code: id,\n        name,\n        system: 'xero-csv'\n      };\n      const balance = {\n        externalId: id,\n        periodDebit: row[3].trim() !== '' ? (0, _parseCurrencyString.default)(row[3]) : null,\n        periodCredit: row[4].trim() !== '' ? (0, _parseCurrencyString.default)(row[4]) : null,\n        ytd: row[5].trim() !== '' ? (0, _parseCurrencyString.default)(row[5]) : null\n      };\n      maps.push(map);\n      balances.push(balance);\n    });\n    if (!maps.length || !balances.length) errors.push('No imports were found');\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/prostix\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = prostixReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function prostixReportParser(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach(row => {\n        const map = {\n          externalId: row[4],\n          code: row[4],\n          name: row[3],\n          system: 'prostix'\n        };\n        const balance = {\n          externalId: row[4],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const value = (0, _parseCurrencyString.default)(row[5]);\n\n        // Credit values are positive\n        if (value > 0) {\n          (0, _object.set)(balance, 'periodCredit', value);\n          (0, _object.set)(balance, 'ytdCredit', value);\n        } else {\n          (0, _object.set)(balance, 'periodDebit', -value);\n          (0, _object.set)(balance, 'ytdDebit', -value);\n        }\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/rees\", [\"exports\", \"lodash\"], function (_exports, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = reesReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\"eaimeta@70e063a35619d71f\n  function reesReportParser(input) {\n    let report = input;\n    const maps = [];\n    const balances = [];\n    const errors = [];\n\n    // If is paged\n    if (report.indexOf('\\u000C') > 0) {\n      // Check for the report number\n      if (report.indexOf('7.11.6') === -1) {\n        errors.push('Could not verify report number');\n        return {\n          maps,\n          balances,\n          errors\n        };\n      }\n\n      // Split on page break character\n      const pages = report.split(/\\u000C/); // eslint-disable-line no-control-regex\n\n      // Remove headers\n      const pagesWithoutHeaders = pages.map(page => {\n        return page.replace(/^[\\s\\S^-]*(-){130}\\r\\n/, '');\n      });\n\n      // Flatten pages\n      report = pagesWithoutHeaders.join('\\r\\n');\n    }\n\n    // Split on line breaks\n    const lines = report.split('\\r\\n');\n\n    // Trim each line\n    const trimmedLines = lines.map(_lodash.default.trim);\n\n    // Split into cells\n    const cells = trimmedLines.map(line => {\n      // remove commas from the dollar figures\n      line = line.replace(/\\,/g, '');\n\n      // Extract the values. Must handle no-match case where match returns null.\n      const [periodValue, ytdValue] = line.match(/-{0,1}\\d*\\.\\d{2}/g) || [];\n\n      // If either values are missing (can be 0.00 but not missiing), just use the whole line.\n      if (!periodValue || !ytdValue) return [line];\n\n      // The code and name is just the rest of the line with the values removed.\n      const codeAndName = line.replace(periodValue, '').replace(ytdValue, '').trim();\n      return [periodValue, codeAndName, ytdValue];\n    });\n\n    // Keep only lines with three cells (removes headers and breaks).\n    // Native filter rather than Ember's reject: this module is imported and run\n    // without the application having booted, and the array prototype extensions\n    // are not installed until it has.\n    const accountsWithTotals = cells.filter(line => line.length === 3 && line[1].split(' ').length >= 2);\n    let accounts = accountsWithTotals.filter(account => {\n      const name = account[1].match(/^[\\d\\.-]+(.*)/)[1].toLowerCase().trim();\n      return !(name.match(/^total/) || name.indexOf('must equal zero') > -1);\n    });\n    if (!accounts.length) {\n      errors.push('No accounts were found.');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n    accounts = accounts.map(account => {\n      return {\n        code: account[1].match(/^[\\d\\.-]+/)[0],\n        name: account[1].match(/^[\\d\\.-]+(.*)/)[1].trim(),\n        period: parseFloat(account[0]),\n        ytd: parseFloat(account[2])\n      };\n    });\n\n    // Extract useful info\n    accounts.forEach(({\n      code,\n      name,\n      period,\n      ytd\n    }) => {\n      maps.push({\n        externalId: code,\n        code,\n        name,\n        system: 'rees'\n      });\n      balances.push({\n        externalId: code,\n        period,\n        ytd\n      });\n    });\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/xero-csv\", [\"exports\", \"portal/utils/gl-import-parsers/old-xero-parser\", \"portal/utils/gl-import-parsers/new-xero-parser\"], function (_exports, _oldXeroParser, _newXeroParser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/gl-import-parsers/old-xero-parser\",0,\"portal/utils/gl-import-parsers/new-xero-parser\"eaimeta@70e063a35619d71f\n  const isOldXeroFormat = report => report[4][0] === 'Account Code';\n\n  /**\n   * detects which format the xero export is and chooses the correct parser\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  var _default = report => {\n    if (!report.length) {\n      return {\n        errors: ['Report must not be empty']\n      };\n    }\n    return isOldXeroFormat(report) ? (0, _oldXeroParser.default)(report) : (0, _newXeroParser.default)(report);\n  };\n  _exports.default = _default;\n});","define(\"portal/utils/intl/missing-message\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = missingMessage;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  // ember-intl calls this whenever `t` is given a key that has no translation.\n  // Static keys are caught at build time (see lib/missing-translations); this\n  // warns about dynamic ones outside production.\n  function missingMessage(key, locales) {\n    const message = `Missing translation: ${key} in ${locales}`;\n    if (_environment.default.environment !== 'production') {\n      // eslint-disable-next-line no-console\n      console.warn(message);\n    }\n    return message;\n  }\n});","define(\"portal/utils/labour-cost-calculator-fixtures\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.nzlLabourCostCalculatorItems = _exports.nzlLabourCostCalculator = _exports.defaultLabourCostCalculatorItems = _exports.defaultLabourCostCalculator = _exports.ausLabourCostCalculatorItems = _exports.ausLabourCostCalculator = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /* international */\n  const defaultLabourCostCalculator = _exports.defaultLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const defaultLabourCostCalculatorItems = _exports.defaultLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 12,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 5,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n\n  /* new zealand */\n  const nzlLabourCostCalculator = _exports.nzlLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const nzlLabourCostCalculatorItems = _exports.nzlLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 12,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 10,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'KiwiSaver',\n    enabled: true,\n    isSystem: true,\n    value: 0.035,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'ACC Levy Rate',\n    enabled: true,\n    isSystem: true,\n    value: 0.022,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n\n  /* australia */\n  const ausLabourCostCalculator = _exports.ausLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const ausLabourCostCalculatorItems = _exports.ausLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 15,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 10,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Super',\n    enabled: true,\n    isSystem: true,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n});","define(\"portal/utils/loading-route-from\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = loadingRouteFrom;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function loadingRouteFrom(Route, path) {\n    return Route.extend({\n      templateName: path,\n      controllerName: path,\n      setupController(controller) {\n        this._super(...arguments);\n        (0, _object.set)(controller, 'isLoading', true);\n      },\n      deactivate() {\n        (0, _object.set)(this, 'controller.isLoading', false);\n      }\n    });\n  }\n});","define(\"portal/utils/make-temp-id\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = makeTempId;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function makeTempId() {\n    let id = Math.floor(Math.random() * Math.pow(10, 16)).toString();\n    while (id.length < 16) {\n      id = '0' + id;\n    }\n    return id;\n  }\n});","define(\"portal/utils/multi-selectable-tree-item\", [\"exports\", \"@glimmer/tracking\", \"@ember/array\"], function (_exports, _tracking, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let MultiSelectableTreeItem = _exports.default = (_class = class MultiSelectableTreeItem {\n    get isSomeChildChecked() {\n      return function checkChildren(children = []) {\n        return children.some(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isEveryChildChecked() {\n      return function checkChildren(children = []) {\n        return children.every(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isChecked() {\n      return this._isChecked || this.isSomeChildChecked;\n    }\n    set isChecked(value) {\n      this._isChecked = value;\n    }\n    get checked() {\n      return this._isChecked && this.isEveryChildChecked;\n    }\n    get indeterminate() {\n      if (!this.children?.length) return false;\n      return this._isChecked && !this.isEveryChildChecked;\n    }\n    static constructItemTreeFromTasks(taskData, selectedTasks) {\n      const topTasks = taskData.toArray().filter(task => !task.belongsTo('parent').id() && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n      const taskItems = (0, _array.A)(topTasks).sortBy('path').map(task => new MultiSelectableTreeItem(task, selectedTasks));\n      return taskItems;\n    }\n    constructor(item, selectedTasks) {\n      _initializerDefineProperty(this, \"_isChecked\", _descriptor, this);\n      _initializerDefineProperty(this, \"item\", _descriptor2, this);\n      _initializerDefineProperty(this, \"children\", _descriptor3, this);\n      this.item = item;\n      if (selectedTasks.find(t => t.id === item.id)) {\n        this._isChecked = true;\n      } else {\n        this._isChecked = false;\n      }\n      if (item.children) {\n        const childrenArray = (0, _array.A)(item.hasMany('children').value()?.toArray());\n        this.children = childrenArray?.sortBy('path').filter(child => ['ACTIVE', 'DRAFT_CREATED'].includes(child.status)).map(child => new MultiSelectableTreeItem(child, selectedTasks)) || [];\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_isChecked\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"portal/utils/nest\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"lodash\"], function (_exports, _utils, _object, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = nest;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function nest(parents, accounts, idKey) {\n    if (idKey == null) {\n      idKey = 'id';\n    }\n    parents = parents.toArray().sortBy('sortIndex');\n    accounts = accounts.toArray();\n    parents.forEach(account => {\n      if ((0, _utils.isEmpty)(account)) {\n        return;\n      }\n      let children;\n      if (idKey !== false) {\n        children = accounts.filterBy('parent.' + idKey, (0, _object.get)(account, idKey));\n      } else {\n        children = accounts.filterBy('parent', (0, _object.get)(account, 'id'));\n      }\n      (0, _object.set)(account, 'children', []);\n      if (!(0, _utils.isEmpty)(children)) {\n        children.forEach(child => {\n          // Add to list of children\n          (0, _object.get)(account, 'children').pushObject(child);\n\n          // Remove from top level\n          parents.removeObject(child);\n        });\n\n        // Populate child's children\n        (0, _object.set)(account, 'children', nest((0, _object.get)(account, 'children'), accounts, idKey));\n      }\n    });\n    return _lodash.default.compact(parents);\n  }\n});","define(\"portal/utils/network-errors\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = networkErrors;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function networkErrors(err) {\n    if ((0, _object.get)(err, 'status') === 0) {\n      this.send('connectionError');\n      return true;\n    }\n    if ((0, _object.get)(err, 'status') >= 500) {\n      this.send('serverError');\n      return true;\n    }\n    return false;\n  }\n});","define(\"portal/utils/oidc-config\", [\"exports\", \"portal/config/environment\", \"oidc-client-ts\"], function (_exports, _environment, _oidcClientTs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.userManager = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"oidc-client-ts\"eaimeta@70e063a35619d71f\n  const oidcConfig = _environment.default.oidc;\n  const userManager = _exports.userManager = new _oidcClientTs.UserManager({\n    authority: oidcConfig.authenticationURL,\n    client_id: oidcConfig.applicationName,\n    redirect_uri: `${window.location.origin}/login-redirect`,\n    response_type: oidcConfig.responseType,\n    scope: oidcConfig.requestedScopes,\n    automaticSilentRenew: false,\n    // we use a manual renew due to poor multi tab support in this library\n    silent_redirect_uri: `${window.location.origin}/renew-redirect.html`,\n    popup_redirect_uri: `${window.location.origin}/login-redirect`,\n    post_logout_redirect_uri: `${window.location.origin}/logout-redirect`,\n    // for cross tab support use local storage instead of the default session storage on the window\n    userStore: new _oidcClientTs.WebStorageStateStore({\n      store: localStorage\n    }),\n    stateStore: new _oidcClientTs.WebStorageStateStore({\n      store: localStorage\n    })\n  });\n});","define(\"portal/utils/parse-currency-string\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = parseMoneyString;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function parseMoneyString(string) {\n    if (string && string.length) {\n      return parseFloat(string.replace(/[^-0-9.]+/g, ''));\n    } else {\n      return 0;\n    }\n  }\n});","define(\"portal/utils/path-resolver\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = pathResolver;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const cache = {};\n\n  /**\n   * what\n   * If the url given is not an absolute path, then it considered to be\n   * a relative one, following the same rules an anchor tag would on the\n   * page that is currently being viewed.\n   * @param {String} url\n   * @returns {String}\n   */\n  function pathResolver(url) {\n    if (cache[url]) return cache[url]; // Memoize as create element is slow\n\n    const link = document.createElement('a');\n    link.href = url;\n    // Remove any trailing slashes as a matter of convention.\n    const result = link.href.replace(/\\/$/, '');\n    cache[url] = result; // Memoize\n    return result;\n  }\n});","define(\"portal/utils/placemakers-bill-csv-normalizer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.NORMALIZED_PLACEMAKERS_HEADERS = void 0;\n  _exports.default = normalizePlaceMakersBillCsv;\n  _exports.isPlaceMakersBillCsv = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const PLACEMAKERS_BILL_HEADER = ['H', 'Branch', 'Branch Name', 'Parent Account', 'Account Code', 'Customer Name', 'Date', 'Customer Order Number', 'Transaction number', 'Transaction type (IN/CR)', 'Packing Slip Number', 'Freight Amount(excl GST)', 'Total including GST', 'GST Total'];\n  const PLACEMAKERS_ITEM_HEADER = ['D', 'Line number', 'Product Code (Suppliers)', 'Description', 'Qty Supplied', 'Unit', 'Unit Rate', 'Extended Line Total (excluding GST)', 'GST Rate %', 'GST Amount'];\n  const NORMALIZED_PLACEMAKERS_HEADERS = _exports.NORMALIZED_PLACEMAKERS_HEADERS = ['Invoice Number', 'Issue Date', 'Due Date', 'Customer Reference', 'Code', 'Description', 'Unit Price', 'Quantity'];\n  const rowStartsWith = (row = [], expectedHeaders = []) => expectedHeaders.every((header, index) => row[index] === header);\n  const isPlaceMakersBillCsv = (csv = []) => rowStartsWith(csv[0], PLACEMAKERS_BILL_HEADER) && rowStartsWith(csv[1], PLACEMAKERS_ITEM_HEADER);\n  _exports.isPlaceMakersBillCsv = isPlaceMakersBillCsv;\n  function normalizePlaceMakersBillCsv(csv = []) {\n    if (!isPlaceMakersBillCsv(csv)) return csv;\n    const normalizedRows = [NORMALIZED_PLACEMAKERS_HEADERS];\n    let currentBill = null;\n    csv.slice(2).forEach(row => {\n      if (row[0] === 'H') {\n        currentBill = row;\n        // PlaceMakers stores freight in the bill header, so adding it as a line item.\n        if (Number(currentBill[11])) {\n          normalizedRows.push([currentBill[8], currentBill[6], currentBill[14], currentBill[7], '', 'Freight', currentBill[11], '1']);\n        }\n        return;\n      }\n      if (row[0] !== 'D' || !currentBill) return;\n      normalizedRows.push([currentBill[8], currentBill[6], currentBill[14], currentBill[7], row[2], row[3], row[6], row[4]]);\n    });\n    return normalizedRows;\n  }\n});","define(\"portal/utils/platform\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.BRANDING = void 0;\n  _exports.getDefaultPlatform = getDefaultPlatform;\n  _exports.getPlatforms = getPlatforms;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  const BRANDING = _exports.BRANDING = {\n    MIRAGE: {\n      brand: 'Mirage',\n      logo: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      fullLogo: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      favicon: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      entityBrandEnum: undefined\n    },\n    OTBS: {\n      brand: 'OTBS',\n      logo: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      fullLogo: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      favicon: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      entityBrandEnum: undefined\n    },\n    STEP: {\n      brand: 'Step Accounts',\n      logo: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      fullLogo: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      favicon: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      entityBrandEnum: 'STEP'\n    },\n    TPB: {\n      brand: 'TPB',\n      logo: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      fullLogo: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      favicon: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      entityBrandEnum: 'TPB'\n    },\n    APB: {\n      brand: 'APB',\n      logo: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      fullLogo: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      favicon: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      entityBrandEnum: 'APB'\n    },\n    BUILDA_PRICE: {\n      brand: 'Builda Price',\n      logo: '/assets/images/logos/builda-price-7b6987b04f25f2261166dc83c687ea9b.svg',\n      fullLogo: '/assets/images/logos/builda-price-full-ff552901c19bf3fc4d14a1f9819274fa.svg',\n      favicon: '/assets/images/logos/builda-price-7b6987b04f25f2261166dc83c687ea9b.svg',\n      entityBrandEnum: 'BUILDA_PRICE'\n    },\n    ITM: {\n      brand: 'ITM',\n      logo: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      fullLogo: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      favicon: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      entityBrandEnum: 'ITM'\n    },\n    ATTENTION_SAFETY: {\n      brand: 'Attention Safety',\n      logo: '/assets/images/logos/attention-safety-c455aba989887566a82c8ac4d53c4410.svg',\n      fullLogo: '/assets/images/logos/attention-safety-full-50259a0b942c7c43389c731ad3822e2f.svg',\n      favicon: '/assets/images/logos/attention-safety-c455aba989887566a82c8ac4d53c4410.svg',\n      entityBrandEnum: 'ATTENTION_SAFETY'\n    },\n    STEP_UP: {\n      brand: 'Step Up Projects',\n      logo: '/assets/images/logos/step-up-f8e09b12ca9d649063bbc554f7eb4bfa.svg',\n      fullLogo: '/assets/images/logos/step-up-full-041f1bee99cad4708c3ccfd93e5a9f17.svg',\n      favicon: '/assets/images/logos/step-up-f8e09b12ca9d649063bbc554f7eb4bfa.svg',\n      entityBrandEnum: 'STEP_UP'\n    }\n  };\n  function getPlatforms() {\n    const host = window.location.host;\n    const defaultPlatforms = {\n      MIRAGE: {\n        logo: BRANDING.MIRAGE.logo,\n        fullLogo: BRANDING.MIRAGE.logo,\n        name: 'Platform name',\n        favicon: BRANDING.MIRAGE.favicon,\n        entityBrandEnum: BRANDING.MIRAGE.entityBrandEnum\n      },\n      OTBS: {\n        logo: BRANDING.OTBS.logo,\n        fullLogo: BRANDING.OTBS.logo,\n        name: 'Platform name',\n        favicon: BRANDING.OTBS.favicon,\n        entityBrandEnum: BRANDING.OTBS.entityBrandEnum\n      },\n      STEP: {\n        logo: BRANDING.STEP.logo,\n        fullLogo: BRANDING.STEP.logo,\n        name: 'Step Accounts Portal',\n        favicon: BRANDING.STEP.favicon,\n        entityBrandEnum: BRANDING.STEP.entityBrandEnum\n      },\n      APB: {\n        logo: BRANDING.APB.logo,\n        fullLogo: BRANDING.APB.logo,\n        name: 'APB - Builda Price Portal',\n        favicon: BRANDING.APB.favicon,\n        entityBrandEnum: BRANDING.APB.entityBrandEnum\n      },\n      TPB: {\n        logo: BRANDING.TPB.logo,\n        fullLogo: BRANDING.TPB.logo,\n        name: 'TPB - Builda Price Portal',\n        favicon: BRANDING.TPB.favicon,\n        entityBrandEnum: BRANDING.TPB.entityBrandEnum\n      },\n      BUILDA_PRICE: {\n        logo: BRANDING.BUILDA_PRICE.logo,\n        fullLogo: BRANDING.BUILDA_PRICE.fullLogo,\n        name: 'Builda Price Portal',\n        favicon: BRANDING.BUILDA_PRICE.favicon,\n        entityBrandEnum: BRANDING.BUILDA_PRICE.entityBrandEnum\n      },\n      ITM: {\n        logo: BRANDING.ITM.logo,\n        fullLogo: BRANDING.ITM.logo,\n        name: 'Step Accounts Portal',\n        favicon: BRANDING.ITM.favicon,\n        entityBrandEnum: BRANDING.ITM.entityBrandEnum\n      },\n      ATTENTION_SAFETY: {\n        logo: BRANDING.ATTENTION_SAFETY.logo,\n        fullLogo: BRANDING.ATTENTION_SAFETY.fullLogo,\n        name: 'Attention Safety Portal',\n        favicon: BRANDING.ATTENTION_SAFETY.favicon,\n        entityBrandEnum: BRANDING.ATTENTION_SAFETY.entityBrandEnum\n      },\n      STEP_UP: {\n        logo: BRANDING.STEP_UP.logo,\n        fullLogo: BRANDING.STEP_UP.fullLogo,\n        name: 'Step Up Projects',\n        favicon: BRANDING.STEP_UP.favicon,\n        entityBrandEnum: BRANDING.STEP_UP.entityBrandEnum\n      }\n    };\n    let authenticationUrl = _environment.default.urls.authenticationUrl;\n    let apiUrl = _environment.default.urls.authenticationUrl;\n\n    // these only need overwriting on some domains\n    switch (host) {\n      case 'portal.step.nz':\n        authenticationUrl = 'https://auth.step.nz';\n        apiUrl = 'https://portal.step.nz';\n        break;\n      case 'my.buildaprice.app':\n        authenticationUrl = 'https://auth.buildaprice.app';\n        break;\n      case 'apb.buildaprice.app':\n        authenticationUrl = 'https://auth.buildaprice.app';\n        break;\n      case 'my.stepupprojects.com':\n        authenticationUrl = 'https://auth.step.nz';\n        apiUrl = 'https://my.stepupprojects.com';\n        break;\n    }\n    const outputPlatforms = {};\n    for (const [name, details] of Object.entries(defaultPlatforms)) outputPlatforms[name] = {\n      ...details,\n      authenticationUrl,\n      apiUrl\n    };\n    return outputPlatforms;\n  }\n  function getDefaultPlatform() {\n    const host = window.location.host;\n    const platforms = getPlatforms();\n    let platform = _environment.default.useMirage ? platforms.MIRAGE : platforms.OTBS;\n    switch (host) {\n      case 'portal.step.nz':\n      case 'staging.portal.step.nz':\n        platform = platforms.STEP;\n        break;\n      case 'my.buildaprice.app':\n      case 'staging.buildaprice.app':\n        platform = platforms.BUILDA_PRICE;\n        break;\n      case 'apb.buildaprice.app':\n        platform = platforms.APB;\n        break;\n      case 'my.stepupprojects.com':\n      case 'staging.stepupprojects.com':\n        platform = platforms.STEP_UP;\n        break;\n    }\n    return platform;\n  }\n});","define(\"portal/utils/profit-margin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.calculatePercentage = calculatePercentage;\n  _exports.calculateValue = calculateValue;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function calculateValue(profitType, value, percentage) {\n    switch (profitType) {\n      case 'MARGIN':\n        // if margin check percentage is less that 1\n        if (percentage >= 1) return 0;\n        return Number((value / (1 - percentage)).toFixed(2));\n      case 'MARKUP':\n        return Number((value * percentage + value).toFixed(2));\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  }\n  function calculatePercentage(profitType, Numerator, Denominator) {\n    if (Number(Denominator) === 0) return 0;\n    switch (profitType) {\n      case 'MARGIN':\n        return Number(1 - Numerator / (Denominator || Infinity));\n      case 'MARKUP':\n        return Number((Denominator - Numerator) / (Numerator || Infinity));\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  }\n});","define(\"portal/utils/report-builder-attachments-bundle\", [\"exports\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\"], function (_exports, _download, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = downloadAttachmentsBundle;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\"eaimeta@70e063a35619d71f\n  async function downloadAttachmentsBundle(reportData) {\n    const materialHrefs = getAttachmentHrefs(reportData.materialInvoices);\n    const subcontractorHrefs = getAttachmentHrefs(reportData.subcontractorInvoices);\n    if (![...materialHrefs, ...subcontractorHrefs].length) return;\n    const archiveDescription = {\n      name: 'attachments',\n      contents: []\n    };\n    if (materialHrefs.length) archiveDescription.contents.push({\n      name: 'Materials',\n      contents: materialHrefs\n    });\n    if (subcontractorHrefs.length) archiveDescription.contents.push({\n      name: 'Subcontractors',\n      contents: subcontractorHrefs\n    });\n    const zipBlob = await getZipBlob(archiveDescription);\n    (0, _download.download)(zipBlob, 'attachments.zip', 'application/zip');\n  }\n  function getAttachmentHrefs(invoiceWrapper) {\n    return invoiceWrapper.reduce((hrefs, wrapper) => {\n      const attachments = wrapper.invoice.myAttachments || [];\n      return [...hrefs, ...attachments.map(attachment => attachment.href)];\n    }, []);\n  }\n  function getZipBlob(archiveDescription) {\n    return new Promise((resolve, reject) => _jquery.default.ajax({\n      url: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/files/zip',\n      method: 'POST',\n      data: JSON.stringify(archiveDescription),\n      contentType: 'application/json',\n      xhr() {\n        // This seems to be the only way to set the response type to blob.\n        // This will allow js to leave the file as a bytestream rather than trying to parse it.\n        const xhr = new XMLHttpRequest();\n        xhr.responseType = 'blob';\n        return xhr;\n      }\n    }).then(resolve, reject));\n  }\n});","define(\"portal/utils/report-builder-mark-as-reported\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.clearSelectedResources = clearSelectedResources;\n  _exports.confirmMarkAsReported = confirmMarkAsReported;\n  _exports.markSelectedItemsAsReported = markSelectedItemsAsReported;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  async function markSelectedItemsAsReported(reportData, notifications) {\n    const reportedResourcesSummary = getReportedResourcesSummary(reportData);\n    if (reportedResourcesSummary.resourcesToTrack.length) {\n      await markItemsAsReported(reportedResourcesSummary.resourcesToTrack);\n      notifications.success(`${reportedResourcesSummary.resourcesToTrack.length} ${reportedResourcesSummary.resourcesToTrack.length > 1 ? 'items have' : 'item has'} been tracked.`); // eslint-disable-line\n    } else {\n      notifications.info('All items were already marked \"Reported\".');\n    }\n  }\n  function confirmMarkAsReported(reportData) {\n    const reportedResourcesSummary = getReportedResourcesSummary(reportData);\n\n    // If there are items in the report that have previously been exported ask the user if they wish to continue\n    if (reportedResourcesSummary.previouslyReportedResources.length) {\n      return confirm(`You are about to run a report with ${reportedResourcesSummary.previouslyReportedResources.length} previously reported ${reportedResourcesSummary.previouslyReportedResources.length > 1 ? 'items' : 'item'}. Do you wish to continue?`); // eslint-disable-line\n    }\n    return true;\n  }\n  function markItemsAsReported(resourcesToTrack) {\n    // Mark the selected resources as reported and save them\n    return Promise.all(resourcesToTrack.map(item => {\n      item.reported = true;\n      return item.save();\n    }));\n  }\n  function clearSelectedResources(reportData) {\n    const invoices = [...reportData.materialInvoices, ...reportData.labourInvoices, ...reportData.subcontractorInvoices];\n    invoices.forEach(invoice => invoice.items.forEach(item => (0, _object.set)(item, 'selected', false)));\n    reportData.workers.forEach(workerWrapper => workerWrapper.timesheets.forEach(timesheet => (0, _object.set)(timesheet, 'selected', false)));\n  }\n  function getReportedResourcesSummary(reportData) {\n    // Resources which need to be marked as reported and then saved.\n    const resourcesToTrack = [];\n    // Resources that were already marked as 'reported'.\n    const previouslyReportedResources = [];\n    // Takes a list of resources and sorts the selected ones by whether they had been previously reported or not\n    const sortReportedResources = resources => {\n      resources.filterBy('selected').forEach(resource => {\n        if (resource.reported) {\n          previouslyReportedResources.push(resource);\n        } else {\n          resourcesToTrack.push(resource);\n        }\n      });\n    };\n\n    // Sort all the selected invoice items and timesheets\n    [...reportData.materialInvoices, ...reportData.labourInvoices, ...reportData.subcontractorInvoices].forEach(invoice => sortReportedResources(invoice.items));\n    reportData.workers.filter(workerWrapper => workerWrapper.allSelected || workerWrapper.partSelected).forEach(worker => sortReportedResources(worker.timesheets));\n    return {\n      resourcesToTrack,\n      previouslyReportedResources\n    };\n  }\n});","define(\"portal/utils/report-builder\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getTimesheetTotal = getTimesheetTotal;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function getTimesheetTotal(timesheet, useChargeOutRates, currentChargeOutRate) {\n    if ((0, _object.get)(timesheet, 'id')) {\n      if (useChargeOutRates && currentChargeOutRate != null) return currentChargeOutRate * (0, _object.get)(timesheet, 'hours');else if (useChargeOutRates) return (0, _object.get)(timesheet, 'totals.chargeOutTotal');else return (0, _object.get)(timesheet, 'totals.costTotal');\n    } else {\n      return (0, _object.get)(timesheet, 'currentChargeOutRate') * (0, _object.get)(timesheet, 'hours') || 0;\n    }\n  }\n});","define(\"portal/utils/sanitize-filename\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sanitize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Extracted from node-sanitize (https://github.com/parshap/node-sanitize-filename/blob/master/index.js)\n   *\n   * Replaces characters in strings that are illegal/unsafe for filenames.\n   * Unsafe characters are either removed or replaced by a substitute set\n   * in the optional `options` object.\n   *\n   * Illegal Characters on Various Operating Systems\n   * / ? < > \\ : * | \"\n   * https://kb.acronis.com/content/39790\n   *\n   * Unicode Control codes\n   * C0 0x00-0x1f & C1 (0x80-0x9f)\n   * http://en.wikipedia.org/wiki/C0_and_C1_control_codes\n   *\n   * Reserved filenames on Unix-based systems (\".\", \"..\")\n   * Reserved filenames in Windows (\"CON\", \"PRN\", \"AUX\", \"NUL\", \"COM1\",\n   * \"COM2\", \"COM3\", \"COM4\", \"COM5\", \"COM6\", \"COM7\", \"COM8\", \"COM9\",\n   * \"LPT1\", \"LPT2\", \"LPT3\", \"LPT4\", \"LPT5\", \"LPT6\", \"LPT7\", \"LPT8\", and\n   * \"LPT9\") case-insesitively and with or without filename extensions.\n   *\n   * Capped at 255 characters in length.\n   * http://unix.stackexchange.com/questions/32795/what-is-the-maximum-allowed-filename-and-folder-size-with-ecryptfs\n   *\n   * @param  {String} input      Original filename\n   * @param  {String} substitute Characters to replace illegals\n   * @return {String}            Sanitized filename\n   */\n\n  const illegal = /[\\/\\?<>\\\\:\\*\\|\":]/g;\n  const control = /[\\x00-\\x1f\\x80-\\x9f]/g; // eslint-disable-line no-control-regex\n  const reserved = /^\\.+$/;\n  const windowsReserved = /^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\\..*)?$/i;\n  const nonAsciiChars = /[^\\x00-\\x7F]/g;\n  function sanitize(input, replacement = '') {\n    const sanitized = input.replace(illegal, replacement).replace(control, replacement).replace(reserved, replacement).replace(windowsReserved, replacement).replace(nonAsciiChars, replacement).slice(-255);\n    return sanitized;\n  }\n});","define(\"portal/utils/search-filter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = searchTermToFilter;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function searchTermToFilter(fields, term, opKey = 'op') {\n    const filter = {\n      and: []\n    };\n    const words = term.split(' ');\n    for (const word of words) {\n      const group = {\n        or: []\n      };\n      for (const field of fields) {\n        group.or.push({\n          field,\n          [opKey]: 'ILIKE',\n          value: word\n        });\n      }\n      filter.and.push(group);\n    }\n    return filter;\n  }\n});","define(\"portal/utils/search-term-escape\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.searchTermEscape = searchTermEscape;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function searchTermEscape(value) {\n    return value.replace(/\\\\/g, '\\\\\\\\').replace(/%/g, '\\\\%').replace(/_/g, '\\\\_');\n  }\n});","define(\"portal/utils/smart-payroll-csv-generator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateSmartPayrollCSV = generateSmartPayrollCSV;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Takes worker details and returns a 2D array for Smartly\n   * @param {Array} workers - An array of objects with smartly employee ids and timesheet day totals\n   * @returns {Array} - A 2D array in the Smartly CSV format\n   */\n  function generateSmartPayrollCSV(workers) {\n    const table = workers.map(buildRow);\n    return table;\n  }\n  function buildRow(worker) {\n    const {\n      smartPayrollEmployeeCode,\n      dayTotals,\n      smartPayrollEmployeeDepartmentCode\n    } = worker;\n    const periodLength = dayTotals.length;\n    const totalHourForPeriod = dayTotals.reduce((t, {\n      totalHours\n    }) => t += totalHours, 0);\n    return ['#50',\n    // Line Style: Will always be \"#50\".\n    smartPayrollEmployeeCode,\n    // Employee ID: This is the Smartly employee ID, by default, it is the employees initials.\n    1,\n    // Pay Rate ID: Enum for type of hours worked. Will be \"1\" for regular hours.\n    totalHourForPeriod,\n    // Unit (hours): The total number of hours worked for the export.\n    smartPayrollEmployeeDepartmentCode,\n    // Dept Quick Ref\n    periodLength // Days Paid: The total number of days worked - can not be empty, must be \"0\".\n    ];\n  }\n});","define(\"portal/utils/sort-accounts\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortAccounts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortAccounts(accounts = [], sortKey = 'sortIndex', categoryKey = 'category') {\n    const profitAndLoss = [];\n    const balanceSheet = [];\n    const other = [];\n    accounts.forEach(target => {\n      const category = (0, _object.get)(target, categoryKey);\n      switch (category) {\n        case 'profit-and-loss':\n          profitAndLoss.push(target);\n          break;\n        case 'balance-sheet':\n          balanceSheet.push(target);\n          break;\n        default:\n          other.push(target);\n      }\n    });\n    return [...profitAndLoss.sortBy(sortKey), ...balanceSheet.sortBy(sortKey), ...other.sortBy(sortKey)];\n  }\n});","define(\"portal/utils/sort-by-account-code\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortByAccountCode;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortByAccountCode(a, b) {\n    const aSystem = (0, _object.get)(a, 'system');\n    const aString = (0, _object.get)(a, 'code');\n    const bSystem = (0, _object.get)(b, 'system');\n    const bString = (0, _object.get)(b, 'code');\n    if (aSystem.indexOf('myob') > -1 && bSystem.indexOf('myob') > -1) {\n      const aCategory = parseInt(aString, 10);\n      const bCategory = parseInt(bString, 10);\n      const categoryComparison = compare(aCategory, bCategory);\n      if (categoryComparison) {\n        return categoryComparison;\n      }\n      const aCode = parseInt(aString.split(/[-\\/]/)[1], 10);\n      const bCode = parseInt(bString.split(/[-\\/]/)[1], 10);\n      return compare(aCode, bCode);\n    } else {\n      const aCode = Number(aString);\n      const bCode = Number(bString);\n      return compare(aCode, bCode);\n    }\n  }\n  function compare(a, b) {\n    return a < b ? -1 : b < a ? 1 : 0;\n  }\n});","define(\"portal/utils/string-similarity\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.compareTwoStrings = compareTwoStrings;\n  _exports.findBestMatch = findBestMatch;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // https://www.npmjs.com/package/string-similarity\n  function compareTwoStrings(first, second) {\n    // eslint-disable-line complexity\n    first = first.replace(/\\s+/g, '');\n    second = second.replace(/\\s+/g, '');\n    if (!first.length && !second.length) return 1; // if both are empty strings\n    if (!first.length || !second.length) return 0; // if only one is empty string\n    if (first === second) return 1; // identical\n    if (first.length === 1 && second.length === 1) return 0; // both are 1-letter strings\n    if (first.length < 2 || second.length < 2) return 0; // if either is a 1-letter string\n\n    const firstBigrams = new Map();\n    for (let i = 0; i < first.length - 1; i++) {\n      const bigram = first.substring(i, i + 2);\n      const count = firstBigrams.has(bigram) ? firstBigrams.get(bigram) + 1 : 1;\n      firstBigrams.set(bigram, count);\n    }\n    let intersectionSize = 0;\n    for (let i = 0; i < second.length - 1; i++) {\n      const bigram = second.substring(i, i + 2);\n      const count = firstBigrams.has(bigram) ? firstBigrams.get(bigram) : 0;\n      if (count > 0) {\n        firstBigrams.set(bigram, count - 1);\n        intersectionSize++;\n      }\n    }\n    return 2.0 * intersectionSize / (first.length + second.length - 2);\n  }\n  function findBestMatch(mainString, targetStrings) {\n    if (!areArgsValid(mainString, targetStrings)) {\n      throw new Error('Bad arguments: First argument should be a string, second should be an array of strings');\n    }\n    const ratings = [];\n    let bestMatchIndex = 0;\n    for (let i = 0; i < targetStrings.length; i++) {\n      const currentTargetString = targetStrings[i];\n      const currentRating = compareTwoStrings(mainString, currentTargetString);\n      ratings.push({\n        target: currentTargetString,\n        rating: currentRating\n      });\n      if (currentRating > ratings[bestMatchIndex].rating) {\n        bestMatchIndex = i;\n      }\n    }\n    const bestMatch = ratings[bestMatchIndex];\n    return {\n      ratings: ratings,\n      bestMatch: bestMatch,\n      bestMatchIndex: bestMatchIndex\n    };\n  }\n  function areArgsValid(mainString, targetStrings) {\n    if (typeof mainString !== 'string') return false;\n    if (!Array.isArray(targetStrings)) return false;\n    if (!targetStrings.length) return false;\n    if (targetStrings.find(function (s) {\n      return typeof s !== 'string';\n    })) return false;\n    return true;\n  }\n});","define(\"portal/utils/sums\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.sum = sum;\n  _exports.sumBy = sumBy;\n  _exports.sumByProducts = sumByProducts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sum(object, ...keys) {\n    return keys.reduce((total, key) => {\n      const number = Number((0, _object.get)(object, key));\n      return isNaN(number) ? total : total + number;\n    }, 0);\n  }\n  function sumBy(array, key) {\n    // map + get rather than Ember's mapBy: this module is reached without the\n    // application having booted, and the array prototype extensions are not\n    // installed until it has.\n    return array.map(item => (0, _object.get)(item, key)).reduce((total, value) => {\n      const number = Number(value);\n      return isNaN(number) ? total : total + number;\n    }, 0);\n  }\n  function sumByProducts(array, ...keys) {\n    return array.reduce((total, element) => {\n      const product = keys.reduce((prod, key) => prod * Number((0, _object.get)(element, key)), 1);\n      return isNaN(product) ? total : total + product;\n    }, 0);\n  }\n});","define(\"portal/utils/task-templates\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = [{\n    name: 'Comprehensive',\n    items: [{\n      name: 'Preliminaries',\n      items: [{\n        name: 'Preliminary & generals'\n      }, {\n        name: 'Home warranty insurance'\n      }, {\n        name: 'Builders risk insurance'\n      }, {\n        name: 'General liability insurance'\n      }, {\n        name: 'Site management'\n      }, {\n        name: 'Administration'\n      }, {\n        name: 'Hoarding'\n      }, {\n        name: 'Health & safety'\n      }, {\n        name: 'Design'\n      }, {\n        name: 'Tree / vine protection'\n      }, {\n        name: 'Scaffolding'\n      }, {\n        name: 'Soil test & report'\n      }, {\n        name: 'Engineering fees'\n      }, {\n        name: 'Energy report'\n      }, {\n        name: 'Survey'\n      }, {\n        name: 'Retaining wall works'\n      }, {\n        name: 'Utility service'\n      }, {\n        name: 'Termite protection'\n      }, {\n        name: 'Amenity / toilet hire'\n      }, {\n        name: 'Tool & equipment hire'\n      }, {\n        name: 'Miscellaneous expense'\n      }, {\n        name: 'Crane hire'\n      }, {\n        name: 'Waste removal',\n        items: [{\n          name: 'Skip hire'\n        }]\n      }, {\n        name: 'Project management'\n      }, {\n        name: 'Permits'\n      }, {\n        name: 'Site visits'\n      }, {\n        name: 'Delivery fees'\n      }, {\n        name: 'Temporary fencing'\n      }, {\n        name: 'Site security'\n      }, {\n        name: 'Overheads'\n      }]\n    }, {\n      name: 'Demolition'\n    }, {\n      name: 'Excavation & foundations',\n      items: [{\n        name: 'Excavation & earth works'\n      }, {\n        name: 'Soil removal'\n      }]\n    }, {\n      name: 'Concrete',\n      items: [{\n        name: 'Termite protection'\n      }]\n    }, {\n      name: 'Structural steel',\n      items: [{\n        name: 'Structural steel'\n      }]\n    }, {\n      name: 'Carpentry',\n      items: [{\n        name: 'Framing'\n      }, {\n        name: 'Lock up'\n      }, {\n        name: 'Fixing'\n      }, {\n        name: 'Fit-off'\n      }, {\n        name: 'Doors',\n        items: [{\n          name: 'Architraves'\n        }]\n      }, {\n        name: 'Skirting'\n      }, {\n        name: 'Project'\n      }, {\n        name: 'Stairs',\n        items: [{\n          name: 'Supply & install'\n        }, {\n          name: 'Labour to assist install'\n        }]\n      }]\n    }, {\n      name: 'External cladding',\n      items: [{\n        name: 'Rendering works'\n      }, {\n        name: 'External wall cladding'\n      }]\n    }, {\n      name: 'Masonry',\n      items: [{\n        name: 'Masonry supply'\n      }, {\n        name: 'Masonry'\n      }, {\n        name: 'Masonry sundries'\n      }, {\n        name: 'Bring cleaner'\n      }]\n    }, {\n      name: 'Joinery',\n      items: [{\n        name: 'Joinery'\n      }, {\n        name: 'Stone benchtops'\n      }]\n    }, {\n      name: 'Roofing',\n      items: [{\n        name: 'Roofing'\n      }]\n    }, {\n      name: 'Windows',\n      items: [{\n        name: 'Supply & install'\n      }]\n    }, {\n      name: 'Glazing',\n      items: [{\n        name: 'Shower screen & mirrors'\n      }, {\n        name: 'Balustrading'\n      }]\n    }, {\n      name: 'Plastering',\n      items: [{\n        name: 'Plastering'\n      }, {\n        name: 'Gib stopping'\n      }, {\n        name: 'Plaster & GIB'\n      }]\n    }, {\n      name: 'Insulation',\n      items: [{\n        name: 'Supply & install'\n      }]\n    }, {\n      name: 'Heating & cooling',\n      items: [{\n        name: 'Heat pump supply & install'\n      }]\n    }, {\n      name: 'Drainage & plumbing',\n      items: [{\n        name: 'Drainage'\n      }, {\n        name: 'Stormwater'\n      }, {\n        name: 'Plumbing fittings & fixtures'\n      }, {\n        name: 'Watertank'\n      }, {\n        name: 'Septictank'\n      }]\n    }, {\n      name: 'Appliances',\n      items: [{\n        name: 'Kitchen'\n      }, {\n        name: 'Laundry'\n      }]\n    }, {\n      name: 'Electrical',\n      items: [{\n        name: 'General electrical'\n      }, {\n        name: 'Lighting supply & switches'\n      }, {\n        name: 'Alarm / intercom / security system'\n      }, {\n        name: 'Sound system'\n      }]\n    }, {\n      name: 'Painting',\n      items: [{\n        name: 'Internal painting'\n      }, {\n        name: 'External painting'\n      }]\n    }, {\n      name: 'Tiling & waterproofing',\n      items: [{\n        name: 'Tiling bathroom'\n      }, {\n        name: 'Tiling kitchen'\n      }, {\n        name: 'Tiling laundry'\n      }, {\n        name: 'Waterproofing'\n      }]\n    }, {\n      name: 'Final fit off & finishing',\n      items: [{\n        name: 'Garage door'\n      }, {\n        name: 'Caulking'\n      }, {\n        name: 'Cleaning'\n      }, {\n        name: 'Upholstery'\n      }, {\n        name: 'Blinds'\n      }]\n    }, {\n      name: 'Floor finishes',\n      items: [{\n        name: 'Carpet'\n      }, {\n        name: 'Flooring timber (engineered / laminate / vinyl / actual)',\n        items: [{\n          name: 'Floor s&ing'\n        }]\n      }]\n    }, {\n      name: 'External works',\n      items: [{\n        name: 'Concrete paving works',\n        items: [{\n          name: 'Driveway'\n        }, {\n          name: 'Footpaths'\n        }]\n      }, {\n        name: 'Deck',\n        items: [{\n          name: 'Deck framing'\n        }, {\n          name: 'Decking'\n        }]\n      }, {\n        name: 'Landscaping',\n        items: [{\n          name: 'Front garden'\n        }, {\n          name: 'Rear garden'\n        }]\n      }, {\n        name: 'Swimming pool',\n        items: [{\n          name: 'Pool fencing'\n        }]\n      }]\n    }, {\n      name: 'Subcontractors'\n    }, {\n      name: 'Sums'\n    }, {\n      name: 'Variations'\n    }]\n  }, {\n    name: 'Simple contract',\n    items: [{\n      name: 'Establishment',\n      items: [{\n        name: 'Preliminary & generals',\n        items: [{\n          name: 'Health & safety'\n        }, {\n          name: 'Project management'\n        }, {\n          name: 'Insurances',\n          items: [{\n            name: 'Halo guarantee'\n          }, {\n            name: 'Public liability'\n          }, {\n            name: 'Workers risk insurance'\n          }]\n        }, {\n          name: 'Toilet hire'\n        }, {\n          name: 'Rubbish removal',\n          items: [{\n            name: 'Skip bin'\n          }]\n        }, {\n          name: 'Excavation'\n        }, {\n          name: 'Surveying'\n        }, {\n          name: 'Scaffolding'\n        }, {\n          name: 'Hoardings'\n        }, {\n          name: 'Temporary fencing'\n        }, {\n          name: 'Power supply'\n        }, {\n          name: 'Water supply'\n        }, {\n          name: 'Administration'\n        }, {\n          name: 'Overheads'\n        }]\n      }, {\n        name: 'Consent applications'\n      }, {\n        name: 'Special materials procurement'\n      }]\n    }, {\n      name: 'Floor down',\n      items: [{\n        name: 'Foundations'\n      }, {\n        name: 'Floor structure'\n      }]\n    }, {\n      name: 'Framing erected',\n      items: [{\n        name: 'Wall framing'\n      }, {\n        name: 'Roof framing'\n      }]\n    }, {\n      name: 'Roof on',\n      items: [{\n        name: 'Roof'\n      }, {\n        name: 'Fascia'\n      }, {\n        name: 'Guttering'\n      }]\n    }, {\n      name: 'Closed in',\n      items: [{\n        name: 'Doors'\n      }, {\n        name: 'Windows'\n      }, {\n        name: 'Building wrap / external ply'\n      }]\n    }, {\n      name: 'Exterior cladding',\n      items: [{\n        name: 'Cladding'\n      }]\n    }, {\n      name: 'Interior linings',\n      items: [{\n        name: 'Interior linings'\n      }, {\n        name: 'Skirtings'\n      }, {\n        name: 'Architraves'\n      }, {\n        name: 'Rooms',\n        items: [{\n          name: 'Master bedroom'\n        }, {\n          name: 'Bedroom'\n        }, {\n          name: 'Bathroom'\n        }, {\n          name: 'Ensuite'\n        }, {\n          name: 'Powder room'\n        }, {\n          name: 'Lounge'\n        }, {\n          name: 'Dining'\n        }]\n      }]\n    }, {\n      name: 'Painting & kitchen',\n      items: [{\n        name: 'Exterior painting',\n        items: [{\n          name: 'Walls'\n        }, {\n          name: 'Soffits'\n        }]\n      }, {\n        name: 'Interior painting',\n        items: [{\n          name: 'Walls'\n        }, {\n          name: 'Ceiling'\n        }, {\n          name: 'Doors'\n        }]\n      }, {\n        name: 'Kitchen cabinetry'\n      }]\n    }, {\n      name: 'Subcontractors',\n      items: [{\n        name: 'Plumbing'\n      }, {\n        name: 'Painting'\n      }, {\n        name: 'Electrical'\n      }, {\n        name: 'Flooring',\n        items: [{\n          name: 'Timber'\n        }, {\n          name: 'Carpet'\n        }]\n      }]\n    }, {\n      name: 'Sums'\n    }, {\n      name: 'Variations'\n    }]\n  }, {\n    name: 'Flat structure',\n    items: [{\n      name: 'Preliminaries & general'\n    }, {\n      name: 'Site works & establishment'\n    }, {\n      name: 'Foundations'\n    }, {\n      name: 'Timber floor system'\n    }, {\n      name: 'Concrete floor system'\n    }, {\n      name: 'Framing'\n    }, {\n      name: 'Structural steel'\n    }, {\n      name: 'Roof cladding'\n    }, {\n      name: 'Exterior wall cladding'\n    }, {\n      name: 'Exterior windows & doors'\n    }, {\n      name: 'Internal wall framing & ceiling battens'\n    }, {\n      name: 'Plumbing, electrical & insulation'\n    }, {\n      name: 'Internal ceiling & wall linings'\n    }, {\n      name: 'Interior doors & finishings'\n    }, {\n      name: 'Painting'\n    }, {\n      name: 'Tiling - bathrooms, laundry & exterior deck'\n    }, {\n      name: 'Kitchen & laundry cabinetry'\n    }, {\n      name: 'Internal fit-off'\n    }, {\n      name: 'Floor coverings & finishings'\n    }, {\n      name: 'Landscaping'\n    }, {\n      name: 'Exterior specialty finishings'\n    }, {\n      name: 'Final touches'\n    }, {\n      name: 'General'\n    }, {\n      name: 'Insurance'\n    }, {\n      name: 'Travel'\n    }, {\n      name: 'Labour'\n    }, {\n      name: 'Scaffolding'\n    }, {\n      name: 'Sums',\n      items: [{\n        name: 'Aluminium window units'\n      }, {\n        name: 'Fireplace'\n      }, {\n        name: 'Plumbing hardware & fittings'\n      }, {\n        name: 'Toilets'\n      }, {\n        name: 'Tapware, vanities etc.'\n      }, {\n        name: 'Supply of light fittings'\n      }, {\n        name: 'Wardrobes & interior cabinetry'\n      }, {\n        name: 'Internal doors'\n      }, {\n        name: 'Tiles for bathroom & utility'\n      }, {\n        name: 'Kitchen + laundry cabinets'\n      }, {\n        name: 'Kitchen appliances'\n      }, {\n        name: 'Curtains / blinds'\n      }, {\n        name: 'Shower doors'\n      }, {\n        name: 'Mirrors'\n      }, {\n        name: 'Smoke alarm'\n      }, {\n        name: 'Toilet roll holders, towel rails'\n      }, {\n        name: 'Carpet'\n      }, {\n        name: 'Garage carpet'\n      }, {\n        name: 'Driveway'\n      }, {\n        name: 'Side fences & blockwork'\n      }, {\n        name: 'Canal landscaping (excludes planting)'\n      }, {\n        name: 'Gate(s)'\n      }, {\n        name: 'T.V aerial - assume sky dish to be installed'\n      }, {\n        name: 'Clothesline'\n      }]\n    }]\n  }];\n});","define(\"portal/utils/titleize\", [\"exports\", \"ember-cli-string-helpers/utils/titleize\"], function (_exports, _titleize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/utils/titleize\"eaimeta@70e063a35619d71f\n});","define(\"portal/utils/tree-item\", [\"exports\", \"lodash\", \"@glimmer/tracking\", \"@ember/array\"], function (_exports, _lodash, _tracking, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\",0,\"@glimmer/tracking\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TreeItem = _exports.default = (_class = class TreeItem {\n    static findItemInTree(tree, itemToFind) {\n      let match;\n      (function findItem(nodes) {\n        nodes.forEach(node => {\n          if (match) return;\n          if (node.item === itemToFind) {\n            match = node;\n          } else if (node.children) {\n            findItem(node.children);\n          }\n        });\n      })(tree);\n      return match;\n    }\n    static getPath(tree, targetBranch, labelKey = 'name') {\n      let resultPath = [];\n      function traverse(nodes, currentPath) {\n        for (const node of nodes) {\n          const label = node.item[labelKey];\n          const newPath = [...currentPath, label];\n          if (node === targetBranch || node.item === targetBranch.item) {\n            resultPath = newPath;\n            return true;\n          }\n          if (node.children && node.children.length > 0) {\n            if (traverse(node.children, newPath)) {\n              return true;\n            }\n          }\n        }\n        return false;\n      }\n      traverse(tree, []);\n      return resultPath;\n    }\n\n    // constructs a nested item tree from tasks and projects\n    static constructItemTreeFromProjectAndTasks(taskData, projectData) {\n      const projectGroupedTopLevelTasks = _lodash.default.groupBy(taskData.toArray(), task => {\n        return !task.belongsTo('parent').id() && task.belongsTo('project').id();\n      });\n      const projectItems = projectData.toArray().map(project => new TreeItem(project));\n      projectItems.forEach(container => {\n        const tasks = projectGroupedTopLevelTasks[container.item.id];\n        if (!tasks) return;\n        container.children = tasks.map(task => new TreeItem(task, 'children'));\n      });\n      return projectItems;\n    }\n\n    // constructs a nested item tree from tasks\n    static constructItemTreeFromTasks(taskData, hideInactiveTimesheetTasks, excludedTasks = []) {\n      const excludedTaskIds = new Set(excludedTasks.map(task => task.id));\n      const topTasks = taskData.toArray().filter(task => !task.belongsTo('parent').id() && !excludedTaskIds.has(task.id) && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n      const taskItems = (0, _array.A)(topTasks).sortBy('path').map(task => new TreeItem(task, 'children', hideInactiveTimesheetTasks, excludedTaskIds));\n      return taskItems;\n    }\n    constructor(item, childKey, hideInactiveTimesheetTasks, excludedItemIds = new Set()) {\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      _initializerDefineProperty(this, \"children\", _descriptor2, this);\n      this.item = item;\n      if (childKey && item[childKey]) {\n        const childrenArray = (0, _array.A)(item.hasMany(childKey).value()?.toArray());\n        this.children = childrenArray.sortBy('path').filter(child => !excludedItemIds.has(child.id) && ['ACTIVE', 'DRAFT_CREATED'].includes(child.status) && (hideInactiveTimesheetTasks ? child.timesheetStatus === 'ACTIVE' : true)).map(child => new TreeItem(child, childKey, hideInactiveTimesheetTasks, excludedItemIds)) || [];\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"portal/validators/bill-item\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildBillItemValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  function buildBillItemValidations(intl) {\n    const eitherDescriptionOrProductCode = (key, newValue, oldValue, changes, content) => {\n      const description = changes.description ?? content.description;\n      const productCode = changes.productCode ?? content.productCode;\n      if (!description && !productCode) {\n        if (key === 'description') {\n          return intl.t('validators.bill-item.Code or Description is required');\n        }\n        if (key === 'productCode') {\n          return '&nbsp;';\n        }\n      }\n      return true;\n    };\n    return {\n      description: [eitherDescriptionOrProductCode, (0, _validators.validateLength)({\n        max: 255\n      })],\n      productCode: [eitherDescriptionOrProductCode, (0, _validators.validateLength)({\n        max: 100\n      })],\n      quantity: [(0, _validators.validatePresence)(true)],\n      unitPrice: [(0, _validators.validatePresence)(true), (0, _validators.validateNumber)({\n        allowString: true,\n        gte: 0,\n        message: intl.t('validators.bill-item.Unit price cannot be negative')\n      })]\n    };\n  }\n});","define(\"portal/validators/bill\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.VALID_STATUSES = _exports.VALID_ALLOCATION_TYPES = void 0;\n  _exports.default = buildBillValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  const VALID_STATUSES = _exports.VALID_STATUSES = ['DRAFT', 'ACCEPTED', 'ARCHIVED', 'HELD', 'PAID'];\n  const VALID_ALLOCATION_TYPES = _exports.VALID_ALLOCATION_TYPES = ['MATERIALS', 'LABOUR', 'SUBCONTRACTORS'];\n  function buildBillValidations(intl) {\n    const validateDueDate = (0, _validators.validatePresence)(true);\n    return {\n      billNumber: [(0, _validators.validatePresence)(true), (0, _validators.validateLength)({\n        max: 100\n      })],\n      issuer: [(0, _validators.validatePresence)(true)],\n      issuerContact: [(0, _validators.validatePresence)({\n        presence: true,\n        message: intl.t('validators.bill.pleaseSelectAnActualContactOrCreateOne')\n      })],\n      issueDate: [(0, _validators.validatePresence)(true)],\n      dueDate: [(key, value, oldValue, changes, content) => {\n        const billType = changes?.billType ?? content?.billType;\n        return billType === 'CREDIT_NOTE' ? true : validateDueDate(key, value, oldValue, changes, content);\n      }],\n      status: [(0, _validators.validatePresence)(true), (0, _validators.validateInclusion)({\n        list: VALID_STATUSES\n      })],\n      allocationType: [(0, _validators.validatePresence)(true), (0, _validators.validateInclusion)({\n        list: VALID_ALLOCATION_TYPES\n      })]\n    };\n  }\n});","define(\"portal/validators/ips-connection\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildIpsConnectionValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  function buildIpsConnectionValidations(intl) {\n    return {\n      contactEmail: (0, _validators.validateFormat)({\n        type: 'email',\n        message: intl.t('validators.ips-connection.Please provide a valid email')\n      })\n    };\n  }\n});","define('portal/config/environment', [], function() {\n  var prefix = 'portal';\ntry {\n  var metaName = prefix + '/config/environment';\n  var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n  var config = JSON.parse(decodeURIComponent(rawConfig));\n\n  var exports = { 'default': config };\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n  return exports;\n}\ncatch(err) {\n  throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n          if (!runningTests) {\n            require(\"portal/app\")[\"default\"].create({\"appVersion\":\"2.0.1\",\"name\":\"portal\",\"version\":\"2.0.0+1042cf4e\"});\n          }\n        \n"],"mappings":"AAAA;ACAAA,OAAA,gKAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAOA,IAAAC,EAAAC,EAAAC;AAEA,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAAAD,GAAAE,OAAAC,eAAAL,EAAAC,EAAA,CAAAK,WAAAJ,EAAAI,WAAAC,aAAAL,EAAAK,aAAAC,SAAAN,EAAAM,SAAAC,MAAAP,EAAAQ,YAAAR,EAAAQ,YAAAC,KAAAR,QAAA,IACA,SAAAS,EAAAZ,EAAAE,EAAAW,GAAA,OAAAX,EACA,SAAAW,GAAA,IAAAZ,EACA,SAAAY,EAAAX,GAAA,oBAAAW,MAAA,OAAAA;AAAA,IAAAb,EAAAa,EAAAC,OAAAC;AAAA,YAAAf,EAAA,KAAAC,EAAAD,EAAAW,KAAAE,EAAAX,GAAA;AAAA,oBAAAD,EAAA,OAAAA;AAAA,UAAAe,UAAA,kEAAAd,EAAAe,OAAAC,QAAAL,EAAA,CADAM,CAAAN,EAAA;AAAA,uB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A1zB,MAAA,OACA,CACA0zB,MAAA,4BACA1zB,MAAA,OACA,CACA0zB,MAAA,qBACA1zB,MAAA,OACA,CACA0zB,MAAA,uBACA1zB,MAAA,OACA,CACA0zB,MAAA,oBACA1zB,MAAA,OACA,CACA0zB,MAAA,wBACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,4BACA1zB,MAAA,OACA,CACA0zB,MAAA,qBACA1zB,MAAA,OACA,CACA0zB,MAAA,qCACA1zB,MAAA,OACA,CACA0zB,MAAA,qBACA1zB,MAAA,OACA,CACA0zB,MAAA,uBACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,qCACA1zB,MAAA,OACA,CACA0zB,MAAA,4BACA1zB,MAAA,OACA,CACA0zB,MAAA,qBACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,yBACA1zB,MAAA,OACA,CACA0zB,MAAA,wBACA1zB,MAAA,OACA,CACA0zB,MAAA,+BACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,uBACA1zB,MAAA,OACA,CACA0zB,MAAA,+BACA1zB,MAAA,OACA,CACA0zB,MAAA,+BACA1zB,MAAA,OACA,CACA0zB,MAAA,6BACA1zB,MAAA,OACA,CACA0zB,MAAA,wBACA1zB,MAAA,OACA,CACA0zB,MAAA,wBACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,0BACA1zB,MAAA,OACA,CACA0zB,MAAA,yBACA1zB,MAAA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AAA,GACAznD,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAAtlM,KAAA2V,KAAAnX,EAAA,oDACA,CACAknM,QAAA,CACAD,aAAA,WACAlgM,UAEAu7B,OAAA,eACAioD,WAAA,EACArH,QAAA,EACA5b,MAAA,eAEAlkC,UAAA,IACA,EACAd,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAAtlM,KAAA2V,KAAAnX,EAAA,0DACA,CACAknM,QAAA,CACAD,aAAA,WACAlgM,UAEAu7B,OAAA,YACA4gD,QAAA,EACA5b,MAAA,eAEAlkC,UAAA,IACA,EACAd,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAA,IACA,CACAxkK,OAAA,OACAwkK,cAAAtlM,KAAA2V,KAAAnX,EAAA,8DACA,CACAknM,QAAA,CACAD,aAAA,WACAlgM,U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AAAxtG,EAAAutG,6BAAA;AAGAvtG,EAAAssG,4BAAA,CACAz3E,MAAA,4BACAo5E,mBAAA,EACAC,mBAAA,GAEAluG,EAAAytG,iCAAA,EACA54E,MAAA,oBACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,GACA08F,UAAA,iBACA,CACAhpE,MAAA,iBACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,GACA08F,UAAA,eACA,CACAhpE,MAAA,eACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,GACA08F,UAAA,eACA,CACAhpE,MAAA,aACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,EACA08F,UAAA,eACA,CACAhpE,MAAA,QACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,EACA08F,UAAA,qBAIA79F,EAAAqtG,wBAAA,CACAx4E,MAAA,4BACAo5E,mBAAA,EACAC,mBAAA,GAEAluG,EAAAstG,6BAAA,EACAz4E,MAAA,oBACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,GACA08F,UAAA,iBACA,CACAhpE,MAAA,iBACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,GACA08F,UAAA,eACA,CACAhpE,MAAA,eACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,GACA08F,UAAA,eACA,CACAhpE,MAAA,aACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,GACA08F,UAAA,eACA,CACAhpE,MAAA,YACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,KACA08F,UAAA,oBACA,CACAhpE,MAAA,gBACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,KACA08F,UAAA,oBACA,CACAhpE,MAAA,QACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,EACA08F,UAAA,qBAIA79F,EAAAutG,wBAAA,CACA14E,MAAA,4BACAo5E,mBAAA,EACAC,mBAAA,GAEAluG,EAAAwtG,6BAAA,EACA34E,MAAA,oBACAu5E,SAAA,EACAC,UAAA,EACAltG,MAAA,GACA08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AA,KAAA,UACA,CACAA,KAAA,wBACA,CACAA,KAAA,mBACA,CACAA,KAAA,sBACA,CACAA,KAAA,yBACA,CACAA,KAAA,yBACA,CACAA,KAAA,yBACA,CACAA,KAAA,cACA,CACAA,KAAA,gBACA2K,MAAA,EACA3K,KAAA,eAEA,CACAA,KAAA,sBACA,CACAA,KAAA,WACA,CACAA,KAAA,eACA,CACAA,KAAA,iBACA,CACAA,KAAA,qBACA,CACAA,KAAA,iBACA,CACAA,KAAA,eAEA,CACAA,KAAA,cACA,CACAA,KAAA,2BACA2K,MAAA,EACA3K,KAAA,4BACA,CACAA,KAAA,kBAEA,CACAA,KAAA,WACA2K,MAAA,EACA3K,KAAA,wBAEA,CACAA,KAAA,mBACA2K,MAAA,EACA3K,KAAA,sBAEA,CACAA,KAAA,YACA2K,MAAA,EACA3K,KAAA,WACA,CACAA,KAAA,WACA,CACAA,KAAA,UACA,CACAA,KAAA,WACA,CACAA,KAAA,QACA2K,MAAA,EACA3K,KAAA,iBAEA,CACAA,KAAA,YACA,CACAA,KAAA,WACA,CACAA,KAAA,SACA2K,MAAA,EACA3K,KAAA,oBACA,CACAA,KAAA,gCAGA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,mBACA,CACAA,KAAA,4BAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,kBACA,CACAA,KAAA,WACA,CACAA,KAAA,oBACA,CACAA,KAAA,mBAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,WACA,CACAA,KAAA,qBAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,aAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,sBAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,2BACA,CACAA,KAAA,kBAEA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,cACA,CACAA,KAAA,gBACA,CACAA,KAAA,mBAEA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,sBAEA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,gCAEA,CACAA,KAAA,sBACA2K,MAAA,EACA3K,KAAA,YACA,CACAA,KAAA,cACA,CACAA,KAAA,gCACA,CACAA,KAAA,aACA,CACAA,KAAA,gBAEA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,WACA,CACAA,KAAA,aAEA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,sBACA,CACAA,KAAA,8BACA,CACAA,KAAA,sCACA,CACAA,KAAA,kBAEA,CACAA,KAAA,WACA2K,MAAA,EACA3K,KAAA,qBACA,CACAA,KAAA,uBAEA,CACAA,KAAA,yBACA2K,MAAA,EACA3K,KAAA,mBACA,CACAA,KAAA,kBACA,CACAA,KAAA,kBACA,CACAA,KAAA,mBAEA,CACAA,KAAA,4BACA2K,MAAA,EACA3K,KAAA,eACA,CACAA,KAAA,YACA,CACAA,KAAA,YACA,CACAA,KAAA,cACA,CACAA,KAAA,YAEA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,UACA,CACAA,KAAA,2DACA2K,MAAA,EACA3K,KAAA,mBAGA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,wBACA2K,MAAA,EACA3K,KAAA,YACA,CACAA,KAAA,eAEA,CACAA,KAAA,OACA2K,MAAA,EACA3K,KAAA,gBACA,CACAA,KAAA,aAEA,CACAA,KAAA,cACA2K,MAAA,EACA3K,KAAA,gBACA,CACAA,KAAA,iBAEA,CACAA,KAAA,gBACA2K,MAAA,EACA3K,KAAA,oBAGA,CACAA,KAAA,kBACA,CACAA,KAAA,QACA,CACAA,KAAA,gBAEA,CACAA,KAAA,kBACA2K,MAAA,EACA3K,KAAA,gBACA2K,MAAA,EACA3K,KAAA,yBACA2K,MAAA,EACA3K,KAAA,mBACA,CACAA,KAAA,sBACA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,kBACA,CACAA,KAAA,oBACA,CACAA,KAAA,4BAEA,CACAA,KAAA,eACA,CACAA,KAAA,kBACA2K,MAAA,EACA3K,KAAA,cAEA,CACAA,KAAA,cACA,CACAA,KAAA,aACA,CACAA,KAAA,eACA,CACAA,KAAA,aACA,CACAA,KAAA,qBACA,CACAA,KAAA,gBACA,CACAA,KAAA,gBACA,CACAA,KAAA,kBACA,CACAA,KAAA,eAEA,CACAA,KAAA,wBACA,CACAA,KAAA,mCAEA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,eACA,CACAA,KAAA,qBAEA,CACAA,KAAA,kBACA2K,MAAA,EACA3K,KAAA,gBACA,CACAA,KAAA,kBAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,QACA,CACAA,KAAA,UACA,CACAA,KAAA,eAEA,CACAA,KAAA,YACA2K,MAAA,EACA3K,KAAA,SACA,CACAA,KAAA,WACA,CACAA,KAAA,kCAEA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,cAEA,CACAA,KAAA,mBACA2K,MAAA,EACA3K,KAAA,oBACA,CACAA,KAAA,aACA,CACAA,KAAA,eACA,CACAA,KAAA,QACA2K,MAAA,EACA3K,KAAA,kBACA,CACAA,KAAA,WACA,CACAA,KAAA,YACA,CACAA,KAAA,WACA,CACAA,KAAA,eACA,CACAA,KAAA,UACA,CACAA,KAAA,cAGA,CACAA,KAAA,qBACA2K,MAAA,EACA3K,KAAA,oBACA2K,MAAA,EACA3K,KAAA,SACA,CACAA,KAAA,aAEA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,SACA,CACAA,KAAA,WACA,CACAA,KAAA,WAEA,CACAA,KAAA,uBAEA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,YACA,CACAA,KAAA,YACA,CACAA,KAAA,cACA,CACAA,KAAA,WACA2K,MAAA,EACA3K,KAAA,UACA,CACAA,KAAA,cAGA,CACAA,KAAA,QACA,CACAA,KAAA,gBAEA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,2BACA,CACAA,KAAA,8BACA,CACAA,KAAA,eAC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