{"version":3,"file":"ui-a1b831d0c18a9e716a4de70fa935594c.js","names":["define","_exports","_jsonApi","Object","defineProperty","value","enumerable","get","default","_application","extend","_globalConfig","_string","_service","session","inject","mimeType","coalesceFindRequests","handleResponse","status","headers","payload","requestData","this","invalidateOnResponseStatus","_super","createRecord","store","type","snapshot","data","serializer","serializerFor","modelName","url","buildURL","serializeIntoHash","includeId","adapterOptions","_addRequestParams","ajax","findAll","sinceToken","snapshotRecordArray","query","buildQuery","since","findRecord","id","options","params","option","optionName","underscore","push","join","namespace","updateRecord","activate","_emberInflector","_rest","pathForType","underscored","pluralize","_forms","_object","request","set","arguments","_emberResolver","_emberLoadInitializers","_environment","_defineProperty","e","r","t","i","Symbol","toPrimitive","call","TypeError","String","Number","_toPrimitive","_toPropertyKey","configurable","writable","App","constructor","args","super","modulePrefix","podModulePrefix","_oauth2PasswordGrant","_responseFormat","flipper","serverTokenEndpoint","computed","tenant","separator","includes","encodeURIComponent","appendTenantQuery","DS","host","authenticate","then","_getCurrentUserAndPermissionsCallback","restore","invalidate","Honeybadger","setContext","user_id","notify","userId","unauthenticate","catch","authData","skipNormailzingResponse","Authorization","access_token","Accept","response","includedRole","included","find","includedBrand","pushPayload","currentBrand","normalizeResponse","attributes","currentBrandData","current_brand","permissions","permitted","currentUser","peekRecord","prop","hasOwnProperty","cc_client","sftp_address","default_agency_policy_exemption_amount","multiple_brands","multiple_territories","non_pf_loans","method_to_select_brand_for_quotes","use_presort","setIsMimicking","local","setLocal","console","log","enabled_features","enabledFeatures","undefined","setEnabledFeatures","_densityCommand","_transforms","_cents","Command","attr","toId","toInt","name","accountId","fundingIds","fundCommissionsSeparately","downPaymentToCollect","toCents","installmentsToCollectAtActivation","updatePolicyCommissions","contractId","agencyId","territoryId","quoteId","amount","typeOfCharge","_dateWithoutTime","toBool","effectiveDate","dateWithoutTime","expirationDate","additionalDaysToCancel","shortRate","filings","auditable","minEarnedPercentage","taxes","brokerFee","policyFee","allOtherFees","number","premium","mga","additionalMga","carrier","coverageType","adjustedFeeId","comment","callId","compensationPaymentRecipientId","toFloat","coverageTypeId","mgaId","additionalMgaId","carrierId","sendNoticeToStateAuthority","insuredId","stateLawsSetId","defermentIds","paymethodId","policyId","_rsvp","_toHuman","_lodash","Changeset","errors","create","watch","attrName","addObserver","resetErrors","Attr","isAttr","save","changeset","proxy","merge","forEach","serializeFunction","sendCommand","resourcesToUpdate","rollback","all","map","resourceToUpdate","normalizedModelName","dasherize","getOwner","factoryFor","attributeName","message","toHuman","statuses","indexOf","Error","reset","errorName","init","attributesList","pushObject","workingBatchPaymentId","emailAddress","details","primaryAmount","feeAmount","purpose","ids","noticePurposes","deliveryMethod","paymentType","paymentPurpose","initialCheckNumber","brandName","fundingSourceId","methodReceived","checkOrReferenceNumber","nameOnPayment","payingPartyType","installmentId","reinstate","recipientType","recipientId","paymentGettingRefundedId","noticeId","updateNotice","overrideEmailTo","paymentToReverseId","sendNsfCheck","rebateId","refundToReverseId","writeoffId","agencyEmail","insuredEmail","additionalCancellationGracePeriod","offerorId","callRecipientGroupId","fundingId","approved","refundId","usingEqualPayments","suspended","transferToAccountId","paymentGettingTransferredId","_getModelId","dateToString","_isEmpty","val","dollars","parseInt","parseFloat","toFixed","num","str","modelObj","date","toDate","toString","earliestDate","fundingPaymentRecipientId","adjustmentAmount","paymentsRequiredBeforeFundable","adjustedDownMethod","paymentsToReverseIds","postDifferenceAsPayment","fundingVerificationOptionId","newStatus","sendReinstatementRequest","paymentCancelPreference","create_notices","manual_cancellation_date","cancellation_reason","compensationTableId","brandId","percent","compensationRateId","billingMethod","commission","requireEsign","agencyEsignEmail","fundingPaymentRecipient","newDueDate","newLateFeeDate","lateFeeDisabled","taxId","ssn","modelType","modelId","currentUserId","currentPassword","password","passwordConfirmation","paymentFrequency","verificationOptionId","verificationOptionName","apr","totalInterest","installmentCount","downPayment","downPaymentPercentage","firstDueDate","interestAccrualBegins","fundingsFundingSourceId","refundsFundingSourceId","compensationsFundingSourceId","rebateMethodOverride","retainedPayments","minEquityRequired","minDaysToFirstDue","maxDownPayment","outgoingPaymentId","_emberComponentManager","_component","DynamicElementAlt","DynamicElement","_runloop","getAccountStatusOptions","error","isCollapsed","normalPaymentAmount","currentAmountDue","totalPaymentAmount","policyNumber","totalFundingAmount","fundingCheckNumber","statusOptions","async","clientConstants","_validateNumericField","fieldName","numericValue","isNaN","_validateFilters","field","Date","parse","actions","toggleCollapse","applyFilters","validationErrors","length","statusValue","code","filters","accounts","policies","fundings","totalAmount","checkNumber","onApplyFilters","_debouncedApplyFilters","debounce","bind","autoApplyFilters","observer","_asyncArrowRuntime","_tracking","_emberConcurrency","_fundingCalculation","_dec","_class","_descriptor","_descriptor2","_descriptor3","_initializerDefineProperty","l","initializer","_applyDecoratedDescriptor","n","a","keys","slice","reverse","reduce","lastValue","buildTask","context","generator","getFundingAdjustmentDetails","funding","fundingDetails","calculateValues","onOpenDidUpdate","managingFundingAdjustment","loadFundingDetails","perform","newAdjustmentAmount","command","originalAdjustmentAmount","payments","priorDpDue","dpDue","result","calculateFundingAdjustmentValues","diff","selectedPaymentsTotal","paymentsAppliedAmt","changeInDpDue","selectedPayments","filter","p","selected","priorTotalDownPaymentDue","dpPaid","priorRemainingBalance","paymentsTotal","sum","selectPaymentToRefund","payment","setPostDifferenceAsPayment","saveFundingWithAdjustmentDetails","mapBy","alert","success","cancelFundingWithAdjustmentDetails","prototype","action","getOwnPropertyDescriptor","_emberChangeset","compensationPaymentMethodComponentName","compensationPaymentMethodModel","detailType","model","capitalize","newModel","compensationPaymentMethodChangeset","updateDetail","agency","oldTypes","execute","detail","oldType","cancelDetail","rollbackAttributes","fundingPaymentMethodComponentName","fundingPaymentMethodModel","fundingPaymentMethodChangeset","_qrcode","_dec2","_descriptor4","_descriptor5","headline","phase","login","user","loginProcessing","username","multifactorCode","responseJSON","qrcode","scheduleOnce","requiresMultifactorCode","requiresMultifactorAuth","updateField","qrcodeUrl","canvas","document","getElementById","toCanvas","resetLogin","email","tracked","task","_basicDropdownContent","_basicDropdownTrigger","_basicDropdown","_dBox","_permissions","giveAccountInfo","dataTest","dataTestAttributeBinding","compensate","compensateRecipientWithOverpayment","preferedCompensationPaymentRecipient","incomingPayment","reversePayment","classNames","hidden","hideOnClick","click","toggleProperty","_testableElement","classNameBindings","slim","_dBox2","layout","commands","includeDraft","isEnabled","recipient","paidFors","any","f","approveSelected","required","approvable","toggleApproved","tagName","_paperButton","_dButton","raised","primary","_dTableRowButton","dataTestId","_computed","attributeBindings","disabled","empty","_dButton2","_jspdf","_html2canvas","_jspdfAutotable","fileName","doc","pageWidth","internal","pageSize","getWidth","headerElement","style","display","headerCanvas","timeout","addImage","clientHeight","tableElement","autoTable","startY","html","useCss","didDrawPage","getNumberOfPages","putTotalPages","setFontSize","text","settings","margin","left","getHeight","targetUrl","downloadFile","_auto","Math","random","createChart","datasets","config","maintainAspectRatio","padding","labels","row","ds","label","backgroundColor","colors","canvasId","currency","Intl","NumberFormat","monthName","DateTimeFormat","month","year","axisMonth","monthDate","monthNumber","split","balances","description","format","principal_balance","chartData","color","getComputedStyle","parentElement","font","family","fontFamily","size","chart","getPropertyValue","trim","responsive","animation","interaction","mode","intersect","plugins","legend","tooltip","titleFont","weight","bodyFont","callbacks","title","items","dataIndex","item","raw","scales","x","ticks","grid","y","beginAtZero","callback","updateChart","update","willDestroy","destroy","showingCheckNotices","showingAchNotices","showingWireNotices","noticeCounts","counts","filteredCompensations","comp","payChecks","payCompensations","payAchs","payWires","refreshModel","checksToPay","c","checksToPayCount","noChecksToPay","achsToPay","achsToPayCount","noAchsToPay","wireToPay","wiresToPayCount","noWiresToPay","_formatDate","_formatCurrency","_formatPercentage","observers","baseObservers","pushObjects","base","addBothGroups","contract","quote","contractGroups","buildGroups","quoteGroups","differences","group","isDifferent","values","compareValues","groups","formatCurrency","formatPercentage","formatDate","compareValuesFundings","valuesFundings","compareFunding","sortBy","index","compareValuesPolicies","valuesPolicies","comparePolicy","policy","navigator","clipboard","writeText","justCopied","setTimeout","_creditCard","_linkComponent","onClick","didTransition","alt","brand","src","transition","scaleBand","scaleLinear","select","axisBottom","axisLeft","max","min","extent","window","d3","transitionDuration","top","right","bottom","width","height","getXScale","minDate","maxDate","domain","range","getYScale","minApr","maxApr","getXAxis","xScale","scale","getYAxis","yScale","append","draw","xAxis","yAxis","_transition","duration","minY","translate","div","selectAll","enter","d","bandwidth","on","event","pageX","pageY","returnFill","updateDrawing","handleResize","bb","elementId","getBoundingClientRect","didInsertElement","hasDrawnInitially","watchData","graphData","scaleOrdinal","stack","termLimits","optimalTerms","compensationRates","titles","rangeRound","maxBarHeight","zScale","rate","makeKey","tickFormat","resizeObserver","ResizeObserver","observe","element","willDestroyElement","disconnect","remove","isDestroying","isDestroyed","svg","elementWidth","elementHeight","stackData","entries","bar","key","legendData","setProperties","sortedOptimalTerms","terms","compRates","sorted","findBy","filterBy","watchOptimalTerms","term","asDollars","rates","newRates","_emberAceCompletionTooltip","_emberAce","_insuredStandingTooltip","router","insuredStandingIcon","entityType","standing","no_accounts","insured_and_accounts_in_good_standing","insuredStandingTooltip","reasons","buildInsuredStandingTooltip","visitInsuredHistory","transitionTo","entity","preventDefault","stopPropagation","parsedDocument","agencySignature","insuredSignature","workingDocument","signatory","isAgency","signature","isInsured","replace","exampleNoticeValue","updateExampleNoticeValue","exampleNoticeValueName","_fileDropzone","_baseForm","redirect","createModel","destroyRecord","onSuccess","onError","send","_model","created","identifier","availableAttributes","errorsPresent","address_1Info","infos","checkForPOBox","test","address_1","address_2Info","address_2","updateAddressFromQuickStart","gmapValues","valueName","_refundPayableTo","constant","paymentMethods","method","refundPayableToSelection","getRefundPayableSelection","refundPayableTo","payableToInsuredAndAgency","submit","afterSave","updateRefundPayableTo","refundPayableSelection","normalizeRefundPayableSelection","contactInfo","contactInformation","isNode","updateAddressFromQuickStartMailingAddress","updateMailingAddressEqualsPhysicalAddress","newValue","mailingAddress","updateYieldBasedPricing","updateOptimized","_paperForm","SECTION_FIELDS","defaultId","costOfFundsTableIds","costOfFundsTableNames","refunds","compensations","fundingSources","costOfFundsTables","sections","sectionKey","sectionDetails","fieldNames","selectedIds","selectedIdsFor","defaultFundingSourceId","normalizedId","valueFor","costOfFundsTableIdsFor","costOfFundsTableNamesFor","selectedFundingSources","fundingSourceForSection","Boolean","isDivided","fundingSource","isDefault","costOfFundsTable","costOfFundsTableFor","costOfFundsTableId","costOfFundsTableName","canRemove","showCostOfFundsTable","selectedErrors","errorsFor","defaultErrors","costOfFundsTableErrors","normalizeIds","Array","isArray","candidateKeys","normalizeIdMap","normalized","normalizedKey","normalizedValue","formModel","localValues","updateValue","findFundingSourceById","serializeFundingSource","assignmentFundingSource","findFallbackFundingSource","findCostOfFundsTableById","defaultCostOfFundsTable","fallbackCostOfFundsTable","objectValue","object","canRemoveFundingSource","addFundingSource","currentIds","nextIds","concat","removeFundingSource","setDefaultFundingSource","setCostOfFundsTable","buyRateTable","add","rangeStart","calculateNextRangeStart","buyRateTableRecords","isExpanded","lastObject","rangeEnd","isEditing","initialIsEditing","startEditing","onSave","confirmSave","saved","onCancel","cancel","canceled","hasEditableFields","onCancelNew","deleteModel","delete","isEditable","isBlock","showModal","hasAccess","findObfuscatedValue","promise","linkTo","linkParam","hasPermission","compensationTable","charge","compensationTableRecords","clauses","criteria","resource","condition","conditionName","requirement","selectCondition","criterion","comparison","focusAgency","focusInsured","hasAgency","selectedAgency","selectedAgencyId","selectedInsured","setNewInsured","insured","setAgency","input","querySelector","focus","transitionToNewInsured","acknowledgementPopUp","onInsuredChange","_mgaSelection","_descriptor6","_descriptor7","_descriptor8","_descriptor9","_descriptor10","_descriptor11","_descriptor12","_descriptor13","_descriptor14","_descriptor15","_descriptor16","_descriptor17","_descriptor18","_descriptor19","_descriptor20","_descriptor21","_descriptor22","_descriptor23","resetIfNewQuote","isNew","quoteChanged","previousQuoteId","editingPolicy","creatingNewInsured","insuredForm","clearPolicyForm","getRelatedModelId","hasInsured","hasMultipleAgencies","showInsuredSelection","showPolicySection","availableDeliveryMethods","setInsured","focusField","createNewInsured","forms","cancelCreateInsured","clearPolicyErrors","hasErrors","newPolicyNumber","policyErrors","newPolicyPremium","newPolicyCarrier","newPolicyCoverageType","newPolicyEffectiveDate","newPolicyExpirationDate","account","newPolicyAllOtherFees","newPolicyTaxes","newPolicyAdditionalDaysToCancel","newPolicyShortRate","newPolicyMinEarnedPercentage","setRelatedModel","newPolicyMga","newPolicyAdditionalMga","responseObjects","obj","onQuoteSaved","editPolicy","setAdditionalMga","mgaFilter","excludeSelectedMga","additionalMgaFilter","cancelEditPolicy","onPolicyUpdated","chooseEffectiveDate","yearsToAdd","nonPfLoans","setFullYear","getFullYear","chooseExpirationDate","toggleShortRate","toggleFilings","toggleAuditable","withoutCreate","recreateModel","internalOnCancel","internalOnCreate","onCreate","newFundingSource","selectionFilter","_mailing_address","_densityForm","formNode","assignedAgency","chosenAgency","newAgency","chosenDeliveryMethod","preferredNoticeDeliveryMethod","commercial","sortedRates","others","setupFee","buyRateInterest","updateRate","cancelRate","updateQuote","cancelQuote","fundingDetailType","reload","resetForm","canAddMessage","canAddTask","deleteRecord","messageAttributes","recursiveUnderscoreKeys","taskAttributes","completeOn","dateObj","getMonth","padStart","day","getDate","systemCommentPath","note","switchCategory","category","immediate","toggleMessageImmdeiately","tomorrow","setDate","assignTaskToUser","addUserToMessage","updateOptimalTerms","updateOptions","paymentMethodComponentName","paymentDetail","relationParam","parentModelName","parentModel","internalIsEditable","paymentMethodModel","updatePaymentType","deferrablePaymentTypes","getMethodReceivedOptions","getPaymentTypeOptions","getPartiallyPaidInstallments","updateNextUnpaidInstallment","methodReceivedOptions","methods","allowedMethods","paymentTypeCanReinstate","defaultRequestReinstatePreference","isCanceled","manyPaymentsRemaining","significantlyPaidOff","paymentSchedule","currAmtDue","numberOfPaysRemaining","unpaidInstallments","amountToCreditFirstInstallment","installment","isDue","total","receivables","remainingAmount","amountPaid","amountDue","remainingBalance","createPaidInstallmentsObject","canDefer","paidInstallments","lastDueDateWithPayment","dueDate","defaultToCountAsPaid","partiallyPaidInstallments","paymentTypeOptionsAll","lastInstallmentBeingPaid","portionOfLastInstallmentPaid","setCountAsPaid","selectPurpose","updatePaymentAmount","mustChoosePolicy","requiresPolicy","balanceCanBeDeferred","selectPolicy","toggleCountAsPaid","resetModel","newPayment","confirmAndSave","confirmedNewPolicy","expirationDateUpdated","setValuesFromPolicy","expDate","confirmNewPolicy","confirmed","newDate","moment","cancelEditing","_addForm","manualResetErrors","clear","yieldRateTable","yieldRateTableRecords","filteredFundings","paidAt","payFundings","_gridStackItem","_gridStack","messenger","filteredMessages","messages","now","m","deliverAt","requiresAck","acknowledgedAt","updateMessages","for_header","__skip_loading_indicator","err","registerAlerts","body","addEventListener","popup","button","contains","target","unregisterAlerts","removeEventListener","acknowledge","communicationStream","cannotCall","isOpen","callRecipientGroups","register","offeror_id","offeror","incomingCalls","call_id","ignoreCall","callEnded","endCurrentCall","offer","teardownStream","chosenGroup","inAppCallsEnabled","makeCall","cancelCall","leaveCall","chooseGroup","run","next","localVideo","getElementsByClassName","remoteVideo","startCall","answerCall","incoming","answered","answererId","isAcceptPayment","showAlerts","resetSearch","invalidateSession","_flagEmoji","isReminderTextsModalOpen","phoneNumber","receiveReminderTexts","successReminderTextMessage","insuredUserOrViewInsuredSection","viewInsuredSection","currentUserLanguageSettingWithFlagHTML","htmlSafe","flagEmoji","currentUserLanguageSetting","isMimicking","languageSetting","languageOptions","simplifiedQuoteView","canSignUpForReminderTexts","toggleSimplifiedQuoteView","currentRoute","currentRouteName","isOnQuotesShow","startsWith","shouldRedirect","pathMatch","location","pathname","match","changeCurrentUserLanguageSetting","English","submission","consentGiven","consent_given","phone_number","closeReminderTextsModal","confirmReminderTextConsent","post","reminder_text_consent_submission","cancelCurrentUserLanguageSetting","setDropdownObject","dropdown","removeDropdownObject","closeHeaderCurrentUser","close","endMimic","mimicCreds","endMimicUser","_legacyBuiltInComponents","TextField","placeholder","didUpdateAttrs","keyUp","keyCode","keyDown","results","isShowingNoResults","isShowingResults","and","search","setResultsForAutocomplete","topNavSearch","allOptions","setSelection","restartable","resourceName","resetInput","handleUp","nextResult","objectAt","handleDown","handleReturn","handleEscape","calculatePosition","trigger","internalKeyUp","which","_navsByGroup","closeHeaderSettings","canViewSearchBar","frameborder","zoom","contentWindow","writeDocumentContent","open","write","content","applyDocumentZoom","documentElement","resetDocumentContent","updateDocumentZoom","_baseInput","setup","without","w","toUpperCase","reject","initiallyIncludeAll","o","internalOptions","currentList","updateOption","onChange","_paperCheckbox","_dCheckbox","flex","block","isInvalid","alias","_dNumberInput","getElementsByTagName","setAttribute","internalOnChange","formatValue","valueDate","hours","getHours","minutes","getMinutes","valueString","updateDatetime","file","state","urlPath","file_name","resource_name","resourceId","resource_id","_","baseHeaders","loadingStart","upload","json","loadingEnd","didUpload","recursiveCamelizeKeys","responseJson","_numeral","_dTextInput","info","suggestedMin","suggestedMax","handleInput","inputEvent","original_val","allowNegative","_utils","prefix","suffix","precision","allowZero","isFocused","hasValue","isPresent","inputClasses","syncCachedValue","_formatPhone","internalValue","formatPhone","nativeInputSize","renderInPlace","verticalPosition","excludeTime","internalHandleSelection","dd","handleSelection","internalOnClose","onClose","setHours","toLocaleDateString","suggestedMonthRange","today","maxFutureDate","setMonth","minPastDate","updateManualValue","manualValue","manValue","dateFromString","manualValueOrEmptyStr","manVal","openCalendar","searchString","searchEnabled","allowClear","searchQuery","accountForPayment","getNormalPaymentAmount","searchField","clearUncommittedSelection","commitExactMatchOnClose","commitFirstOptionOnTab","requireCommittedSelectionState","setInternalValue","_hasCommittedSelection","selectedDisplayValue","_committedDisplayValue","resources","addClauseToResources","clause","withPermissions","contextResourceName","contextResourceId","with_permissions","context_resource_name","context_resource_id","agency_id","autocomplete","skipModel","internalOnKeydown","_isTabEvent","_optionToCommitOnTab","stopImmediatePropagation","_optionLabel","searchText","_normalizedSearchText","pendingCommittedOption","_clearSearchText","_committedSelectionWasCleared","_valueLabel","exactOption","_findExactMatch","optionId","record","internalLabel","normalizedSearchText","toLowerCase","matchingOptions","_selectSelectionWasCleared","_selectableOption","highlighted","_firstSelectableOption","childOption","selectableOption","_dSelect","_dSelect2","loadingMessage","isMoment","_paperInput","onclick","showFields","initAutocomplete","google","maps","places","Autocomplete","types","pullValuesFromPlace","place","adr_address","components","addressComponents","address_components","addressHtml","geometry","latitude","lat","longitude","lng","placeId","place_id","component","long_name","isUS","country","county","administrative_area_level_2","administrative_area_level_1","city","locality","street_number","route","formattedAddress","formatted_address","zipcode","postal_code","postal_code_suffix","topRow","bottomRow","sublocality_level_1","addListener","getPlace","prenormalized","findNewPlaces","script","handleSave","handleCancel","_maybeInElement","_templateFactory","_templateOnly","__COLOCATED_TEMPLATE__","createTemplateFactory","moduleName","isStrictMode","setComponentTemplate","isShowing","canProvideBrand","internalSaveAdjustment","saveAdjustment","internalCancelAdjustment","cancelAdjustment","attachNoteTo","attachedModelName","noteParams","createNote","inernalDidConfirm","didConfirm","internalDidCancel","confirmButtonLabel","didConfirmFunc","didDelete","internalCreate","didSave","closeModal","_dec3","_dec4","_dec5","_dec6","hasEntityAchPermission","createAndUseAchPaymentMethodsForInsureds","createAndUseAchPaymentMethodsForAgencies","onlineAchPaymentsPermitted","makeOnlinePaymentsOnClosedAndFlatCancelledAccounts","isInactive","onlineAchPayments","hasEntityCcPermission","createAndUseCcPaymentMethodsForInsureds","createAndUseCcPaymentMethodsForAgencies","onlineCcPaymentsPermitted","allowCreditCardPayments","ccClient","creditCardMerchantId","canPayOnline","requiresCertifiedFunds","makeOnlinePayments","startPaymentTableList","list","intl","cancelPayment","stopRecurringPayments","choosePaymentType","chosenType","onPaymethodSelected","wasSelected","sortedNotes","notes","selectNewNote","selectedNote","currentStatus","_emberString","noticeTable","table","camelize","cell","available","recipients","possibleRecipients","lessThanTwoRecipients","count","recipientsToAdd","recipientsNames","canEditRecipients","deliverForType","can","startAddingRecipient","cancelAddingRecipient","saveAddingRecipient","newRecipientAttrs","delivery_method","deliver_for_type","deliver_for_id","deliverForId","recipient_type","selectedRecipient","modelIdField","createIntendedNoticeRecipient","deleteRecipient","deleteIntendedNoticeRecipient","removeObject","faxAvailable","_oneWayCreditCardMask","_oneWayCurrencyMask","_oneWayDateMask","_oneWayEmailMask","_oneWayInputMask","_oneWayNumberMask","_oneWayPhoneMask","_oneWaySsnMask","_oneWayZipCodeMask","_defaultOnlinePaymentAmount","_dec7","_dec8","owner","selectedIntention","paymentAmountToDue","insured_id","payment_type","toArray","oneTimePaymentReturnPremiumCanceled","statusCode","payTowardsBalance","oneTimePaymentFee","centsFromPercent","recurringFee","stateDetailsRecurringAchFeePercent","stateDetailsRecurringAchFeeDollars","canAssociateAgencyAndInsured","canPostOnlinePaymentsAsReturnPremiums","canSetRecurring","hasRecurringPaymethod","submitButtonDisabled","chosenPaymethod","typeOfOneTimePayment","oneTimePaymentReturnPremiumPurpose","selectedPolicy","insuredFirstName","insuredLastName","newPaymethod","deletePaymethod","paymethod","allPaymethods","addAch","provider","cancelNewAch","saveNewAch","mustChooseEntity","chosenEntity","resetPayTowardsBalance","makeOneTimePayment","selectAsRecurringPaymentMethod","isDeleted","stopShowingSuccessDialog","setTypeOfOneTimePayment","stateDetailsCreditCardFeePercent","stateDetailsCreditCardFeeDollars","insuredName","getElavonOneTimeTokenForRecurring","account_id","paymentFields","ssl_txn_auth_token","token","triggerConfirmModal","onCancelled","onDeclined","onApproval","saveNewPaymethod","PayWithConverge","openExpressPayTab","xpressPay","pk","seppay","URL","searchParams","href","insurePayPayload","primary_amount","fee_amount","resetInsuredFirstName","resetInsuredLastName","startPayingOneTimeCc","addCc","givenAssociatedChoice","associatedChoice","choosePaymethod","payWithoutSavingCreditCard","first_name","last_name","redirectToXpressPay","redirectToInsurePay","paymentUrl","payment_url","finally","pageLength","pagination","nextPage","isLastPage","previousPage","isFirstPage","pageNumber","numberOfPages","ceil","_index","_paperBackdrop","_paperCardActions","_paperCardAvatar","_paperCardContent","_paperCardHeaderHeadline","_paperCardHeaderSubhead","_paperCardHeaderText","_paperCardHeaderTitle","_paperCardHeader","_paperCardIconActions","_paperCardImage","_paperCardMedia","_paperCardTitleMedia","_paperCardTitleText","_paperCardTitle","_paperCard","_paperDialogActions","_paperDialogContainer","_paperDialogContent","_paperDialogInner","_paperDialog","_paperGridList","_paperGridTileFooter","_paperGridTile","_paperIcon","_paperInkBar","isInvalidAndTouched","_paperItem","_paperList","_paperProgressCircular","_paperProgressLinear","_paperRadioGroupLabel","_paperRadioGroup","_paperRadioProxiable","_paperRadio","_paperResetButton","_paperSidenavContainer","_paperSidenavInner","_paperSidenavToggle","_paperSidenav","_paperSpeedDialActionsAction","_paperSpeedDialActions","_paperSpeedDialTrigger","_paperSpeedDial","_paperSubheader","_paperSwitch","_paperTab","_paperTabs","_paperToastInner","_paperToastText","_paperToast","_paperToaster","_paperToolbarTools","_paperToolbar","_paperTooltipInner","_paperTooltip","_listTable","PfaExampleDataFieldsComponent","fields","parentPath","buildArrayItem","isObject","rubyKey","rubyHashKey","keyPath","displayValue","buildField","buildFields","path","basePath","_powerCalendarMultiple","_days","_powerCalendarRange","_powerCalendar","_nav","_powerSelectMultiple","_trigger","_powerSelect","_beforeOptions","_noMatchesMessage","_options","_placeholder","_powerSelectGroup","_searchMessage","equityConfig","equity","borderWidth","destroyChart","formatAxisProbability","formatProbability","histogramConfig","histogramData","CHART_FONT_FAMILY","probabilities","lateFeeCount","probability","isFinite","sort","leftCount","rightCount","averageLinePlugin","DISTRIBUTION_DESCRIPTION","distributionConfig","distributionPoints","formatDistributionValue","valueFormat","statistics","distribution","point","relative_likelihood","leftValue","rightValue","afterDatasetsDraw","_args","average","getPixelForValue","ctx","chartArea","strokeStyle","lineWidth","setLineDash","beginPath","moveTo","lineTo","stroke","labelWidth","measureText","labelPadding","labelLeft","labelTop","fillStyle","fillRect","textAlign","textBaseline","fillText","labelHeight","averageValue","explicitAverage","mean","points","xValues","xMinimum","xMaximum","parsing","borderColor","pointRadius","tension","fill","events","enabled","quoteAnalysisAverageLine","newAprIsMore","newAprComparison","newApr","getNewApr","fundingDelayCalculation","updateNewApr","proposedEarliestDate","scriptsLoaded","injectedScripts","loadAndInjectScripts","removeAllScripts","tenantSubdomain","tenants","subdomain","tenantId","tenant_id","injectScript","scriptModel","scriptContent","container","createElement","innerHTML","querySelectorAll","s","newScript","textContent","head","appendChild","parentNode","removeChild","startNewPayment","accountOption","createPayment","cancelNewPayment","savePayment","didSavePayment","saveEditedPayment","cancelEditedPayment","finalize","paymentAmounts","GENERIC_NEW_QUOTE_ROUTE","GENERIC_NEW_QUOTE_MODEL","GENERIC_NEW_QUOTE_QUERY_PARAMS","genericNewQuoteHref","urlFor","queryParams","transitionToGenericNewQuote","quote_start_token","icon","matchingRoutes","links","isGenericNewQuote","pathParam","positionUp","reports","activations","entitiesGroup","navGroups","customerLink","link","setActiveNavGroup","pop","navGroup","matchingRoute","isProhibitedByFeature","isProhibitedByPermissions","isProhibitedByTerritory","features","relevantFeatures","compact","belongsTo","relavantPermissions","onClickItem","selectedItem","deliverWording","toggleIsAlert","completeTask","filteredNotes","Ember","A","canAddNote","saveNewNote","newNote","refreshTasksList","cancelNewNote","AccountHistoryTableRowComponent","AccountHistoryTable","groupName","accounting","accountDetails","rawAccounting","sortedContracts","sortByDate","contracts","sortedContactsExcludingPrimary","sumOfAmountFinanced","primaryContractAmountFinanced","sumOfInterest","primaryContractTotalInterest","additionalPremiumEndorsementsTotalFinanced","originalSetupFee","setupFeeFromPrimaryContract","sumOfPayments","sortedContractsExcludingPrimaryAndLoanAdjustments","accum","listOfAmountsFinanced","debitEndorsements","interestChargesPerContract","debitEndorsementsServiceCharges","sumOfServiceCharges","allRefunds","netRefunds","sumAllRefunds","allWriteOffs","netWriteOffs","sumAllWriteOffs","sumOfRebates","sumOfInterestRebates","feesCharged","totalFeesDueExcludingSetupFee","feeTotal","sumOfFeesDueExcludingSetupFee","sumFeesDueExcludingSetupFee","sortedLoanAdjustmentDateAndInterest","creditEndorsementsServiceCharges","sumOfLoanAdjustmentInterestCharges","sumOfCreditEndorsementsServiceCharges","interestChargesFromLoanAdjustments","totalOfInterestCharges","interestSchedule","schedule","originalAmount","abs","paymentsMade","regularPaysMade","paymentTotal","sumOfRegularPays","totalOfPaymentTypesMade","paymentTypesMadeByInsureds","returnPremiumsRecevied","sumOfReturnPremiums","returnPremiumPaymentTypes","creditEndorsements","sumOfCreditEndorsements","loanAdjustments","totalAccountInterest","toDollars","totalPaidTowardsInterest","remainingBalanceDue","totalBalanceDue","round","rebates","rebate","reversedById","paymentTypes","activationDate","accountCreatedAt","createdAt","transactions","transaction","transactionCreatedAt","isPrimary","otherContracts","listOfInterestCharges","getInterestChargesByContract","sumOfInterestChargesPerContract","interestCharge","timestamp","interestChargeTimestamps","Set","fees","fee","feeType","sumOfFeesCharged","sumOfRefundsCreated","refund","sumOfRefundsReversed","refundReversals","refundsAdded","writeOff","refundsReversed","unsortedCombinedrefunds","sumOfWriteOffsCreated","writeoffs","sumOfWriteOffsReversed","writeoffReversals","writeOffsAdded","writeOffsReversed","unsortedCombinedWriteOffs","loanAdjustmentCreationTimestamps","loanAdjustment","loanAdjustmentDateAndInterest","unformattedDate","array","dateKey","b","dateA","dateB","getTime","timestampsOfEndorsements","timestampIsNearOneInASet","testTimestamp","setOfTimestamps","testDate","from","some","timestampDate","deltaInMinutes","AccountPrintableHeaderTable","accountNumber","agencyName","todaysDate","accountStatus","accountStatusCode","dateClosed","currentStatusCreatedAt","brandLogo","brandInfo","address1","brandContactInformation","address2","zip","phone","possibleCompensateds","relationshipSnapshots","Map","compensation","compensated","updateCompensated","requiredCompensation","compensationPaymentRecipient","compOnChange","saveRequiredCompensation","hasSetupFee","hasLateFee","hasOtherFees","balanceHistory","rows","filteredRows","rowType","rowTypeFor","includePaymentSchedule","includeInterestSchedule","summaryRow","hasData","syncBalanceHistory","lastRequestedAccountId","loadBalanceHistory","requestId","isLoading","getAccountBalanceHistory","togglePaymentSchedule","toggleInterestSchedule","_baseTable","confirmSuspension","suspendCompensation","confirmUnSuspension","compRecipient","approveCompensations","addCompensationAdjustment","compensationHeaders","canEditCompRecipient","isSuspending","beforeDate","compIsNotBeforeTheBeforeDate","startOf","isSameOrBefore","completedInstallmentsCountNotWithinBounds","totalCompensationAmount","isVoiding","filteredCompensationsAndAdjustments","isValid","confirmVoid","isRejecting","hideAdjustments","adjustment","totalAdjustmentAmount","totalCompensationNotPositive","filteredAdjustments","compIsAfterBeforeDate","paymentsCountWithinBounds","specifiedBrand","paymentsRequiredBeforeCompensatable","header","adjustmentHeaders","confirmUnsuspension","colspan","contact","differenceNote","difference","policyFundings","commandForFunding","persistedRecipient","persistedRecipientId","fundingRecipientId","addRequirement","downPaymentRule","addRule","hasNewDownPaymentRule","downPaymentTable","createdSoMustDestroy","cancelNewRule","savedRule","defaultDownPaymentRule","defaultRule","rule","priority","downPaymentRules","orderedDownPaymentRules","first","second","firstCreatedAt","createdAtDifference","newRequestIsValid","newRequest","cannotViewContract","sendContract","beginNewRequest","showPfa","esignRequests","req","isLoaded","signatories","sig","printContract","downloadRequestPfa","esignRequest","getRequestPfa","cancelPfaModal","saveNewRequest","cancelNewRequest","hasNewEquityRule","equityRule","orderedEquityRules","optimizationTermsTable","minDaysBetweenMaturityAndPolicyExpiration","updateChangeset","property","totalFundingsNotPositive","fundingIsAfterBeforeDate","isBefore","canDelete","detailRoutePath","_emailValidator","canSuspend","isResending","cancelSuspension","cancelUnsuspension","cancelResend","unsuspendNotice","notice","suspendNotice","viewNoticePdf","getNoticeHtml","noticeHtml","getUpdatedPdf","getNoticeUpdatedHtml","executeResendCallback","onResendSuccess","resendNotice","showNoticeResentMessage","closeModalAfterResend","emailNotice","showNoticeResentViaEmailMessage","handleNoticeUpdate","isChecked","showUpdatedNotice","updatesAvailableToNotice","noticeUpdatedHtml","isEmailValid","validateEmail","refreshFn","PaymentAllocationTableComponent","getPurposes","allocations","buildAllocationsByDate","rowsAsArrays","buildRowsAsArrays","unshift","uniquePurposes","allPurposes","baseDictionary","acc","allocation","dateCreatedAt","incrementPaymentSchedule","uniqueDates","rowAsArray","canEditCosts","setCommandAndChangeset","updateVerificationStatus","commandChangeset","hasAdditionalMga","hasNewPolicyTermOverride","policyTermOverride","orderedPolicyTermOverrides","chosenCriteria","allCriteria","criteriaOptions","comparisonOptions","possibleComparisons","conditionEditTemplate","conditionType","conditionShowTemplate","conditionIsBool","newBooleanDefault","prepareBoolean","expand","editCriteria","chosen","boolean","editComparison","_error","cancelRequirement","StateSettingsTableComponent","stateDetails","stateLaws","stateLawsSet","settingsToDisplay","selectImportantSettings","displayOrder","valuesToDisplay","interestMethod","nsfFee","daysToIntent","daysFromIntentToCxl","lateFee","cancelFee","formatFunction","applyTermsDisabled","firstDate","secondDate","valueOf","currentPaymentAdjustmentStrategy","reversal","transfer","refundRecipientOptions","saveDisabled","typeDescriptor","saveReversal","resetTabs","takeAction","cancelAction","switchPaymentAdjustmentStrategy","strategy","insuredOption","updateTransferAccount","createReverseNote","adjustmentModalDescription","outgoingPaymentGoneOut","filteredTransactions","_datasetsTransformer","VisualizationComponent","visualization","transform","_helpers","defaultOptions","formatXFieldFunc","formatAxis","xField","formatYFieldFunc","yField","setElement","currentElement","clientWidth","h","_accounting","assign","selectedDatasets","setFacts","factContainer","facts","dataset","buildFact","order","MAX_SAFE_INTEGER","selectedDataset","uniqueName","displayTitle","fact","useEmptyValue","primaryFactDetail","trendingFactDetail","findIndex","fd","accessor","emptyValue","rawValue","trendingDir","sym","includeTrending","trending","formatNumber","availableDatasets","tempSelectedDatasetsUniqueNames","tempSelectedDatasets","startAddingDatasets","toggleSelectedDataset","finishAddingDatasets","vis","selectedNames","promises","updateParams","getAnalysisDataset","newData","cancelAddingDatasets","VisualizationsInfoPopoverComponent","descriptionParagraphs","valueIsExact","v","as","linkPath","linkId","quoteNumber","carrierName","mgaName","cast","labelAs","valueAs","position","colorScheme","page","initialUpdateParams","addClickableToData","isId","viewingDatasetUniqueName","canFilter","allowFilters","multipleBrands","multipleTerritories","findLinkedField","linkedFields","tableName","canSelectDatasets","mergeUpdateParams","newUpdateParams","currentDataset","currentHeaders","isClickable","downloadTableData","rest","downloadAnalysisTableCsv","visit","linkedField","idField","to","JSON","stringify","routeKey","lastReachedCallback","allDataHasBeenRendered","fetchingNextPage","sortDescending","field_name","table_name","direction","sortAscending","selectDataset","startAddingFilter","chosenTerritory","chosenBrand","finishAddingFilter","requiresUpdate","newFilter","tempChosenTerritory","territory_id","tempChosenBrand","brand_id","cancelAddingFilter","alerts","dismiss","parent","preview","_controller","_pagination","ENTITY_COLUMNS","ENTITIES","STATUS_CHIP_CLASSES","canceled_1","canceled_2","collections","dateFromQueryParam","dateToQueryParam","drop","PaginationController","selectedStatus","selectedDraftStatus","draftStatus","draftCanceledFromDate","draftCanceledFrom","draftCanceledToDate","draftCanceledTo","hasFilters","entityId","canceledFrom","canceledTo","statusChipClass","status_code","entities","contact_information","faxNumber","fax_number","email_address","searchEntities","adapter","adapterFor","sortDirection","openFilters","draftEntity","selectedEntity","isAddingFilter","setDraftStatus","setDraftEntity","setDraftCanceledFrom","setDraftCanceledTo","cancelFilters","downloadCsv","downloadError","URLSearchParams","sort_by","sort_direction","fetch","handleUnauthorizedResponse","ok","blob","saveFileAs","hasMeaningfulFilters","_hasMeaningfulFilters","appliedFilters","refresh","section","sectionFilters","activeFilterCount","hasActiveFilters","_statusMessage","statusMessage","cancelDate","stateDetailsDaysFromCxlToEffectiveCxl","BalanceDetailsController","visitContract","transitionToRoute","documentUploaded","isPfa","fileType","documentDownload","fundingVerificationOptions","isRequestingDownPaymentLink","canVerifyFundings","anyFundingsLocked","accountFundingSources","availableAdjustedDownMethods","canMakeUserResponsibleForFundingReductionsManually","internalSaveFunding","totalDue","dpToCollect","downPaymentRequest","numInstallments","installmentAmount","selectedFundings","fundingPolicies","fundingAdjustment","policyCommissions","pc","fundingAdjustments","fundingPoliciesWithCommission","fps","dpr","activeDownPaymentRequest","fId","adjustmentAmt","locked","selectedFundingIds","fundingVerificationOptionNames","resetFunding","startEditingFunding","saveFunding","confirmSaveFunding","downloadDraftFunding","draftCheckNumber","cancelDownloadingDraftFunding","openDownPaymentRequest","toggleFundCommissionsSeparately","updateDownPaymentRequestPolicyComission","fp","deleteDownPaymentRequest","updateDownPaymentRequest","maxDPAmount","maxDownPaymentToCollect","ps","requestDownPaymentUrl","sendEmail","viewInvoice","linkResponse","emailSent","requestedAt","emailSentAt","downPaymentUrl","closeDownPaymentRequestModal","toggleSelectFunding","newDownPaymentToCollect","updateVerificationStatusByName","newVerificationOptionName","selectedOption","fetchSummaryReport","glReport","startDate","endDate","responseData","credits","accountsPayableCredits","debits","accountsPayableDebits","accountsReceivableCredits","accountsReceivableDebits","compensationsExpenseCredits","compensationsExpenseDebits","compensationsPayableCredits","compensationsPayableDebits","fundingsAccountCredits","fundingsAccountDebits","paymentsAccountCredits","paymentsAccountDebits","refundsCredits","refundsDebits","docStampFeesCredits","docStampFeesDebits","setupFeesCredits","setupFeesDebits","achProcessingFeesCredits","achProcessingFeesDebits","cancelFeesCredits","cancelFeesDebits","collectionsFeesCredits","collectionsFeesDebits","creditCardProcessingFeesCredits","creditCardProcessingFeesDebits","echeckProcessingFeesCredits","echeckProcessingFeesDebits","lateFeesCredits","lateFeesDebits","nsfFeesCredits","nsfFeesDebits","otherFeesCredits","otherFeesDebits","rebatesCredits","rebatesDebits","writeoffsCredits","writeoffsDebits","unearnedInterestCredits","unearnedInterestDebits","earnedInterestCredits","earnedInterestDebits","downPaymentsReceivableCredits","downPaymentsReceivableDebits","skipLinks","downloadItemizedReport","downloadGlReportItemized","NOTICE_PDF_EXPORT_IN_PROGRESS_STATUSES","NOTICE_PDF_EXPORT_EMPTY_STATE","cancelNoticePdfExportPolling","isNoticePdfExporting","noticePdfExportStatus","isNoticePdfExportDisabled","noticePdfExportAllowed","noticePdfExportCurrentState","noticePdfExportStatusMessage","noticePdfExportNoticeCount","noticePdfExportDownloadedCount","loadNoticePdfExportStatus","resetNoticePdfExportState","skipLoading","handleNoticePdfExportCurrentStatus","exportRecord","export","noticePdfExportCurrentExport","noticeCount","handleNoticePdfExport","autoDownload","startNoticePdfExport","exportId","downloadedCount","readyForDownload","downloadNoticePdfExport","errorMessage","scheduleNoticePdfExportPoll","timer","later","pollNoticePdfExport","noticePdfExportPollTimer","filename","defaultNoticePdfExportFilename","downloadNoticePdfs","deleteDeferment","deferment","startViewingInteraction","startAddingInteractionModel","interactionModel","cancelAddingInteractionModel","saveInteractionModel","isCreating","msg","_date","getCancellationReasonOptions","createNotices","cancellationReason","manualCancellationDate","canCreateEndorsement","newAccountStatusOptions","cancellationReasonOptions","filteredAccountStatusOptions","currentStatusCode","confirmDisabled","refundablePayments","reverseOrRefundPayments","newCancelDateCenter","accountPageCancelDate","maxAdditionalCancellationGracePeriod","createEndorsement","flatCancelAccount","changeStatus","cancellationReasonCode","cancelUpdatingStatus","brokerOfRecordChange","_account","saveExpirationDate","updateDueDate","originalDueDate","updateLateFeeDate","originalLateFeeDate","updateLateFeeDisabled","originalLateFeeDisabled","resetExpirationDate","initPaymentEdit","lateFeeDate","cancelDelayCancellation","confirmDelayCancellation","daysBetween","earliestUpcomingCancelDateWithoutGracePeriod","newCancellationDate","selectNewCancellationDate","asDateString","latestDate","addDays","setNewAccountStatus","newAccountStatus","setCancellationReason","newCancellationReason","setManualCancellationDate","onSaveRisk","createRenewalQuote","visitRenewal","checkQuoteActivated","res","activated","startEditingAllPolicies","buildUpdatePolicyCommand","cancelAddingFee","createFee","onCancelpayment","onSavePayment","AnalysisAccountsController","AnalysisQuotesController","Subscription","topicName","eventName","dispatchEvent","Event","Subscriptions","subscriptions","onEnabledChange","sub","messagesToSend","flushMessagesToSend","socket","addSubscription","removeSubscription","subKey","Messenger","wsLocation","authToken","enabledChangedCallbacks","initWebSocket","enableMessaging","disableMessaging","WebSocket","onopen","onOpen","onmessage","onMessage","onclose","onerror","messageEvent","msgSegments","registerResource","unregisterResource","messengerWsLocation","createNewPassword","errorObj","RegisterOtpController","unsubscribe","_get","routing","lookup","voidOutgoingPayment","outgoingPayment","voidFundingFromPayment","selectBrandName","selectFundingSource","_value","paymentTypeCount","fundingSourceGroups","grouped","groupKey","fundingSourceName","checksCount","achsCount","wiresCount","localeCompare","currentParentParams","paramsFor","createFundingSourceBatch","parentParams","confirmUnapproved","unapproveCompensation","startPayChecks","isPayingChecks","fundingSourceGroup","checkFundingSourceGroup","cancelPayChecks","isPayingAchs","isPayingWires","setBeforeDate","beforeDateValue","refreshModelInternal","downloadBulkOutgoingPayment","bulkOutgoingPayment","downloadFormat","downloadBulkOutgoingPaymentSpreadsheet","downloadBulkOutgoingPaymentAch","sendSftpBulkOutgoingPayment","createVoidNote","resetAdjustment","startRequiredCompensationAdjustment","requiredComp","requiredCompensationToAdjust","adjustmentComment","adjustmentBrand","availableTables","availableFields","setTable","setField","availableFieldNames","baseReportName","addCustomReportField","customReport","downloadReport","metadata","downloadCustomReport","docStampFee","createUnsuspendNote","unpaidDocStampFees","isPaid","totalUnpaidDocStampFees","payDocStampFees","docStampFeeIds","createSuspendDocStampFeeNote","accountAgencyAccounting","hasConfirmedSignature","documentZoom","isDocumentZoomAvailable","isShowingSignatureSuccess","matchMedia","mediaQueryList","listener","updateDocumentZoomAvailability","matches","documentZoomMediaQueryList","documentZoomMediaQueryListener","removeListener","isAvailable","agencyContactName","documentZoomPercent","documentZoomStageStyle","isMinDocumentZoom","isMaxDocumentZoom","isShowingManageRecurringPayments","addingPaymethod","isUpdatingRecurringPayments","operation","esignRecurringPayments","uniqueToken","expectedDeliveryFee","recurringPaymentRequest","startAddingPaymethod","financial_institution","financialInstitution","routing_number","routingNumber","account_number","paymethod_id","closeManageRecurringPaymentsModal","zoomDocumentIn","zoomDocumentOut","esignPfa","parseDateString","startDateAsDate","endDateAsDate","setStartDate","newStartDate","setEndDate","newEndDate","created_at","after","before","downloadExternalProcessingFeesCsv","canMarkDraftsAsPaid","fundingTotal","draftsCount","payDrafts","isPayingDrafts","toggleAllSelected","collection","bool","noticeLayout","isAddingScript","scriptBeingEdited","javascriptScripts","startAddScript","cancelAddScript","saveNewScript","scripts","editScript","saveEditedScript","cancelEdit","deleteScript","confirm","toggleEnabled","exampleValuesChangeset","findValue","exampleValueName","navsByGroupTop","navsByGroup","navsByGroupBottom","topNavGroupStyle","findStyleForGroup","bottomNavGroupStyle","canceAddingVisualizationFunc","onGridChange","_event","changeExpected","pageConfig","visualizationId","updatePageConfig","selectNewVisualization","_title","getAnalysisVisualizations","canceAddingVisualization","setViewingNotice","updatePassword","shouldShowBrandFilter","segments","requiresFilter","filtered","filterFeesOrPayments","selectedTransactions","unapproveTransactions","payTransactions","isPayingTransactions","downloadAch","batch","download","sendSftpAch","sendSftpOnlinePaymentBatch","approveTransactions","usePresort","processedAt","showBatchProcessNotice","batchProcessedNotice","hasMany","load","downloadBatchPdf","inferExtension","sendToPresort","resolveNotice","aBulkProcessIsRunning","bulkProcesses","bp","isCompleted","bulkProcessesTask","processing","processingResult","countResult","getPotentialBatchNoticeCounts","batches","batchResult","batchRes","deliveryMethods","dm","dmRes","discoverSelectable","allDeliveryMethodObjects","delMethods","visibleBatches","selectedBatches","delMethod","totalGettingProcessed","selectedDelMethods","selectableDelMethod","runEndOfDayProcessing","processSelectedBatches","selectDeliveryMethod","deliveryMethodObj","selectable","_quoteStartQueryParams","readyForActivation","transitionToFromComponent","handleQuoteSaved","include","endorseSelectedPolicy","selectedPolicyToEndorse","isSelectingPolicyToEndorse","cancelSelectingPolicy","cancelNewPolicy","fillingInitialPolicy","addingNewPolicy","saveNewPolicy","deletePolicy","modelInsured","physicalAddressStateLawsSetId","checkQuoteLegalAcknowledgement","acknowledged","acknowledgementText","showAcknowledgementModal","checkAcknowledgement","pendingAddPolicyAction","runAddPolicyAction","_collectDownPaymentFundings","INVOICE_DELIVERY_METHODS","CREATE_LINK_ONLY","EMAIL_PAYMENT_LINK","EMAIL_ESIGN_AND_PAYMENT_LINK","FLOW_LOCK_MESSAGES","isCollectingDownPayment","invoiceUrl","invoiceDeliveryMethod","expandedId","esignDraftRevision","latestEsignDraft","isShowingRejectContractModal","contractPendingRejection","rejectComment","isRejectingContract","billingMethods","paymentAmount","anyPolicyHasDraft","hasDrafts","canManageRecurringPayments","quoteContractHeaders","baseArray","collectDownPayment","splice","paymethods","paymentOnlyFlowLocked","isPaymentOnlyFlowLocked","esignFlowLocked","isEsignFlowLocked","esignEmailLocked","isEsignEmailLocked","paymentEmailLocked","isPaymentEmailLocked","isDownPaymentRequestValid","isValidAgencyEsignEmail","agencyEsignEmailErrors","normalizedAgencyEsignEmail","rejectContractSubmitDisabled","fullPolicies","fundingsData","recalculatedFunding","normalizedEmail","insuredEmailForContract","invoiceDeliveryMethodRequiresEsign","invoiceDeliveryMethodSendsEmail","deliveryFlowLockMessage","requiresEsign","prepareDownPaymentRequestForDelivery","recordEsignDraft","markDownPaymentRequestRequested","toISOString","preserveInFlightEsignDraft","startedEsignDraftRevision","draft","showSuccess","originalDownPayment","Promise","resolve","commandData","invoiceDeliveryMethodForDownPaymentRequest","addContract","cancelPrintingDrafts","confirmPrintingDrafts","visitQuoteSummary","openRejectContractModal","closeRejectContractModal","rejectContract","openCollectDownPaymentModal","closeDownPaymentModal","flowLockMessage","updated","toggleRow","checked","updateInvoiceDeliveryMethod","toggleRequireEsign","updateAgencyEsignEmail","updateContractPolicy","cancelRecurringPaymentMethod","savePaymethod","setRecurringPaymethod","updatePolicyCommission","newCommission","maxCommissionAmt","expectedDeliveryFeeExplanation","explanation","installmentsToCollectAtActivationErrors","downPaymentToCollectErrors","dpCanBeVoided","acceptedAt","cancelDocumentUpload","chosenDocumentType","isApplyingTerms","isCurrent","isEndorsement","_descriptor24","_descriptor25","_descriptor26","_descriptor27","_descriptor28","_descriptor29","_descriptor30","_descriptor31","_descriptor32","_descriptor33","_descriptor34","_descriptor35","_descriptor36","_descriptor37","_descriptor38","_descriptor39","_descriptor40","_descriptor41","undeletedEditAllPolicies","editAllPolicies","showTermsSection","selectedContract","downPaymentDistributionPolicies","billingMethodOptionsCommand","billingCommand","isCollectDownPaymentDisabled","toggleAddingNewPolicy","startEditingPolicy","editingPolicyCommand","populatePolicyForm","_hasValue","_setRelatedModel","newPolicy","confirmEditingAllPolicies","deletePolicyEditingAllPolicies","newlyAdded","newEap","saveEditingAllPolicies","contractsExist","requireConfirmingSaveEditingAllPolicies","props","policyData","getProperties","toDateString","updateAllQuotePolicies","cancelEditingAllPolicies","policyOrDate","addPolicyToEditAllPolicies","eap","updatePolicyNumber","newNum","updateCarrier","updateMga","updateAdditionalMga","updateCoverageType","setPremium","setTaxes","setPolicyFee","setBrokerFee","setAllOtherFees","setAdditionalDaysToCancel","setMinEarnedPercentage","setShortRate","setFilings","setAuditable","contractForModal","isShowingPfa","isShowingFinanceAgreement","_originalContract","uploadDocument","manageRecurringPayments","closeUploadDocumentModal","closeFinanceAgreement","closeCollectDownPaymentModal","loadDownPaymentButtonLabel","showDownPaymentDistribution","closeDownPaymentDistributionModal","cancelBillingMethod","useSinglePageQuoting","downPaymentRequestModalBtnName","valuesHaveChanged","transitionArgs","equalPaymentsCommand","paymentFrequencyCommand","retainedPaymentsCommand","canMakeQuarterlyPayQuotes","paymentFrequencyValue","cs","pf","equalPaymentsValue","qt","installmentCountValue","ic","retainedPaymentsValue","retainedPaymentsMax","canEditRebateOnQuote","canEditFundingSourcesOnQuote","shouldShowBrandSelection","hasAppropriateSelectionMethod","selectedBrandId","showBrandUpdateModal","brandUpdateErrors","showRetainedPaymentsWarningModal","retainedPaymentsWarningHasDownPaymentRequests","pendingRetainedPaymentsSave","rebateMethodOverrideOptions","stateDetailsInterestRebateMethod","updateUsingEqualPayments","updatePaymentFrequency","cancelPaymentFrequency","savePaymentFrequency","cancelUsingEqualPayments","saveUsingEqualPayments","contractsFor","contractArray","contractRelationshipIdsFor","contractRelationship","loadContractsFor","prepareRetainedPaymentsSave","hasExistingDownPaymentRequests","persistRetainedPayments","updateRetainedPayments","updatedRetainedPayments","currentRetainedPayments","loadedContracts","cancelRetainedPayments","confirmRetainedPaymentsUpdate","cancelRetainedPaymentsUpdate","updateRebateMethodOverride","cancelRebateMethodOverride","selectBrand","brandOption","showBrandUpdateConfirmation","cancelBrandUpdate","cancelBrandUpdateModal","confirmBrandUpdate","isSimplifiedView","shouldShowQuoteFundingSourceInputs","showFundingsFundingSourceInput","showRefundsFundingSourceInput","showCompensationsFundingSourceInput","fundingsFundingSourceOptions","refundsFundingSourceOptions","compensationsFundingSourceOptions","fundingsFundingSourceValue","findFundingSourceOption","refundsFundingSourceValue","compensationsFundingSourceValue","setFundingSourceSelection","localValueName","updateInterestAccrualBegins","cancelInterestAccrualBegins","selectFundingsFundingSource","selectRefundsFundingSource","selectCompensationsFundingSource","isFirstDueDateHighlighted","fourMonthsFromNow","hasAnyAdditionalMga","activateContract","peekedQuote","unloadRecord","releaseNote","hasReleaseNote","emailHtml","ClipboardItem","clipboardItem","Blob","showCopied","copied","getInitialRange","getInitialDate","getEmptyRange","reportGroups","Entities","agenciesReport","carriersReport","insuredsReport","mgasReport","Accounting","accountSummariesReport","checkRegistryReport","collectionsReport","compensationsReport","fundingsReport","incomingPaymentsReport","receivablesSummariesReport","receivedIncomesReport","refundsReport","Other","contractsReport","noticesReport","policiesReport","quoteLegalAcknowledgementsReport","Activations","pfasReport","quotesReport","report","carriers","agencies","mgas","insureds","quotes","received_incomes","notices","account_summaries","compensations_accrued","paid_fundings","unpaid_fundings","receivables_summaries","pfas","check_registry","down_payments_collected","required_down_payments","quote_legal_acknowledgements","saveEdit","_array","selectedLargeQuoteAlertRecipient","largeQuoteAlertRecipientNames","names","updateLargeQuoteAlertThreshold","addLargeQuoteAlertRecipient","currentRecipients","existingRecipient","removeLargeQuoteAlertRecipient","updateTaxId","newTaxId","updateSsn","newSsn","findTaxId","findSsn","newCallRecipientGroup","removeCallRecipientGroup","callRecipientGroup","transientOrPersisted","transientValue","persistedValue","clearTransientSelections","resetAgencyForm","saveAgency","newBuyRateTable","newCoralCreditCardAlternativeBuyRateTable","newYieldRateTable","newOptimizationTermsTable","newAlternateRateTableForCarriers","newAlternatePersonalLinesRateTable","yieldBasedPricing","alternateRateTableForCarriers","alternatePersonalLinesRateTable","coralCreditCardAlternativeQuotesEnabled","coralCreditCardAlternativeBuyRateTable","setYieldBasedPricing","addCompensation","newRecipient","updateRequiredCompensationToSelfCompTable","requiredCompensationToSelfCompTable","addContact","newContact","isNewContact","saveContact","focusedContact","cancelAddingNewContact","focusOnContact","documentDescription","documents","selectedOptimizationTermsTable","_agency","SettingsAgenciesShowNoticesController","saveBrandOnTerritory","territory","_brandValue","originalBrand","originalBrandId","startAddingTerritory","selectAddableTerritory","cancelAddingTerritory","selectedAddableTerritory","manageTerritory","textIntentFollowUpNoticesEnabled","emailIntentFollowUpNoticesEnabled","textPaymentOverdueNoticesEnabled","emailPaymentOverdueNoticesEnabled","makeBrandDefault","savePfaTemplate","pfaTemplate","cancelPfaTemplate","removeUser","userCallRecipientGroup","newUser","SettingsCarriersShowNoticesController","createCostOfFundsRate","cancelEditCoverageType","saveCoverageType","isAddingFundingSource","createFundingSource","createIndexRate","indexRateTable","startQuote","createUser","createUserForInsured","SettingsMgasShowNoticesController","curatedNoticePurposes","setNewTemplatePurpose","selectedPurposeOption","newTemplate","template","baseLayout","isCreatingTemplate","cancelNewTemplate","exampleNoticeValuesChangeset","saveExampleData","noticeTemplate","cancelExampleData","isUpdatingCost","createCostForCancellationsWithoutReinstatement","latestCancellationsWithoutReinstatementCost","latestCost","latestMailedNoticeCost","latestServiceLoanCost","latestUserCreatedNoteCost","costs","costRows","cost","createCostPerMailedNotice","createCostToServiceLoan","createCostPerUserCreatedNote","togglePermissionValue","permission","removeDynamicPermission","datasetId","permissionKey","addDynamicPermission","cancelSaveBrandOnTerritory","successfullySavedTerritory","canEditTerritory","editTerritories","specificToAgency","canRemoveAgencies","reads","associatedAgencyIds","agencyCanBeAdded","has","canSaveAgency","removeAgency","addAgency","closeAddAgencyForm","_show","canAddUsers","manageAgencyUsers","addAndEditAgencyUsers","addAndEditSalespersonUsers","addAndEditPfcUsers","addAndEditAdminUsers","canMimicUsers","isGlobalAdmin","startNewUser","role","saveNewUser","isCreatingUser","cancelNewUser","mimicUser","_coordinateVisualizations","USAGE_PAGE_NAMES_BY_ROLE","salesperson","admin","global_admin","pfc","USAGE_VISUALIZATION_ORDER","user_usage_factcard","user_weekly_login_activity","user_weekly_quote_creation_activity","user_weekly_message_interaction_and_task_activity","user_weekly_notes_activity","user_weekly_quote_and_contract_activity","user_created_quotes","normalizeErrorMessage","fallback","viewedRoleName","usageAnalysisPageName","usageFilter","canViewApiKeysTab","canViewUsageTab","shouldLinkToTerritory","territoryName","shouldLinkToTerritoryAgency","territoryLinkRoute","territoryLinkParam","shouldLinkToTerritoryOrAgency","orderedUsagePageConfig","usagePage","sortedVisualizations","aOrder","bOrder","newCoords","coordinateVisualizations","coords","createChangeset","resetMfaLabel","otpSecretKeySet","userRequiresMultifactorAuthentication","userPermissions","resetUserForm","tab","selectedTab","loadApiKeys","usagePageLoading","pageName","usagePageError","analysisPage","viewedUserId","viewedUserRole","apiKeysLoaded","apiKeysLoading","apiKeysError","userApiKeys","apiKeys","replaceApiKey","apiKey","existingApiKey","updateNewApiKeyLabel","valueOrEvent","newApiKeyLabel","openApiKeyModal","createdApiKeyToken","isCreatingApiKey","isApiKeyModalShowing","cancelApiKeyCreation","createUserApiKey","closeCreatedApiKeyTokenModal","inactive","deactivateUserApiKey","valueType","savePermission","updateUser","canEditUser","allowed","resetMfa","createWorkingPaymentBatch","workingPaymentBatch","visitWorkingPaymentBatch","createWorkingPaymentBatchFromUpload","NewWorkingPaymentBatchResponseBody","sortedWorkingPayments","sortedWorkingPaymentsRequiresAttention","wp","requiresAttention","sortedWorkingPaymentsRequiresAttentionCount","sortedWorkingPaymentsRequiresAttentionAmount","sortedWorkingPaymentsApproved","sortedWorkingPaymentsApprovedCount","sortedWorkingPaymentsApprovedAmount","tableHeaders","finalizingTask","mustExecuteOneLoop","addWorkingPayment","saveCurrentWorkingPayment","currentWorkingPayment","selectedAccount","editWorkingPayment","workingPayment","accId","cancelCurrentWorkingPayment","selectAccount","resolveWorkingPayment","isResolved","approveWorkingPayment","unapproveWorkingPayment","_debug","_modelValidator","_objectValidator","time","hhmmss","hour","minute","notation","EUR","USD","_ajaxSubmission","_contact_information","Form","node","PaymentRecipient","recipientName","ownersName","defaultValue","optimized","equalPayments","exposureLimit","minimumAmountFinanceable","maximumLimitForAgencyPrintingOfContracts","fundToMarket","daysPastEffectiveDateToFund","percentLossShare","daysAfterCancelationToTakeLossShare","paymentsReceivedBeforePayingCompensation","paymentsReceivedBeforePayingFunding","daysBeforeCompensationIsPayable","defaultMinEarnedPercentage","refundMailTo","maximumCompensationAmount","maxExemptAmount","largeQuoteAlertThreshold","largeQuoteAlertRecipientUserIds","minimumDp","mailingAddressEqualsPhysicalAddress","ofacConfirmed","offerRecurringPaymentsDuringEsign","downPaymentTableId","buyRateTableId","yieldRateTableId","alternateRateTableForCarriersId","alternatePersonalLinesRateTableId","optimizationTermsTableId","requiredCompensationToSelfTableId","mailingAddressContactInformation","ContactInformation","logoUrl","userProvidedBrandIdentifier","initialAccountId","customAuthLogoPath","customAuthStyles","checkMailingRecipientName","checkMailingCity","checkMailingState","checkMailingAddress_1","checkMailingAddress_2","checkMailingZipcode","fundingsFundingSourceIds","fundingsCostOfFundsTableIds","refundsFundingSourceIds","compensationsFundingSourceIds","defaultFundingsFundingSourceId","defaultRefundsFundingSourceId","defaultCompensationsFundingSourceId","outgoingFundingAccountNumber","outgoingFundingRoutingNumber","bankAccountNumber","bankRoutingNumber","bankName","bankAddress_1","bankAddress_2","bankCity","bankState","bankZipcode","defaultState","stateLawsSetCollectionId","nextReviewDate","assignedRisk","amBestRating","amBestGroupNumber","amBestGroupName","amBestNumber","amBestSize","useAlternateRateTable","FormName","isFormName","Node","triggerResetErrors","form","addErrors","toData","MultiFormNode","isMultiFormNode","formFactory","__name","atIndex","isForm","nodeFactory","nodeName","isNodeFactory","isFormFactory","_data","errorsResponse","formName","multiFormNode","dateOfBirth","MailingAddress","noticeLayoutId","paperType","requiresCertificateOfMailingForInsureds","roleId","_clearElement","clearElement","_underscore","_helper","helper","alertStatusClass","_and","_regexp","appVersion","hash","version","APP","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","_append","_assign","_call","_cancelAll","capitalizeString","string","_changesetGet","_changesetSet","changesetSet","_changeset","_chunk","chunk","commentList","comments","_compact","componentName","_compute","compute","_dasherize","dec","_drop","_element","_emberPowerCalendarDayClasses","emberPowerCalendarDayClasses","_emberPowerSelectIsGroup","emberPowerSelectIsGroup","_emberPowerSelectIsSelected","emberPowerSelectIsSelected","_util","EnsureSafeComponentHelper","_entries","_eq","equal","_fileQueue","_filterBy","_filter","_findBy","_flatten","flatten","_precision","formatMoney","cents","displayDateTimeFormat","displayDateFormat","dashedDateFormat","verifyIsNotMoment","monthNames","dateOnlyStringPattern","datePrefixStringPattern","dateOnly","getMonthNameAbr","seconds","getSeconds","ampm","formatFuncs","withoutDashes","requiredFormat","formattedDate","withTime","formatInlineFees","formatJson","_formatList","_formatMessage","_formatMoney","_formatNumber","_decimalCount","decimalCount","typeOf","returnString","third","theRest","_formatRelative","_formatTime","_fromEntries","fromEntries","_groupBy","_gt","gt","_gte","gte","_hasNext","hasNext","_hasPrevious","hasPrevious","headerSearchResultsDecorator","needle","haystack","_inc","inc","_includes","_intersect","_invoke","invoke","_isArray","isDict","isEmpty","_isEqual","isEqual","isIncluded","_join","_keys","_lt","lt","_lte","lte","_mapBy","_map","numbers","_next","_noop","noop","_notEq","notEqualHelper","_not","not","nullToPlaceholder","_objectAt","_optional","optional","_or","or","_pageTitle","_perform","_pick","pick","_pipeAction","_pipe","pipe","_pluralize","_powerCalendarFormatDate","powerCalendarFormatDate","_previous","previous","_queue","queue","_range","_template","_reduce","refundPayableToLabel","givenValue","REFUND_PAYABLE_TO_AGENCY_OR_INSURED","_rejectBy","_repeat","repeat","_reverse","_shuffle","shuffle","_singularize","_slice","_sortBy","canceledDate","daysToEffectiveCancel","dateHelper","effectiveCancel","nextNum","_t","_take","_task","boolString","toClassName","param","valueToHuman","toObfuscated","toPayload","recursiveAlterKeys","_toggleAction","_toggle","toggle","isQueryParams","undefinedOr","emptyVal","defaultVal","_union","upcase","_values","_without","_xor","xor","initialize","application","_initializerFactory","_containerDebugAdapter","registerDeprecationHandler","_setup","_emberData","_setupContainer","_configuration","_setupSession","_setupSessionRestoration","_adaptive","_localStorage","_cookie","registry","rootURL","baseURL","_ember","exportApplicationGlobal","theGlobal","global","self","globalName","classify","reopen","apply","_modelLocale","_registerVersion","_setupRouterServiceRefreshPolyfill","appInstance","getEnvironmentDetails","_mixin","Client","isAuthenticated","authenticated","_evented","afterModel","setBrand","deleteBrand","submitForm","resourceToFetch","formData","onChangeFunc","navsByGroupRaw","Group","groupData","scope","_groupData","_scope","goupData","cannot","permissionGranted","permissionDenied","beforeModel","every","_validate","beforeModelIfPermissionDenied","setupController","controller","_buildDataTestValue","concatenatedProperties","didReceiveAttrs","notifyPropertyChange","dataTestValue","binding","boundAttribute","dataTestOverride","Model","balance","totalRequiredDownPayments","paymentsTowardDownPaymentsTotal","totalCompensatedOverpayments","requiredDownPayments","incomingPayments","compensatedOverpayments","nextPaymentAmount","requiredPaymentPastDueAmount","paymentsRemaining","lastPaymentReceived","currentDueDate","nextDueDate","timesInCanceled","timesInIntent","maturityDate","totalPaymentsRequired","nextIntentToCancelDate","currentIntentToCancelDate","pendingCancellationDate","currentPayoff","currentPayoffGoodThrough","nextPeriodPayoff","installmentNumber","installmentsMade","totalPolicyCosts","totalDocStampFee","totalFinanceable","totalFinanced","totalDp","dpPercentage","totalFinanceCharge","totalApr","earliestEffectiveDate","activatedAt","specifiedRefundMailTo","specifiedRefundPayableTo","specifiedPayableToInsuredAndAgency","specifiedBillingMethod","unpaidRequiredPaymentsDueDates","accruedInterest","stateDetailsAchFeeDollars","stateDetailsAchFeePercent","stateDetailsOneTimeAchFeeDollars","stateDetailsOneTimeAchFeePercent","stateDetailsDaysFromIntentToCxl","fundingsFundingSourceName","refundsFundingSourceName","compensationsFundingSourceName","accountsReceivable","inArrears","renewalQuoteId","agencyHasFundingRecipient","canceledWithoutReinstatement","deferments","brandStub","totalWriteoffs","totalLateFees","paidLateFees","totalCancelFees","paidCancelFees","totalNsfFees","paidNsfFees","totalSetupFees","paidSetupFees","totalCreditCardProcessingFees","paidCreditCardProcessingFees","totalAchProcessingFees","paidAchProcessingFees","totalEcheckProcessingFees","paidEcheckProcessingFees","totalCollectionsFees","paidCollectionsFees","totalOtherFees","paidOtherFees","dateActivated","allTransactions","installmentsMadeOverTotalInstallments","displayName","getAccountRefundPayableSelection","_key","canBeReinstated","isReversed","originalPolicies","isClosed","isFlatCanceled","accountingCacheData","viewableAccountingCache","typeName","adjusted","notesComments","aggregateAccountPayoffs","enableCoralCreditCardAlternativeQuotes","coralCreditCardAlternativeMinimumAmountFinanceable","ofacConfirmedAt","largeQuoteAlertRecipients","personalContacts","inverse","requiredCompensations","tasks","contacts","interactions","requiredCompensationToSelf","rc","toSelf","hasPaidAccounts","hasPaidRequiredDownPayments","hasUnpaidRequiredDownPayments","totalUnpaidRequiredDownPayment","totalPaidRequiredDownPayment","entityName","printedAt","totalCount","readyForPresort","sentToPresort","working","writeOffBadDebtAfter","fundingsCostOfFundsTableNames","fundingsFundingSources","refundsFundingSources","compensationsFundingSources","noticeTemplates","outgoingPayments","currentPfaTemplate","stateLawsSetCollection","completedAt","interestRate","setupFeeIncludedInInterestRate","setupFeeMode","useStateMaximumSetupFee","useStateMaximum","alternateRateTablesForCarriers","alternatePersonalLinesRateTables","userCallRecipientGroups","usernames","u","outstandingBalance","amBest","_paymentRecipient","compensationPayableType","adjustments","isPayable","compensationPayable","isSetupFee","isBuyRateInterest","fundedOn","specifiedFundingSource","agencyMailingAddress","insuredMailingAddress","viewableAddress","totalPremium","minEquityCurrency","amountFinanced","documentaryStampTax","docStampFeePaidAt","docStampFeeSuspended","isNull","willMakeDownPaymentOnActivation","downPaymentCollectedAtActivationAmount","returnEquityPerInstallment","fundingDelayGraphData","canActivate","totalOfPayments","invalid","policyFundingsSortedByPolicyPremium","fsWithPolicyPremium","policyPremium","commissions","policyFundingsSortedByPolicyPremiumAppendCommissions","mostRecentValue","mostRecentUpdate","costOfFundsRates","dateRequirement","customReportFields","_relationships","accountActivatedAt","rejected","uploadedBy","quoteOrAccount","defaultDownPaymentPercentage","minDownPaymentPercentage","installmentCountMin","installmentCountMax","installmentCountDefault","overrideMep","daysBetweenEffectiveDateAndFirstDueDate","monthsBetweenEffectiveDateAndFirstDueDate","downPaymentRuleRequirements","totalPaid","pendingPayments","balanceAfterPendingPays","workingDocumentHtml","givenData","accountingCache","dateOfCharge","_base","requiresCompensationPaymentInfo","requiredCompensationToSelfTable","forSelf","agencyForm","compedType","compedId","compedAgency","compedMga","compedCarrier","compedTypeLabel","unFinished","fundingPayableType","fundingPayable","approvedFundings","contactInformations","countsAsVerified","specifiedPaidAt","draftId","downPaymentRequestId","alreadyHadDownPaymentRequestAccepted","bulkOutgoingPaymentId","fundingVerificationOption","fundingPaymentRecipientEntityName","accountIdPresent","fundingPaymentRecipientName","indexRates","hasAccounts","standingReasons","reminderTextConsentSubmission","eligibleForReminderTextSignup","onlinePaymentProvider","updatedAt","noteComment","noteUsername","toUsername","associatedResource","associatedResourceName","associatedResourceId","associatedResourcePath","systemComment","addedContext","mutable","isUserPresent","css","exampleValues","exampleHtml","sentAt","resolved","fulfilledAt","pdfLocation","isResendable","canBeFulfilled","correctDeliveryMethod","hasBeenSent","notResolved","sent","equityRules","policyTermOverrides","voided","voidedFundings","reversed","requiredDownPayment","paymentAllocatedToMany","paymentAllocations","notReversable","allocatedToMany","isRecurring","maskNumber","nameOfVariableToMask","unmaskedNumber","normalizedDetails","sslCardNumber","sslCardShortDescription","sslExpDate","formattedSslExpDate","indx","substring","substr","maskedAccountNumber","maskedRoutingNumber","associatedWith","canDoA","canDoB","users","fullExampleHtml","exampleData","_dec9","_dec10","_dec11","isOriginal","remainingPrincipalBalance","amountFinanceable","totalCost","returnedPremiumReceived","quoteForm","dueFromAgency","aprMin","firstDueDateMax","endorsement","minDownPayment","totalInterestMin","earliestExpirationDate","financeCharge","topOptimalTerms","topOptimalTermsOptions","primaryContractId","refundPayableType","refundPayable","payableRefunds","notPayableRefunds","suspendedRefunds","approvedRefunds","refundPaymentRecipient","compensationClause","avilableAnalysisDatasetPermissions","signedOn","brandLogoUrl","stateLawsSets","initials","defaultPoliciesToSr","licensedForPersonal","licensedForCommercial","daysFromCxlToEffectiveCxl","agentCanSignContract","noRefundsLessThan","maximumChargeOff","maxLateFeeDollarsPer","maxLateFeePercentPer","minLateFeeDollarsPer","minLateFeePercentPer","lateFeeDollarOrPercentPer","lateFeeComparisonCriteriaPer","maxCxlFeeDollarsPer","maxCxlFeePercentagePer","cxlFeeDollarOrPercentPer","cxlFeeComparisonCriteriaPer","lateFeeDollarsToBeChargedPer","lateFeePercentageToBeChargedPer","cxlFeeDollarsToBeChargedPer","cxlFeePercentToBeChargedPer","allowCreditCardPaymentsPer","creditCardFeeDollarsPer","creditCardFeePercentPer","oneTimeAchFeeDollarsPer","oneTimeAchFeePercentPer","recurringAchFeeDollarsPer","recurringAchFeePercentPer","maximumSetupFeePer","maxAprPer","maxAprCom","maxInterestRatePer","maxInterestRateCom","dollarPerHundredInterestLimitPer","dollarPerHundredInterestLimitCom","agentRebatesPer","daysToLateFeePer","allowCompoundingOnLateFeesPer","minLateFeeDollarsCom","minLateFeePercentCom","maxLateFeeDollarsCom","maxLateFeePercentCom","maxInterestRateIndex","lateFeeDollarOrPercentCom","lateFeeComparisonCriteriaCom","maxCxlFeeDollarsCom","maxCxlFeePercentageCom","cxlFeeDollarOrPercentCom","cxlFeeComparisonCriteriaCom","lateFeeDollarsToBeChargedCom","lateFeePercentageToBeChargedCom","cxlFeeDollarsToBeChargedCom","cxlFeePercentToBeChargedCom","allowCreditCardPaymentsCom","creditCardFeeDollarsCom","creditCardFeePercentCom","oneTimeAchFeeDollarsCom","oneTimeAchFeePercentCom","recurringAchFeeDollarsCom","recurringAchFeePercentCom","maximumSetupFeeCom","agentRebatesCom","daysToLateFeeCom","allowCompoundingOnLateFeesCom","allocateToPrincipalFirst","assignedRiskDownPaymentPercentCom","assignedRiskDownPaymentPercentPer","pfcEarnsOnlineProcessingFeeCom","pfcEarnsOnlineProcessingFeePer","daysAfterPriorDueDateThatInterestAccruesPer","daysAfterPriorDueDateThatInterestAccruesCom","daysBeforeUnearnedPremiumNotReceivedNotice","canGoIntoIntentAndCancelFromUnpaidFeesCom","canGoIntoIntentAndCancelFromUnpaidFeesPer","daysAfterIntentBeforeSendingIntentFollowUpNoticePer","daysAfterIntentBeforeSendingIntentFollowUpNoticeCom","daysOverdueBeforeSendingOverduePaymentNoticePer","daysOverdueBeforeSendingOverduePaymentNoticeCom","quoteAcknowledgementStatement","interestRebateMethod","createdByUsername","assignedToUsername","completedByUsername","accountNumberGenerator","pfaTemplates","days_before_due_date_to_send_billing_statement","days_before_due_date_to_notify_as_due","days_between_canceled_1_and_canceled_2","days_between_canceled_and_follow_up","days_past_contract_creation_to_consider_installments_due","methodToSelectBrandForQuotes","sftpAddress","amountPerAccount","companyIdentification","methodToSelectStateLawsForQuotes","defaultAgencyPolicyExemptionAmount","presortFtpUrl","presortFtpUsername","presortFtpPassword","onlinePaymentFeeRecipientFinancialInstitution","onlinePaymentFeeRecipientRoutingNumber","onlinePaymentFeeRecipientAccountNumber","onlinePaymentFeeCompanyName","onlinePaymentFeeImmediateOriginName","onlinePaymentFeeCompanyNamePaymentInitiator","onlinePaymentPrimaryCompanyNamePaymentInitiator","onlinePaymentFeeReceivingIndividualCompanyName","monthlyRevenue","hasOneAgency","paidByEntityType","editable","coercedValue","building","failedCount","failedCountWithResolved","workingPayments","isComplete","isFinalizing","isWorking","isFailed","statusFormatted","isDoneFinalizing","wasUploaded","unprocessable","requiresAttentionReason","isSuccessful","yieldTarget","minBuyRate","maxBuyRate","_cssTransition","_didInsert","_didUpdate","_gsItemAttributes","_style","_toastHammer","_willDestroy","preheader","eyebrow","intro","summary","sectionUrls","footer","_2","_3","_4","_router","Router","locationType","resetNamespace","_route","viewCollectionsPage","entity_type","entity_id","canceled_from","canceled_to","meta","selected_entity","AccountsIndexRoute","PaginationRoute","controllerFor","currentPage","_fetchFilteredAccounts","index_filter","transformedData","pushedData","_brandSetable","accountModel","modelFor","originalModelObject","toJSON","plainObject","brandProperties","getAccountDownPayments","reloadModel","resetController","isExiting","for_account","activation","pfaReceivedNotReady","requireAuthentication","toInsuredSection","viewAccountsOnly","_unauthenticatedRouteMixin","routeIfAlreadyAuthenticated","registerAsNotOnLoginPage","bulk_outgoing_payment_id","_buildBrandAndFundingSourceQueryParams","buildBrandAndFundingSourceQueryParams","_moment","fetchCompensationPaymentRecipients","CompensationsIndexPackagedPaymentsRoute","payment_purpose","CompensationsIndexPaidRoute","unloadAll","cannotBeSelected","contract_id","DocStampFeesIndexRoute","paid_at","brand_name","fetch_docs","showPath","paths","path_id","paid","unique_token","signatory_id","recurringPaymentState","renderTemplate","render","into","viewExternalProcessingFees","fetchFundingPaymentRecipients","FundingsIndexPackagedPaymentsRoute","FundingsIndexPaidRoute","one_time_token","fees_or_payments","viewBatchPayments","enterAndProcessPayments","pollBatch","ProcessingEmailRoute","sent_at","ProcessingFaxRoute","ProcessingMailRoute","downloadBatchProcessedNotice","ProcessingTextNoticesRoute","ProcessingUnfulfilledRoute","fulfilled_at","cancelAll","QuotesIndexRoute","targetName","quote_id","agencyCount","quoteSimulationPredictions","replaceWith","_getRelatedModelId","exposureTable","contractExposureTable","outstandingBalanceIncludingContract","fetchRefundPaymentRecipients","RefundsIndexPackagedPaymentsRoute","RefundsIndexPaidRoute","_releaseNotes","slug","sectionLoadErrors","remoteSections","sectionUrl","Function","nameFilter","address1Filter","cityFilter","stateFilter","zipFilter","defaultExemptAmount","userMonthlyStats","agencyAnalysisUserMonthlyStats","noticeTableForEntity","territories","contains_agency_id","buy_rate_table_id","addUser","userToAdd","visitCarrier","carrier_id","compensation_table_id","cost_of_funds_table_id","down_payment_table_id","downPaymentRulesCriteria","funding_source_id","index_rate_table_id","firstObject","include_activated","mga_id","notice_template_id","optimization_terms_table_id","equityRulesCriteria","policyTermOverridesCriteria","cancellationsWithoutReinstatementCosts","mailedNoticeCosts","serviceLoanCosts","userCreatedNoteCosts","role_id","didSaveTerritory","usernameFilter","yield_rate_table_id","val1","val2","val3","working_payment_batch_id","_json","AccountSerializer","normalize","typeClass","JSONAPISerializer","RESTSerializer","payloadKeyFromModelName","newName","keyForAttribute","keyForRelationship","_nestedForms","attrs","serialize","paymentDetails","_polyfills","_errors","EmbeddedRecordsMixin","extractErrors","errorsArrayToHash","eachAttribute","nested","eachRelationship","isRelation","isNotNewKey","newKey","_ensureRegistered","_fetch","_fileSaver","requestService","applySessionHeaders","xhr","setRequestHeader","didInvalidate","handleXhrUnauthorizedResponse","throwOnErrorStatus","statusOnly","patch","plainObj","normalizeAsPlainJs","_downloadCsv","objectUrl","createObjectURL","downloadLink","search_string","constantName","underscoredConstantName","fundingDelayGraph","XMLHttpRequest","responseType","onload","payRefunds","fileFormat","msSaveOrOpenBlob","revokeObjectURL","onlinePaymentBatch","updateNoticeLayouts","skipSessionInvalidation","apiKeyId","emailReset","makeFundingSourceDefault","reportId","utc","getExampleNoticeValues","noticeTemplateId","saveExampleNoticeValues","exampleNoticeValues","cloneDeep","getExampleNoticeTemplates","contractIds","doc_stamp_fee_ids","commandName","payloadData","sendToEmailAddress","send_to_email_address","getForteApiLoginId","sendActivity","logs","signatoryId","fetchPaymentRecipients","paid_for","compensation_id","approved_compensations","compensation_payment_recipient_id","dataType","processData","contentType","extension","esignRequestId","getEnabledFeatures","customReportId","parameters","getAuthStyles","getNoticeProcessing","getNoticePdf","update_notice","queryString","clauseSegments","addParamsToUrl","skipAddingVisualizationCoordinates","visId","parts","buildQueryString","dataset_id","permission_key","page_config","noticeRecipientId","startDateObj","endDateObj","defaultSuccessMessage","defaultErrorMessage","source","pointer","className","addObject","service","removeAlert","setAuthStyles","authStyles","authLogoPath","logo","setTitle","setFavicon","initialValues","_normalizeModelName","factory","_offer","_answer","iceCandidateQueue","videoRequested","answer","setVideoElements","startLocalStream","initPeerConnection","localStream","remoteStream","teardown","sniffer","webkit","vendorProperty","charAt","CSS","TRANSITIONEND","ANIMATIONEND","TRANSFORM","TRANSFORM_ORIGIN","TRANSITION","TRANSITION_DURATION","ANIMATION_PLAY_STATE","ANIMATION_DURATION","ANIMATION_NAME","ANIMATION_TIMING","ANIMATION_DIRECTION","KEYCODE","ENTER","ESCAPE","SPACE","LEFT_ARROW","UP_ARROW","RIGHT_ARROW","DOWN_ARROW","TAB","MEDIA","xs","sm","md","lg","xl","print","MEDIA_PRIORITY","_cookies","_enabledFeatures","feature","featureName","notEnabled","normalizedFormName","setData","notifyNewData","_gridStackRegistry","_intl","_registry","webSocket","initWebsocket","tenantQuery","uiMessengerDomain","handleMessage","parsedMessage","subscribeToMessages","Name","Channel","MessengerService","handleMessengerLoaded","flush","isBroken","_pageTitleList","_paperTheme","preventNextLoading","once","setIsLoading","_session","emberAuthKey","tenantOverrideStorageKey","SESSION_ENDING_RESPONSE_STATUSES","tenantOverride","_sessionInvalidationPromise","loadTenantOverride","handleInvalidation","localStorage","removeItem","effectiveTenant","canUseTenantOverride","toViewAccountsOnlySection","givenPermissionKey","currentCredsJson","getItem","setItem","newCreds","accessToken","realCredsJson","getMimickingAuthToken","clearTenantOverrideStorage","queryTenant","setTenantOverride","storedTenant","sessionStorage","normalizedTenantOverride","persistTenantOverride","allowQaTenantOverride","setLocale","invalidationPromise","isString","vendorPrefix","transitions","animations","_document","_window","android","exec","userAgent","FastBoot","bodyStyle","vendorRegex","webkitTransition","webkitAnimation","_store","_textMeasurer","_private","BooleanTransform","Transform","deserialized","valString","Big","times","deserialize","serialized","DateTransform","_immutableTransform","installmentTransform","intentToCancelDate","lateFeeId","transformer","installmentData","currentInstallment","paidAmount","adjustedId","dueDates","withType","_buildTransform","funding_adjustments","pcs","fs","_utcDate","deserializeToUtcDate","allowEmpty","normalizedObject","registered","transformFunction","rawVal","_val","NumberTransform","dueDateInteger","unix","StringTransform","toUtcDate","yellow","border","background","green","blue","purple","red","usesDateXAxis","datasetsTransformer","customTransformers","calculateMinimumRecordCountToDisplay","largestTotalBinCount","binCount","floor","lineChartExcludingOutliers","dataExcludingOutliers","removeOutliersFromData","transformLine","minRecordCount","firstIndex","j","lastIndex","originalData","allDateXValues","flatMap","extractLinePoint","validLinePoint","rawX","extractedData","pointsByRawX","existingPoint","castField","colorForDataset","pointHitRadius","rowAsCoords","dateFromBucketValue","hue","lineChart","lineChartFillMissingBuckets","bucketDates","dataByBucket","exampleBucketValue","bucketPoint","bucketKey","lineChartGrouped","groupField","datasetsByGroup","dates","bucketDate","rowValue","sortedDates","generateBuckets","candidate","bucketPointX","bucketPointY","formatBucketValue","transforms","transformName","transformFunctions","rowItem","missingBucket","buckets","currentDate","exampleValue","distributionsQuotesOverAccounts","quoteConversionRate","curr","density","ac","q","acBinMid","binMid","qBinMid","acDensity","qDensity","quoteConversionRatePerBin","generateAllDates","dateArray","fillInMissingDates","allDates","dataByDate","dataPoint","structuredClone","calculateMovingAverage","daysAgoToStart","oneWeekInDays","avg","is_id","lastDateIsToday","addMovingAverage","originalDataNoMissingDates","movingAverageResults","transformedMovingAverageResults","returnedDatasets","lineTension","distributions_quotes_over_accounts","add_moving_average","simple_line","line_chart_fill_missing_buckets","line_chart_grouped","line_chart","line_chart_excluding_outliers","roundToThreeSigFigs","formatFunctions","exponentiate","divideBy100","sigFigs","toPrecision","digitsBeforeDecimal","log10","dateFromAxisValue","dateString","exp","round_to_three_sig_figs","divide_by_100","short_date_format","toLocaleString","month_year_format","percentage","normalizeDataTestSegment","_calculatePosition","underInt","newString","_clamp","readValue","buildCollectDownPaymentFundingRows","matchesPolicy","fundingPolicyId","persistedFunding","commissionFunding","agencyFundingPaymentRecipient","_baseCommunicationObject","Answer","buildPeerConnection","Message","answerer_id","addIceCandidate","peerConnection","tradeDescriptions","desc","setRemoteDescription","getTracks","track","addTrack","createAnswer","answerDesc","setLocalDescription","setupCallbacks","teardownCallbacks","constraints","video","audio","volume","RTCPeerConnection","iceServers","urls","ontrack","srcObject","streams","mediaDevices","getUserMedia","stream","stop","Offer","onicecandidate","onnegotiationneeded","createOffer","addAnswererDescription","CoordinatePlane","maxWidth","placedCoords","cursor","moveCursor","nextX","nextY","loops","notAvailable","fits","forEachCoordIn","markOff","currentHeight","currentWidth","visArray","newVisArray","waitingForVis","coordinatePlane","newVisObj","timeBetween","addHours","isDate","clone","numOfHours","dateClone","setTime","numOfDays","afterDate","defaultOnlinePaymentAmount","newDpDue","paymentAmtToBringDpDueOutOfNegative","getModelId","relationshipName","relatedModel","relatedModelId","heading","_missingMessage","getRecordId","selectedMga","selectedId","newPageNumber","existingQueryParams","REFUND_PAYABLE_TO_INSURED","REFUND_PAYABLE_TO_AGENCY","selectedRefundPayableTo","hasSpecifiedSelection","_camelize","iteration","_recursiveAlterKeysNotEmber","_recursiveAlterKeys","newKeyFunction","emberObject","mapToEmberObjects","func","metaName","rawConfig","getAttribute","exports","decodeURIComponent","runningTests","require"],"sources":["vendor/ember-cli/app-prefix.js","ui/adapters/-json-api.js","ui/adapters/account.js","ui/adapters/application.js","ui/adapters/batch.js","ui/adapters/contract.js","ui/adapters/forms.js","ui/adapters/forms/agency.js","ui/adapters/forms/payment.js","ui/adapters/message.js","ui/adapters/paymethod.js","ui/adapters/transaction.js","ui/app.js","ui/authenticators/ui.js","ui/commands/account-update-down-payment-request.js","ui/commands/activate-contract.js","ui/commands/add-agency-to-territory.js","ui/commands/add-contract-to-quote.js","ui/commands/add-fee-to-account.js","ui/commands/add-policy-to-quote.js","ui/commands/adjust-fee.js","ui/commands/answer-call.js","ui/commands/compensate-with-down-payment-overpayment.js","ui/commands/create-endorsement.js","ui/commands/create-new-quote.js","ui/commands/create-quote-legal-acknowledgement.js","ui/commands/create-renewal-quote.js","ui/commands/delete-deferments.js","ui/commands/delete-paymethod-from-quote.js","ui/commands/delete-paymethod.js","ui/commands/delete-policy-from-quote.js","ui/commands/density-command.js","ui/commands/end-call.js","ui/commands/finalize-batch-incoming-payments.js","ui/commands/get-contract-for-quote.js","ui/commands/get-down-payment-link.js","ui/commands/make-one-time-credit-card-payment-elavon.js","ui/commands/make-online-payment.js","ui/commands/pay-online-payment-transactions.js","ui/commands/process-batch-notices.js","ui/commands/process-bulk-outgoing-payments.js","ui/commands/process-incoming-payment.js","ui/commands/refund-payment.js","ui/commands/reject-contract.js","ui/commands/remove-agency-from-territory.js","ui/commands/remove-recurring-paymethod-for-quote.js","ui/commands/remove-recurring-paymethod.js","ui/commands/resend-notice-via-email.js","ui/commands/resend-notice.js","ui/commands/reverse-incoming-payment.js","ui/commands/reverse-rebate.js","ui/commands/reverse-refund.js","ui/commands/reverse-writeoff.js","ui/commands/run-end-of-day-processing.js","ui/commands/select-recurring-payment-method-for-quote.js","ui/commands/select-recurring-payment-method.js","ui/commands/send-esign-request.js","ui/commands/set-additional-cancellation-grace-period.js","ui/commands/start-call.js","ui/commands/toggle-approved-funding.js","ui/commands/toggle-approved-online-payment-transactions.js","ui/commands/toggle-approved-refund.js","ui/commands/toggle-quote-terms-using-equal-payments.js","ui/commands/toggle-suspended-funding.js","ui/commands/toggle-suspended-refund.js","ui/commands/transfer-payment.js","ui/commands/transforms.js","ui/commands/update-account-funding.js","ui/commands/update-account-status.js","ui/commands/update-agency-required-compensation-to-self-table.js","ui/commands/update-brand-on-quote.js","ui/commands/update-compensation-rate.js","ui/commands/update-contract-dp-options.js","ui/commands/update-contract-fund-commission-separately.js","ui/commands/update-contract-options.js","ui/commands/update-contract-policy.js","ui/commands/update-down-payment-request.js","ui/commands/update-funding.js","ui/commands/update-installment-due-date.js","ui/commands/update-obfuscated-values.js","ui/commands/update-password.js","ui/commands/update-payment-frequency.js","ui/commands/update-policy-on-account.js","ui/commands/update-policy-on-quote.js","ui/commands/update-quote-options.js","ui/commands/update-quote-terms.js","ui/commands/update-rebate-method-override.js","ui/commands/update-retained-payments.js","ui/commands/update-top-optimal-terms.js","ui/commands/void-down-payment-request.js","ui/commands/void-funding-from-outgoing-payment.js","ui/commands/void-outgoing-payment.js","ui/component-managers/glimmer.js","ui/components/-dynamic-element-alt.js","ui/components/-dynamic-element.js","ui/components/accounts/filter-section.js","ui/components/accounts/show/fundings/update-funding-modal.js","ui/components/agencies/fundings-fields.js","ui/components/agencies/own-compensation.js","ui/components/agencies/own-funding.js","ui/components/auth/login-card.js","ui/components/basic-dropdown-content.js","ui/components/basic-dropdown-trigger.js","ui/components/basic-dropdown.js","ui/components/boxes/account-agency-accounting-box.js","ui/components/boxes/d-box-hidden-content.js","ui/components/boxes/d-box.js","ui/components/boxes/d-graph-container.js","ui/components/boxes/required-outgoing-payments.js","ui/components/breadcrumb/breadcrumb-container.js","ui/components/buttons/d-button.js","ui/components/buttons/d-confirm-with-note.js","ui/components/buttons/d-table-button.js","ui/components/buttons/d-table-cancel.js","ui/components/buttons/d-table-contract.js","ui/components/buttons/d-table-delete.js","ui/components/buttons/d-table-download.js","ui/components/buttons/d-table-edit.js","ui/components/buttons/d-table-notes.js","ui/components/buttons/d-table-row-button.js","ui/components/buttons/d-table-save.js","ui/components/buttons/d-table-send.js","ui/components/buttons/d-table-view.js","ui/components/buttons/d-table-visit.js","ui/components/buttons/generate-pdf-button.js","ui/components/buttons/pdf-download-button.js","ui/components/chart.js","ui/components/collections/principal-balance-chart.js","ui/components/color-bar.js","ui/components/compensations/compensation-approved-buttons.js","ui/components/contract-quote-diff.js","ui/components/copy-to-clipboard.js","ui/components/credit-card.js","ui/components/d-customer-logo.js","ui/components/d-link-to.js","ui/components/d-logo-loading.js","ui/components/d-logo.js","ui/components/d3/funding-delay-graph.js","ui/components/d3/top-options-graph.js","ui/components/ember-ace-completion-tooltip.js","ui/components/ember-ace.js","ui/components/entity-filter-section.js","ui/components/entity-info.js","ui/components/esign-document.js","ui/components/example-notice-form-group.js","ui/components/file-dropzone.js","ui/components/forms/add-form.js","ui/components/forms/address-form.js","ui/components/forms/agency-form.js","ui/components/forms/base-form.js","ui/components/forms/brand-form.js","ui/components/forms/brand-funding-sources-editor.js","ui/components/forms/buy-rate-table-builder.js","ui/components/forms/card-editable.js","ui/components/forms/card-form.js","ui/components/forms/card-group-obfuscated.js","ui/components/forms/card-group.js","ui/components/forms/carrier-form.js","ui/components/forms/compensation-table-builder.js","ui/components/forms/condition/edit-autocomplete.js","ui/components/forms/contact-information-form-fields.js","ui/components/forms/criteria/x-boolean.js","ui/components/forms/criteria/x-dollar.js","ui/components/forms/criteria/x-float.js","ui/components/forms/criteria/x-integer.js","ui/components/forms/criteria/x-list.js","ui/components/forms/custom/create-quote-form-fields.js","ui/components/forms/custom/single-page-quote-form.js","ui/components/forms/d-buttons.js","ui/components/forms/d-create-form.js","ui/components/forms/funding-source-assignment-section.js","ui/components/forms/insured-form.js","ui/components/forms/interest-rates-form.js","ui/components/forms/mga-form.js","ui/components/forms/new-funding-payment-card.js","ui/components/forms/note-form.js","ui/components/forms/optimal-terms-form.js","ui/components/forms/payment-details-card.js","ui/components/forms/payment-details.js","ui/components/forms/payment-form-fields.js","ui/components/forms/payment-form.js","ui/components/forms/policy-form.js","ui/components/forms/single-value-form.js","ui/components/forms/user-form.js","ui/components/forms/yield-rate-table-builder.js","ui/components/fundings/approved-buttons.js","ui/components/fundings/report-approved.js","ui/components/grid-stack-item.js","ui/components/grid-stack.js","ui/components/header/header-alerts.js","ui/components/header/header-calls.js","ui/components/header/header-container.js","ui/components/header/header-current-user.js","ui/components/header/header-search-input.js","ui/components/header/header-search-result.js","ui/components/header/header-search-results.js","ui/components/header/header-search.js","ui/components/header/header-settings-menu.js","ui/components/header/header-settings.js","ui/components/header/insured-view-header-container.js","ui/components/header/result-account-for-payment.js","ui/components/inline-iframe.js","ui/components/inputs/base-input.js","ui/components/inputs/d-checkbox-list.js","ui/components/inputs/d-checkbox.js","ui/components/inputs/d-currency-input.js","ui/components/inputs/d-datetime.js","ui/components/inputs/d-file-upload.js","ui/components/inputs/d-integer-input.js","ui/components/inputs/d-number-input.js","ui/components/inputs/d-phone.js","ui/components/inputs/d-pickaday.js","ui/components/inputs/d-search-account.js","ui/components/inputs/d-select-autocomplete.js","ui/components/inputs/d-select-constant.js","ui/components/inputs/d-select-state.js","ui/components/inputs/d-select.js","ui/components/inputs/d-text-input.js","ui/components/inputs/ember-paper-power-select.js","ui/components/inputs/g-map-input.js","ui/components/javascript-script-form.js","ui/components/maybe-in-element.js","ui/components/modals/collect-down-payment.js","ui/components/modals/d-adjustment.js","ui/components/modals/d-base.js","ui/components/modals/d-confirm-with-note.js","ui/components/modals/d-confirm.js","ui/components/modals/d-delete-prompt.js","ui/components/modals/d-edit-form.js","ui/components/modals/d-make-online-payment.js","ui/components/modals/d-new-form.js","ui/components/modals/manage-recurring-payments.js","ui/components/name-value-pair.js","ui/components/notes-area.js","ui/components/notes-list.js","ui/components/notice-table-cell.js","ui/components/notice-table.js","ui/components/one-way-credit-card-mask.js","ui/components/one-way-currency-mask.js","ui/components/one-way-date-mask.js","ui/components/one-way-email-mask.js","ui/components/one-way-input-mask.js","ui/components/one-way-number-mask.js","ui/components/one-way-phone-mask.js","ui/components/one-way-ssn-mask.js","ui/components/one-way-zip-code-mask.js","ui/components/online-payment/ach-page.js","ui/components/online-payment/credit-card-page.js","ui/components/page-title.js","ui/components/pagination-controls.js","ui/components/paper-autocomplete-highlight.js","ui/components/paper-autocomplete.js","ui/components/paper-autocomplete/ebd-content.js","ui/components/paper-autocomplete/ebd-trigger.js","ui/components/paper-autocomplete/eps-trigger.js","ui/components/paper-autocomplete/highlight.js","ui/components/paper-autocomplete/no-matches-message.js","ui/components/paper-autocomplete/options.js","ui/components/paper-autocomplete/reset-button.js","ui/components/paper-backdrop.js","ui/components/paper-button.js","ui/components/paper-card-actions.js","ui/components/paper-card-avatar.js","ui/components/paper-card-content.js","ui/components/paper-card-header-headline.js","ui/components/paper-card-header-subhead.js","ui/components/paper-card-header-text.js","ui/components/paper-card-header-title.js","ui/components/paper-card-header.js","ui/components/paper-card-icon-actions.js","ui/components/paper-card-image.js","ui/components/paper-card-media.js","ui/components/paper-card-title-media.js","ui/components/paper-card-title-text.js","ui/components/paper-card-title.js","ui/components/paper-card.js","ui/components/paper-checkbox.js","ui/components/paper-chips.js","ui/components/paper-contact-chips.js","ui/components/paper-content.js","ui/components/paper-dialog-actions.js","ui/components/paper-dialog-container.js","ui/components/paper-dialog-content.js","ui/components/paper-dialog-inner.js","ui/components/paper-dialog.js","ui/components/paper-divider.js","ui/components/paper-form.js","ui/components/paper-grid-list.js","ui/components/paper-grid-tile-footer.js","ui/components/paper-grid-tile.js","ui/components/paper-icon.js","ui/components/paper-ink-bar.js","ui/components/paper-input.js","ui/components/paper-item.js","ui/components/paper-list.js","ui/components/paper-menu.js","ui/components/paper-menu/content.js","ui/components/paper-menu/item.js","ui/components/paper-menu/trigger.js","ui/components/paper-progress-circular.js","ui/components/paper-progress-linear.js","ui/components/paper-radio-group-label.js","ui/components/paper-radio-group.js","ui/components/paper-radio-proxiable.js","ui/components/paper-radio.js","ui/components/paper-reset-button.js","ui/components/paper-ripple.js","ui/components/paper-select.js","ui/components/paper-select/ebd-content.js","ui/components/paper-select/ebd-trigger.js","ui/components/paper-select/eps-trigger.js","ui/components/paper-select/no-matches-message.js","ui/components/paper-select/option.js","ui/components/paper-select/options.js","ui/components/paper-select/search-message.js","ui/components/paper-select/search.js","ui/components/paper-sidenav-container.js","ui/components/paper-sidenav-inner.js","ui/components/paper-sidenav-toggle.js","ui/components/paper-sidenav.js","ui/components/paper-slider.js","ui/components/paper-speed-dial-actions-action.js","ui/components/paper-speed-dial-actions.js","ui/components/paper-speed-dial-trigger.js","ui/components/paper-speed-dial.js","ui/components/paper-subheader.js","ui/components/paper-switch.js","ui/components/paper-tab.js","ui/components/paper-tabs.js","ui/components/paper-toast-inner.js","ui/components/paper-toast-text.js","ui/components/paper-toast.js","ui/components/paper-toaster.js","ui/components/paper-toolbar-tools.js","ui/components/paper-toolbar.js","ui/components/paper-tooltip-inner.js","ui/components/paper-tooltip.js","ui/components/payments/policy-select-table.js","ui/components/pfa-example-data-fields.js","ui/components/power-calendar-multiple.js","ui/components/power-calendar-multiple/days.js","ui/components/power-calendar-range.js","ui/components/power-calendar-range/days.js","ui/components/power-calendar.js","ui/components/power-calendar/days.js","ui/components/power-calendar/nav.js","ui/components/power-select-multiple.js","ui/components/power-select-multiple/trigger.js","ui/components/power-select.js","ui/components/power-select/before-options.js","ui/components/power-select/no-matches-message.js","ui/components/power-select/options.js","ui/components/power-select/placeholder.js","ui/components/power-select/power-select-group.js","ui/components/power-select/search-message.js","ui/components/power-select/trigger.js","ui/components/quote-analysis/equity-per-installment.js","ui/components/quote-analysis/late-fee-histogram.js","ui/components/quote-analysis/simulation-distribution.js","ui/components/quotes/apr-comparison.js","ui/components/script-injector.js","ui/components/search-account.js","ui/components/settings/password-reset.js","ui/components/show-text.js","ui/components/side-nav.js","ui/components/sidebar-list/sl-container.js","ui/components/sidebar-list/sl-note.js","ui/components/sidebar-list/sl-notes.js","ui/components/tabbed-menu-item.js","ui/components/tabbed-menu.js","ui/components/tables/account-history-table-row.js","ui/components/tables/account-history-table.js","ui/components/tables/account-printable-header-table.js","ui/components/tables/agency-form-comps-table.js","ui/components/tables/balance-history-table.js","ui/components/tables/base-table.js","ui/components/tables/buy-rate-table-records-table.js","ui/components/tables/compensation-table-records-table.js","ui/components/tables/compensations-table-item.js","ui/components/tables/compensations-table-not-payable.js","ui/components/tables/compensations-table-paid.js","ui/components/tables/compensations-table-payable.js","ui/components/tables/compensations-table-suspended.js","ui/components/tables/contact-row-expanded.js","ui/components/tables/contacts-table.js","ui/components/tables/contract-fundings.js","ui/components/tables/d-table.js","ui/components/tables/down-payment-rule-requirements-table.js","ui/components/tables/down-payment-rules-table.js","ui/components/tables/download-contract.js","ui/components/tables/equity-rules-table.js","ui/components/tables/fundings-table-not-payable.js","ui/components/tables/fundings-table-paid.js","ui/components/tables/fundings-table-payable.js","ui/components/tables/fundings-table-suspended.js","ui/components/tables/list-table.js","ui/components/tables/notices-table-row.js","ui/components/tables/notices-table.js","ui/components/tables/payment-allocation-table.js","ui/components/tables/payment-row-expanded.js","ui/components/tables/policy-row-expanded.js","ui/components/tables/policy-table.js","ui/components/tables/policy-term-overrides-table.js","ui/components/tables/quote-fundings.js","ui/components/tables/rule-requirement-row.js","ui/components/tables/state-settings-table.js","ui/components/tables/table-expanding-column.js","ui/components/tables/top-options-table.js","ui/components/tables/transactions-table-row-adjustment.js","ui/components/tables/transactions-table-row-fee-adjustment.js","ui/components/tables/transactions-table-row-fee.js","ui/components/tables/transactions-table-row-loan-adjustment.js","ui/components/tables/transactions-table-row-payment-reversal.js","ui/components/tables/transactions-table-row-payment.js","ui/components/tables/transactions-table-row-rebate-reversal.js","ui/components/tables/transactions-table-row-rebate.js","ui/components/tables/transactions-table-row-refund-reversal.js","ui/components/tables/transactions-table-row-refund.js","ui/components/tables/transactions-table-row-reversal.js","ui/components/tables/transactions-table-row-writeoff-reversal.js","ui/components/tables/transactions-table-row-writeoff.js","ui/components/tables/transactions-table.js","ui/components/tables/yield-rate-table-records-table.js","ui/components/vertical-collection.js","ui/components/visualization.js","ui/components/visualizations/bar.js","ui/components/visualizations/centered-singular.js","ui/components/visualizations/factcard.js","ui/components/visualizations/info-popover.js","ui/components/visualizations/line.js","ui/components/visualizations/list.js","ui/components/visualizations/pie.js","ui/components/visualizations/table.js","ui/components/x-alert.js","ui/components/x-note.js","ui/controllers/accounts/collections.js","ui/controllers/accounts/index.js","ui/controllers/accounts/show.js","ui/controllers/accounts/show/balance-details/index.js","ui/controllers/accounts/show/contracts/index.js","ui/controllers/accounts/show/documents/index.js","ui/controllers/accounts/show/down-payments/index.js","ui/controllers/accounts/show/fundings/index.js","ui/controllers/accounts/show/gl-report.js","ui/controllers/accounts/show/global-admin.js","ui/controllers/accounts/show/interactions/index.js","ui/controllers/accounts/show/notices/index.js","ui/controllers/accounts/show/options.js","ui/controllers/accounts/show/policies/index.js","ui/controllers/accounts/show/transactions/index.js","ui/controllers/accounts/show/transactions/new.js","ui/controllers/activations.js","ui/controllers/analysis/accounts.js","ui/controllers/analysis/quotes.js","ui/controllers/app.js","ui/controllers/auth.js","ui/controllers/auth/create-new-user.js","ui/controllers/auth/forgot-password.js","ui/controllers/auth/register-otp.js","ui/controllers/auth/unsubscribe.js","ui/controllers/batch-payments/index.js","ui/controllers/bulk-outgoing-payments/show.js","ui/controllers/compensations/index.js","ui/controllers/compensations/index/approved.js","ui/controllers/compensations/index/not-payable.js","ui/controllers/compensations/index/packaged-payments.js","ui/controllers/compensations/index/paid.js","ui/controllers/compensations/index/payable.js","ui/controllers/compensations/index/suspended.js","ui/controllers/contracts/show/esigned-pfas.js","ui/controllers/custom-reports/query-builder.js","ui/controllers/custom-reports/show.js","ui/controllers/doc-stamp-fees/index.js","ui/controllers/doc-stamp-fees/index/paid.js","ui/controllers/doc-stamp-fees/index/suspended.js","ui/controllers/doc-stamp-fees/index/unpaid.js","ui/controllers/down-payments/index.js","ui/controllers/down-payments/index/paid.js","ui/controllers/down-payments/index/remaining-balance.js","ui/controllers/esign-pfa.js","ui/controllers/external-processing-fees/index.js","ui/controllers/fundings/index.js","ui/controllers/fundings/index/approved.js","ui/controllers/fundings/index/not-payable.js","ui/controllers/fundings/index/packaged-payments.js","ui/controllers/fundings/index/paid.js","ui/controllers/fundings/index/payable.js","ui/controllers/fundings/index/suspended.js","ui/controllers/gl-report.js","ui/controllers/global-admin/notice-layouts/show/css.js","ui/controllers/global-admin/notice-layouts/show/html.js","ui/controllers/global-admin/tenants/show.js","ui/controllers/global-admin/tenants/show/pfa-template/show.js","ui/controllers/home.js","ui/controllers/insureds/accounts/index.js","ui/controllers/insureds/accounts/show.js","ui/controllers/insureds/accounts/show/notices/index.js","ui/controllers/insureds/settings/users/update-password.js","ui/controllers/log-in-with-one-time-token.js","ui/controllers/online-payments/index.js","ui/controllers/online-payments/index/approved.js","ui/controllers/online-payments/index/packaged-payments.js","ui/controllers/online-payments/index/payable.js","ui/controllers/processing/email.js","ui/controllers/processing/fax.js","ui/controllers/processing/mail.js","ui/controllers/processing/mailed-batches.js","ui/controllers/processing/text.js","ui/controllers/processing/unfulfilled.js","ui/controllers/processing/unprocessed.js","ui/controllers/quotes/index.js","ui/controllers/quotes/new.js","ui/controllers/quotes/show.js","ui/controllers/quotes/show/contracts.js","ui/controllers/quotes/show/documents/index.js","ui/controllers/quotes/show/optimal_terms.js","ui/controllers/quotes/show/options.js","ui/controllers/quotes/show/policies.js","ui/controllers/quotes/show/policies/new.js","ui/controllers/quotes/show/terms.js","ui/controllers/quotes/summary.js","ui/controllers/refunds/index.js","ui/controllers/refunds/index/approved.js","ui/controllers/refunds/index/packaged-payments.js","ui/controllers/refunds/index/paid.js","ui/controllers/refunds/index/payable.js","ui/controllers/refunds/index/suspended.js","ui/controllers/release-notes/show.js","ui/controllers/reports.js","ui/controllers/settings/agencies/index.js","ui/controllers/settings/agencies/new.js","ui/controllers/settings/agencies/show.js","ui/controllers/settings/agencies/show/business-info.js","ui/controllers/settings/agencies/show/call-recipient-groups.js","ui/controllers/settings/agencies/show/compensations.js","ui/controllers/settings/agencies/show/contact-info.js","ui/controllers/settings/agencies/show/contacts.js","ui/controllers/settings/agencies/show/documents.js","ui/controllers/settings/agencies/show/down-payments.js","ui/controllers/settings/agencies/show/interactions.js","ui/controllers/settings/agencies/show/notices.js","ui/controllers/settings/agencies/show/tasks.js","ui/controllers/settings/agencies/show/territories.js","ui/controllers/settings/brands/index.js","ui/controllers/settings/brands/new.js","ui/controllers/settings/brands/show/contact-info.js","ui/controllers/settings/brands/show/pfa-template.js","ui/controllers/settings/call-recipient-groups/index.js","ui/controllers/settings/call-recipient-groups/show.js","ui/controllers/settings/carriers/index.js","ui/controllers/settings/carriers/new.js","ui/controllers/settings/carriers/show.js","ui/controllers/settings/carriers/show/contact-info.js","ui/controllers/settings/carriers/show/contacts.js","ui/controllers/settings/carriers/show/documents.js","ui/controllers/settings/carriers/show/index.js","ui/controllers/settings/carriers/show/interactions.js","ui/controllers/settings/carriers/show/notices.js","ui/controllers/settings/carriers/show/tasks.js","ui/controllers/settings/cost-of-funds-tables/show.js","ui/controllers/settings/coverage-types/index.js","ui/controllers/settings/funding-sources/index.js","ui/controllers/settings/funding-sources/show.js","ui/controllers/settings/index-rate-tables/show.js","ui/controllers/settings/insureds/index.js","ui/controllers/settings/insureds/new.js","ui/controllers/settings/insureds/show.js","ui/controllers/settings/insureds/show/business-info.js","ui/controllers/settings/insureds/show/contact-info.js","ui/controllers/settings/insureds/show/documents.js","ui/controllers/settings/mgas/index.js","ui/controllers/settings/mgas/new.js","ui/controllers/settings/mgas/show.js","ui/controllers/settings/mgas/show/business-info.js","ui/controllers/settings/mgas/show/contact-info.js","ui/controllers/settings/mgas/show/contacts.js","ui/controllers/settings/mgas/show/documents.js","ui/controllers/settings/mgas/show/interactions.js","ui/controllers/settings/mgas/show/notices.js","ui/controllers/settings/mgas/show/tasks.js","ui/controllers/settings/notice-templates/index.js","ui/controllers/settings/notice-templates/show/edit.js","ui/controllers/settings/p-and-l-costs/cancellations-without-reinstatement.js","ui/controllers/settings/p-and-l-costs/index.js","ui/controllers/settings/p-and-l-costs/mailed-notices.js","ui/controllers/settings/p-and-l-costs/service-loans.js","ui/controllers/settings/p-and-l-costs/user-created-notes.js","ui/controllers/settings/roles/show.js","ui/controllers/settings/territories/index.js","ui/controllers/settings/territories/index/new.js","ui/controllers/settings/territories/show.js","ui/controllers/settings/territories/show/index.js","ui/controllers/settings/users/index.js","ui/controllers/settings/users/show.js","ui/controllers/settings/users/update-password.js","ui/controllers/working-payment-batches/index.js","ui/controllers/working-payment-batches/show.js","ui/data-adapter.js","ui/decorators/model-validator.js","ui/decorators/object-validator.js","ui/formats.js","ui/forms/agency.js","ui/forms/brand.js","ui/forms/carrier.js","ui/forms/contact_information.js","ui/forms/density-form.js","ui/forms/insured.js","ui/forms/mailing_address.js","ui/forms/mga.js","ui/forms/notice-template.js","ui/forms/user.js","ui/helpers/-clear-element.js","ui/helpers/-paper-underscore.js","ui/helpers/abs.js","ui/helpers/alert-status-class.js","ui/helpers/and.js","ui/helpers/app-version.js","ui/helpers/append.js","ui/helpers/assign.js","ui/helpers/call.js","ui/helpers/cancel-all.js","ui/helpers/capitalize.js","ui/helpers/changeset-get.js","ui/helpers/changeset-set.js","ui/helpers/changeset.js","ui/helpers/chunk.js","ui/helpers/comment-list.js","ui/helpers/compact.js","ui/helpers/component-name.js","ui/helpers/compute.js","ui/helpers/dasherize.js","ui/helpers/dec.js","ui/helpers/drop.js","ui/helpers/element.js","ui/helpers/email-validator.js","ui/helpers/ember-power-calendar-day-classes.js","ui/helpers/ember-power-select-is-group.js","ui/helpers/ember-power-select-is-selected.js","ui/helpers/ensure-safe-component.js","ui/helpers/entries.js","ui/helpers/eq.js","ui/helpers/file-queue.js","ui/helpers/filter-by.js","ui/helpers/filter.js","ui/helpers/find-by.js","ui/helpers/flag-emoji.js","ui/helpers/flatten.js","ui/helpers/format-currency.js","ui/helpers/format-date.js","ui/helpers/format-inline-number-comparison.js","ui/helpers/format-json.js","ui/helpers/format-list.js","ui/helpers/format-message.js","ui/helpers/format-money.js","ui/helpers/format-number.js","ui/helpers/format-percentage.js","ui/helpers/format-phone.js","ui/helpers/format-relative.js","ui/helpers/format-time.js","ui/helpers/from-entries.js","ui/helpers/get-value.js","ui/helpers/group-by.js","ui/helpers/gt.js","ui/helpers/gte.js","ui/helpers/has-next.js","ui/helpers/has-previous.js","ui/helpers/header-search-results-decorator.js","ui/helpers/inc.js","ui/helpers/includes.js","ui/helpers/intersect.js","ui/helpers/invoke.js","ui/helpers/is-array.js","ui/helpers/is-dict.js","ui/helpers/is-empty.js","ui/helpers/is-equal.js","ui/helpers/is-included.js","ui/helpers/join.js","ui/helpers/keys.js","ui/helpers/lt.js","ui/helpers/lte.js","ui/helpers/map-by.js","ui/helpers/map.js","ui/helpers/max.js","ui/helpers/next.js","ui/helpers/noop.js","ui/helpers/not-eq.js","ui/helpers/not.js","ui/helpers/null-to-placeholder.js","ui/helpers/object-at.js","ui/helpers/optional.js","ui/helpers/or.js","ui/helpers/page-title.js","ui/helpers/perform.js","ui/helpers/pick.js","ui/helpers/pipe-action.js","ui/helpers/pipe.js","ui/helpers/pluralize.js","ui/helpers/power-calendar-format-date.js","ui/helpers/previous.js","ui/helpers/primary-or-endorsement.js","ui/helpers/queue.js","ui/helpers/range.js","ui/helpers/raw.js","ui/helpers/reduce.js","ui/helpers/refund-payable-to-label.js","ui/helpers/reject-by.js","ui/helpers/repeat.js","ui/helpers/reverse.js","ui/helpers/shuffle.js","ui/helpers/singularize.js","ui/helpers/slice.js","ui/helpers/sort-by.js","ui/helpers/status-message.js","ui/helpers/sub.js","ui/helpers/sum.js","ui/helpers/t.js","ui/helpers/take.js","ui/helpers/task.js","ui/helpers/to-bool.js","ui/helpers/to-class-name.js","ui/helpers/to-human.js","ui/helpers/to-obfuscated.js","ui/helpers/to-payload.js","ui/helpers/toggle-action.js","ui/helpers/toggle.js","ui/helpers/transition-to.js","ui/helpers/undefined-or.js","ui/helpers/union.js","ui/helpers/upcase.js","ui/helpers/values.js","ui/helpers/without.js","ui/helpers/xor.js","ui/initializers/alert.js","ui/initializers/app-version.js","ui/initializers/container-debug-adapter.js","ui/initializers/deprecations.js","ui/initializers/ember-cli-mirage.js","ui/initializers/ember-data-data-adapter.js","ui/initializers/ember-data.js","ui/initializers/ember-simple-auth.js","ui/initializers/export-application-global.js","ui/initializers/flipper.js","ui/initializers/model-locale.js","ui/initializers/register-version.js","ui/initializers/session.js","ui/initializers/setup-router-service-refresh-polyfill.js","ui/instance-initializers/ember-data.js","ui/instance-initializers/ember-simple-auth.js","ui/instance-initializers/honeybadger.js","ui/mixins/adapters/global-config.js","ui/mixins/brand-setable.js","ui/mixins/density-form-submissions/ajax-submission.js","ui/mixins/input-from-form-data.js","ui/mixins/navs-by-group.js","ui/mixins/permissions.js","ui/mixins/testable-element.js","ui/models/account-agency-accounting.js","ui/models/account.js","ui/models/accounting-cache.js","ui/models/adjustment.js","ui/models/agency.js","ui/models/batch-processed-notice.js","ui/models/batch.js","ui/models/brand.js","ui/models/bulk-outgoing-payment.js","ui/models/bulk-process.js","ui/models/buy-rate-table-record.js","ui/models/buy-rate-table.js","ui/models/call-recipient-group.js","ui/models/carrier.js","ui/models/compensation-payment-recipient.js","ui/models/compensation-rate.js","ui/models/compensation-table-record.js","ui/models/compensation-table.js","ui/models/compensation.js","ui/models/contact-information.js","ui/models/contact.js","ui/models/contract.js","ui/models/cost-for-cancellations-without-reinstatement.js","ui/models/cost-of-funds-rate.js","ui/models/cost-of-funds-table.js","ui/models/cost-per-mailed-notice.js","ui/models/cost-per-user-created-note.js","ui/models/cost-to-service-loan.js","ui/models/coverage-type.js","ui/models/custom-report-field.js","ui/models/custom-report.js","ui/models/doc-stamp-fee.js","ui/models/document.js","ui/models/down-payment-rule-requirement.js","ui/models/down-payment-rule.js","ui/models/down-payment-table.js","ui/models/down-payment.js","ui/models/equity-rule-requirement.js","ui/models/equity-rule.js","ui/models/esign-request.js","ui/models/event.js","ui/models/external-processing-fee.js","ui/models/fee.js","ui/models/forms/agency.js","ui/models/forms/base.js","ui/models/forms/brand.js","ui/models/forms/carrier.js","ui/models/forms/insured.js","ui/models/forms/mga.js","ui/models/forms/quote.js","ui/models/forms/required-compensation.js","ui/models/funding-payment-recipient.js","ui/models/funding-source.js","ui/models/funding-verification-option.js","ui/models/funding.js","ui/models/index-rate-table.js","ui/models/index-rate.js","ui/models/insured.js","ui/models/interaction.js","ui/models/javascript-script.js","ui/models/message.js","ui/models/mga.js","ui/models/note.js","ui/models/notice-layout.js","ui/models/notice-template.js","ui/models/notice.js","ui/models/optimization-terms-table.js","ui/models/outgoing-payment.js","ui/models/payment-allocation.js","ui/models/payment-recipient.js","ui/models/payment.js","ui/models/paymethod.js","ui/models/permissions-set.js","ui/models/personal-contact.js","ui/models/pfa-template.js","ui/models/policy-term-override-requirement.js","ui/models/policy-term-override.js","ui/models/policy.js","ui/models/quote.js","ui/models/refund-payment-recipient.js","ui/models/refund.js","ui/models/required-compensation.js","ui/models/role.js","ui/models/signatory.js","ui/models/state-laws-set-collection.js","ui/models/state-laws-set.js","ui/models/task.js","ui/models/tenant.js","ui/models/territory.js","ui/models/transaction.js","ui/models/user-call-recipient-group.js","ui/models/user-permission.js","ui/models/user.js","ui/models/verification-option.js","ui/models/working-payment-batch.js","ui/models/working-payment.js","ui/models/writeoff.js","ui/models/yield-rate-table-record.js","ui/models/yield-rate-table.js","ui/modifiers/css-transition.js","ui/modifiers/did-insert.js","ui/modifiers/did-update.js","ui/modifiers/gs-item-attributes.js","ui/modifiers/style.js","ui/modifiers/toast-hammer.js","ui/modifiers/will-destroy.js","ui/release-notes/2026-05-04.js","ui/release-notes/2026-07-24.js","ui/release-notes/2026-08-25.js","ui/release-notes/2026-09-30.js","ui/release-notes/index.js","ui/router.js","ui/routes/accounts/collections.js","ui/routes/accounts/index.js","ui/routes/accounts/show.js","ui/routes/accounts/show/balance-details/index.js","ui/routes/accounts/show/contracts/index.js","ui/routes/accounts/show/documents/index.js","ui/routes/accounts/show/down-payments/index.js","ui/routes/accounts/show/fundings/index.js","ui/routes/accounts/show/gl-report.js","ui/routes/accounts/show/global-admin.js","ui/routes/accounts/show/index.js","ui/routes/accounts/show/notices.js","ui/routes/accounts/show/notices/index.js","ui/routes/accounts/show/options.js","ui/routes/accounts/show/policies/index.js","ui/routes/accounts/show/transactions.js","ui/routes/accounts/show/transactions/index.js","ui/routes/accounts/show/transactions/new.js","ui/routes/activations.js","ui/routes/analysis/accounts.js","ui/routes/analysis/portfolio-management.js","ui/routes/analysis/quotes.js","ui/routes/app.js","ui/routes/application.js","ui/routes/auth.js","ui/routes/auth/create-new-user.js","ui/routes/auth/forgot-password.js","ui/routes/auth/login.js","ui/routes/auth/unsubscribe.js","ui/routes/batch-payments/index.js","ui/routes/bulk-outgoing-payments/show.js","ui/routes/compensations/index.js","ui/routes/compensations/index/approved.js","ui/routes/compensations/index/not-payable.js","ui/routes/compensations/index/packaged-payments.js","ui/routes/compensations/index/paid.js","ui/routes/compensations/index/payable.js","ui/routes/compensations/index/suspended.js","ui/routes/contracts/show.js","ui/routes/contracts/show/down-payment-distribution.js","ui/routes/contracts/show/esigned-pfas.js","ui/routes/custom-reports.js","ui/routes/custom-reports/query-builder.js","ui/routes/doc-stamp-fees/index.js","ui/routes/doc-stamp-fees/index/paid.js","ui/routes/doc-stamp-fees/index/suspended.js","ui/routes/doc-stamp-fees/index/unpaid.js","ui/routes/docs.js","ui/routes/docs/show.js","ui/routes/down-payments/index.js","ui/routes/down-payments/index/paid.js","ui/routes/down-payments/index/remaining-balance.js","ui/routes/esign-pfa.js","ui/routes/external-processing-fees/index.js","ui/routes/fundings/index.js","ui/routes/fundings/index/approved.js","ui/routes/fundings/index/not-payable.js","ui/routes/fundings/index/packaged-payments.js","ui/routes/fundings/index/paid.js","ui/routes/fundings/index/payable.js","ui/routes/fundings/index/suspended.js","ui/routes/gl-report.js","ui/routes/global-admin.js","ui/routes/global-admin/error.js","ui/routes/global-admin/notice-layouts/index.js","ui/routes/global-admin/notice-layouts/show/css.js","ui/routes/global-admin/notice-layouts/show/html.js","ui/routes/global-admin/tenants/index.js","ui/routes/global-admin/tenants/show.js","ui/routes/home.js","ui/routes/index.js","ui/routes/insureds.js","ui/routes/insureds/accounts/index.js","ui/routes/insureds/accounts/show.js","ui/routes/insureds/accounts/show/notices/index.js","ui/routes/insureds/accounts/show/policies/index.js","ui/routes/insureds/accounts/show/transactions/index.js","ui/routes/insureds/settings/users/update-password.js","ui/routes/log-in-with-one-time-token.js","ui/routes/online-payments/index.js","ui/routes/online-payments/index/approved.js","ui/routes/online-payments/index/packaged-payments.js","ui/routes/online-payments/index/payable.js","ui/routes/processing.js","ui/routes/processing/email.js","ui/routes/processing/fax.js","ui/routes/processing/mail.js","ui/routes/processing/mailed-batches.js","ui/routes/processing/text.js","ui/routes/processing/unfulfilled.js","ui/routes/processing/unprocessed.js","ui/routes/quotes/index.js","ui/routes/quotes/show.js","ui/routes/quotes/show/analysis.js","ui/routes/quotes/show/contracts.js","ui/routes/quotes/show/documents/index.js","ui/routes/quotes/show/equity-per-installment.js","ui/routes/quotes/show/optimal-terms.js","ui/routes/quotes/show/options.js","ui/routes/quotes/show/policies.js","ui/routes/quotes/show/terms.js","ui/routes/quotes/summary.js","ui/routes/refunds/index.js","ui/routes/refunds/index/approved.js","ui/routes/refunds/index/packaged-payments.js","ui/routes/refunds/index/paid.js","ui/routes/refunds/index/payable.js","ui/routes/refunds/index/suspended.js","ui/routes/release-notes/show.js","ui/routes/reports.js","ui/routes/settings/account.js","ui/routes/settings/account/permissions.js","ui/routes/settings/agencies/index.js","ui/routes/settings/agencies/new.js","ui/routes/settings/agencies/show.js","ui/routes/settings/agencies/show/analysis.js","ui/routes/settings/agencies/show/business-info.js","ui/routes/settings/agencies/show/compensations.js","ui/routes/settings/agencies/show/contact-info.js","ui/routes/settings/agencies/show/contacts.js","ui/routes/settings/agencies/show/contacts/new.js","ui/routes/settings/agencies/show/documents.js","ui/routes/settings/agencies/show/down-payment-tables.js","ui/routes/settings/agencies/show/down-payments.js","ui/routes/settings/agencies/show/fundings.js","ui/routes/settings/agencies/show/interactions.js","ui/routes/settings/agencies/show/loss-share.js","ui/routes/settings/agencies/show/notices.js","ui/routes/settings/agencies/show/refunds.js","ui/routes/settings/agencies/show/tasks.js","ui/routes/settings/agencies/show/territories.js","ui/routes/settings/brands/index.js","ui/routes/settings/brands/index/new.js","ui/routes/settings/brands/new.js","ui/routes/settings/brands/show.js","ui/routes/settings/brands/show/check-mailing.js","ui/routes/settings/brands/show/contact-info.js","ui/routes/settings/brands/show/pfa-template.js","ui/routes/settings/buy-rate-tables/index.js","ui/routes/settings/buy-rate-tables/index/new.js","ui/routes/settings/buy-rate-tables/show.js","ui/routes/settings/call-recipient-groups/index.js","ui/routes/settings/call-recipient-groups/index/new.js","ui/routes/settings/call-recipient-groups/show.js","ui/routes/settings/carriers/index.js","ui/routes/settings/carriers/index/new.js","ui/routes/settings/carriers/new.js","ui/routes/settings/carriers/show.js","ui/routes/settings/carriers/show/compensation-payment.js","ui/routes/settings/carriers/show/contact-info.js","ui/routes/settings/carriers/show/contacts.js","ui/routes/settings/carriers/show/documents.js","ui/routes/settings/carriers/show/funding-payment.js","ui/routes/settings/carriers/show/index.js","ui/routes/settings/carriers/show/interactions.js","ui/routes/settings/carriers/show/notices.js","ui/routes/settings/carriers/show/tasks.js","ui/routes/settings/compensation-tables/index.js","ui/routes/settings/compensation-tables/index/new.js","ui/routes/settings/compensation-tables/show.js","ui/routes/settings/cost-of-funds-tables/index.js","ui/routes/settings/cost-of-funds-tables/show.js","ui/routes/settings/coverage-types/index.js","ui/routes/settings/coverage-types/index/new.js","ui/routes/settings/down-payment-tables/index.js","ui/routes/settings/down-payment-tables/index/new.js","ui/routes/settings/down-payment-tables/show.js","ui/routes/settings/down-payment-tables/show/agencies.js","ui/routes/settings/down-payment-tables/show/agencies/new.js","ui/routes/settings/down-payment-tables/show/rules.js","ui/routes/settings/funding-sources/index.js","ui/routes/settings/funding-sources/show.js","ui/routes/settings/funding-sources/show/contact-info.js","ui/routes/settings/index-rate-tables/index.js","ui/routes/settings/index-rate-tables/index/new.js","ui/routes/settings/index-rate-tables/show.js","ui/routes/settings/insureds/index.js","ui/routes/settings/insureds/new.js","ui/routes/settings/insureds/show.js","ui/routes/settings/insureds/show/business-info.js","ui/routes/settings/insureds/show/contact-info.js","ui/routes/settings/insureds/show/documents.js","ui/routes/settings/insureds/show/history.js","ui/routes/settings/insureds/show/index.js","ui/routes/settings/mgas/index.js","ui/routes/settings/mgas/index/new.js","ui/routes/settings/mgas/new.js","ui/routes/settings/mgas/show.js","ui/routes/settings/mgas/show/business-info.js","ui/routes/settings/mgas/show/compensation-payment.js","ui/routes/settings/mgas/show/contact-info.js","ui/routes/settings/mgas/show/contacts.js","ui/routes/settings/mgas/show/documents.js","ui/routes/settings/mgas/show/funding-payment.js","ui/routes/settings/mgas/show/index.js","ui/routes/settings/mgas/show/interactions.js","ui/routes/settings/mgas/show/notices.js","ui/routes/settings/mgas/show/tasks.js","ui/routes/settings/notice-templates/index.js","ui/routes/settings/notice-templates/index/new.js","ui/routes/settings/notice-templates/show.js","ui/routes/settings/notice-templates/show/edit.js","ui/routes/settings/notice-templates/show/view.js","ui/routes/settings/optimization-terms-tables/index.js","ui/routes/settings/optimization-terms-tables/show.js","ui/routes/settings/optimization-terms-tables/show/equity-rules.js","ui/routes/settings/optimization-terms-tables/show/policy-term-overrides.js","ui/routes/settings/p-and-l-costs.js","ui/routes/settings/p-and-l-costs/cancellations-without-reinstatement.js","ui/routes/settings/p-and-l-costs/index.js","ui/routes/settings/p-and-l-costs/mailed-notices.js","ui/routes/settings/p-and-l-costs/service-loans.js","ui/routes/settings/p-and-l-costs/user-created-notes.js","ui/routes/settings/payments/new.js","ui/routes/settings/profile.js","ui/routes/settings/roles/index.js","ui/routes/settings/roles/show.js","ui/routes/settings/state-laws-set-collections/index.js","ui/routes/settings/state-laws-set-collections/show.js","ui/routes/settings/state-laws-set-collections/show/state-laws-set/show/commercial.js","ui/routes/settings/state-laws-set-collections/show/state-laws-set/show/general.js","ui/routes/settings/state-laws-set-collections/show/state-laws-set/show/personal.js","ui/routes/settings/territories/index.js","ui/routes/settings/territories/index/edit.js","ui/routes/settings/territories/index/new.js","ui/routes/settings/territories/show.js","ui/routes/settings/territories/show/analysis.js","ui/routes/settings/territories/show/index.js","ui/routes/settings/users/index.js","ui/routes/settings/users/show.js","ui/routes/settings/users/update-password.js","ui/routes/settings/yield-rate-tables/index.js","ui/routes/settings/yield-rate-tables/show.js","ui/routes/style-guide/forms.js","ui/routes/style-guide/inputs.js","ui/routes/style-guide/modals.js","ui/routes/style-guide/tables.js","ui/routes/working-payment-batches/index.js","ui/routes/working-payment-batches/show.js","ui/serializers/-default.js","ui/serializers/-json-api.js","ui/serializers/-rest.js","ui/serializers/account.js","ui/serializers/application.js","ui/serializers/forms.js","ui/serializers/forms/agency.js","ui/serializers/forms/brand.js","ui/serializers/forms/carrier.js","ui/serializers/forms/compensation-recipient.js","ui/serializers/forms/insured.js","ui/serializers/forms/mga.js","ui/serializers/forms/quote.js","ui/serializers/nested-forms.js","ui/serializers/notice-template.js","ui/services/-ensure-registered.js","ui/services/ajax.js","ui/services/alert.js","ui/services/brand.js","ui/services/commands.js","ui/services/communication-stream.js","ui/services/constants.js","ui/services/cookies.js","ui/services/file-queue.js","ui/services/flipper.js","ui/services/forms.js","ui/services/funding-delay-graph-data.js","ui/services/grid-stack-registry.js","ui/services/intl.js","ui/services/messages.js","ui/services/messenger.js","ui/services/page-title-list.js","ui/services/page-title.js","ui/services/paper-sidenav.js","ui/services/paper-theme.js","ui/services/paper-toaster.js","ui/services/power-calendar.js","ui/services/request.js","ui/services/session.js","ui/services/sniffer.js","ui/services/store.js","ui/services/text-measurer.js","ui/session-stores/application.js","ui/templates/accounts/collections.js","ui/templates/accounts/index.js","ui/templates/accounts/show.js","ui/templates/accounts/show/balance-details/index.js","ui/templates/accounts/show/contracts/index.js","ui/templates/accounts/show/documents/index.js","ui/templates/accounts/show/down-payments/index.js","ui/templates/accounts/show/fundings/index.js","ui/templates/accounts/show/gl-report.js","ui/templates/accounts/show/global-admin.js","ui/templates/accounts/show/notices/index.js","ui/templates/accounts/show/options.js","ui/templates/accounts/show/policies/index.js","ui/templates/accounts/show/terms.js","ui/templates/accounts/show/transactions/index.js","ui/templates/accounts/show/transactions/new.js","ui/templates/activations.js","ui/templates/analysis.js","ui/templates/analysis/accounts.js","ui/templates/analysis/portfolio-management.js","ui/templates/analysis/quotes.js","ui/templates/app.js","ui/templates/application.js","ui/templates/auth.js","ui/templates/auth/create-new-user.js","ui/templates/auth/forgot-password.js","ui/templates/auth/login.js","ui/templates/auth/new-password-confirmation.js","ui/templates/auth/privacy-policy.js","ui/templates/auth/register-otp.js","ui/templates/auth/terms-of-use.js","ui/templates/auth/unsubscribe.js","ui/templates/batch-payments/index.js","ui/templates/bulk-outgoing-payments/show.js","ui/templates/compensations/index.js","ui/templates/compensations/index/approved.js","ui/templates/compensations/index/not-payable.js","ui/templates/compensations/index/packaged-payments.js","ui/templates/compensations/index/paid.js","ui/templates/compensations/index/payable.js","ui/templates/compensations/index/suspended.js","ui/templates/components/accounts/filter-section.js","ui/templates/components/accounts/show/fundings/update-funding-modal.js","ui/templates/components/auth/forgot-password-card.js","ui/templates/components/auth/login-card.js","ui/templates/components/basic-dropdown-content.js","ui/templates/components/basic-dropdown-trigger.js","ui/templates/components/basic-dropdown.js","ui/templates/components/boxes/account-agency-accounting-box.js","ui/templates/components/boxes/d-box-hidden-content.js","ui/templates/components/boxes/d-box.js","ui/templates/components/boxes/required-outgoing-payments.js","ui/templates/components/buttons/cancel-button.js","ui/templates/components/buttons/create-button.js","ui/templates/components/buttons/d-button.js","ui/templates/components/buttons/d-confirm-with-note.js","ui/templates/components/buttons/d-table-button.js","ui/templates/components/buttons/d-table-cancel.js","ui/templates/components/buttons/d-table-contract.js","ui/templates/components/buttons/d-table-delete.js","ui/templates/components/buttons/d-table-download.js","ui/templates/components/buttons/d-table-edit.js","ui/templates/components/buttons/d-table-notes.js","ui/templates/components/buttons/d-table-save.js","ui/templates/components/buttons/d-table-send.js","ui/templates/components/buttons/d-table-view.js","ui/templates/components/buttons/d-table-visit.js","ui/templates/components/buttons/generate-pdf-button.js","ui/templates/components/cards/ach-detail-values.js","ui/templates/components/cards/check-detail-value.js","ui/templates/components/cards/wire-detail-value.js","ui/templates/components/collections/principal-balance-chart.js","ui/templates/components/collections/sort-menu.js","ui/templates/components/compensations/compensation-report-not-payable.js","ui/templates/components/contact-info-popover.js","ui/templates/components/contract-quote-diff.js","ui/templates/components/copy-to-clipboard.js","ui/templates/components/d-logo-loading.js","ui/templates/components/entity-filter-section.js","ui/templates/components/entity-info.js","ui/templates/components/esign-document.js","ui/templates/components/example-notice-form-group.js","ui/templates/components/forms/add-form.js","ui/templates/components/forms/address-form.js","ui/templates/components/forms/agency-form.js","ui/templates/components/forms/brand-form.js","ui/templates/components/forms/brand-funding-sources-editor.js","ui/templates/components/forms/buy-rate-table-builder.js","ui/templates/components/forms/card-editable.js","ui/templates/components/forms/card-form.js","ui/templates/components/forms/card-group-obfuscated.js","ui/templates/components/forms/card-group.js","ui/templates/components/forms/carrier-form.js","ui/templates/components/forms/compensation-table-builder.js","ui/templates/components/forms/condition/edit-autocomplete.js","ui/templates/components/forms/condition/edit-boolean.js","ui/templates/components/forms/condition/edit-dollar.js","ui/templates/components/forms/condition/edit-float.js","ui/templates/components/forms/condition/edit-integer.js","ui/templates/components/forms/condition/edit-list.js","ui/templates/components/forms/condition/show-autocomplete.js","ui/templates/components/forms/condition/show-boolean.js","ui/templates/components/forms/condition/show-dollar.js","ui/templates/components/forms/condition/show-float.js","ui/templates/components/forms/condition/show-integer.js","ui/templates/components/forms/condition/show-list.js","ui/templates/components/forms/contact-information-form-fields.js","ui/templates/components/forms/custom/create-quote-form-fields.js","ui/templates/components/forms/custom/simplified-policy-form.js","ui/templates/components/forms/custom/single-page-quote-form.js","ui/templates/components/forms/d-buttons.js","ui/templates/components/forms/d-create-form.js","ui/templates/components/forms/funding-source-assignment-section.js","ui/templates/components/forms/insured-form.js","ui/templates/components/forms/interest-rates-form.js","ui/templates/components/forms/mga-form.js","ui/templates/components/forms/new-funding-payment-card.js","ui/templates/components/forms/note-form.js","ui/templates/components/forms/optimal-terms-form.js","ui/templates/components/forms/payment-details-card.js","ui/templates/components/forms/payment-details.js","ui/templates/components/forms/payment-details/ach-form-fields-card.js","ui/templates/components/forms/payment-details/ach-form-fields.js","ui/templates/components/forms/payment-details/check-form-fields-card.js","ui/templates/components/forms/payment-details/check-form-fields.js","ui/templates/components/forms/payment-details/draft-form-fields-card.js","ui/templates/components/forms/payment-details/draft-form-fields.js","ui/templates/components/forms/payment-details/wire-form-fields-card.js","ui/templates/components/forms/payment-details/wire-form-fields.js","ui/templates/components/forms/payment-form-fields.js","ui/templates/components/forms/payment-form.js","ui/templates/components/forms/policy-form.js","ui/templates/components/forms/single-value-form.js","ui/templates/components/forms/yield-rate-table-builder.js","ui/templates/components/fundings/approved-buttons.js","ui/templates/components/fundings/report-approved.js","ui/templates/components/fundings/report-not-payable.js","ui/templates/components/fundings/report-paid.js","ui/templates/components/fundings/report-payable.js","ui/templates/components/fundings/report-suspended.js","ui/templates/components/header/header-alerts.js","ui/templates/components/header/header-calls.js","ui/templates/components/header/header-container.js","ui/templates/components/header/header-current-user.js","ui/templates/components/header/header-search-result.js","ui/templates/components/header/header-search-results.js","ui/templates/components/header/header-search.js","ui/templates/components/header/header-settings-menu.js","ui/templates/components/header/header-settings.js","ui/templates/components/header/insured-view-header-container.js","ui/templates/components/icons/with-help.js","ui/templates/components/inputs/d-checkbox-list.js","ui/templates/components/inputs/d-checkbox.js","ui/templates/components/inputs/d-currency-input.js","ui/templates/components/inputs/d-datetime.js","ui/templates/components/inputs/d-file-upload.js","ui/templates/components/inputs/d-number-input.js","ui/templates/components/inputs/d-phone.js","ui/templates/components/inputs/d-pickaday.js","ui/templates/components/inputs/d-search-account.js","ui/templates/components/inputs/d-select-autocomplete.js","ui/templates/components/inputs/d-select.js","ui/templates/components/inputs/d-text-input.js","ui/templates/components/inputs/ember-paper-power-select-constant.js","ui/templates/components/inputs/ember-paper-power-select.js","ui/templates/components/inputs/errors-list.js","ui/templates/components/inputs/g-map-input.js","ui/templates/components/inputs/server-managed-input-wrapper.js","ui/templates/components/javascript-script-form.js","ui/templates/components/modals/d-adjustment.js","ui/templates/components/modals/d-base.js","ui/templates/components/modals/d-confirm-with-note.js","ui/templates/components/modals/d-confirm.js","ui/templates/components/modals/d-delete-prompt.js","ui/templates/components/modals/d-edit-form.js","ui/templates/components/modals/d-make-online-payment.js","ui/templates/components/modals/d-new-form.js","ui/templates/components/name-value-pair.js","ui/templates/components/notes-area.js","ui/templates/components/notes-list.js","ui/templates/components/notice-table-cell.js","ui/templates/components/notice-table.js","ui/templates/components/online-payment-forms/forte.js","ui/templates/components/online-payment/ach-page.js","ui/templates/components/online-payment/credit-card-page.js","ui/templates/components/page-title.js","ui/templates/components/pagination-controls.js","ui/templates/components/payments/policy-select-table.js","ui/templates/components/pfa-example-data-fields.js","ui/templates/components/quote-analysis/equity-per-installment.js","ui/templates/components/quote-analysis/late-fee-histogram.js","ui/templates/components/quote-analysis/simulation-distribution.js","ui/templates/components/quotes/apr-comparison.js","ui/templates/components/release-notes-email/callout.js","ui/templates/components/release-notes-email/cta.js","ui/templates/components/release-notes-email/feature.js","ui/templates/components/release-notes-email/footer.js","ui/templates/components/release-notes-email/header.js","ui/templates/components/release-notes-email/intro.js","ui/templates/components/release-notes-email/wrapper.js","ui/templates/components/script-injector.js","ui/templates/components/search-account.js","ui/templates/components/settings/password-reset.js","ui/templates/components/show-balance-due.js","ui/templates/components/show-text.js","ui/templates/components/show-total.js","ui/templates/components/side-nav.js","ui/templates/components/sidebar-list/sl-container.js","ui/templates/components/sidebar-list/sl-header.js","ui/templates/components/sidebar-list/sl-note.js","ui/templates/components/sidebar-list/sl-notes.js","ui/templates/components/tabbed-menu-item.js","ui/templates/components/tabbed-menu.js","ui/templates/components/tables/account-history-table-row.js","ui/templates/components/tables/account-history-table.js","ui/templates/components/tables/account-printable-header-table.js","ui/templates/components/tables/agency-form-comps-table.js","ui/templates/components/tables/balance-history-table.js","ui/templates/components/tables/buy-rate-table-records-table.js","ui/templates/components/tables/compensation-table-records-table.js","ui/templates/components/tables/compensations-table-item.js","ui/templates/components/tables/compensations-table-not-payable.js","ui/templates/components/tables/compensations-table-paid.js","ui/templates/components/tables/compensations-table-payable.js","ui/templates/components/tables/contact-row-expanded.js","ui/templates/components/tables/contacts-table.js","ui/templates/components/tables/contract-fundings.js","ui/templates/components/tables/d-table.js","ui/templates/components/tables/down-payment-rule-requirements-table.js","ui/templates/components/tables/down-payment-rules-table.js","ui/templates/components/tables/download-contract.js","ui/templates/components/tables/equity-rules-table.js","ui/templates/components/tables/fundings-table-not-payable.js","ui/templates/components/tables/fundings-table-paid.js","ui/templates/components/tables/fundings-table-payable.js","ui/templates/components/tables/fundings-table-suspended.js","ui/templates/components/tables/list-table.js","ui/templates/components/tables/notices-table-row.js","ui/templates/components/tables/notices-table.js","ui/templates/components/tables/payment-allocation-table.js","ui/templates/components/tables/payment-row-expanded.js","ui/templates/components/tables/policy-row-expanded.js","ui/templates/components/tables/policy-table.js","ui/templates/components/tables/policy-term-overrides-table.js","ui/templates/components/tables/quote-fundings.js","ui/templates/components/tables/rule-requirement-row.js","ui/templates/components/tables/rule-requirements-table.js","ui/templates/components/tables/sortable-header.js","ui/templates/components/tables/state-settings-table.js","ui/templates/components/tables/top-options-table.js","ui/templates/components/tables/transactions-table-row-adjustment.js","ui/templates/components/tables/transactions-table-row-fee-adjustment.js","ui/templates/components/tables/transactions-table-row-fee.js","ui/templates/components/tables/transactions-table-row-loan-adjustment.js","ui/templates/components/tables/transactions-table-row-payment-reversal.js","ui/templates/components/tables/transactions-table-row-payment.js","ui/templates/components/tables/transactions-table-row-rebate-reversal.js","ui/templates/components/tables/transactions-table-row-rebate.js","ui/templates/components/tables/transactions-table-row-refund-reversal.js","ui/templates/components/tables/transactions-table-row-refund.js","ui/templates/components/tables/transactions-table-row-reversal.js","ui/templates/components/tables/transactions-table-row-writeoff-reversal.js","ui/templates/components/tables/transactions-table-row-writeoff.js","ui/templates/components/tables/transactions-table.js","ui/templates/components/tables/yield-rate-table-records-table.js","ui/templates/components/visualization.js","ui/templates/components/visualizations/bar.js","ui/templates/components/visualizations/centered-singular.js","ui/templates/components/visualizations/factcard.js","ui/templates/components/visualizations/info-popover.js","ui/templates/components/visualizations/line.js","ui/templates/components/visualizations/list.js","ui/templates/components/visualizations/pie.js","ui/templates/components/visualizations/table.js","ui/templates/components/x-alert.js","ui/templates/components/x-note.js","ui/templates/contracts/show.js","ui/templates/contracts/show/documents.js","ui/templates/contracts/show/down-payment-distribution.js","ui/templates/contracts/show/esigned-pfas.js","ui/templates/contracts/show/policies.js","ui/templates/contracts/show/terms.js","ui/templates/custom-reports.js","ui/templates/custom-reports/index.js","ui/templates/custom-reports/index/new.js","ui/templates/custom-reports/query-builder.js","ui/templates/custom-reports/show.js","ui/templates/doc-stamp-fees/index.js","ui/templates/doc-stamp-fees/index/paid.js","ui/templates/doc-stamp-fees/index/suspended.js","ui/templates/doc-stamp-fees/index/unpaid.js","ui/templates/docs.js","ui/templates/docs/show.js","ui/templates/down-payments/index.js","ui/templates/down-payments/index/paid.js","ui/templates/down-payments/index/remaining-balance.js","ui/templates/esign-pfa.js","ui/templates/external-processing-fees/index.js","ui/templates/fundings/index.js","ui/templates/fundings/index/approved.js","ui/templates/fundings/index/not-payable.js","ui/templates/fundings/index/packaged-payments.js","ui/templates/fundings/index/paid.js","ui/templates/fundings/index/payable.js","ui/templates/fundings/index/suspended.js","ui/templates/gl-report.js","ui/templates/global-admin.js","ui/templates/global-admin/index.js","ui/templates/global-admin/notice-layouts/index.js","ui/templates/global-admin/notice-layouts/show.js","ui/templates/global-admin/notice-layouts/show/css.js","ui/templates/global-admin/notice-layouts/show/html.js","ui/templates/global-admin/tenants/index.js","ui/templates/global-admin/tenants/show.js","ui/templates/home.js","ui/templates/insureds.js","ui/templates/insureds/accounts/index.js","ui/templates/insureds/accounts/show.js","ui/templates/insureds/accounts/show/notices/index.js","ui/templates/insureds/accounts/show/policies/index.js","ui/templates/insureds/accounts/show/terms.js","ui/templates/insureds/accounts/show/transactions/index.js","ui/templates/insureds/settings/users/update-password-success.js","ui/templates/insureds/settings/users/update-password.js","ui/templates/log-in-with-one-time-token.js","ui/templates/online-payments/index.js","ui/templates/online-payments/index/approved.js","ui/templates/online-payments/index/packaged-payments.js","ui/templates/online-payments/index/payable.js","ui/templates/permission-denied.js","ui/templates/processing.js","ui/templates/processing/email.js","ui/templates/processing/fax.js","ui/templates/processing/mail.js","ui/templates/processing/mailed-batches.js","ui/templates/processing/text.js","ui/templates/processing/unfulfilled.js","ui/templates/processing/unprocessed.js","ui/templates/quotes/index.js","ui/templates/quotes/show.js","ui/templates/quotes/show/analysis.js","ui/templates/quotes/show/contracts.js","ui/templates/quotes/show/documents/index.js","ui/templates/quotes/show/optimal-terms.js","ui/templates/quotes/show/options.js","ui/templates/quotes/show/policies.js","ui/templates/quotes/show/policies/new.js","ui/templates/quotes/show/terms.js","ui/templates/quotes/summary.js","ui/templates/refunds/index.js","ui/templates/refunds/index/approved.js","ui/templates/refunds/index/packaged-payments.js","ui/templates/refunds/index/paid.js","ui/templates/refunds/index/payable.js","ui/templates/refunds/index/suspended.js","ui/templates/release-notes/show.js","ui/templates/reports.js","ui/templates/settings.js","ui/templates/settings/agencies/index.js","ui/templates/settings/agencies/new.js","ui/templates/settings/agencies/show.js","ui/templates/settings/agencies/show/analysis.js","ui/templates/settings/agencies/show/business-info.js","ui/templates/settings/agencies/show/call-recipient-groups.js","ui/templates/settings/agencies/show/compensations.js","ui/templates/settings/agencies/show/contact-info.js","ui/templates/settings/agencies/show/contacts.js","ui/templates/settings/agencies/show/documents.js","ui/templates/settings/agencies/show/down-payment-tables.js","ui/templates/settings/agencies/show/down-payments.js","ui/templates/settings/agencies/show/fundings.js","ui/templates/settings/agencies/show/interactions.js","ui/templates/settings/agencies/show/loss-share.js","ui/templates/settings/agencies/show/notices.js","ui/templates/settings/agencies/show/refunds.js","ui/templates/settings/agencies/show/tasks.js","ui/templates/settings/agencies/show/territories.js","ui/templates/settings/brands/index.js","ui/templates/settings/brands/new.js","ui/templates/settings/brands/show.js","ui/templates/settings/brands/show/bank-information.js","ui/templates/settings/brands/show/check-mailing.js","ui/templates/settings/brands/show/contact-info.js","ui/templates/settings/brands/show/pfa-template.js","ui/templates/settings/buy-rate-tables/index.js","ui/templates/settings/buy-rate-tables/index/new.js","ui/templates/settings/buy-rate-tables/show.js","ui/templates/settings/call-recipient-groups/index.js","ui/templates/settings/call-recipient-groups/index/new.js","ui/templates/settings/call-recipient-groups/show.js","ui/templates/settings/carriers/index.js","ui/templates/settings/carriers/new.js","ui/templates/settings/carriers/show.js","ui/templates/settings/carriers/show/compensation-payment.js","ui/templates/settings/carriers/show/contact-info.js","ui/templates/settings/carriers/show/contacts.js","ui/templates/settings/carriers/show/documents.js","ui/templates/settings/carriers/show/funding-payment.js","ui/templates/settings/carriers/show/index.js","ui/templates/settings/carriers/show/interactions.js","ui/templates/settings/carriers/show/notices.js","ui/templates/settings/carriers/show/tasks.js","ui/templates/settings/compensation-tables/index.js","ui/templates/settings/compensation-tables/index/new.js","ui/templates/settings/compensation-tables/show.js","ui/templates/settings/cost-of-funds-tables/index.js","ui/templates/settings/cost-of-funds-tables/index/new.js","ui/templates/settings/cost-of-funds-tables/show.js","ui/templates/settings/coverage-types/index.js","ui/templates/settings/coverage-types/index/new.js","ui/templates/settings/down-payment-tables/index.js","ui/templates/settings/down-payment-tables/index/new.js","ui/templates/settings/down-payment-tables/show.js","ui/templates/settings/down-payment-tables/show/agencies.js","ui/templates/settings/down-payment-tables/show/rules.js","ui/templates/settings/funding-sources/index.js","ui/templates/settings/funding-sources/show.js","ui/templates/settings/funding-sources/show/contact-info.js","ui/templates/settings/index-rate-tables/index.js","ui/templates/settings/index-rate-tables/index/new.js","ui/templates/settings/index-rate-tables/show.js","ui/templates/settings/insureds/index.js","ui/templates/settings/insureds/new.js","ui/templates/settings/insureds/show.js","ui/templates/settings/insureds/show/business-info.js","ui/templates/settings/insureds/show/contact-info.js","ui/templates/settings/insureds/show/documents.js","ui/templates/settings/insureds/show/history.js","ui/templates/settings/mgas/index.js","ui/templates/settings/mgas/new.js","ui/templates/settings/mgas/show.js","ui/templates/settings/mgas/show/business-info.js","ui/templates/settings/mgas/show/compensation-payment.js","ui/templates/settings/mgas/show/contact-info.js","ui/templates/settings/mgas/show/contacts.js","ui/templates/settings/mgas/show/documents.js","ui/templates/settings/mgas/show/funding-payment.js","ui/templates/settings/mgas/show/interactions.js","ui/templates/settings/mgas/show/notices.js","ui/templates/settings/mgas/show/tasks.js","ui/templates/settings/notice-templates/index.js","ui/templates/settings/notice-templates/show.js","ui/templates/settings/notice-templates/show/edit.js","ui/templates/settings/notice-templates/show/view.js","ui/templates/settings/optimization-terms-tables/index.js","ui/templates/settings/optimization-terms-tables/index/new.js","ui/templates/settings/optimization-terms-tables/show.js","ui/templates/settings/optimization-terms-tables/show/equity-rules.js","ui/templates/settings/optimization-terms-tables/show/policy-term-overrides.js","ui/templates/settings/p-and-l-costs.js","ui/templates/settings/p-and-l-costs/cancellations-without-reinstatement.js","ui/templates/settings/p-and-l-costs/index.js","ui/templates/settings/p-and-l-costs/mailed-notices.js","ui/templates/settings/p-and-l-costs/service-loans.js","ui/templates/settings/p-and-l-costs/user-created-notes.js","ui/templates/settings/roles/index.js","ui/templates/settings/roles/show.js","ui/templates/settings/state-laws-set-collections/index.js","ui/templates/settings/state-laws-set-collections/index/new.js","ui/templates/settings/state-laws-set-collections/show.js","ui/templates/settings/state-laws-set-collections/show/state-laws-set/index.js","ui/templates/settings/state-laws-set-collections/show/state-laws-set/show.js","ui/templates/settings/state-laws-set-collections/show/state-laws-set/show/commercial.js","ui/templates/settings/state-laws-set-collections/show/state-laws-set/show/general.js","ui/templates/settings/state-laws-set-collections/show/state-laws-set/show/personal.js","ui/templates/settings/territories/index.js","ui/templates/settings/territories/index/new.js","ui/templates/settings/territories/show.js","ui/templates/settings/territories/show/analysis.js","ui/templates/settings/territories/show/index.js","ui/templates/settings/users/index.js","ui/templates/settings/users/show.js","ui/templates/settings/users/update-password-success.js","ui/templates/settings/users/update-password.js","ui/templates/settings/yield-rate-tables/index.js","ui/templates/settings/yield-rate-tables/index/new.js","ui/templates/settings/yield-rate-tables/show.js","ui/templates/style-guide.js","ui/templates/style-guide/buttons.js","ui/templates/style-guide/forms.js","ui/templates/style-guide/inputs.js","ui/templates/style-guide/links.js","ui/templates/style-guide/modals.js","ui/templates/style-guide/tables.js","ui/templates/working-payment-batches/index.js","ui/templates/working-payment-batches/show.js","ui/transforms/boolean.js","ui/transforms/cents.js","ui/transforms/date-without-time-array.js","ui/transforms/date-without-time.js","ui/transforms/date.js","ui/transforms/immutable-accounting-cache.js","ui/transforms/immutable-avilable-analysis-dataset-permissions.js","ui/transforms/immutable-brand-stub.js","ui/transforms/immutable-compensated-overpayments.js","ui/transforms/immutable-compensation-rates.js","ui/transforms/immutable-contracts.js","ui/transforms/immutable-deferments.js","ui/transforms/immutable-down-payment-request.js","ui/transforms/immutable-funding-delay-graph-data.js","ui/transforms/immutable-fundings.js","ui/transforms/immutable-incoming-payments.js","ui/transforms/immutable-log-event.js","ui/transforms/immutable-notes.js","ui/transforms/immutable-policies.js","ui/transforms/immutable-required-down-payments.js","ui/transforms/immutable-return-equity-per-installment.js","ui/transforms/immutable-tenant-report.js","ui/transforms/immutable-top-optimal-terms-options.js","ui/transforms/immutable-top-optimal-terms.js","ui/transforms/immutable-transactions.js","ui/transforms/immutable-transform.js","ui/transforms/mutable-contact-information.js","ui/transforms/number.js","ui/transforms/payment-schedule.js","ui/transforms/stored-as-json.js","ui/transforms/string.js","ui/transforms/transforms.js","ui/transforms/utc-date.js","ui/utils/analysis/datasets-transformer.js","ui/utils/analysis/helpers.js","ui/utils/build-brand-and-funding-source-query-params.js","ui/utils/build-data-test-value.js","ui/utils/calculate-position.js","ui/utils/camelize.js","ui/utils/clamp.js","ui/utils/collect-down-payment-fundings.js","ui/utils/communication-stream/answer.js","ui/utils/communication-stream/base-communication-object.js","ui/utils/communication-stream/offer.js","ui/utils/coordinate-visualizations.js","ui/utils/date-without-time.js","ui/utils/date.js","ui/utils/default-online-payment-amount.js","ui/utils/funding-calculation.js","ui/utils/get-model-id.js","ui/utils/get-related-model-id.js","ui/utils/insured-standing-tooltip.js","ui/utils/intl/missing-message.js","ui/utils/mga-selection.js","ui/utils/pagination.js","ui/utils/quote-start-query-params.js","ui/utils/refund-payable-to.js","ui/utils/response-format.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","define(\"ui/adapters/-json-api\", [\"exports\", \"@ember-data/adapter/json-api\"], function (_exports, _jsonApi) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _jsonApi.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/json-api\"eaimeta@70e063a35619d71f\n});","define(\"ui/adapters/account\", [\"exports\", \"ui/adapters/application\"], function (_exports, _application) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/adapters/application\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _application.default.extend();\n});","define(\"ui/adapters/application\", [\"exports\", \"@ember-data/adapter/json-api\", \"ui/mixins/adapters/global-config\", \"@ember/string\", \"@ember/service\"], function (_exports, _jsonApi, _globalConfig, _string, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/json-api\",0,\"ui/mixins/adapters/global-config\",0,\"@ember/string\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _jsonApi.default.extend(_globalConfig.default, {\n session: (0, _service.inject)(),\n mimeType: 'application/vnd.api+json',\n coalesceFindRequests: true,\n handleResponse(status, headers, payload, requestData) {\n if (status === 401) {\n this.session.invalidateOnResponseStatus(status);\n }\n return this._super(status, headers, payload, requestData);\n },\n createRecord(store, type, snapshot) {\n let data = {};\n let serializer = store.serializerFor(type.modelName);\n let url = this.buildURL(type.modelName, null, snapshot, 'createRecord');\n serializer.serializeIntoHash(data, type, snapshot, {\n includeId: true\n });\n if (snapshot.adapterOptions) {\n url = this._addRequestParams(url, snapshot.adapterOptions);\n }\n return this.ajax(url, 'POST', {\n data: data\n });\n },\n findAll(store, type, sinceToken, snapshotRecordArray) {\n let query = this.buildQuery(snapshotRecordArray);\n let url = this.buildURL(type.modelName, null, snapshotRecordArray, 'findAll');\n if (snapshotRecordArray.adapterOptions) {\n url = this._addRequestParams(url, snapshotRecordArray.adapterOptions);\n }\n if (sinceToken) {\n query.since = sinceToken;\n }\n return this.ajax(url, 'GET', {\n data: query\n });\n },\n findRecord(store, type, id, snapshot) {\n let url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n let query = this.buildQuery(snapshot);\n if (snapshot.adapterOptions) {\n url = this._addRequestParams(url, snapshot.adapterOptions);\n }\n return this.ajax(url, 'GET', {\n data: query\n });\n },\n _addRequestParams(url, options) {\n const params = [];\n for (const option in options) {\n const optionName = (0, _string.underscore)(option);\n params.push(`${optionName}=${options[option]}`);\n }\n return url + '?' + params.join('&');\n }\n });\n});","define(\"ui/adapters/batch\", [\"exports\", \"ui/adapters/application\"], function (_exports, _application) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/adapters/application\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _application.default.extend({\n namespace: 'api/online-payment'\n });\n});","define(\"ui/adapters/contract\", [\"exports\", \"ui/adapters/application\"], function (_exports, _application) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/adapters/application\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _application.default.extend({\n updateRecord: function (store, type, snapshot) {\n var data = {};\n var serializer = store.serializerFor(type.modelName);\n serializer.serializeIntoHash(data, type, snapshot);\n var id = snapshot.id;\n var url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n if (snapshot.adapterOptions && snapshot.adapterOptions.activate) {\n url = url + '?activate=true';\n }\n return this.ajax(url, 'PUT', {\n data: data\n });\n }\n });\n});","define(\"ui/adapters/forms\", [\"exports\", \"@ember/string\", \"ember-inflector\", \"@ember-data/adapter/rest\", \"ui/mixins/adapters/global-config\"], function (_exports, _string, _emberInflector, _rest, _globalConfig) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/string\",0,\"ember-inflector\",0,\"@ember-data/adapter/rest\",0,\"ui/mixins/adapters/global-config\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _rest.default.extend(_globalConfig.default, {\n pathForType: function (type) {\n let underscored = (0, _string.underscore)(type);\n return (0, _emberInflector.pluralize)(underscored);\n }\n });\n});","define(\"ui/adapters/forms/agency\", [\"exports\", \"ui/adapters/forms\"], function (_exports, _forms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/adapters/forms\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _forms.default.extend();\n});","define(\"ui/adapters/forms/payment\", [\"exports\", \"ui/adapters/forms\"], function (_exports, _forms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/adapters/forms\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _forms.default.extend();\n});","define(\"ui/adapters/message\", [\"exports\", \"ui/adapters/application\", \"@ember/service\", \"@ember/object\"], function (_exports, _application, _service, _object) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/adapters/application\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _application.default.extend({\n request: (0, _service.inject)(),\n findAll() {\n (0, _object.set)(this.request, 'preventNextLoading', true);\n return this._super(...arguments);\n }\n });\n});","define(\"ui/adapters/paymethod\", [\"exports\", \"ui/adapters/application\"], function (_exports, _application) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/adapters/application\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _application.default.extend({\n namespace: 'api/online-payment'\n });\n});","define(\"ui/adapters/transaction\", [\"exports\", \"ui/adapters/application\"], function (_exports, _application) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/adapters/application\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _application.default.extend({\n namespace: 'api/online-payment'\n });\n});","define(\"ui/app\", [\"exports\", \"@ember/application\", \"ember-resolver\", \"ember-load-initializers\", \"ui/config/environment\"], function (_exports, _application, _emberResolver, _emberLoadInitializers, _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-resolver\",0,\"ember-load-initializers\",0,\"ui/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 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 }\n }\n _exports.default = App;\n (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","define(\"ui/authenticators/ui\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ember-simple-auth/authenticators/oauth2-password-grant\", \"ui/config/environment\", \"ui/utils/response-format\"], function (_exports, _service, _object, _oauth2PasswordGrant, _environment, _responseFormat) {\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-simple-auth/authenticators/oauth2-password-grant\",0,\"ui/config/environment\",0,\"ui/utils/response-format\"eaimeta@70e063a35619d71f\n function appendTenantQuery(url, tenant) {\n if (!tenant) {\n return url;\n }\n const separator = url.includes('?') ? '&' : '?';\n return `${url}${separator}tenant=${encodeURIComponent(tenant)}`;\n }\n var _default = _exports.default = _oauth2PasswordGrant.default.extend({\n ajax: (0, _service.inject)(),\n store: (0, _service.inject)(),\n session: (0, _service.inject)(),\n flipper: (0, _service.inject)(),\n serverTokenEndpoint: (0, _object.computed)('session.effectiveTenant', function () {\n const baseUrl = `${_environment.default.DS.host}/${_environment.default.DS.namespace}/authentications`;\n return appendTenantQuery(baseUrl, (0, _object.get)(this, 'session.effectiveTenant'));\n }),\n authenticate() {\n const session = this.session;\n return this._super(...arguments).then(this._getCurrentUserAndPermissionsCallback(session));\n },\n restore() {\n const session = this.session;\n return this._super(...arguments).then(this._getCurrentUserAndPermissionsCallback(session));\n },\n invalidate() {\n Honeybadger.setContext({\n user_id: (0, _object.get)(this, 'session.currentUser.id')\n });\n Honeybadger.notify('Just got invalidated!');\n const userId = (0, _object.get)(this, 'session.currentUser.id');\n if (!userId) {\n return this._super(...arguments);\n }\n return this.ajax.unauthenticate(userId).catch(() => null).then(() => this._super(...arguments));\n },\n _getCurrentUserAndPermissionsCallback(session) {\n let store = (0, _object.get)(this, 'store');\n return authData => {\n const url = `${_environment.default.DS.host}/${_environment.default.DS.namespace}/users/${authData.user_id}/current?include=role,brand`;\n return (0, _object.get)(this, 'ajax').get(url, {\n skipNormailzingResponse: true,\n headers: {\n Authorization: `Bearer ${authData.access_token}`,\n Accept: `application/vnd.api+json`\n }\n }).then(response => {\n // We need to build our response into Ember Data objects so if they are changed the\n // current user objects change with them\n\n const includedRole = response.included?.find(i => i.type === 'role');\n if (!includedRole) {\n throw \"Can not access the user role while authenticating\";\n }\n const includedBrand = response.included?.find(i => i.type === 'brand');\n if (!includedBrand) {\n throw \"Can not access the user brand while authenticating\";\n }\n store.pushPayload('user', {\n data: response.data\n });\n store.pushPayload('role', {\n data: includedRole\n });\n store.pushPayload('brand', {\n data: includedBrand\n });\n\n // OMFG ED suuuuucks!\n // we are just assigning the brand attributes to the session directly now\n // because when pushing to the store it returns a proxy which doesn't get updated\n // after the model object (currentBrand) is assigned to the session :sob:\n // this is problematice because any updates to the current brand will not be reflected\n\n let currentBrand = (0, _responseFormat.normalizeResponse)(includedBrand.attributes);\n const currentBrandData = response.current_brand;\n if (currentBrandData) {\n currentBrand = (0, _responseFormat.normalizeResponse)(currentBrandData.data.attributes);\n }\n const permissions = (0, _responseFormat.normalizeResponse)(response.permitted);\n const currentUser = store.peekRecord('user', response.data.id);\n\n // Until we can remove `.value` from all the permissions we'll just add it back here\n for (const prop in permissions) {\n if (permissions.hasOwnProperty(prop)) {\n permissions[prop] = {\n value: permissions[prop]\n };\n }\n }\n (0, _object.set)(session, 'permissions', permissions);\n (0, _object.set)(session, 'currentUser', currentUser);\n (0, _object.set)(session, 'currentBrand', currentBrand);\n (0, _object.set)(session, 'currentRole', (0, _object.get)(currentUser, 'role'));\n (0, _object.set)(session, 'ccClient', response.cc_client);\n (0, _object.set)(session, 'tenant', response.tenant);\n (0, _object.set)(session, 'sftpAddress', response.sftp_address);\n (0, _object.set)(session, 'defaultAgencyPolicyExemptionAmount', response.default_agency_policy_exemption_amount);\n (0, _object.set)(session, 'multipleBrands', response.multiple_brands);\n (0, _object.set)(session, 'multipleTerritories', response.multiple_territories);\n (0, _object.set)(session, 'nonPfLoans', response.non_pf_loans);\n (0, _object.set)(session, 'methodToSelectBrandForQuotes', response.method_to_select_brand_for_quotes);\n (0, _object.set)(session, 'usePresort', response.use_presort);\n session.setIsMimicking();\n if (response.local) {\n session.setLocal(response.local);\n } else {\n console.log(\"No local set in the user payload, using default en-us\");\n session.setLocal(\"en-us\");\n }\n return response.enabled_features;\n }).then(enabledFeatures => {\n if (enabledFeatures === undefined) {\n throw \"The user payload did not include enabledFeatures\";\n }\n this.flipper.setEnabledFeatures(enabledFeatures);\n }).then(() => {\n return authData;\n });\n };\n }\n });\n});","define(\"ui/commands/account-update-down-payment-request\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _transforms, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toId,\n toInt\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/update-down-payment-request',\n accountId: attr(),\n fundingIds: attr(),\n fundCommissionsSeparately: attr(),\n downPaymentToCollect: attr(_cents.toCents),\n installmentsToCollectAtActivation: attr(toInt),\n updatePolicyCommissions: attr()\n });\n});","define(\"ui/commands/activate-contract\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'activate-contract',\n contractId: attr()\n });\n});","define(\"ui/commands/add-agency-to-territory\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'add-agency-to-territory',\n agencyId: attr(),\n territoryId: attr()\n });\n});","define(\"ui/commands/add-contract-to-quote\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/add-contract-to-quote',\n quoteId: attr()\n });\n});","define(\"ui/commands/add-fee-to-account\", [\"exports\", \"ui/commands/density-command\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/add-fee-to-account',\n accountId: attr(),\n amount: attr(_cents.toCents),\n typeOfCharge: attr()\n });\n});","define(\"ui/commands/add-policy-to-quote\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\", \"ui/utils/date-without-time\"], function (_exports, _densityCommand, _transforms, _cents, _dateWithoutTime) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\",0,\"ui/utils/date-without-time\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toInt,\n toBool,\n toId\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/add-policy-to-quote',\n effectiveDate: attr(_dateWithoutTime.dateWithoutTime),\n expirationDate: attr(_dateWithoutTime.dateWithoutTime),\n additionalDaysToCancel: attr(toInt),\n shortRate: attr(toBool),\n filings: attr(toBool),\n auditable: attr(toBool),\n // sendNoticeToStateAuthority: attr(toBool),\n minEarnedPercentage: attr(),\n taxes: attr(_cents.toCents),\n brokerFee: attr(_cents.toCents),\n policyFee: attr(_cents.toCents),\n allOtherFees: attr(_cents.toCents),\n number: attr(),\n premium: attr(_cents.toCents),\n mga: attr(toId),\n additionalMga: attr(toId),\n carrier: attr(toId),\n coverageType: attr(toId),\n quoteId: attr()\n });\n});","define(\"ui/commands/adjust-fee\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/adjust-fee',\n accountId: attr(),\n adjustedFeeId: attr(),\n amount: attr(),\n comment: attr()\n });\n});","define(\"ui/commands/answer-call\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'calls/answer',\n callId: attr()\n });\n});","define(\"ui/commands/compensate-with-down-payment-overpayment\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/compensate-with-down-payment-overpayment',\n compensationPaymentRecipientId: attr(),\n accountId: attr()\n });\n});","define(\"ui/commands/create-endorsement\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\", \"ui/utils/date-without-time\"], function (_exports, _densityCommand, _transforms, _cents, _dateWithoutTime) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\",0,\"ui/utils/date-without-time\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toFloat,\n toInt,\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/create-endorsement',\n accountId: attr(),\n coverageTypeId: attr(),\n mgaId: attr(),\n additionalMgaId: attr(),\n carrierId: attr(),\n effectiveDate: attr(_dateWithoutTime.dateWithoutTime),\n expirationDate: attr(_dateWithoutTime.dateWithoutTime),\n additionalDaysToCancel: attr(toInt),\n shortRate: attr(toBool),\n filings: attr(toBool),\n auditable: attr(toBool),\n sendNoticeToStateAuthority: attr(toBool),\n minEarnedPercentage: attr(toFloat),\n taxes: attr(_cents.toCents),\n brokerFee: attr(_cents.toCents),\n policyFee: attr(_cents.toCents),\n allOtherFees: attr(_cents.toCents),\n number: attr(),\n premium: attr(_cents.toCents)\n });\n});","define(\"ui/commands/create-new-quote\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\", \"ui/utils/date-without-time\"], function (_exports, _densityCommand, _transforms, _cents, _dateWithoutTime) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\",0,\"ui/utils/date-without-time\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toFloat,\n toInt,\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/create-new-quote',\n agencyId: attr(),\n insuredId: attr(),\n coverageTypeId: attr(),\n carrierId: attr(),\n mgaId: attr(),\n additionalMgaId: attr(),\n effectiveDate: attr(_dateWithoutTime.dateWithoutTime),\n expirationDate: attr(_dateWithoutTime.dateWithoutTime),\n additionalDaysToCancel: attr(toInt),\n shortRate: attr(toBool),\n filings: attr(toBool),\n auditable: attr(toBool),\n sendNoticeToStateAuthority: attr(toBool),\n minEarnedPercentage: attr(toFloat),\n taxes: attr(_cents.toCents),\n brokerFee: attr(_cents.toCents),\n policyFee: attr(_cents.toCents),\n allOtherFees: attr(_cents.toCents),\n number: attr(),\n premium: attr(_cents.toCents)\n });\n});","define(\"ui/commands/create-quote-legal-acknowledgement\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/create-quote-legal-acknowledgement',\n stateLawsSetId: attr(_transforms.toInt)\n });\n});","define(\"ui/commands/create-renewal-quote\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/create-renewal-quote',\n accountId: attr()\n });\n});","define(\"ui/commands/delete-deferments\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/delete-deferments',\n accountId: attr(),\n defermentIds: attr()\n });\n});","define(\"ui/commands/delete-paymethod-from-quote\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/delete-paymethod',\n quoteId: attr(),\n paymethodId: attr()\n });\n});","define(\"ui/commands/delete-paymethod\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/delete-paymethod',\n accountId: attr(),\n paymethodId: attr()\n });\n});","define(\"ui/commands/delete-policy-from-quote\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/delete-policy-from-quote',\n quoteId: attr(),\n policyId: attr()\n });\n});","define(\"ui/commands/density-command\", [\"exports\", \"@ember/service\", \"@ember/application\", \"@ember/string\", \"rsvp\", \"@ember/object\", \"ui/helpers/to-human\", \"lodash\"], function (_exports, _service, _application, _string, _rsvp, _object, _toHuman, _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/application\",0,\"@ember/string\",0,\"rsvp\",0,\"@ember/object\",0,\"ui/helpers/to-human\",0,\"lodash\"eaimeta@70e063a35619d71f\n const Changeset = _object.default.extend({\n errors: _object.default.create(),\n watch(attrName) {\n this.addObserver(attrName, this, function () {\n (0, _object.set)(this, `errors.${attrName}`, null);\n });\n },\n resetErrors() {\n (0, _object.set)(this, `errors`, _object.default.create());\n }\n });\n const Attr = _object.default.extend({\n isAttr: true\n });\n const attr = serializeFunction => {\n return Attr.create({\n serializeFunction: serializeFunction\n });\n };\n const Command = _object.default.extend({\n ajax: (0, _service.inject)(),\n store: (0, _service.inject)(),\n save() {\n const store = (0, _object.get)(this, 'store');\n const changeset = (0, _object.get)(this, 'changeset');\n const requestData = {};\n const proxy = (0, _object.get)(this, 'proxy');\n _lodash.default.merge(proxy, changeset);\n (0, _object.get)(this, 'attributesList').forEach(attr => {\n let value = proxy[attr.name];\n if (value === null) {\n requestData[attr.name] = value;\n } else {\n if (attr.serializeFunction) {\n value = attr.serializeFunction(value);\n }\n if (value !== undefined && value !== null) {\n requestData[attr.name] = value;\n }\n }\n });\n return (0, _object.get)(this, 'ajax').sendCommand(this.name, requestData).then(resourcesToUpdate => {\n this.rollback();\n return _rsvp.default.all(resourcesToUpdate.map(resourceToUpdate => {\n if (resourceToUpdate.name && resourceToUpdate.id) {\n // Skip objects that don't have corresponding Ember Data models\n // (e.g., 'unique-token' which is not a model but a metadata object)\n const modelName = resourceToUpdate.name;\n const normalizedModelName = (0, _string.dasherize)(modelName);\n const owner = (0, _application.getOwner)(this);\n\n // Check if the model factory exists before trying to find the record\n // Ember Data normalizes model names to kebab-case\n const modelFactory = owner.factoryFor(`model:${normalizedModelName}`);\n if (modelFactory) {\n return store.findRecord(normalizedModelName, resourceToUpdate.id);\n }\n // If no model factory exists, return the resource as-is\n }\n return resourceToUpdate;\n }));\n }).catch(errors => {\n if (errors.constructor === _object.default) {\n for (const attributeName in errors) {\n if (errors.hasOwnProperty(attributeName)) {\n changeset.errors.set(attributeName, errors[attributeName].map(message => {\n return `${(0, _toHuman.toHuman)(attributeName)} ${message}`;\n }));\n }\n }\n throw errors;\n } else {\n const statuses = errors.errors.map(e => e.status);\n if (statuses.indexOf('404') < 0 && statuses.indexOf('403') < 0) {\n throw new Error(errors);\n }\n }\n });\n },\n rollback() {\n (0, _object.set)(this, 'changeset', Changeset.create());\n },\n reset() {\n // we need to set the error objects to null explicitly :(\n const errors = (0, _object.get)(this, 'changeset.errors');\n for (let errorName in errors) {\n if (errors.hasOwnProperty(errorName)) {\n (0, _object.set)(errors, errorName, null);\n }\n }\n (0, _object.set)(this, 'changeset', Changeset.create());\n (0, _object.set)(this, 'proxy', _object.default.create());\n },\n init() {\n const attributesList = [];\n const changeset = Changeset.create();\n (0, _object.set)(this, 'proxy', _object.default.create());\n (0, _object.set)(this, 'attributesList', attributesList);\n (0, _object.set)(this, 'changeset', changeset);\n for (let attributeName in this) {\n const attr = this[attributeName];\n if (attr && attr.isAttr) {\n attr.name = attributeName;\n attributesList.pushObject(attr);\n changeset.watch(attributeName);\n }\n }\n }\n });\n var _default = _exports.default = {\n Command,\n attr\n };\n});","define(\"ui/commands/end-call\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'calls/end',\n callId: attr()\n });\n});","define(\"ui/commands/finalize-batch-incoming-payments\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'finalize-batch-incoming-payments',\n workingBatchPaymentId: attr()\n });\n});","define(\"ui/commands/get-contract-for-quote\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/get-contract-for-quote',\n quoteId: attr()\n });\n});","define(\"ui/commands/get-down-payment-link\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'get-down-payment-link',\n contractId: attr(),\n quoteId: attr(),\n accountId: attr(),\n emailAddress: attr()\n });\n});","define(\"ui/commands/make-one-time-credit-card-payment-elavon\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/make-one-time-credit-card-payment-elavon',\n accountId: attr(),\n details: attr(),\n primaryAmount: attr(),\n feeAmount: attr()\n });\n});","define(\"ui/commands/make-online-payment\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/make-online-payment',\n accountId: attr(),\n paymethodId: attr(),\n feeAmount: attr(),\n primaryAmount: attr(),\n purpose: attr(),\n policyId: attr()\n });\n});","define(\"ui/commands/pay-online-payment-transactions\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'online-payments/pay-transactions',\n ids: attr()\n });\n});","define(\"ui/commands/process-batch-notices\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'process-batch-notices',\n noticePurposes: attr(),\n deliveryMethod: attr()\n });\n});","define(\"ui/commands/process-bulk-outgoing-payments\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'process-bulk-outgoing-payments',\n paymentType: attr(),\n paymentPurpose: attr(),\n initialCheckNumber: attr(),\n brandName: attr(),\n fundingSourceId: attr()\n });\n});","define(\"ui/commands/process-incoming-payment\", [\"exports\", \"ui/commands/density-command\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/process-incoming-payment',\n methodReceived: attr(),\n checkOrReferenceNumber: attr(),\n nameOnPayment: attr(),\n payingPartyType: attr(),\n amount: attr(_cents.toCents),\n purpose: attr(),\n policyId: attr(),\n accountId: attr(),\n installmentId: attr(),\n reinstate: attr()\n });\n});","define(\"ui/commands/refund-payment\", [\"exports\", \"ui/commands/density-command\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/refund-payment',\n accountId: attr(),\n amount: attr(_cents.toCents),\n recipientType: attr(),\n recipientId: attr(),\n paymentGettingRefundedId: attr(),\n comment: attr()\n });\n});","define(\"ui/commands/reject-contract\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'contracts/reject',\n contractId: attr(),\n comment: attr()\n });\n});","define(\"ui/commands/remove-agency-from-territory\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'remove-agency-from-territory',\n agencyId: attr(),\n territoryId: attr()\n });\n});","define(\"ui/commands/remove-recurring-paymethod-for-quote\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/remove-recurring-paymethod',\n quoteId: attr()\n });\n});","define(\"ui/commands/remove-recurring-paymethod\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/remove-recurring-paymethod',\n accountId: attr()\n });\n});","define(\"ui/commands/resend-notice-via-email\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/resend-notice-via-email',\n noticeId: attr(),\n updateNotice: attr(),\n overrideEmailTo: attr()\n });\n});","define(\"ui/commands/resend-notice\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/resend-notice',\n noticeId: attr(),\n updateNotice: attr()\n });\n});","define(\"ui/commands/reverse-incoming-payment\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/reverse-incoming-payment',\n accountId: attr(),\n paymentToReverseId: attr(),\n purpose: attr(),\n comment: attr(),\n sendNsfCheck: attr()\n });\n});","define(\"ui/commands/reverse-rebate\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/reverse-rebate',\n rebateId: attr(),\n accountId: attr(),\n comment: attr()\n });\n});","define(\"ui/commands/reverse-refund\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/reverse-refund',\n refundToReverseId: attr(),\n accountId: attr(),\n comment: attr()\n });\n});","define(\"ui/commands/reverse-writeoff\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/reverse-writeoff',\n writeoffId: attr(),\n accountId: attr(),\n comment: attr()\n });\n});","define(\"ui/commands/run-end-of-day-processing\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'run-end-of-day-processing'\n });\n});","define(\"ui/commands/select-recurring-payment-method-for-quote\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/select-recurring-payment-method',\n quoteId: attr(),\n paymethodId: attr()\n });\n});","define(\"ui/commands/select-recurring-payment-method\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/select-recurring-payment-method',\n accountId: attr(),\n paymethodId: attr()\n });\n});","define(\"ui/commands/send-esign-request\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/send-esign-request',\n contractId: attr(),\n agencyEmail: attr(),\n insuredEmail: attr()\n });\n});","define(\"ui/commands/set-additional-cancellation-grace-period\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/set-additional-cancellation-grace-period',\n accountId: attr(),\n additionalCancellationGracePeriod: attr()\n });\n});","define(\"ui/commands/start-call\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'calls/start',\n offerorId: attr(),\n callRecipientGroupId: attr()\n });\n});","define(\"ui/commands/toggle-approved-funding\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'fundings/toggle-approved-funding',\n fundingId: attr(),\n approved: attr(toBool),\n comment: attr()\n });\n});","define(\"ui/commands/toggle-approved-online-payment-transactions\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'online-payments/toggle-approved-online-payment-transactions',\n ids: attr(),\n approved: attr(toBool),\n comment: attr()\n });\n});","define(\"ui/commands/toggle-approved-refund\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'refunds/toggle-approved-refund',\n refundId: attr(),\n approved: attr(toBool),\n comment: attr()\n });\n});","define(\"ui/commands/toggle-quote-terms-using-equal-payments\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/toggle-quote-terms-using-equal-payments',\n usingEqualPayments: attr(toBool),\n quoteId: attr()\n });\n});","define(\"ui/commands/toggle-suspended-funding\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'fundings/toggle-suspended-funding',\n fundingId: attr(),\n suspended: attr(toBool),\n comment: attr()\n });\n});","define(\"ui/commands/toggle-suspended-refund\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'refunds/toggle-suspended-refund',\n refundId: attr(),\n suspended: attr(toBool),\n comment: attr()\n });\n});","define(\"ui/commands/transfer-payment\", [\"exports\", \"ui/commands/density-command\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/transfer-payment',\n accountId: attr(),\n amount: attr(_cents.toCents),\n transferToAccountId: attr(),\n paymentGettingTransferredId: attr(),\n comment: attr()\n });\n});","define(\"ui/commands/transforms\", [\"exports\", \"ui/utils/get-model-id\"], function (_exports, _getModelId) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.toInt = _exports.toId = _exports.toFloat = _exports.toCents = _exports.toBool = _exports.dateToString = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/utils/get-model-id\"eaimeta@70e063a35619d71f\n // LOCAL HELPERS\n const _isEmpty = val => {\n return val === undefined || val === null || val === '';\n };\n const toCents = dollars => {\n if (_isEmpty(dollars)) {\n return null;\n }\n return parseInt((parseFloat(dollars) * 100).toFixed());\n };\n _exports.toCents = toCents;\n const toFloat = num => {\n if (_isEmpty(num)) {\n return null;\n }\n return parseFloat(num);\n };\n _exports.toFloat = toFloat;\n const toInt = num => {\n if (_isEmpty(num)) {\n return null;\n }\n return parseInt(num);\n };\n _exports.toInt = toInt;\n const toBool = str => {\n if (_isEmpty(str)) {\n return null;\n }\n if (str === 'true') {\n return true;\n } else if (str === 'false') {\n return false;\n } else {\n return str;\n }\n };\n _exports.toBool = toBool;\n const toId = modelObj => {\n if (_isEmpty(modelObj)) {\n return null;\n }\n return (0, _getModelId.default)(modelObj);\n };\n _exports.toId = toId;\n const dateToString = date => {\n if (date === undefined || date === null) {\n return undefined;\n }\n if (date.toDate) {\n date = date.toDate();\n }\n return date.toString();\n };\n _exports.dateToString = dateToString;\n});","define(\"ui/commands/update-account-funding\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _transforms, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toId,\n dateToString\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'fundings/update',\n fundingId: attr(),\n earliestDate: attr(dateToString),\n fundingPaymentRecipientId: attr(toId),\n adjustmentAmount: attr(_cents.toCents),\n paymentsRequiredBeforeFundable: attr(),\n adjustedDownMethod: attr(),\n paymentsToReverseIds: attr(),\n postDifferenceAsPayment: attr(),\n fundingVerificationOptionId: attr()\n });\n});","define(\"ui/commands/update-account-status\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n dateToString\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/update-account-status',\n newStatus: attr(),\n accountId: attr(),\n sendReinstatementRequest: attr(),\n paymentCancelPreference: attr(),\n create_notices: attr(),\n manual_cancellation_date: attr(dateToString),\n cancellation_reason: attr()\n });\n});","define(\"ui/commands/update-agency-required-compensation-to-self-table\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'update-agency-required-compensation-to-self-table',\n agencyId: attr(),\n compensationTableId: attr()\n });\n});","define(\"ui/commands/update-brand-on-quote\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/update-brand-on-quote',\n quoteId: attr(),\n brandId: attr()\n });\n});","define(\"ui/commands/update-compensation-rate\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _transforms, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toFloat\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/update-compensation-rate',\n dollars: attr(_cents.toCents),\n percent: attr(toFloat),\n compensationRateId: attr(),\n quoteId: attr()\n });\n});","define(\"ui/commands/update-contract-dp-options\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _transforms, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n toInt\n } = _transforms.default;\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'contracts/update-dp-options',\n contractId: attr(),\n downPaymentToCollect: attr(_cents.toCents),\n installmentsToCollectAtActivation: attr(toInt)\n });\n});","define(\"ui/commands/update-contract-fund-commission-separately\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'contracts/update-fund-commission-separately',\n contractId: attr(),\n fundCommissionsSeparately: attr()\n });\n});","define(\"ui/commands/update-contract-options\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'contracts/update-options',\n contractId: attr(),\n billingMethod: attr()\n });\n});","define(\"ui/commands/update-contract-policy\", [\"exports\", \"ui/commands/density-command\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'contracts/update-policies',\n contractId: attr(),\n policyId: attr(),\n commission: attr(_cents.toCents)\n });\n});","define(\"ui/commands/update-down-payment-request\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _transforms, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toInt\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'contracts/update-down-payment-request',\n contractId: attr(),\n fundCommissionsSeparately: attr(),\n downPaymentToCollect: attr(_cents.toCents),\n installmentsToCollectAtActivation: attr(toInt),\n requireEsign: attr(),\n agencyEsignEmail: attr(),\n updatePolicyCommissions: attr()\n });\n});","define(\"ui/commands/update-funding\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\"], function (_exports, _densityCommand, _transforms, _cents) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toId\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'contracts/update-funding',\n contractId: attr(),\n fundingId: attr(),\n comment: attr(),\n earliestDate: attr(),\n fundingPaymentRecipient: attr(toId),\n adjustmentAmount: attr(_cents.toCents)\n });\n});","define(\"ui/commands/update-installment-due-date\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/update-installment-due-date',\n accountId: attr(),\n installmentId: attr(),\n newDueDate: attr(),\n newLateFeeDate: attr(),\n lateFeeDisabled: attr()\n });\n});","define(\"ui/commands/update-obfuscated-values\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'update-obfuscated-values',\n taxId: attr(),\n ssn: attr(),\n modelType: attr(),\n modelId: attr()\n });\n});","define(\"ui/commands/update-password\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'update-password',\n currentUserId: attr(),\n currentPassword: attr(),\n password: attr(),\n passwordConfirmation: attr()\n });\n});","define(\"ui/commands/update-payment-frequency\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/update-payment-frequency',\n quoteId: attr(),\n paymentFrequency: attr()\n });\n});","define(\"ui/commands/update-policy-on-account\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/utils/date-without-time\"], function (_exports, _densityCommand, _transforms, _dateWithoutTime) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/utils/date-without-time\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toInt,\n toBool,\n toId\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'accounts/update-policy-on-account',\n effectiveDate: attr(_dateWithoutTime.dateWithoutTime),\n expirationDate: attr(_dateWithoutTime.dateWithoutTime),\n additionalDaysToCancel: attr(toInt),\n shortRate: attr(toBool),\n filings: attr(toBool),\n auditable: attr(toBool),\n // sendNoticeToStateAuthority: attr(toBool),\n minEarnedPercentage: attr(),\n number: attr(),\n mga: attr(toId),\n additionalMga: attr(toId),\n carrier: attr(toId),\n coverageType: attr(toId),\n verificationOptionId: attr(),\n verificationOptionName: attr(),\n policyId: attr(),\n accountId: attr()\n });\n});","define(\"ui/commands/update-policy-on-quote\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\", \"ui/utils/date-without-time\"], function (_exports, _densityCommand, _transforms, _cents, _dateWithoutTime) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\",0,\"ui/utils/date-without-time\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toInt,\n toBool,\n toId\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/update-policy-on-quote',\n effectiveDate: attr(_dateWithoutTime.dateWithoutTime),\n expirationDate: attr(_dateWithoutTime.dateWithoutTime),\n additionalDaysToCancel: attr(toInt),\n shortRate: attr(toBool),\n filings: attr(toBool),\n auditable: attr(toBool),\n // sendNoticeToStateAuthority: attr(toBool),\n minEarnedPercentage: attr(),\n taxes: attr(_cents.toCents),\n brokerFee: attr(_cents.toCents),\n policyFee: attr(_cents.toCents),\n allOtherFees: attr(_cents.toCents),\n number: attr(),\n premium: attr(_cents.toCents),\n mga: attr(toId),\n additionalMga: attr(toId),\n carrier: attr(toId),\n coverageType: attr(toId),\n verificationOptionId: attr(),\n verificationOptionName: attr(),\n policyId: attr(),\n quoteId: attr()\n });\n});","define(\"ui/commands/update-quote-options\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/update-quote-options',\n quoteId: attr(),\n billingMethod: attr()\n });\n});","define(\"ui/commands/update-quote-terms\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\", \"ui/transforms/cents\", \"ui/utils/date-without-time\"], function (_exports, _densityCommand, _transforms, _cents, _dateWithoutTime) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\",0,\"ui/transforms/cents\",0,\"ui/utils/date-without-time\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toFloat,\n toInt,\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/update-quote-terms',\n quoteId: attr(),\n apr: attr(toFloat),\n totalInterest: attr(_cents.toCents),\n installmentCount: attr(toInt),\n downPayment: attr(_cents.toCents),\n downPaymentPercentage: attr(toFloat),\n firstDueDate: attr(_dateWithoutTime.dateWithoutTime),\n interestAccrualBegins: attr(_dateWithoutTime.dateWithoutTime),\n fundingsFundingSourceId: attr(toInt),\n refundsFundingSourceId: attr(toInt),\n compensationsFundingSourceId: attr(toInt),\n usingEqualPayments: attr(toBool)\n });\n});","define(\"ui/commands/update-rebate-method-override\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toFloat,\n toInt,\n toBool\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/update-rebate-method-override',\n quoteId: attr(),\n rebateMethodOverride: attr()\n });\n});","define(\"ui/commands/update-retained-payments\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toInt\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/update-retained-payments',\n quoteId: attr(),\n retainedPayments: attr(toInt)\n });\n});","define(\"ui/commands/update-top-optimal-terms\", [\"exports\", \"ui/commands/density-command\", \"ui/commands/transforms\"], function (_exports, _densityCommand, _transforms) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\",0,\"ui/commands/transforms\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n const {\n toFloat,\n toInt\n } = _transforms.default;\n var _default = _exports.default = Command.extend({\n name: 'quotes/update-top-optimal-terms',\n quoteId: attr(),\n minEquityRequired: attr(toFloat),\n minDaysToFirstDue: attr(toInt),\n maxDownPayment: attr(toFloat)\n });\n});","define(\"ui/commands/void-down-payment-request\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'contracts/void-down-payment-request',\n contractId: attr()\n });\n});","define(\"ui/commands/void-funding-from-outgoing-payment\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'fundings/void-funding-from-outgoing-payment',\n fundingId: attr(),\n outgoingPaymentId: attr(),\n comment: attr()\n });\n});","define(\"ui/commands/void-outgoing-payment\", [\"exports\", \"ui/commands/density-command\"], function (_exports, _densityCommand) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/commands/density-command\"eaimeta@70e063a35619d71f\n const {\n Command,\n attr\n } = _densityCommand.default;\n var _default = _exports.default = Command.extend({\n name: 'void-outgoing-payment',\n id: attr(),\n paymentPurpose: attr()\n });\n});","define(\"ui/component-managers/glimmer\", [\"exports\", \"@glimmer/component/-private/ember-component-manager\"], function (_exports, _emberComponentManager) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _emberComponentManager.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component/-private/ember-component-manager\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/-dynamic-element-alt\", [\"exports\", \"@glimmer/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,\"@glimmer/component\"eaimeta@70e063a35619d71f\n // This component is not needed anymore. However we can only safely remove it once we have an Embroider release that\n // has the special dependency rule for this addon removed:\n // https://github.com/embroider-build/embroider/blob/4fad67f16f811e7f93199a1ee92dba8254c42978/packages/compat/src/addon-dependency-rules/ember-element-helper.ts\n // eslint-disable-next-line ember/no-empty-glimmer-component-classes\n class DynamicElementAlt extends _component.default {}\n _exports.default = DynamicElementAlt;\n});","define(\"ui/components/-dynamic-element\", [\"exports\", \"@glimmer/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,\"@glimmer/component\"eaimeta@70e063a35619d71f\n // This component is not needed anymore. However we can only safely remove it once we have an Embroider release that\n // has the special dependency rule for this addon removed:\n // https://github.com/embroider-build/embroider/blob/4fad67f16f811e7f93199a1ee92dba8254c42978/packages/compat/src/addon-dependency-rules/ember-element-helper.ts\n // eslint-disable-next-line ember/no-empty-glimmer-component-classes\n class DynamicElement extends _component.default {}\n _exports.default = DynamicElement;\n});","define(\"ui/components/accounts/filter-section\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\"], function (_exports, _component, _object, _service, _runloop) {\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/runloop\"eaimeta@70e063a35619d71f\n // Constants\n const DEBOUNCE_DELAY = 300;\n var _default = _exports.default = _component.default.extend({\n store: (0, _service.inject)(),\n ajax: (0, _service.inject)(),\n init() {\n this._super(...arguments);\n this.getAccountStatusOptions();\n },\n error: null,\n isCollapsed: true,\n // Account filters\n normalPaymentAmount: '',\n currentAmountDue: '',\n status: '',\n totalPaymentAmount: '',\n // Policy filters\n policyNumber: '',\n premium: '',\n effectiveDate: null,\n carrier: null,\n mga: null,\n // Funding filters\n totalFundingAmount: '',\n fundingCheckNumber: '',\n statusOptions: null,\n /**\n * Fetch account status options from server\n */\n async getAccountStatusOptions() {\n try {\n const statusOptions = await this.ajax.clientConstants('account_statuses');\n (0, _object.set)(this, 'statusOptions', statusOptions);\n } catch (error) {\n console.error('Failed to load account status options:', error);\n // Fallback to empty array if the fetch fails\n (0, _object.set)(this, 'statusOptions', []);\n }\n },\n /**\n * Validates numeric input fields\n */\n _validateNumericField(value, fieldName) {\n if (!value) return null;\n const numericValue = parseFloat(value);\n if (isNaN(numericValue)) {\n return `${fieldName} must be a valid number`;\n }\n if (numericValue < 0) {\n return `${fieldName} must be non-negative`;\n }\n return null;\n },\n /**\n * Validates all filter inputs\n */\n _validateFilters() {\n const errors = [];\n\n // Validate numeric fields\n const numericFields = [{\n value: this.normalPaymentAmount,\n name: 'Normal Payment Amount'\n }, {\n value: this.currentAmountDue,\n name: 'Current Amount Due'\n }, {\n value: this.totalPaymentAmount,\n name: 'Total Payment Amount'\n }, {\n value: this.premium,\n name: 'Premium'\n }, {\n value: this.totalFundingAmount,\n name: 'Total Funding Amount'\n }];\n numericFields.forEach(field => {\n const error = this._validateNumericField(field.value, field.name);\n if (error) errors.push(error);\n });\n\n // Validate date field\n if (this.effectiveDate && !Date.parse(this.effectiveDate)) {\n errors.push('Effective Date must be a valid date');\n }\n return errors;\n },\n actions: {\n toggleCollapse() {\n this.set('isCollapsed', !this.isCollapsed);\n },\n applyFilters() {\n // Validate inputs\n const validationErrors = this._validateFilters();\n if (validationErrors.length > 0) {\n this.set('error', validationErrors.join('; '));\n return;\n }\n this.set('error', null);\n let statusValue = this.status;\n if (this.status && typeof this.status === 'object' && this.status.code) {\n statusValue = this.status.code;\n }\n const filters = {\n accounts: {\n normalPaymentAmount: this.normalPaymentAmount,\n currentAmountDue: this.currentAmountDue,\n status: statusValue,\n totalPaymentAmount: this.totalPaymentAmount\n },\n policies: {\n policyNumber: this.policyNumber,\n premium: this.premium,\n effectiveDate: this.effectiveDate,\n carrier: this.carrier,\n mga: this.mga\n },\n fundings: {\n totalAmount: this.totalFundingAmount,\n checkNumber: this.fundingCheckNumber\n }\n };\n if (this.onApplyFilters) {\n this.onApplyFilters(filters);\n } else {\n console.log('No onApplyFilters action provided');\n }\n }\n },\n /**\n * Debounced filter application to avoid excessive API calls\n */\n _debouncedApplyFilters() {\n (0, _runloop.debounce)(this, this.actions.applyFilters.bind(this), DEBOUNCE_DELAY);\n },\n // Auto-apply filters when values change (debounced)\n autoApplyFilters: (0, _object.observer)('normalPaymentAmount', 'currentAmountDue', 'status', 'totalPaymentAmount', 'policyNumber', 'premium', 'effectiveDate', 'carrier', 'mga', 'totalFundingAmount', 'fundingCheckNumber', function () {\n this._debouncedApplyFilters();\n })\n });\n});","define(\"ui/components/accounts/show/fundings/update-funding-modal\", [\"exports\", \"ember-concurrency/-private/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"ember-concurrency\", \"ui/utils/funding-calculation\"], function (_exports, _asyncArrowRuntime, _component, _tracking, _object, _service, _emberConcurrency, _fundingCalculation) {\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-concurrency/-private/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ui/utils/funding-calculation\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n let UpdateFundingModal = _exports.default = (_dec = (0, _emberConcurrency.lastValue)('loadFundingDetails'), (_class = class UpdateFundingModal extends _component.default {\n constructor(...args) {\n super(...args);\n _initializerDefineProperty(this, \"ajax\", _descriptor, this);\n _initializerDefineProperty(this, \"alert\", _descriptor2, this);\n // auto-updates with the last successful task value\n _initializerDefineProperty(this, \"fundingDetails\", _descriptor3, this);\n _defineProperty(this, \"loadFundingDetails\", (0, _asyncArrowRuntime.buildTask)(() => ({\n context: this,\n generator: function* () {\n return yield this.ajax.getFundingAdjustmentDetails(this.args.funding.id).then(fundingDetails => {\n this.calculateValues(fundingDetails);\n return fundingDetails;\n });\n }\n }), null, \"loadFundingDetails\", \"restartable\"));\n }\n onOpenDidUpdate() {\n const isOpen = this.args.funding.managingFundingAdjustment;\n if (isOpen) this.loadFundingDetails.perform();\n }\n // A lot of values are derived from intermediate values which makes things like computed properties much harder\n // to reason about, so we have one function which will create all the computed values,\n // and that function got moved to a util for better testing.\n calculateValues(fundingDetails) {\n const newAdjustmentAmount = (0, _object.get)(this.args.funding.command.changeset, 'adjustmentAmount');\n const originalAdjustmentAmount = (0, _object.get)(this.args.funding, 'adjustmentAmount') || 0;\n const payments = fundingDetails.payments;\n const postDifferenceAsPayment = (0, _object.get)(this.args.funding.command.changeset, \"postDifferenceAsPayment\");\n const priorDpDue = fundingDetails.dpDue;\n const result = (0, _fundingCalculation.calculateFundingAdjustmentValues)({\n newAdjustmentAmount,\n originalAdjustmentAmount,\n payments,\n postDifferenceAsPayment,\n priorDpDue\n });\n (0, _object.set)(this, 'diff', result.diff);\n (0, _object.set)(this, 'selectedPaymentsTotal', result.selectedPaymentsTotal); // Total Payments Reversed\n (0, _object.set)(this, 'paymentsAppliedAmt', result.paymentsAppliedAmt); // Payments Applied\n (0, _object.set)(this, 'changeInDpDue', result.changeInDpDue); // DP Due Reduced By OR Additional DP Due // EXPECTED 100\n }\n get selectedPayments() {\n if (!this.fundingDetails || !this.fundingDetails.payments) {\n return [];\n }\n return this.fundingDetails.payments.filter(p => p.selected);\n }\n get priorTotalDownPaymentDue() {\n if (!this.fundingDetails) {\n return 0;\n }\n return this.fundingDetails.dpDue + this.fundingDetails.dpPaid;\n }\n get priorRemainingBalance() {\n return this.fundingDetails?.dpDue ?? 0;\n }\n get paymentsTotal() {\n if (!this.fundingDetails) {\n return 0;\n }\n return this.fundingDetails.payments.reduce((sum, p) => sum + (p.amount ?? 0), 0);\n }\n selectPaymentToRefund(payment) {\n (0, _object.set)(payment, 'selected', !(0, _object.get)(payment, 'selected'));\n this.calculateValues((0, _object.get)(this, 'fundingDetails'));\n }\n setPostDifferenceAsPayment(val) {\n (0, _object.set)(this.args.funding, 'command.changeset.postDifferenceAsPayment', val);\n this.calculateValues((0, _object.get)(this, 'fundingDetails'));\n }\n saveFundingWithAdjustmentDetails() {\n const funding = this.args.funding;\n const details = this.fundingDetails;\n const ids = details.payments.filter(p => p.selected).mapBy('id');\n (0, _object.set)(funding.command.changeset, 'paymentsToReverseIds', ids);\n (0, _object.set)(funding, 'isSavingFunding', true);\n funding.command.save().then(() => {\n (0, _object.set)(funding, 'command', undefined);\n this.alert.success();\n (0, _object.set)(funding, 'isSavingFunding', false);\n (0, _object.set)(funding, 'managingFundingAdjustment', false);\n return true;\n }, error => {\n this.alert.error(error);\n (0, _object.set)(funding, 'isSavingFunding', false);\n return false;\n });\n }\n cancelFundingWithAdjustmentDetails() {\n (0, _object.set)(this.args.funding, 'managingFundingAdjustment', false);\n }\n }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"ajax\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"alert\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"fundingDetails\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"onOpenDidUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onOpenDidUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectPaymentToRefund\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectPaymentToRefund\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPostDifferenceAsPayment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPostDifferenceAsPayment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveFundingWithAdjustmentDetails\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveFundingWithAdjustmentDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelFundingWithAdjustmentDetails\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelFundingWithAdjustmentDetails\"), _class.prototype)), _class));\n});","define(\"ui/components/agencies/fundings-fields\", [\"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 /**\n @module Component\n */\n var _default = _exports.default = _component.default.extend({});\n});","define(\"ui/components/agencies/own-compensation\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/string\"], function (_exports, _component, _service, _object, _emberChangeset, _string) {\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-changeset\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n store: (0, _service.inject)(),\n compensationPaymentMethodComponentName: (0, _object.computed)('model.compensationDetailType', function () {\n return `forms/${(0, _object.get)(this, 'model.compensationDetailType')}-form-fields-card`;\n }),\n compensationPaymentMethodModel: (0, _object.computed)('model.compensationDetailType', function () {\n let detailType = (0, _object.get)(this, 'model.compensationDetailType');\n if (detailType) {\n let model = (0, _object.get)(this, `model.compensation${(0, _string.capitalize)(detailType)}Detail`);\n if (model.get('content')) {\n // basically if it is the model we started with or one that has already been created\n return model;\n } else {\n let newModel = this.store.createRecord(`${detailType}-detail`, {\n paymentPurpose: \"compensation\"\n });\n (0, _object.set)(this, `model.compensation${(0, _string.capitalize)(detailType)}Detail`, newModel);\n return newModel;\n }\n }\n }),\n compensationPaymentMethodChangeset: (0, _object.computed)('model.compensationDetailType', 'compensationPaymentMethodModel.createdAt', function () {\n let model = (0, _object.get)(this, 'compensationPaymentMethodModel');\n if (model) {\n return new _emberChangeset.default(model);\n }\n }),\n updateDetail() {\n let agency = (0, _object.get)(this, 'model');\n let detailType = (0, _object.get)(this, 'model.compensationDetailType');\n let oldTypes = ['ach', 'check', 'wire'].filter(type => type !== detailType);\n let changeset = (0, _object.get)(this, 'compensationPaymentMethodChangeset');\n changeset.execute();\n let model = (0, _object.get)(this, 'compensationPaymentMethodModel');\n let modelId = model.get('id');\n if (modelId) {\n return (0, _object.get)(this, 'store').findRecord(`${detailType}-detail`, modelId).then(detail => {\n detail.save().then(() => {\n oldTypes.forEach(oldType => {\n agency.set(`compensation${(0, _string.capitalize)(oldType)}Detail`, null);\n });\n });\n });\n } else {\n return model.save().then(() => {\n oldTypes.forEach(oldType => {\n agency.set(`compensation${(0, _string.capitalize)(oldType)}Detail`, null);\n });\n });\n }\n },\n cancelDetail() {\n if (this.compensationPaymentMethodChangeset.rollback()) {\n this.model.rollbackAttributes('compensationDetailType');\n return true;\n }\n }\n });\n});","define(\"ui/components/agencies/own-funding\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/string\", \"@ember/object\", \"ember-changeset\"], function (_exports, _component, _service, _string, _object, _emberChangeset) {\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/string\",0,\"@ember/object\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n store: (0, _service.inject)(),\n fundingPaymentMethodComponentName: (0, _object.computed)('model.fundingDetailType', function () {\n return `forms/${(0, _object.get)(this, 'model.fundingDetailType')}-form-fields-card`;\n }),\n fundingPaymentMethodModel: (0, _object.computed)('model.fundingDetailType', function () {\n let detailType = (0, _object.get)(this, 'model.fundingDetailType');\n if (detailType) {\n let model = (0, _object.get)(this, `model.funding${(0, _string.capitalize)(detailType)}Detail`);\n if (model.get('content')) {\n // basically if it is the model we started with or one that has already been created\n return model;\n } else {\n let newModel = this.store.createRecord(`${detailType}-detail`, {\n paymentPurpose: \"funding\"\n });\n (0, _object.set)(this, `model.funding${(0, _string.capitalize)(detailType)}Detail`, newModel);\n return newModel;\n }\n }\n }),\n fundingPaymentMethodChangeset: (0, _object.computed)('model.fundingDetailType', 'fundingPaymentMethodModel.createdAt', function () {\n let model = (0, _object.get)(this, 'fundingPaymentMethodModel');\n if (model) {\n return new _emberChangeset.default(model);\n }\n }),\n updateDetail() {\n let agency = (0, _object.get)(this, 'model');\n let detailType = (0, _object.get)(this, 'model.fundingDetailType');\n let oldTypes = ['ach', 'check', 'wire'].filter(type => type !== detailType);\n let changeset = (0, _object.get)(this, 'fundingPaymentMethodChangeset');\n changeset.execute();\n let model = (0, _object.get)(this, 'fundingPaymentMethodModel');\n let modelId = model.get('id');\n if (modelId) {\n return (0, _object.get)(this, 'store').findRecord(`${detailType}-detail`, modelId).then(detail => {\n detail.save().then(() => {\n oldTypes.forEach(oldType => {\n agency.set(`funding${(0, _string.capitalize)(oldType)}Detail`, null);\n });\n });\n });\n } else {\n return model.save().then(() => {\n oldTypes.forEach(oldType => {\n agency.set(`funding${(0, _string.capitalize)(oldType)}Detail`, null);\n });\n });\n }\n },\n cancelDetail() {\n if (this.fundingPaymentMethodChangeset.rollback()) {\n this.model.rollbackAttributes('fundingDetailType');\n return true;\n }\n }\n });\n});","define(\"ui/components/auth/login-card\", [\"exports\", \"@ember/service\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"ember-concurrency\", \"qrcode\", \"@ember/runloop\"], function (_exports, _service, _component, _tracking, _object, _emberConcurrency, _qrcode, _runloop) {\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;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"qrcode\",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), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n let LoginComponent = _exports.default = (_dec = (0, _object.computed)('phase'), _dec2 = (0, _object.computed)('session.permissions.requiresMultifactorAuth'), (_class = class LoginComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _initializerDefineProperty(this, \"alert\", _descriptor, this);\n _initializerDefineProperty(this, \"session\", _descriptor2, this);\n _initializerDefineProperty(this, \"phase\", _descriptor3, this);\n _initializerDefineProperty(this, \"model\", _descriptor4, this);\n _initializerDefineProperty(this, \"loginProcessing\", _descriptor5, this);\n }\n get headline() {\n if (this.phase === 'form') {\n return \"Login\";\n }\n if (this.phase === 'qrcode') {\n return \"MFA Required\";\n }\n if (this.phase === 'multifactorcode') {\n return \"Google Authenticator Code\";\n }\n return \"Login\";\n }\n *login() {\n const user = this.model;\n this.loginProcessing = true;\n try {\n yield this.session.authenticate('authenticator:ui', user.username, user.password, [this.multifactorCode]);\n this.model.password = '';\n this.model.passwordConfirmation = '';\n this.alert.success('Successfully logged in');\n } catch (response) {\n if (response.responseJSON.qrcode) {\n (0, _object.set)(this, 'phase', 'qrcode');\n (0, _object.set)(this, 'qrcodeUrl', response.responseJSON.qrcode);\n (0, _runloop.scheduleOnce)('afterRender', this, 'generateQRCode');\n return;\n }\n if (response.responseJSON.requiresMultifactorCode && !(this.phase === 'multifactorcode')) {\n (0, _object.set)(this, 'phase', 'multifactorcode');\n return;\n }\n if (response.responseJSON.errors) {\n this.alert.error(response.responseJSON.errors);\n } else {\n this.alert.error('Could not log in');\n }\n } finally {\n this.loginProcessing = false;\n }\n }\n get requiresMultifactorAuth() {\n return this.session.permissions?.requiresMultifactorAuth?.value;\n }\n updateField(field, value) {\n this.model[field] = value;\n }\n async generateQRCode() {\n try {\n const qrcodeUrl = this.qrcodeUrl;\n const canvas = document.getElementById('qrcode-canvas-for-otp');\n await _qrcode.default.toCanvas(canvas, qrcodeUrl);\n } catch (error) {\n console.error(error);\n }\n }\n resetLogin() {\n this.model = {\n email: '',\n password: '',\n multifactorCode: '',\n errors: []\n };\n this.phase = 'form';\n }\n }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"alert\", [_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, \"phase\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return 'form';\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return {\n email: '',\n password: '',\n multifactorCode: '',\n errors: []\n };\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"loginProcessing\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"headline\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"headline\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"login\", [_emberConcurrency.task], Object.getOwnPropertyDescriptor(_class.prototype, \"login\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"requiresMultifactorAuth\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"requiresMultifactorAuth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateField\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateField\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetLogin\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetLogin\"), _class.prototype)), _class));\n});","define(\"ui/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(\"ui/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(\"ui/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(\"ui/components/boxes/account-agency-accounting-box\", [\"exports\", \"ui/components/boxes/d-box\", \"@ember/object\", \"ui/mixins/permissions\"], function (_exports, _dBox, _object, _permissions) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/boxes/d-box\",0,\"@ember/object\",0,\"ui/mixins/permissions\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dBox.default.extend(_permissions.default, {\n giveAccountInfo: false,\n dataTest: 'account-agency-accounting-box',\n dataTestAttributeBinding: 'accountAgencyAccounting.id',\n actions: {\n compensate() {\n this.compensateRecipientWithOverpayment(this.preferedCompensationPaymentRecipient).then(() => {\n (0, _object.set)(this, 'compensatingForOverpayment', false);\n });\n },\n reverse(incomingPayment) {\n this.reversePayment(incomingPayment);\n }\n }\n });\n});","define(\"ui/components/boxes/d-box-hidden-content\", [\"exports\", \"ui/components/boxes/d-box\"], function (_exports, _dBox) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/boxes/d-box\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dBox.default.extend({\n dataTest: 'd-box-hidden-content',\n classNames: ['d-box-hidden-content'],\n hidden: true,\n hideOnClick: true,\n click() {\n if (this.hideOnClick) {\n this.toggleProperty('hidden');\n }\n }\n });\n});","define(\"ui/components/boxes/d-box\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _component, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'd-box',\n classNames: ['d-box'],\n classNameBindings: ['slim'],\n dataTestAttributeBinding: 'headline',\n slim: false\n });\n});","define(\"ui/components/boxes/d-graph-container\", [\"exports\", \"ui/components/boxes/d-box\", \"ui/templates/components/boxes/d-box\"], function (_exports, _dBox, _dBox2) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/boxes/d-box\",0,\"ui/templates/components/boxes/d-box\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n var _default = _exports.default = _dBox.default.extend({\n dataTest: 'd-graph-container',\n classNames: ['d-graph-container'],\n layout: _dBox2.default\n });\n});","define(\"ui/components/boxes/required-outgoing-payments\", [\"exports\", \"ui/components/boxes/d-box\", \"ui/templates/components/boxes/d-box\", \"@ember/service\", \"@ember/object\"], function (_exports, _dBox, _dBox2, _service, _object) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/boxes/d-box\",0,\"ui/templates/components/boxes/d-box\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dBox.default.extend({\n commands: (0, _service.inject)(),\n layout: _dBox2.default,\n includeDraft: (0, _object.computed)('recipient.paidFors.@each.paymentType', function () {\n return this.flipper.isEnabled('drafts_work_as_other_funding_types') && this.recipient.paidFors.any(f => f.paymentType === 'draft');\n }),\n actions: {\n approveSelected() {\n const ids = this.required.filter(approvable => approvable.selected).map(a => a.id);\n this.toggleApproved(ids);\n }\n }\n });\n});","define(\"ui/components/breadcrumb/breadcrumb-container\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _component, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Responsible for displaying breadcrumbs on detail views\n \n ```\n {{breadcrumb/breadcrumb-container}}\n ```\n \n @class breadcrumb.breadcrumb-container\n @extends Component\n */\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'd-breadcrumbs',\n classNames: ['breadcrumbs'],\n tagName: 'ul'\n });\n});","define(\"ui/components/buttons/d-button\", [\"exports\", \"ember-paper/components/paper-button\", \"ui/mixins/testable-element\", \"ui/templates/components/buttons/d-button\"], function (_exports, _paperButton, _testableElement, _dButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-button\",0,\"ui/mixins/testable-element\",0,\"ui/templates/components/buttons/d-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperButton.default.extend(_testableElement.default, {\n dataTest: 'd-button',\n dataTestAttributeBinding: 'label',\n classNameBindings: ['alert'],\n raised: true,\n primary: true,\n layout: _dButton.default,\n alert: false\n });\n});","define(\"ui/components/buttons/d-confirm-with-note\", [\"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 tagName: '',\n raised: true,\n primary: true\n });\n});","define(\"ui/components/buttons/d-table-button\", [\"exports\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _dTableRowButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend();\n});","define(\"ui/components/buttons/d-table-cancel\", [\"exports\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _dTableRowButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend({\n dataTestId: 'cancel',\n primary: true\n });\n});","define(\"ui/components/buttons/d-table-contract\", [\"exports\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _dTableRowButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend({\n dataTestId: 'contract'\n });\n});","define(\"ui/components/buttons/d-table-delete\", [\"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 tagName: '',\n init() {\n this._super(...arguments);\n if (!this.model) {\n throw 'A d-delete button requires a model but none were passed.';\n }\n }\n });\n});","define(\"ui/components/buttons/d-table-download\", [\"exports\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _dTableRowButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend({\n dataTestId: 'download'\n });\n});","define(\"ui/components/buttons/d-table-edit\", [\"exports\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _dTableRowButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend({\n dataTestId: 'edit',\n primary: true\n });\n});","define(\"ui/components/buttons/d-table-notes\", [\"exports\", \"@ember/object/computed\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _computed, _dTableRowButton) {\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,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend({\n classNames: ['table-row-button', 'd-table-notes'],\n dataTestId: 'view',\n attributeBindings: ['disabled'],\n disabled: (0, _computed.empty)('notes')\n });\n});","define(\"ui/components/buttons/d-table-row-button\", [\"exports\", \"ui/components/buttons/d-button\", \"ui/templates/components/buttons/d-button\"], function (_exports, _dButton, _dButton2) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-button\",0,\"ui/templates/components/buttons/d-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dButton.default.extend({\n classNames: ['table-row-button'],\n raised: false,\n primary: false,\n layout: _dButton2.default\n });\n});","define(\"ui/components/buttons/d-table-save\", [\"exports\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _dTableRowButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend({\n dataTestId: 'save',\n primary: true\n });\n});","define(\"ui/components/buttons/d-table-send\", [\"exports\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _dTableRowButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend({\n dataTestId: 'send'\n });\n});","define(\"ui/components/buttons/d-table-view\", [\"exports\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _dTableRowButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend({\n dataTestId: 'view'\n });\n});","define(\"ui/components/buttons/d-table-visit\", [\"exports\", \"ui/components/buttons/d-table-row-button\"], function (_exports, _dTableRowButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/buttons/d-table-row-button\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dTableRowButton.default.extend({\n dataTestId: 'visit'\n });\n});","define(\"ui/components/buttons/generate-pdf-button\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"jspdf\", \"html2canvas\", \"jspdf-autotable\"], function (_exports, _component, _object, _jspdf, _html2canvas, _jspdfAutotable) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class; // app/components/generate-pdf-button.js\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"jspdf\",0,\"html2canvas\",0,\"jspdf-autotable\"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), a = null), a; }\n let GeneratePdfButtonComponent = _exports.default = (_class = class GeneratePdfButtonComponent extends _component.default {\n constructor() {\n super(...arguments);\n this.fileName = this.args.fileName;\n }\n async generatePDF() {\n const doc = new _jspdf.default('p', 'pt', 'letter');\n const pageWidth = doc.internal.pageSize.getWidth();\n const headerElement = document.getElementById('hidden-pdf-table');\n headerElement.style.display = 'block';\n const headerCanvas = await (0, _html2canvas.default)(headerElement, {\n timeout: 5000\n });\n doc.addImage(headerCanvas, 'PNG', 0, 0, pageWidth, headerElement.clientHeight);\n const tableElement = document.getElementById('account-history-table');\n doc.autoTable({\n startY: headerElement.clientHeight,\n html: tableElement,\n useCss: true,\n didDrawPage: function (data) {\n // Add the footer\n var str = 'Page ' + doc.internal.getNumberOfPages();\n if (typeof doc.putTotalPages === 'function') {\n str = str + ' of ' + doc.internal.getNumberOfPages();\n }\n doc.setFontSize(10);\n var pageSize = doc.internal.pageSize;\n doc.text(str, data.settings.margin.left, pageSize.getHeight() - 10);\n }\n });\n headerElement.style.display = 'none';\n doc.save(`${this.fileName}.pdf`);\n }\n }, (_applyDecoratedDescriptor(_class.prototype, \"generatePDF\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"generatePDF\"), _class.prototype)), _class);\n});","define(\"ui/components/buttons/pdf-download-button\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/buttons/d-button\", \"ui/config/environment\"], function (_exports, _service, _object, _dButton, _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,\"ui/components/buttons/d-button\",0,\"ui/config/environment\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dButton.default.extend({\n ajax: (0, _service.inject)(),\n click() {\n const targetUrl = `${_environment.default.DS.namespace}/${this.targetUrl}`;\n this.ajax.downloadFile(targetUrl, 'pfa.pdf');\n }\n });\n});","define(\"ui/components/chart\", [\"exports\", \"@glimmer/component\", \"chart.js/auto\", \"@ember/object\"], function (_exports, _component, _auto, _object) {\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,\"chart.js/auto\",0,\"@ember/object\"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), a = null), a; }\n let ChartComponent = _exports.default = (_class = class ChartComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _defineProperty(this, \"canvasId\", `canvas-${Math.random()}`);\n _defineProperty(this, \"colors\", ['#275DAD', '#26c6da', '#26a69a', '#BED8D4', '#9BD0F5']);\n }\n createChart() {\n if (!this.args.datasets) {\n throw 'No data is available';\n }\n const datasets = this.args.datasets;\n const config = {\n type: 'bar',\n options: {\n maintainAspectRatio: false,\n layout: {\n padding: 10\n }\n },\n data: {\n labels: datasets[0].data.map(row => row.name),\n datasets: datasets.map((ds, i) => {\n return {\n label: ds.label,\n data: ds.data.map(row => row.value),\n backgroundColor: this.colors[i]\n };\n })\n }\n };\n const chart = new _auto.default(document.getElementById(this.canvasId), config);\n }\n }, (_applyDecoratedDescriptor(_class.prototype, \"createChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createChart\"), _class.prototype)), _class);\n});","define(\"ui/components/collections/principal-balance-chart\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"chart.js/auto\"], function (_exports, _component, _object, _auto) {\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,\"chart.js/auto\"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), a = null), a; }\n const currency = new Intl.NumberFormat('en-US', {\n style: 'currency',\n currency: 'USD'\n });\n const monthName = new Intl.DateTimeFormat('en-US', {\n month: 'long',\n year: 'numeric'\n });\n const axisMonth = new Intl.DateTimeFormat('en-US', {\n month: 'short',\n year: '2-digit'\n });\n function monthDate(month) {\n const [year, monthNumber] = month.split('-').map(Number);\n return new Date(year, monthNumber - 1, 1);\n }\n let CollectionsPrincipalBalanceChartComponent = _exports.default = (_class = class CollectionsPrincipalBalanceChartComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _defineProperty(this, \"chart\", null);\n }\n get balances() {\n return this.args.balances || [];\n }\n get description() {\n return this.balances.map(row => `${monthName.format(monthDate(row.month))}: ${currency.format(row.principal_balance / 100)}`).join('; ');\n }\n chartData(color) {\n return {\n labels: this.balances.map(row => axisMonth.format(monthDate(row.month))),\n datasets: [{\n label: 'Principal balance',\n data: this.balances.map(row => row.principal_balance / 100),\n backgroundColor: color\n }]\n };\n }\n createChart(canvas) {\n const style = getComputedStyle(canvas.parentElement);\n const font = {\n family: style.fontFamily,\n size: 14\n };\n this.chart = new _auto.default(canvas, {\n type: 'bar',\n data: this.chartData(style.getPropertyValue('--collections-chart-blue').trim()),\n options: {\n responsive: true,\n maintainAspectRatio: false,\n animation: false,\n color: style.color,\n font,\n interaction: {\n mode: 'index',\n intersect: false\n },\n plugins: {\n legend: {\n display: false\n },\n tooltip: {\n titleFont: {\n ...font,\n weight: 'bold'\n },\n bodyFont: font,\n callbacks: {\n title: items => monthName.format(monthDate(this.balances[items[0].dataIndex].month)),\n label: item => currency.format(item.raw)\n }\n }\n },\n scales: {\n x: {\n ticks: {\n font\n },\n grid: {\n display: false\n }\n },\n y: {\n beginAtZero: true,\n ticks: {\n font,\n callback: value => currency.format(value)\n }\n }\n }\n }\n });\n }\n updateChart() {\n if (this.chart) {\n this.chart.data = this.chartData(this.chart.data.datasets[0].backgroundColor);\n this.chart.update('none');\n }\n }\n willDestroy() {\n this.chart?.destroy();\n super.willDestroy(...arguments);\n }\n }, (_applyDecoratedDescriptor(_class.prototype, \"createChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createChart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateChart\"), _class.prototype)), _class);\n});","define(\"ui/components/color-bar\", [\"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: ['color-bar'],\n classNameBindings: ['location']\n });\n});","define(\"ui/components/compensations/compensation-approved-buttons\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n ajax: (0, _service.inject)(),\n showingCheckNotices: false,\n showingAchNotices: false,\n showingWireNotices: false,\n init() {\n this._super(...arguments);\n (0, _object.get)(this, 'ajax').noticeCounts('compensation').then(counts => {\n (0, _object.set)(this, 'noticeCounts', counts);\n });\n },\n filteredCompensations: (0, _object.computed)('compensations.@each.{approved,paidAt}', function () {\n let compensations = (0, _object.get)(this, 'compensations');\n return compensations.filter(comp => {\n return comp.get('approved') && !comp.get('paidAt');\n });\n }),\n payChecks() {\n return this.payCompensations('checks');\n },\n payAchs() {\n return this.payCompensations('ach');\n },\n payWires() {\n return this.payCompensations('wire');\n },\n payCompensations(paymentType) {\n return this.ajax.payCompensations(paymentType).then(() => this.refreshModel());\n },\n checksToPay: (0, _object.computed)('filteredCompensations.{length,@each.paymentType}', function () {\n return this.filteredCompensations.filter(c => c.paymentType == 'check');\n }),\n checksToPayCount: (0, _object.computed)('checksToPay.length', function () {\n return (0, _object.get)(this, 'checksToPay.length');\n }),\n noChecksToPay: (0, _object.computed)('checksToPayCount', function () {\n return (0, _object.get)(this, 'checksToPayCount') === 0;\n }),\n achsToPay: (0, _object.computed)('filteredCompensations.{length,@each.paymentType}', function () {\n return this.filteredCompensations.filter(c => c.paymentType == 'ach');\n }),\n achsToPayCount: (0, _object.computed)('achsToPay.length', function () {\n return (0, _object.get)(this, 'achsToPay.length');\n }),\n noAchsToPay: (0, _object.computed)('achsToPayCount', function () {\n return (0, _object.get)(this, 'achsToPayCount') === 0;\n }),\n wireToPay: (0, _object.computed)('filteredCompensations.{length,@each.paymentType}', function () {\n return this.filteredCompensations.filter(c => c.paymentType == 'wire');\n }),\n wiresToPayCount: (0, _object.computed)('wireToPay.length', function () {\n return (0, _object.get)(this, 'wireToPay.length');\n }),\n noWiresToPay: (0, _object.computed)('wiresToPayCount', function () {\n return (0, _object.get)(this, 'wiresToPayCount') === 0;\n })\n });\n});","define(\"ui/components/contract-quote-diff\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ui/mixins/testable-element\", \"ui/mixins/permissions\", \"ui/helpers/format-date\", \"ui/helpers/format-currency\", \"ui/helpers/format-percentage\"], function (_exports, _component, _object, _testableElement, _permissions, _formatDate, _formatCurrency, _formatPercentage) {\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,\"ui/mixins/testable-element\",0,\"ui/mixins/permissions\",0,\"ui/helpers/format-date\",0,\"ui/helpers/format-currency\",0,\"ui/helpers/format-percentage\"eaimeta@70e063a35619d71f\n const objAttributes = ['number', 'usingEqualPayments', 'paymentFrequency', 'installmentCount', 'downPaymentPercentage', 'downPayment', 'firstDueDate', 'apr', 'totalOfPayments', 'totalPremium', 'minEquityCurrency', 'setupFee', 'totalFinanceable', 'amountFinanced', 'paymentAmount', 'documentaryStampTax'];\n const fundingAttributes = ['amount', 'adjustmentAmount', 'totalAmount', 'earliestDate', 'paymentType', 'fundingPaymentRecipientName'];\n const observers = [];\n const baseObservers = objAttributes.pushObjects(fundingAttributes.map(attr => `fundings.@each.${attr}`)).pushObjects(['compensationRates.@each.dollars', 'compensationRates.@each.percent', 'insured.id', 'agency.id', 'policies.@each.number']);\n baseObservers.forEach(base => observers.pushObject(`quote.${base}`));\n baseObservers.forEach(base => observers.pushObject(`contract.${base}`));\n var _default = _exports.default = _component.default.extend(_testableElement.default, _permissions.default, {\n classNames: ['contract-quote-diff'],\n classNameBindings: ['hasDifferences:row-actions'],\n dataTest: 'contract-quote-diff',\n init() {\n this._super(...arguments);\n this.addBothGroups();\n },\n addBothGroups: (0, _object.observer)(...observers, 'contract.id', 'quote.id', function () {\n const contract = this.contract;\n const quote = this.quote;\n const contractGroups = this.buildGroups(contract, quote);\n const quoteGroups = this.buildGroups(quote, contract);\n if (quoteGroups === undefined) {\n return;\n }\n const differences = [];\n quoteGroups.forEach(group => {\n differences.pushObjects(group.attributes.map(attr => attr.isDifferent));\n });\n (0, _object.set)(this, 'hasDifferences', differences.indexOf(true) > -1);\n (0, _object.set)(this, 'contractGroups', contractGroups);\n (0, _object.set)(this, 'quoteGroups', quoteGroups);\n }),\n buildGroups(values, compareValues) {\n const general = [{\n name: 'Quote Number',\n value: (0, _object.get)(values, 'number'),\n isDifferent: (0, _object.get)(values, 'number') !== (0, _object.get)(compareValues, 'number')\n }, {\n name: 'Payment Frequency',\n value: (0, _object.get)(values, 'paymentFrequency'),\n isDifferent: (0, _object.get)(values, 'paymentFrequency') !== (0, _object.get)(compareValues, 'paymentFrequency')\n }, {\n name: 'Doc Stamp Tax',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(values, 'documentaryStampTax')),\n isDifferent: (0, _object.get)(values, 'documentaryStampTax') !== (0, _object.get)(compareValues, 'documentaryStampTax')\n }];\n const terms = [{\n name: 'Installment Count',\n value: (0, _object.get)(values, 'installmentCount'),\n isDifferent: (0, _object.get)(values, 'installmentCount') !== (0, _object.get)(compareValues, 'installmentCount')\n }, {\n name: 'Down Payment Percentage',\n value: (0, _formatPercentage.formatPercentage)((0, _object.get)(values, 'downPaymentPercentage')),\n isDifferent: (0, _object.get)(values, 'downPaymentPercentage') !== (0, _object.get)(compareValues, 'downPaymentPercentage')\n }, {\n name: 'Down Payment',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(values, 'downPayment')),\n isDifferent: (0, _object.get)(values, 'downPayment') !== (0, _object.get)(compareValues, 'downPayment')\n }, {\n name: 'First Due Date',\n value: (0, _formatDate.formatDate)((0, _object.get)(values, 'firstDueDate')),\n isDifferent: (0, _formatDate.formatDate)((0, _object.get)(values, 'firstDueDate')) !== (0, _formatDate.formatDate)((0, _object.get)(compareValues, 'firstDueDate'))\n }, {\n name: 'APR',\n value: (0, _formatPercentage.formatPercentage)((0, _object.get)(values, 'apr')),\n isDifferent: (0, _object.get)(values, 'apr') !== (0, _object.get)(compareValues, 'apr')\n }, {\n name: 'Total Of Payments',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(values, 'totalOfPayments')),\n isDifferent: (0, _object.get)(values, 'totalOfPayments') !== (0, _object.get)(compareValues, 'totalOfPayments')\n }, {\n name: 'Min Equity',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(values, 'minEquityCurrency')),\n isDifferent: (0, _object.get)(values, 'minEquityCurrency') !== (0, _object.get)(compareValues, 'minEquityCurrency')\n }, {\n name: 'Setup Fee',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(values, 'setupFee')),\n isDifferent: (0, _object.get)(values, 'setupFee') !== (0, _object.get)(compareValues, 'setupFee')\n }, {\n name: 'Amount Financeable',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(values, 'totalFinanceable')),\n isDifferent: (0, _object.get)(values, 'totalFinanceable') !== (0, _object.get)(compareValues, 'totalFinanceable')\n }, {\n name: 'Amount Financed',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(values, 'amountFinanced')),\n isDifferent: (0, _object.get)(values, 'amountFinanced') !== (0, _object.get)(compareValues, 'amountFinanced')\n }, {\n name: 'Payment Amount',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(values, 'paymentAmount')),\n isDifferent: (0, _object.get)(values, 'paymentAmount') !== (0, _object.get)(compareValues, 'paymentAmount')\n }];\n const groups = [{\n title: 'General',\n attributes: general\n }, {\n title: 'Terms',\n attributes: terms\n }];\n let compareValuesFundings = (0, _object.get)(compareValues, 'fundings');\n const valuesFundings = (0, _object.get)(values, 'fundings');\n if (valuesFundings === undefined || compareValuesFundings === undefined) {\n return;\n }\n let compareFunding;\n valuesFundings.sortBy('id').forEach((funding, index) => {\n compareFunding = compareValuesFundings.filter(compareFunding => {\n return parseInt((0, _object.get)(compareFunding, 'id')) === parseInt((0, _object.get)(funding, 'id'));\n })[0] || _object.default.create();\n if ((0, _object.get)(funding, 'amount') === undefined) {\n return;\n }\n groups.pushObject({\n title: `Funding ${index + 1}`,\n attributes: [{\n name: 'Amount',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(funding, 'amount')),\n isDifferent: (0, _object.get)(funding, 'amount') !== (0, _object.get)(compareFunding, 'amount')\n }, {\n name: 'Adjustment Amount',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(funding, 'adjustmentAmount')),\n isDifferent: (0, _formatCurrency.formatCurrency)((0, _object.get)(funding, 'adjustmentAmount')) !== (0, _formatCurrency.formatCurrency)((0, _object.get)(compareFunding, 'adjustmentAmount'))\n }, {\n name: 'Total Amount',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(funding, 'totalAmount')),\n isDifferent: (0, _object.get)(funding, 'totalAmount') !== (0, _object.get)(compareFunding, 'totalAmount')\n }, {\n name: 'Earliest Date',\n value: (0, _formatDate.formatDate)((0, _object.get)(funding, 'earliestDate')),\n isDifferent: (0, _formatDate.formatDate)((0, _object.get)(funding, 'earliestDate')) !== (0, _formatDate.formatDate)((0, _object.get)(compareFunding, 'earliestDate'))\n }, {\n name: 'Funding Payment Recipient',\n value: (0, _object.get)(funding, 'fundingPaymentRecipient.name'),\n isDifferent: (0, _object.get)(funding, 'fundingPaymentRecipient.name') !== (0, _object.get)(compareFunding, 'fundingPaymentRecipient.name')\n }]\n });\n });\n let compareValuesPolicies = (0, _object.get)(compareValues, 'policies');\n const valuesPolicies = (0, _object.get)(values, 'policies');\n if (valuesPolicies === undefined || compareValuesPolicies === undefined) {\n return;\n }\n let comparePolicy;\n valuesPolicies.sortBy('id').forEach((policy, index) => {\n comparePolicy = compareValuesPolicies.filter(comparePolicy => {\n return parseInt((0, _object.get)(comparePolicy, 'id')) === parseInt((0, _object.get)(policy, 'id'));\n })[0] || _object.default.create();\n groups.pushObject({\n title: `Policy ${index + 1}`,\n attributes: [{\n name: 'Number',\n value: (0, _object.get)(policy, 'number'),\n isDifferent: (0, _object.get)(policy, 'number') !== (0, _object.get)(comparePolicy, 'number')\n }, {\n name: 'Effective Date',\n value: (0, _formatDate.formatDate)((0, _object.get)(policy, 'effectiveDate')),\n isDifferent: (0, _formatDate.formatDate)((0, _object.get)(policy, 'effectiveDate')) !== (0, _formatDate.formatDate)((0, _object.get)(comparePolicy, 'effectiveDate'))\n }, {\n name: 'Premium',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(policy, 'premium')),\n isDifferent: (0, _object.get)(policy, 'premium') !== (0, _object.get)(comparePolicy, 'premium')\n }, {\n name: 'Expiration Date',\n value: (0, _formatDate.formatDate)((0, _object.get)(policy, 'expirationDate')),\n isDifferent: (0, _formatDate.formatDate)((0, _object.get)(policy, 'expirationDate')) !== (0, _formatDate.formatDate)((0, _object.get)(comparePolicy, 'expirationDate'))\n }, {\n name: 'Additional Days To Cancel',\n value: (0, _object.get)(policy, 'additionalDaysToCancel'),\n isDifferent: (0, _object.get)(policy, 'additionalDaysToCancel') !== (0, _object.get)(comparePolicy, 'additionalDaysToCancel')\n }, {\n name: 'Short Rate',\n value: (0, _object.get)(policy, 'shortRate'),\n isDifferent: (0, _object.get)(policy, 'shortRate') !== (0, _object.get)(comparePolicy, 'shortRate')\n }, {\n name: 'Filings',\n value: (0, _object.get)(policy, 'filings'),\n isDifferent: (0, _object.get)(policy, 'filings') !== (0, _object.get)(comparePolicy, 'filings')\n }, {\n name: 'Auditable',\n value: (0, _object.get)(policy, 'auditable'),\n isDifferent: (0, _object.get)(policy, 'auditable') !== (0, _object.get)(comparePolicy, 'auditable')\n }, {\n name: 'Send Notice To State Authority',\n value: (0, _object.get)(policy, 'sendNoticeToStateAuthority'),\n isDifferent: (0, _object.get)(policy, 'sendNoticeToStateAuthority') !== (0, _object.get)(comparePolicy, 'sendNoticeToStateAuthority')\n }, {\n name: 'Min Earned Percentage',\n value: (0, _formatPercentage.formatPercentage)((0, _object.get)(policy, 'minEarnedPercentage')),\n isDifferent: (0, _object.get)(policy, 'minEarnedPercentage') !== (0, _object.get)(comparePolicy, 'minEarnedPercentage')\n }, {\n name: 'Taxes',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(policy, 'taxes')),\n isDifferent: (0, _object.get)(policy, 'taxes') !== (0, _object.get)(comparePolicy, 'taxes')\n }, {\n name: 'Broker Fee',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(policy, 'brokerFee')),\n isDifferent: (0, _object.get)(policy, 'brokerFee') !== (0, _object.get)(comparePolicy, 'brokerFee')\n }, {\n name: 'Policy Fee',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(policy, 'policyFee')),\n isDifferent: (0, _object.get)(policy, 'policyFee') !== (0, _object.get)(comparePolicy, 'policyFee')\n }, {\n name: 'All Other Fees',\n value: (0, _formatCurrency.formatCurrency)((0, _object.get)(policy, 'allOtherFees')),\n isDifferent: (0, _object.get)(policy, 'allOtherFees') !== (0, _object.get)(comparePolicy, 'allOtherFees')\n }]\n });\n });\n return groups;\n }\n });\n});","define(\"ui/components/copy-to-clipboard\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _component, _object, _tracking) {\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\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n let CopyToClipboardComponent = _exports.default = (_class = class CopyToClipboardComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _initializerDefineProperty(this, \"justCopied\", _descriptor, this);\n }\n async copyText() {\n if (!this.args.text) return;\n try {\n await navigator.clipboard.writeText(this.args.text);\n this.justCopied = true;\n setTimeout(() => {\n this.justCopied = false;\n }, 1000); // 1 second\n } catch (e) {\n console.error(\"Failed to copy text\", e);\n }\n }\n }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"justCopied\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"copyText\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"copyText\"), _class.prototype)), _class);\n});","define(\"ui/components/credit-card\", [\"exports\", \"ember-credit-card/components/credit-card\"], function (_exports, _creditCard) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _creditCard.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-credit-card/components/credit-card\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/d-customer-logo\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _component, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n tagName: 'img',\n classNames: ['customer-logo'],\n dataTest: 'customer-logo',\n attributeBindings: ['src']\n });\n});","define(\"ui/components/d-link-to\", [\"exports\", \"@ember/routing/link-component\", \"ui/mixins/testable-element\"], function (_exports, _linkComponent, _testableElement) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/routing/link-component\",0,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _linkComponent.default.extend(_testableElement.default, {\n classNames: ['d-link-to'],\n dataTest: 'd-link-to',\n dataTestAttributeBinding: 'params.firstObject',\n click() {\n this._super(...arguments);\n if (this.onClick) {\n this.onClick();\n }\n if (this.didTransition) {\n this.didTransition();\n }\n }\n });\n});","define(\"ui/components/d-logo-loading\", [\"exports\", \"@ember/service\", \"@ember/component\"], function (_exports, _service, _component) {\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/component\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n tagName: '',\n request: (0, _service.inject)()\n });\n});","define(\"ui/components/d-logo\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\", \"ui/mixins/testable-element\"], function (_exports, _service, _component, _object, _testableElement) {\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/component\",0,\"@ember/object\",0,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n tagName: 'img',\n classNames: ['main-logo'],\n dataTest: 'main-logo',\n attributeBindings: ['src', 'alt'],\n alt: 'logo',\n brand: (0, _service.inject)(),\n src: (0, _object.computed)('brand.logo', function () {\n return (0, _object.get)(this, 'brand.logo');\n })\n });\n});","define(\"ui/components/d3/funding-delay-graph\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n const {\n transition,\n scaleBand,\n scaleLinear,\n select,\n axisBottom,\n axisLeft,\n max,\n min,\n extent\n } = window.d3;\n var _default = _exports.default = _component.default.extend({\n classNames: ['funding-delay-graph'],\n tagName: 'svg',\n transitionDuration: 300,\n init() {\n this._super(...arguments);\n this.margin = {\n top: 10,\n right: 10,\n bottom: 60,\n left: 50\n };\n },\n width: (0, _object.computed)('elementWidth', function () {\n let margin = (0, _object.get)(this, 'margin');\n return (0, _object.get)(this, 'elementWidth') - margin.left - margin.right;\n }),\n height: (0, _object.computed)('elementHeight', function () {\n let margin = (0, _object.get)(this, 'margin');\n return (0, _object.get)(this, 'elementHeight') - margin.top - margin.bottom;\n }),\n getXScale(data) {\n let width = (0, _object.get)(this, 'width');\n let minDate = min(data.mapBy('date'));\n let maxDate = max(data.mapBy('date'));\n let domain = [];\n for (let i = minDate; i <= maxDate; i++) {\n domain.pushObject(i);\n }\n return scaleBand().domain(domain).range([0, width]).padding(0);\n },\n getYScale(data) {\n let height = this.height;\n let minApr, maxApr;\n [minApr, maxApr] = extent(data.mapBy('apr'));\n return scaleLinear().domain([minApr, maxApr]).range([height, 0]);\n },\n getXAxis(xScale) {\n return axisBottom().scale(xScale);\n },\n getYAxis(yScale) {\n return axisLeft().scale(yScale);\n },\n chart: (0, _object.computed)('elementWidth', 'elementHeight', function () {\n let margin = (0, _object.get)(this, 'margin');\n return select(\".funding-delay-graph\").attr('width', (0, _object.get)(this, 'elementWidth')).attr('height', (0, _object.get)(this, 'elementHeight')).append('g').attr('transform', `translate(${margin.left}, ${margin.top})`);\n }),\n draw() {\n let data = (0, _object.get)(this, 'graphData');\n let chart = (0, _object.get)(this, 'chart');\n let xScale = this.getXScale(data);\n let yScale = this.getYScale(data);\n let xAxis = this.getXAxis(xScale);\n let yAxis = this.getYAxis(yScale);\n let height = (0, _object.get)(this, 'height');\n let _transition = transition().duration((0, _object.get)(this, 'transitionDuration'));\n let minY = min(data.mapBy('apr'));\n let translate = minY ? yScale(minY) : height;\n chart.append(\"g\").attr(\"class\", \"x-axis\").attr(\"transform\", `translate(0, ${translate})`).call(xAxis);\n chart.append(\"g\").attr(\"class\", \"y-axis\").call(yAxis);\n let div = select(\"body\").append(\"div\").attr(\"class\", \"graph-tooltip\").style(\"opacity\", 0);\n chart.selectAll(\".bar\").data(data).enter().append(\"rect\").attr(\"class\", \"bar\").attr(\"fill\", d => {\n if (d.date === 0) {\n return \"#FFEB3B\";\n } else {\n return \"#03A9F4\";\n }\n }).attr(\"x\", d => xScale(d.date)).attr(\"y\", () => height).attr(\"height\", 0).attr(\"width\", xScale.bandwidth()).transition(_transition).attr(\"y\", d => yScale(d.apr)).attr(\"height\", d => height - yScale(d.apr));\n chart.selectAll(\".bar\").on(\"mouseover\", function (d) {\n select(this).attr('fill', '#4FC3F7');\n div.html(`APR: ${d.get('apr')}`).style(\"opacity\", 1).style(\"left\", `${event.pageX}px`).style(\"top\", `${event.pageY}px`);\n }).on(\"mouseout\", function (d) {\n let returnFill;\n if (d.get('date') === 0) {\n returnFill = \"#FFEB3B\";\n } else {\n returnFill = \"#03A9F4\";\n }\n select(this).attr('fill', returnFill);\n div.style(\"opacity\", 0);\n });\n },\n updateDrawing() {\n let data = (0, _object.get)(this, 'graphData');\n let chart = (0, _object.get)(this, 'chart');\n let xScale = this.getXScale(data);\n let yScale = this.getYScale(data);\n let xAxis = this.getXAxis(xScale);\n let yAxis = this.getYAxis(yScale);\n let height = (0, _object.get)(this, 'height');\n let transitionDuration = (0, _object.get)(this, 'transitionDuration');\n let _transition = transition().duration(transitionDuration);\n let minY = min(data.mapBy('apr'));\n let translate = minY ? yScale(minY) : height;\n chart.selectAll(\".bar\").transition().duration(transitionDuration).attr(\"height\", 0).attr(\"y\", () => yScale(0));\n chart.select(\".x-axis\").attr(\"transform\", `translate(0, ${translate})`).call(xAxis);\n chart.select(\".y-axis\").call(yAxis);\n let div = select(\"body\").append(\"div\").attr(\"class\", \"graph-tooltip\").style(\"opacity\", 0);\n chart.append(\"g\").selectAll(\".bar\").data(data).enter().append(\"rect\").attr(\"class\", \"bar\").attr(\"fill\", d => {\n if (d.get('date') === 0) {\n return \"#FFEB3B\";\n } else {\n return \"#03A9F4\";\n }\n }).attr(\"x\", d => xScale(d.get('date'))).attr(\"y\", () => height).attr(\"height\", 0).attr(\"width\", xScale.bandwidth()).transition(_transition).attr(\"y\", d => yScale(d.get('apr'))).attr(\"height\", d => height - yScale(d.get('apr')));\n chart.selectAll(\".bar\").on(\"mouseover\", function (d) {\n select(this).attr('fill', '#4FC3F7');\n div.html(`APR: ${d.get('apr')}`).style(\"opacity\", 1).style(\"left\", `${event.pageX}px`).style(\"top\", `${event.pageY}px`);\n }).on(\"mouseout\", function (d) {\n let returnFill;\n if (d.get('date') === 0) {\n returnFill = \"#FFEB3B\";\n } else {\n returnFill = \"#03A9F4\";\n }\n select(this).attr('fill', returnFill);\n div.style(\"opacity\", 0);\n });\n },\n handleResize() {\n const bb = document.getElementById(this.elementId).getBoundingClientRect();\n (0, _object.set)(this, 'elementWidth', bb.width);\n (0, _object.set)(this, 'elementHeight', bb.height);\n },\n didInsertElement() {\n this._super(...arguments);\n this.handleResize();\n this.draw();\n this.hasDrawnInitially = true;\n },\n watchData: (0, _object.observer)('graphData.@each.apr', function () {\n if (this.graphData) {\n this.handleResize();\n if (this.hasDrawnInitially) {\n this.updateDrawing();\n } else {\n this.hasDrawnInitially = true;\n this.draw();\n }\n }\n })\n });\n});","define(\"ui/components/d3/top-options-graph\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/runloop\", \"ui/mixins/testable-element\"], function (_exports, _component, _object, _runloop, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n const {\n scaleBand,\n scaleLinear,\n scaleOrdinal,\n select,\n axisBottom,\n axisLeft,\n stack,\n max\n } = window.d3;\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'top-options-graph',\n classNames: ['top-options-graph'],\n tagName: 'svg',\n termLimits: _object.default.create(),\n init() {\n this._super(...arguments);\n this.colors = [\"#03A9F4\", \"#80DEEA\", \"#D4E157\", \"#FF9800\", \"#FFEB3B\"];\n },\n margin: (0, _object.computed)('optimalTerms.firstObject.compensationRates.length', function () {\n const legendRows = this.optimalTerms?.[0]?.compensationRates?.length || 0;\n return {\n top: 0,\n right: 5,\n bottom: 40 + 24 * legendRows,\n left: 40\n };\n }),\n transitionDuration: 300,\n width: (0, _object.computed)('elementWidth', 'margin', function () {\n let margin = (0, _object.get)(this, 'margin');\n return (0, _object.get)(this, 'elementWidth') - margin.left - margin.right;\n }),\n height: (0, _object.computed)('elementHeight', 'margin', function () {\n let margin = (0, _object.get)(this, 'margin');\n return (0, _object.get)(this, 'elementHeight') - margin.top - margin.bottom;\n }),\n xScale: (0, _object.computed)('width', 'optimalTerms', function () {\n let titles = (0, _object.get)(this, 'optimalTerms').mapBy('title');\n let width = (0, _object.get)(this, 'width');\n return scaleBand().domain(titles).rangeRound([0, width]).padding(0.2);\n }),\n yScale: (0, _object.computed)('height', 'maxBarHeight', function () {\n let maxBarHeight = (0, _object.get)(this, 'maxBarHeight');\n let height = (0, _object.get)(this, 'height');\n return scaleLinear().domain([0, maxBarHeight]).range([height, 0]);\n }),\n zScale: (0, _object.computed)('optimalTerms.@each.compensationRateId', function () {\n const rates = (0, _object.get)(this, 'optimalTerms.firstObject.compensationRates');\n const keys = rates.map(rate => {\n return this.makeKey(rate);\n });\n return scaleOrdinal().domain(keys).range((0, _object.get)(this, 'colors'));\n }),\n xAxis: (0, _object.computed)('xScale', function () {\n let xScale = (0, _object.get)(this, 'xScale');\n return axisBottom().scale(xScale);\n }),\n yAxis: (0, _object.computed)('yScale', function () {\n let yScale = (0, _object.get)(this, 'yScale');\n return axisLeft().scale(yScale).tickFormat(d => `$${d}`);\n }),\n didInsertElement() {\n this._super(...arguments);\n this.tooltip = select('body').append('div').attr('class', 'graph-tooltip').style('opacity', 0);\n this.handleResize();\n this.resizeObserver = new ResizeObserver(() => {\n (0, _runloop.join)(() => this.handleResize());\n });\n this.resizeObserver.observe(this.element);\n },\n willDestroyElement() {\n this.resizeObserver?.disconnect();\n this.tooltip?.remove();\n this._super(...arguments);\n },\n draw() {\n if (!this.element || this.isDestroying || this.isDestroyed) {\n return;\n }\n const svg = select(this.element);\n svg.selectAll('*').remove();\n this.tooltip?.style('opacity', 0);\n if (!this.optimalTerms?.length || !this.elementWidth || !this.elementHeight) {\n return;\n }\n let data = (0, _object.get)(this, 'asDollars');\n let keys = (0, _object.get)(this, 'keys');\n let stackData = stack().keys(keys)(data);\n for (let [index, row] of stackData.entries()) {\n for (let bar of row) {\n bar.dollars = bar.data[keys[index]];\n }\n }\n const chart = svg.append('g').attr('transform', `translate(${this.margin.left}, ${this.margin.top})`);\n let xScale = (0, _object.get)(this, 'xScale');\n let yScale = (0, _object.get)(this, 'yScale');\n let zScale = (0, _object.get)(this, 'zScale');\n let xAxis = (0, _object.get)(this, 'xAxis');\n let yAxis = (0, _object.get)(this, 'yAxis');\n let height = (0, _object.get)(this, 'height');\n let margin = (0, _object.get)(this, 'margin');\n chart.append('g').attr('class', 'x-axis').attr('transform', `translate(0, ${height})`).call(xAxis);\n chart.append('g').attr('class', 'y-axis').call(yAxis);\n const div = this.tooltip;\n chart.selectAll('.bar').data(stackData).enter().append('g').attr('class', 'series').attr('fill', d => zScale(d.key)).selectAll('rect').data(d => d).enter().append('rect').attr('class', 'bar').attr('x', d => xScale(d.data.title)).attr('y', d => yScale(d[1])).attr('height', d => yScale(d[0]) - yScale(d[1])).attr('width', xScale.bandwidth()).on('mouseover', function (d) {\n div.transition();\n div.html(`$${d.dollars}`).style('opacity', 1).style('left', `${window.d3.event.pageX}px`).style('top', `${window.d3.event.pageY}px`);\n }).on('mouseout', function () {\n div.transition().style('opacity', 0);\n });\n let legendData = [...(0, _object.get)(this, 'legendData')].reverse();\n let legend = chart.selectAll('.legend').data(legendData).enter().append('g').attr('class', 'legend').attr('transform', function (d, i) {\n return `translate(0, ${height + margin.top + 40 + 24 * i})`;\n });\n legend.append(\"rect\").attr(\"x\", 0).attr(\"width\", 18).attr(\"height\", 18).attr(\"fill\", d => zScale(d.key));\n legend.append('text').attr('x', 24).attr('y', 9).attr('dy', '.35em').text(d => d.name);\n },\n handleResize() {\n if (!this.element || this.isDestroying || this.isDestroyed) {\n return;\n }\n const {\n width,\n height\n } = this.element.getBoundingClientRect();\n if (width === this.elementWidth && height === this.elementHeight) {\n return;\n }\n this.setProperties({\n elementWidth: width,\n elementHeight: height\n });\n this.draw();\n },\n sortedOptimalTerms: (0, _object.computed)('optimalTerms.@each.financeCharge', function () {\n return this.optimalTerms.map(terms => {\n const compRates = terms.compensationRates;\n const sorted = [];\n sorted.pushObject(compRates.findBy('purpose', 'buy_rate_interest'));\n sorted.pushObjects(compRates.filterBy('purpose', 'compensation'));\n sorted.pushObject(compRates.findBy('purpose', 'setup_fee'));\n (0, _object.set)(terms, 'compensationRates', sorted);\n return terms;\n });\n }),\n watchOptimalTerms: (0, _object.observer)('optimalTerms', function () {\n this.draw();\n }),\n maxBarHeight: (0, _object.computed)('optimalTerms.@each.financeCharge', function () {\n return max((0, _object.get)(this, 'optimalTerms'), term => {\n return parseFloat(term.get('financeCharge'));\n });\n }),\n legendData: (0, _object.computed)('sortedOptimalTerms.@each.compensationRates', function () {\n const rates = (0, _object.get)(this, 'sortedOptimalTerms.firstObject.compensationRates');\n return rates.map(rate => {\n return {\n name: (0, _object.get)(rate, 'name'),\n purpose: (0, _object.get)(rate, 'purpose'),\n key: this.makeKey(rate)\n };\n });\n }),\n keys: (0, _object.computed)('sortedOptimalTerms', function () {\n const rates = (0, _object.get)(this, 'sortedOptimalTerms.firstObject.compensationRates');\n return rates.map(rate => {\n return this.makeKey(rate);\n });\n }),\n asDollars: (0, _object.computed)('sortedOptimalTerms.@each.compensationRates', function () {\n return (0, _object.get)(this, 'sortedOptimalTerms').map(term => {\n const rates = (0, _object.get)(term, 'compensationRates');\n const newRates = {};\n newRates.title = (0, _object.get)(term, 'title');\n rates.forEach(rate => {\n const key = this.makeKey(rate);\n newRates[key] = (0, _object.get)(rate, 'dollars');\n });\n return newRates;\n });\n }),\n makeKey(rate) {\n return `${(0, _object.get)(rate, 'purpose')}_${(0, _object.get)(rate, 'compRateKey')}`;\n }\n });\n});","define(\"ui/components/ember-ace-completion-tooltip\", [\"exports\", \"ember-ace/components/ember-ace-completion-tooltip\"], function (_exports, _emberAceCompletionTooltip) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _emberAceCompletionTooltip.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-ace/components/ember-ace-completion-tooltip\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/ember-ace\", [\"exports\", \"ember-ace/components/ember-ace\"], function (_exports, _emberAce) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _emberAce.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-ace/components/ember-ace\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/entity-filter-section\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _component, _object, _tracking) {\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\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n let EntityFilterSectionComponent = _exports.default = (_class = class EntityFilterSectionComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _initializerDefineProperty(this, \"isCollapsed\", _descriptor, this);\n }\n toggleCollapse() {\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, \"toggleCollapse\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCollapse\"), _class.prototype)), _class);\n});","define(\"ui/components/entity-info\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\", \"ui/mixins/testable-element\", \"ui/utils/insured-standing-tooltip\"], function (_exports, _service, _component, _object, _testableElement, _insuredStandingTooltip) {\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/component\",0,\"@ember/object\",0,\"ui/mixins/testable-element\",0,\"ui/utils/insured-standing-tooltip\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n router: (0, _service.inject)(),\n dataTest: 'entity-info',\n insuredStandingIcon: (0, _object.computed)('entityType', 'entity.standing', function () {\n if (this.entityType !== 'insured') {\n return false;\n }\n const standing = (0, _object.get)(this, 'entity.standing');\n return {\n no_accounts: 'verified',\n insured_and_accounts_in_good_standing: 'published_with_changes'\n }[standing] || standing;\n }),\n insuredStandingTooltip: (0, _object.computed)('entity.standing', 'entity.standingReasons', 'entityType', function () {\n if (this.entityType !== 'insured') {\n return null;\n }\n const standing = (0, _object.get)(this, 'entity.standing');\n const reasons = (0, _object.get)(this, 'entity.standingReasons');\n return (0, _insuredStandingTooltip.buildInsuredStandingTooltip)(standing, reasons);\n }),\n actions: {\n visitInsuredHistory(event) {\n if (this.entityType !== 'insured') {\n return false;\n }\n this.router.transitionTo('settings.insureds.show.history', this.entity);\n event.preventDefault();\n event.stopPropagation();\n }\n }\n });\n});","define(\"ui/components/esign-document\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n parsedDocument: (0, _object.computed)('workingDocument', 'signatory.signature', function () {\n let workingDocument = this.get('workingDocument');\n if (!workingDocument) {\n return;\n }\n let agencySignature, insuredSignature;\n if (this.signatory.isAgency) {\n agencySignature = this.signatory.signature || '';\n insuredSignature = '';\n } else if (this.signatory.isInsured) {\n agencySignature = '';\n insuredSignature = this.signatory.signature || '';\n }\n workingDocument = workingDocument.replace(`<%= agency_signature_form %>`, agencySignature);\n workingDocument = workingDocument.replace(`<%= insured_signature_form %>`, insuredSignature);\n return workingDocument;\n })\n });\n});","define(\"ui/components/example-notice-form-group\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n init() {\n this._super(...arguments);\n (0, _object.set)(this, 'value', this.exampleNoticeValue);\n },\n updateExampleNoticeValue(changeset, exampleNoticeValueName, exampleNoticeValue) {\n (0, _object.set)(changeset, exampleNoticeValueName, exampleNoticeValue);\n (0, _object.set)(this, 'value', exampleNoticeValue);\n }\n });\n});","define(\"ui/components/file-dropzone\", [\"exports\", \"ember-file-upload/components/file-dropzone\"], function (_exports, _fileDropzone) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _fileDropzone.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-file-upload/components/file-dropzone\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/forms/add-form\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/forms/base-form\"], function (_exports, _service, _object, _baseForm) {\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,\"ui/components/forms/base-form\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n dataTest: 'add-form',\n alert: (0, _service.inject)(),\n title: '',\n redirect: '',\n modelName: '',\n model: null,\n init() {\n this._super(...arguments);\n this.options = {};\n const createModel = this.createModel;\n let model;\n let modelName;\n if (createModel) {\n model = createModel();\n modelName = model.constructor.modelName;\n } else {\n let store = (0, _object.get)(this, 'store');\n let options = (0, _object.get)(this, 'options');\n modelName = (0, _object.get)(this, 'modelName');\n model = store.createRecord(modelName, options);\n }\n (0, _object.setProperties)(this, {\n model,\n name: `${modelName}-form`\n });\n },\n willDestroy() {\n let model = (0, _object.get)(this, 'model');\n if ((0, _object.get)(model, 'isNew')) {\n model.destroyRecord();\n }\n },\n onSuccess() {\n return () => {};\n },\n onError() {\n return () => {};\n },\n save() {\n let model = (0, _object.get)(this, 'model');\n this.send('onSubmit'); // send action to paper form parent component\n\n model.save().then(_model => {\n if ((0, _object.get)(this, 'transitionToRoute') && (0, _object.get)(this, 'redirect')) {\n (0, _object.get)(this, 'transitionToRoute')((0, _object.get)(this, 'redirect'));\n }\n this.onSuccess(_model);\n (0, _object.get)(this, 'alert').created({\n modelName: (0, _object.get)(this, 'modelName'),\n identifier: \"\"\n });\n }, error => {\n this.onError(error);\n (0, _object.get)(this, 'alert').error();\n });\n }\n });\n});","define(\"ui/components/forms/address-form\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n const availableAttributes = ['address_1', 'address_2', 'city', 'state', 'zipcode', 'county', 'country', 'prenormalized', 'addressHtml', 'formattedAddress'];\n var _default = _exports.default = _component.default.extend({\n errorsPresent: (0, _object.computed)('model.{errors,errors.city,errors.state,errors.zipcode,errors.address_1}', function () {\n // const present = (\n // !!this.model.get('errors.city.length') &&\n // !!this.model.get('errors.state.length') &&\n // !!this.model.get('errors.zipcode.length') &&\n // !!this.model.get('errors.address_1.length')\n // )\n // return present\n return false;\n }),\n address_1Info: (0, _object.computed)('model.address_1', function () {\n const poBoxPattern = /\\b(P\\.?O\\.?\\sBox|Post\\sOffice\\s*Box)\\b/i;\n const infos = [];\n if (!this.checkForPOBox) {\n return infos;\n }\n if (poBoxPattern.test(this.model.address_1)) {\n infos.push(\"PO boxes are not valid physical addresses\");\n }\n return infos;\n }),\n address_2Info: (0, _object.computed)('model.address_2', function () {\n const poBoxPattern = /\\b(P\\.?O\\.?\\sBox|Post\\sOffice\\s*Box)\\b/i;\n const infos = [];\n if (!this.checkForPOBox) {\n return infos;\n }\n if (poBoxPattern.test(this.model.address_2)) {\n infos.push(\"PO boxes are not valid physical addresses\");\n }\n return infos;\n }),\n actions: {\n updateAddressFromQuickStart(gmapValues) {\n for (const valueName in gmapValues) {\n if (availableAttributes.indexOf(valueName) > -1) {\n (0, _object.set)(this, `model.${valueName}`, gmapValues[valueName]);\n }\n }\n }\n }\n });\n});","define(\"ui/components/forms/agency-form\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/forms/base-form\", \"ui/utils/refund-payable-to\"], function (_exports, _service, _object, _baseForm, _refundPayableTo) {\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,\"ui/components/forms/base-form\",0,\"ui/utils/refund-payable-to\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n dataTest: 'agency-form',\n ajax: (0, _service.inject)(),\n init() {\n this._super(...arguments);\n this.ajax.constant('paymentMethods').then(paymentMethods => {\n (0, _object.set)(this, 'paymentMethodNames', paymentMethods.map(method => method.name));\n });\n },\n refundPayableToSelection: (0, _object.computed)('model.refundPayableTo.value', 'model.payableToInsuredAndAgency.value', function () {\n return (0, _refundPayableTo.getRefundPayableSelection)({\n refundPayableTo: this.get('model.refundPayableTo.value'),\n payableToInsuredAndAgency: this.get('model.payableToInsuredAndAgency.value')\n });\n }),\n // addCompensation() {\n // this.model.requiredCompensations.add();\n // },\n\n // notAllCompsAreKept: computed('model.requiredCompensations.@each.isExpanded', function () {\n // return this.model.requiredCompensations.forms.filterBy('isExpanded', true).length > 0;\n // }),\n\n save() {\n this.send('onSubmit'); // send action to paper form parent component\n this.model.submit().then(agency => {\n this.afterSave(agency);\n }, () => {\n // just catching the error\n });\n },\n actions: {\n updateRefundPayableTo(refundPayableSelection) {\n const {\n refundPayableTo,\n payableToInsuredAndAgency\n } = (0, _refundPayableTo.normalizeRefundPayableSelection)(refundPayableSelection);\n this.set('model.refundPayableTo.value', refundPayableTo);\n this.set('model.payableToInsuredAndAgency.value', payableToInsuredAndAgency);\n },\n updateAddressFromQuickStart(gmapValues) {\n const contactInfo = this.model.contactInformation;\n for (const valueName in gmapValues) {\n const attr = contactInfo[valueName];\n const value = gmapValues[valueName];\n if (attr && attr.isNode && value) {\n attr.set('value', value);\n }\n }\n },\n updateAddressFromQuickStartMailingAddress(gmapValues) {\n for (const valueName in gmapValues) {\n const attr = this.get(`model.mailingAddressContactInformation.${valueName}`);\n const value = gmapValues[valueName];\n if (attr && value) {\n this.set(`model.mailingAddressContactInformation.${valueName}.value`, value);\n }\n }\n },\n updateMailingAddressEqualsPhysicalAddress(newValue) {\n (0, _object.set)(this, 'model.mailingAddressEqualsPhysicalAddress.value', newValue);\n\n // unset all the fields if the user wants to use the same address again\n if (newValue) {\n const mailingAddress = (0, _object.get)(this, 'model.mailingAddressContactInformation');\n for (const key in mailingAddress) {\n if (mailingAddress.hasOwnProperty(key)) {\n if (mailingAddress[key] && mailingAddress[key].value) {\n (0, _object.set)(mailingAddress[key], 'value', null);\n }\n }\n }\n }\n },\n updateYieldBasedPricing(newValue) {\n (0, _object.set)(this, 'model.yieldBasedPricing.value', newValue);\n (0, _object.set)(this, 'model.yieldRateTableId.required', newValue);\n (0, _object.set)(this, 'model.optimizationTermsTableId.required', newValue || (0, _object.get)(this, 'model.optimized.value'));\n if (!newValue) {\n (0, _object.set)(this, 'model.yieldRateTableId.value', null);\n }\n },\n updateOptimized(newValue) {\n (0, _object.set)(this, 'model.optimized.value', newValue);\n (0, _object.set)(this, 'model.optimizationTermsTableId.required', newValue || (0, _object.get)(this, 'model.yieldBasedPricing.value'));\n }\n }\n });\n});","define(\"ui/components/forms/base-form\", [\"exports\", \"@ember/service\", \"ember-paper/components/paper-form\", \"ui/mixins/testable-element\"], function (_exports, _service, _paperForm, _testableElement) {\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-paper/components/paper-form\",0,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Base form for other forms\n \n ```\n {{#forms/base-form name=\"some-form\"}}\n \n {{/forms/base-form}}\n ```\n \n @class forms.base-form\n @extends PaperForm\n @uses TestableElementMixin\n */\n var _default = _exports.default = _paperForm.default.extend(_testableElement.default, {\n store: (0, _service.inject)(),\n tagName: 'form',\n dataTest: 'form'\n });\n});","define(\"ui/components/forms/brand-form\", [\"exports\", \"ui/components/forms/base-form\", \"@ember/service\"], function (_exports, _baseForm, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/forms/base-form\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n alert: (0, _service.inject)(),\n dataTest: 'brand-form',\n save() {\n this.send('onSubmit'); // send action to paper form parent component\n this.model.submit().then(brand => {\n this.afterSave(brand);\n }, errors => {\n // this callback needs to be here to catch errors :shrug:\n console.log(\"ERRORS\", errors);\n });\n },\n actions: {\n updateAddressFromQuickStart(gmapValues) {\n for (const valueName in gmapValues) {\n const attr = this.get(`model.contactInformation.${valueName}`);\n const value = gmapValues[valueName];\n if (attr && value) {\n this.set(`model.contactInformation.${valueName}.value`, value);\n }\n }\n }\n }\n });\n});","define(\"ui/components/forms/brand-funding-sources-editor\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n const SECTION_FIELDS = {\n fundings: {\n ids: 'fundingsFundingSourceIds',\n defaultId: 'defaultFundingsFundingSourceId',\n costOfFundsTableIds: 'fundingsCostOfFundsTableIds',\n costOfFundsTableNames: 'fundingsCostOfFundsTableNames',\n title: 'Fundings'\n },\n refunds: {\n ids: 'refundsFundingSourceIds',\n defaultId: 'defaultRefundsFundingSourceId',\n title: 'Refunds'\n },\n compensations: {\n ids: 'compensationsFundingSourceIds',\n defaultId: 'defaultCompensationsFundingSourceId',\n title: 'Compensations'\n }\n };\n var _default = _exports.default = _component.default.extend({\n store: (0, _service.inject)(),\n init() {\n this._super(...arguments);\n (0, _object.set)(this, 'localValues', {});\n this.store.findAll('funding-source').then(fundingSources => {\n (0, _object.set)(this, 'allFundingSources', fundingSources);\n });\n this.store.findAll('cost-of-funds-table').then(costOfFundsTables => {\n (0, _object.set)(this, 'allCostOfFundsTables', costOfFundsTables);\n });\n },\n sections: (0, _object.computed)('allFundingSources.@each.{id,name,description}', 'allCostOfFundsTables.@each.{id,name}', 'brand.fundingsFundingSourceIds.[]', 'brand.fundingsCostOfFundsTableIds', 'brand.fundingsCostOfFundsTableNames', 'brand.refundsFundingSourceIds.[]', 'brand.compensationsFundingSourceIds.[]', 'brand.fundingsFundingSources.[]', 'brand.refundsFundingSources.[]', 'brand.compensationsFundingSources.[]', 'brand.defaultFundingsFundingSourceId', 'brand.defaultRefundsFundingSourceId', 'brand.defaultCompensationsFundingSourceId', 'localValues.fundingsFundingSourceIds.[]', 'localValues.fundingsCostOfFundsTableIds', 'localValues.refundsFundingSourceIds.[]', 'localValues.compensationsFundingSourceIds.[]', 'localValues.defaultFundingsFundingSourceId', 'localValues.defaultRefundsFundingSourceId', 'localValues.defaultCompensationsFundingSourceId', 'changeset.fundingsFundingSourceIds.[]', 'changeset.fundingsCostOfFundsTableIds', 'changeset.refundsFundingSourceIds.[]', 'changeset.compensationsFundingSourceIds.[]', 'changeset.defaultFundingsFundingSourceId', 'changeset.defaultRefundsFundingSourceId', 'changeset.defaultCompensationsFundingSourceId', 'changeset.errors.fundingsFundingSourceIds', 'changeset.errors.fundingsCostOfFundsTableIds', 'changeset.errors.refundsFundingSourceIds', 'changeset.errors.compensationsFundingSourceIds', 'changeset.errors.defaultFundingsFundingSourceId', 'changeset.errors.defaultRefundsFundingSourceId', 'changeset.errors.defaultCompensationsFundingSourceId', 'formModel.fundingsFundingSourceIds.value.[]', 'formModel.fundingsCostOfFundsTableIds.value', 'formModel.refundsFundingSourceIds.value.[]', 'formModel.compensationsFundingSourceIds.value.[]', 'formModel.defaultFundingsFundingSourceId.value', 'formModel.defaultRefundsFundingSourceId.value', 'formModel.defaultCompensationsFundingSourceId.value', 'formModel.fundingsFundingSourceIds.errors.[]', 'formModel.fundingsCostOfFundsTableIds.errors.[]', 'formModel.refundsFundingSourceIds.errors.[]', 'formModel.compensationsFundingSourceIds.errors.[]', 'formModel.defaultFundingsFundingSourceId.errors.[]', 'formModel.defaultRefundsFundingSourceId.errors.[]', 'formModel.defaultCompensationsFundingSourceId.errors.[]', function () {\n return Object.keys(SECTION_FIELDS).map((sectionKey, index) => this.sectionDetails(sectionKey, index));\n }),\n sectionDetails(sectionKey, index = 0) {\n const fieldNames = SECTION_FIELDS[sectionKey];\n const selectedIds = this.selectedIdsFor(fieldNames.ids);\n const defaultFundingSourceId = this.normalizedId(this.valueFor(fieldNames.defaultId));\n const costOfFundsTableIds = this.costOfFundsTableIdsFor(fieldNames.costOfFundsTableIds);\n const costOfFundsTableNames = this.costOfFundsTableNamesFor(fieldNames.costOfFundsTableNames);\n const selectedFundingSources = selectedIds.map(id => this.fundingSourceForSection(sectionKey, id)).filter(Boolean);\n return {\n key: sectionKey,\n isDivided: index > 0,\n title: fieldNames.title,\n selectedFundingSources: selectedFundingSources.map(fundingSource => ({\n ...fundingSource,\n isDefault: fundingSource.id === defaultFundingSourceId,\n costOfFundsTable: this.costOfFundsTableFor(costOfFundsTableIds[fundingSource.id] || fundingSource.costOfFundsTableId, costOfFundsTableNames[fundingSource.id] || fundingSource.costOfFundsTableName),\n canRemove: selectedFundingSources.length > 1 && fundingSource.id !== defaultFundingSourceId\n })),\n defaultFundingSourceId,\n showCostOfFundsTable: sectionKey === 'fundings',\n headers: sectionKey === 'fundings' ? ['Name', 'Description', 'Cost of Funds Table', 'Default'] : ['Name', 'Description', 'Default'],\n selectedErrors: this.errorsFor(fieldNames.ids),\n defaultErrors: this.errorsFor(fieldNames.defaultId),\n costOfFundsTableErrors: this.errorsFor(fieldNames.costOfFundsTableIds)\n };\n },\n selectedIdsFor(fieldName) {\n return this.normalizeIds(this.valueFor(fieldName));\n },\n normalizedId(value) {\n if (value === null || value === undefined || value === '') {\n return null;\n }\n return parseInt(value, 10);\n },\n normalizeIds(value) {\n if (value === null || value === undefined) {\n return [];\n }\n return (Array.isArray(value) ? value : [value]).map(id => this.normalizedId(id)).filter(id => id !== null);\n },\n costOfFundsTableIdsFor(fieldName) {\n if (!fieldName) {\n return {};\n }\n const value = this.valueFor(fieldName);\n const candidateKeys = [...Object.keys(value || {}), ...this.selectedIdsFor('fundingsFundingSourceIds')];\n return this.normalizeIdMap(value, candidateKeys);\n },\n normalizeIdMap(value, candidateKeys = Object.keys(value || {})) {\n if (value === null || value === undefined) {\n return {};\n }\n return candidateKeys.reduce((normalized, key) => {\n const normalizedKey = this.normalizedId(key);\n const normalizedValue = this.normalizedId(value[key]);\n if (normalizedKey !== null && normalizedValue !== null) {\n normalized[normalizedKey] = normalizedValue;\n }\n return normalized;\n }, {});\n },\n costOfFundsTableNamesFor(fieldName) {\n if (!fieldName) {\n return {};\n }\n const value = this.valueFor(fieldName);\n if (value === null || value === undefined) {\n return {};\n }\n const candidateKeys = [...Object.keys(value), ...this.selectedIdsFor('fundingsFundingSourceIds')];\n return candidateKeys.reduce((normalized, key) => {\n const normalizedKey = this.normalizedId(key);\n if (normalizedKey !== null && value[key]) {\n normalized[normalizedKey] = value[key];\n }\n return normalized;\n }, {});\n },\n valueFor(fieldName) {\n if (!fieldName) {\n return undefined;\n }\n if (this.formModel) {\n return (0, _object.get)(this, `formModel.${fieldName}.value`);\n }\n if (this.changeset && (0, _object.get)(this.changeset, fieldName) !== undefined) {\n return (0, _object.get)(this.changeset, fieldName);\n }\n if (Object.prototype.hasOwnProperty.call(this.localValues || {}, fieldName)) {\n return (0, _object.get)(this.localValues, fieldName);\n }\n if (this.brand && (0, _object.get)(this.brand, fieldName) !== undefined) {\n return (0, _object.get)(this.brand, fieldName);\n }\n return undefined;\n },\n errorsFor(fieldName) {\n if (!fieldName) {\n return [];\n }\n if (this.formModel) {\n return (0, _object.get)(this, `formModel.${fieldName}.errors`) || [];\n }\n return (0, _object.get)(this, `changeset.errors.${fieldName}`) || [];\n },\n updateValue(fieldName, value) {\n if (this.formModel) {\n (0, _object.set)(this, `formModel.${fieldName}.value`, value);\n return;\n }\n if (this.changeset) {\n (0, _object.set)(this.changeset, fieldName, value);\n return;\n }\n (0, _object.set)(this.localValues, fieldName, value);\n },\n findFundingSourceById(id) {\n return ((0, _object.get)(this, 'allFundingSources') || []).find(fundingSource => parseInt((0, _object.get)(fundingSource, 'id'), 10) === parseInt(id, 10));\n },\n fundingSourceForSection(sectionKey, id) {\n const fundingSource = this.serializeFundingSource(this.findFundingSourceById(id));\n const assignmentFundingSource = this.serializeFundingSource(this.findFallbackFundingSource(sectionKey, id));\n if (!fundingSource) {\n return assignmentFundingSource;\n }\n return {\n ...assignmentFundingSource,\n ...fundingSource,\n costOfFundsTableId: fundingSource.costOfFundsTableId || assignmentFundingSource?.costOfFundsTableId,\n costOfFundsTableName: fundingSource.costOfFundsTableName || assignmentFundingSource?.costOfFundsTableName\n };\n },\n findFallbackFundingSource(sectionKey, id) {\n const fallbackList = (0, _object.get)(this, `brand.${SECTION_FIELDS[sectionKey].ids.replace(/Ids$/, 's')}`) || [];\n return fallbackList.find(fundingSource => parseInt((0, _object.get)(fundingSource, 'id'), 10) === parseInt(id, 10));\n },\n findCostOfFundsTableById(id) {\n return ((0, _object.get)(this, 'allCostOfFundsTables') || []).find(costOfFundsTable => parseInt((0, _object.get)(costOfFundsTable, 'id'), 10) === parseInt(id, 10));\n },\n defaultCostOfFundsTable() {\n const costOfFundsTables = (0, _object.get)(this, 'allCostOfFundsTables') || [];\n return costOfFundsTables.findBy('name', 'Default') || costOfFundsTables[0];\n },\n costOfFundsTableFor(id, name) {\n return this.findCostOfFundsTableById(id) || this.fallbackCostOfFundsTable(id, name);\n },\n fallbackCostOfFundsTable(id, name) {\n const costOfFundsTableId = this.normalizedId(id);\n if (!costOfFundsTableId || !name) {\n return null;\n }\n return {\n id: costOfFundsTableId,\n name\n };\n },\n objectValue(object, ...keys) {\n if (!object) {\n return undefined;\n }\n return keys.map(key => (0, _object.get)(object, key)).find(value => value !== undefined && value !== null);\n },\n serializeFundingSource(fundingSource) {\n if (!fundingSource) {\n return null;\n }\n return {\n id: this.normalizedId(this.objectValue(fundingSource, 'id')),\n name: this.objectValue(fundingSource, 'name'),\n description: this.objectValue(fundingSource, 'description'),\n costOfFundsTableId: this.normalizedId(this.objectValue(fundingSource, 'costOfFundsTableId', 'cost_of_funds_table_id', 'cost-of-funds-table-id')),\n costOfFundsTableName: this.objectValue(fundingSource, 'costOfFundsTableName', 'cost_of_funds_table_name', 'cost-of-funds-table-name')\n };\n },\n canRemoveFundingSource(sectionKey, fundingSource) {\n const fieldNames = SECTION_FIELDS[sectionKey];\n const defaultFundingSourceId = this.normalizedId(this.valueFor(fieldNames.defaultId));\n const fundingSourceId = this.normalizedId((0, _object.get)(fundingSource, 'id'));\n return this.selectedIdsFor(fieldNames.ids).length > 1 && fundingSourceId !== defaultFundingSourceId;\n },\n actions: {\n addFundingSource(sectionKey, fundingSource) {\n if (!fundingSource) {\n return;\n }\n const fieldNames = SECTION_FIELDS[sectionKey];\n const currentIds = this.selectedIdsFor(fieldNames.ids);\n const fundingSourceId = parseInt((0, _object.get)(fundingSource, 'id'), 10);\n if (currentIds.includes(fundingSourceId)) {\n return;\n }\n const nextIds = currentIds.concat([fundingSourceId]);\n this.updateValue(fieldNames.ids, nextIds);\n if (fieldNames.costOfFundsTableIds) {\n const defaultCostOfFundsTable = this.defaultCostOfFundsTable();\n const costOfFundsTableIds = this.costOfFundsTableIdsFor(fieldNames.costOfFundsTableIds);\n if (defaultCostOfFundsTable) {\n costOfFundsTableIds[fundingSourceId] = parseInt((0, _object.get)(defaultCostOfFundsTable, 'id'), 10);\n this.updateValue(fieldNames.costOfFundsTableIds, costOfFundsTableIds);\n }\n }\n if (!this.valueFor(fieldNames.defaultId) || nextIds.length === 1) {\n this.updateValue(fieldNames.defaultId, fundingSourceId);\n }\n },\n removeFundingSource(sectionKey, fundingSource) {\n if (!this.canRemoveFundingSource(sectionKey, fundingSource)) {\n return;\n }\n const fieldNames = SECTION_FIELDS[sectionKey];\n const fundingSourceId = this.normalizedId((0, _object.get)(fundingSource, 'id'));\n const nextIds = this.selectedIdsFor(fieldNames.ids).filter(id => id !== fundingSourceId);\n this.updateValue(fieldNames.ids, nextIds);\n if (fieldNames.costOfFundsTableIds) {\n const costOfFundsTableIds = this.costOfFundsTableIdsFor(fieldNames.costOfFundsTableIds);\n delete costOfFundsTableIds[fundingSourceId];\n this.updateValue(fieldNames.costOfFundsTableIds, costOfFundsTableIds);\n }\n if (this.normalizedId(this.valueFor(fieldNames.defaultId)) === fundingSourceId) {\n this.updateValue(fieldNames.defaultId, nextIds[0] || null);\n }\n },\n setDefaultFundingSource(sectionKey, fundingSource) {\n const fieldNames = SECTION_FIELDS[sectionKey];\n this.updateValue(fieldNames.defaultId, parseInt((0, _object.get)(fundingSource, 'id'), 10));\n },\n setCostOfFundsTable(sectionKey, fundingSource, costOfFundsTable) {\n if (!costOfFundsTable) {\n return;\n }\n const fieldNames = SECTION_FIELDS[sectionKey];\n const fundingSourceId = this.normalizedId((0, _object.get)(fundingSource, 'id'));\n const costOfFundsTableId = this.normalizedId((0, _object.get)(costOfFundsTable, 'id'));\n if (!fieldNames.costOfFundsTableIds || !fundingSourceId || !costOfFundsTableId) {\n return;\n }\n const costOfFundsTableIds = this.costOfFundsTableIdsFor(fieldNames.costOfFundsTableIds);\n costOfFundsTableIds[fundingSourceId] = costOfFundsTableId;\n this.updateValue(fieldNames.costOfFundsTableIds, costOfFundsTableIds);\n }\n }\n });\n});","define(\"ui/components/forms/buy-rate-table-builder\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\", \"ui/mixins/permissions\"], function (_exports, _service, _component, _object, _permissions) {\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/component\",0,\"@ember/object\",0,\"ui/mixins/permissions\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Used to add buy rate table rows to buy rate table\n \n ```\n {{forms/buy-rate-table-builder\n buyRateTable=model }}\n ```\n \n @class forms.buy-rate-table-builder\n @extends Component\n */\n var _default = _exports.default = _component.default.extend(_permissions.default, {\n dataTest: 'buy-rate-table-builder',\n store: (0, _service.inject)(),\n /**\n The buy rate table parent of these requirements\n @property buyRateTable\n @type Object\n @default null\n */\n buyRateTable: null,\n add() {\n let buyRateTable = this.buyRateTable;\n let store = this.store;\n store.createRecord('buy-rate-table-record', {\n buyRateTable: buyRateTable,\n rangeStart: this.calculateNextRangeStart(buyRateTable.buyRateTableRecords),\n isExpanded: true\n });\n },\n calculateNextRangeStart(buyRateTableRecords) {\n if (buyRateTableRecords.length) {\n let sorted = buyRateTableRecords.sortBy('rangeEnd');\n let largest = sorted.lastObject;\n return largest.rangeEnd + 0.01;\n }\n return 0;\n }\n });\n});","define(\"ui/components/forms/card-editable\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\", \"ui/mixins/testable-element\", \"ember-changeset\"], function (_exports, _service, _component, _object, _testableElement, _emberChangeset) {\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/component\",0,\"@ember/object\",0,\"ui/mixins/testable-element\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n alert: (0, _service.inject)(),\n dataTest: 'card-editable',\n dataTestAttributeBinding: 'headline',\n classNames: ['card-form'],\n classNameBindings: ['isEditing'],\n isEditing: false,\n init() {\n this._super(...arguments);\n if (this.initialIsEditing) {\n this.startEditing();\n }\n },\n onSave() {\n return true;\n },\n startEditing() {\n if (this.model) {\n const changeset = new _emberChangeset.default(this.model);\n (0, _object.set)(this, 'changeset', changeset);\n }\n (0, _object.set)(this, 'isEditing', true);\n },\n confirmSave() {\n (0, _object.set)(this, 'isConfirming', true);\n },\n save() {\n if (this.changeset) {\n this.changeset.execute();\n }\n let saved = (0, _object.get)(this, 'onSave')();\n if (saved.then) {\n saved.then(success => {\n if (!this.isDestroyed) {\n (0, _object.set)(this, 'isConfirming', false);\n if (success) {\n (0, _object.set)(this, 'isEditing', false);\n }\n }\n }, () => {\n // This callback just prevents the error from bubling\n // it should be handled in the alert\n });\n } else if (saved === true) {\n if (!this.isDestroyed) {\n (0, _object.set)(this, 'isEditing', false);\n (0, _object.set)(this, 'isConfirming', false);\n }\n }\n },\n onCancel() {\n this.changeset.rollback();\n return true;\n },\n cancel() {\n let canceled = this.onCancel();\n if (!canceled) {\n return;\n }\n if (canceled.then) {\n canceled.then(() => {\n (0, _object.set)(this, 'isEditing', false);\n });\n } else if (canceled === true) {\n (0, _object.set)(this, 'isEditing', false);\n }\n }\n });\n});","define(\"ui/components/forms/card-form\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/forms/base-form\", \"ember-changeset\"], function (_exports, _service, _object, _baseForm, _emberChangeset) {\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,\"ui/components/forms/base-form\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n alert: (0, _service.inject)(),\n dataTest: 'card-form',\n dataTestAttributeBinding: 'headline',\n classNames: ['card-form'],\n classNameBindings: ['isEditing'],\n changeset: null,\n isEditing: false,\n hasEditableFields: false,\n init() {\n this._super(...arguments);\n let model = this.model;\n const createModel = this.createModel;\n if (!model) {\n if (createModel) {\n model = this.createModel();\n (0, _object.set)(model, 'createdSoMustDestroy', true);\n } else {\n // console.log(\"A `d-create-form` must have take a `model` or method `createModel` that returns an instance of the model to create.\")\n // throw \"A `d-create-form` must have take a `model` or method `createModel` that returns an instance of the model to create.\"\n }\n }\n (0, _object.set)(this, 'model', model);\n (0, _object.set)(this, 'changeset', new _emberChangeset.default(model));\n if (this.initialIsEditing) {\n (0, _object.set)(this, 'isEditing', true);\n }\n },\n confirmSave() {\n (0, _object.set)(this, 'isConfirming', true);\n },\n save() {\n let changeset = (0, _object.get)(this, 'changeset');\n let model = (0, _object.get)(this, 'model');\n let alert = (0, _object.get)(this, 'alert');\n (0, _object.set)(this, 'isConfirming', false);\n const onSave = (0, _object.get)(this, 'onSave');\n changeset.save().then(() => {\n (0, _object.set)(this, 'isEditing', false);\n if (onSave) {\n onSave(model, changeset);\n }\n alert.success();\n }, error => {\n alert.error(error);\n });\n },\n cancel() {\n let changeset = (0, _object.get)(this, 'changeset');\n let model = (0, _object.get)(this, 'model');\n if (model.get('createdSoMustDestroy')) {\n const onCancelNew = this.onCancelNew;\n if (onCancelNew) {\n changeset.rollback();\n (0, _object.set)(this, 'isEditing', false);\n onCancelNew(model);\n return;\n }\n model.destroy();\n changeset.rollback();\n } else {\n model.rollbackAttributes();\n changeset.rollback();\n }\n (0, _object.set)(this, 'isEditing', false);\n },\n deleteModel() {\n this.model.delete().then(() => {\n this.alert.success();\n }, () => {\n this.alert.error();\n });\n }\n });\n});","define(\"ui/components/forms/card-group-obfuscated\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ui/mixins/testable-element\"], function (_exports, _component, _object, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'card-group',\n dataTestAttributeBinding: 'label',\n classNames: ['card-group', 'obfuscated'],\n classNameBindings: ['isEditable', 'isBlock'],\n isEditable: true,\n isBlock: false,\n label: '',\n value: '',\n showModal() {\n (0, _object.set)(this, 'isShowing', true);\n if (this.hasAccess) {\n this.findObfuscatedValue().then(value => {\n (0, _object.set)(this, 'obfuscatedValue', value);\n }, errors => {\n (0, _object.set)(this, 'errors', errors);\n });\n }\n },\n save() {\n const promise = this.onSave();\n if (promise.then) {\n promise.then(() => {\n (0, _object.set)(this, 'isShowing', false);\n });\n }\n }\n });\n});","define(\"ui/components/forms/card-group\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _component, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'card-group',\n dataTestAttributeBinding: 'label',\n classNames: ['card-group'],\n classNameBindings: ['isEditable', 'isBlock'],\n isEditable: true,\n isBlock: false,\n label: '',\n value: '',\n linkTo: '',\n linkParam: '',\n hasPermission: false\n });\n});","define(\"ui/components/forms/carrier-form\", [\"exports\", \"ui/components/forms/base-form\"], function (_exports, _baseForm) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/forms/base-form\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n dataTest: 'carrier-form',\n save() {\n this.send('onSubmit'); // send action to paper form parent component\n this.model.submit().then(carrier => {\n this.afterSave(carrier);\n }, () => {\n // just catching the error\n });\n },\n actions: {\n updateAddressFromQuickStart(gmapValues) {\n for (const valueName in gmapValues) {\n const attr = this.get(`model.contactInformation.${valueName}`);\n const value = gmapValues[valueName];\n if (attr && value) {\n this.set(`model.contactInformation.${valueName}.value`, value);\n }\n }\n }\n }\n });\n});","define(\"ui/components/forms/compensation-table-builder\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Used to add compensation table rows to buy rate table\n \n ```\n {{forms/compensation-table-builder\n compensationTable=model }}\n ```\n \n @class forms.compensation-table-builder\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n dataTest: 'compensation-table-builder',\n store: (0, _service.inject)(),\n /**\n The compensation table parent of these requirements\n @property compensationTable\n @type Object\n @default null\n */\n compensationTable: null,\n add() {\n let compensationTable = this.compensationTable;\n let store = this.store;\n store.createRecord('compensation-table-record', {\n compensationTable: compensationTable,\n charge: 0,\n rangeStart: this.calculateNextRangeStart(compensationTable.compensationTableRecords),\n isExpanded: true\n });\n },\n calculateNextRangeStart(compensationTableRecords) {\n if (compensationTableRecords.length) {\n let sorted = compensationTableRecords.sortBy('rangeEnd');\n let largest = sorted.lastObject;\n return largest.rangeEnd + 0.01;\n }\n return 0;\n }\n });\n});","define(\"ui/components/forms/condition/edit-autocomplete\", [\"exports\", \"@glimmer/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"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), a = null), a; }\n let EditAutocompleteComponent = _exports.default = (_class = class EditAutocompleteComponent extends _component.default {\n get clauses() {\n return `${this.args.criteria.resource}:name`;\n }\n get selected() {\n const {\n condition: id,\n conditionName: name\n } = this.args.requirement;\n return id && name ? {\n id,\n name\n } : null;\n }\n selectCondition(option) {\n this.args.requirement.condition = option ? option.id.toString() : null;\n this.args.requirement.conditionName = option ? option.name : null;\n }\n }, (_applyDecoratedDescriptor(_class.prototype, \"selectCondition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectCondition\"), _class.prototype)), _class);\n});","define(\"ui/components/forms/contact-information-form-fields\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n errorsPresent: (0, _object.computed)('model.{city.errors,state.errors,zipcode.errors,address_1.errors}', function () {\n const model = this.model;\n if (!model) {\n console.log(\"No model found\");\n return null;\n }\n const present = !!this.model.get('city.errors.length') && !!this.model.get('state.errors.length') && !!this.model.get('zipcode.errors.length') && !!this.model.get('address_1.errors.length');\n return present;\n }),\n address_1Info: (0, _object.computed)('model.address_1.value', function () {\n const poBoxPattern = /\\b(P\\.?O\\.?\\sBox|Post\\sOffice\\s*Box)\\b/i;\n const infos = [];\n if (!this.checkForPOBox) {\n return infos;\n }\n if (poBoxPattern.test(this.model.address_1.value)) {\n infos.push(\"PO boxes are not valid physical addresses\");\n }\n return infos;\n }),\n address_2Info: (0, _object.computed)('model.address_2.value', function () {\n const poBoxPattern = /\\b(P\\.?O\\.?\\sBox|Post\\sOffice\\s*Box)\\b/i;\n const infos = [];\n if (!this.checkForPOBox) {\n return infos;\n }\n if (poBoxPattern.test(this.model.address_2.value)) {\n infos.push(\"PO boxes are not valid physical addresses\");\n }\n return infos;\n }),\n actions: {\n updateAddressFromQuickStart(gmapValues) {\n this.update(gmapValues);\n }\n }\n });\n});","define(\"ui/components/forms/criteria/x-boolean\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Component for rendering boolean criterion\n \n ```\n {{component schema.componentName\n schema=schema }}\n ```\n \n @class forms.criteria.x-boolean\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n /**\n Rules for this criterion\n @property criterion\n @type Object\n @default {}\n @required\n @example\n ```\n {\n conditionType: 'boolean',\n name: 'renewal',\n from: null,\n possibleComparisons: [\n {\n key: 'equal_to',\n name: 'equal to'\n }\n ]\n }\n ```\n */\n\n init() {\n this._super(...arguments);\n this.criterion = {};\n let criterion = this.criterion;\n (0, _object.setProperties)(criterion, {\n value: true,\n comparison: (0, _object.get)(criterion, 'possibleComparisons.firstObject')\n });\n }\n });\n});","define(\"ui/components/forms/criteria/x-dollar\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Component for rendering dollar criterion\n \n ```\n {{component schema.componentName\n schema=schema }}\n ```\n \n @class forms.criteria.x-dollar\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n /**\n Rules for this criterion\n @property criterion\n @type Object\n @default {}\n @required\n @example\n ```\n {\n conditionType: 'dollar',\n name: 'total_premium',\n from: null,\n possibleComparisons: [\n {\n key: 'equal_to',\n name: 'equal to'\n }\n ]\n }\n ```\n */\n\n init() {\n this.criterion = {};\n this._super(...arguments);\n let criterion = this.criterion;\n (0, _object.setProperties)(criterion, {\n comparison: (0, _object.get)(criterion, 'possibleComparisons.firstObject')\n });\n }\n });\n});","define(\"ui/components/forms/criteria/x-float\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Component for rendering float criterion\n \n ```\n {{component schema.componentName\n schema=schema }}\n ```\n \n @class forms.criteria.x-float\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n /**\n Rules for this criterion\n @property criterion\n @type Object\n @default {}\n @required\n @example\n ```\n {\n conditionType: 'float',\n name: 'minimum_earned_percentage',\n from: null,\n possibleComparisons: [\n {\n key: 'equal_to',\n name: 'equal to'\n }\n ]\n }\n ```\n */\n\n init() {\n this._super(...arguments);\n this.criterion = {};\n let criterion = this.criterion;\n (0, _object.setProperties)(criterion, {\n comparison: (0, _object.get)(criterion, 'possibleComparisons.firstObject')\n });\n }\n });\n});","define(\"ui/components/forms/criteria/x-integer\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Component for rendering integer criterion\n \n ```\n {{component schema.componentName\n schema=schema }}\n ```\n \n @class forms.criteria.x-integer\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n /**\n Rules for this criterion\n @property criterion\n @type Object\n @default {}\n @required\n @example\n ```\n {\n conditionType: 'integer',\n name: 'policy_duration',\n from: null,\n possibleComparisons: [\n {\n key: 'equal_to',\n name: 'equal to'\n }\n ]\n }\n ```\n */\n\n init() {\n this._super(...arguments);\n this.criterion = {};\n let criterion = this.criterion;\n (0, _object.setProperties)(criterion, {\n comparison: (0, _object.get)(criterion, 'possibleComparisons.firstObject')\n });\n }\n });\n});","define(\"ui/components/forms/criteria/x-list\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Component for rendering boolean criterion\n \n ```\n {{component schema.componentName\n schema=schema }}\n ```\n \n @class forms.criteria.x-boolean\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n /**\n Rules for this criterion\n @property criterion\n @type Object\n @default {}\n @required\n @example\n ```\n {\n conditionType: 'list',\n name: 'state',\n from: ['Georgia', 'Michigan'],\n possibleComparisons: [\n {\n key: 'greater_than',\n name: 'greater than'\n },\n // ...\n ]\n }\n ```\n */\n\n init() {\n this._super(...arguments);\n this.criterion = {};\n let criterion = this.criterion;\n (0, _object.setProperties)(criterion, {\n comparison: (0, _object.get)(criterion, 'possibleComparisons.firstObject')\n });\n }\n });\n});","define(\"ui/components/forms/custom/create-quote-form-fields\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\", \"ui/utils/get-model-id\"], function (_exports, _service, _component, _object, _getModelId) {\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/component\",0,\"@ember/object\",0,\"ui/utils/get-model-id\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n store: (0, _service.inject)(),\n dataTest: 'create-quote-form-fields',\n init() {\n this._super(...arguments);\n this.focusAgency = this.focusAgency.bind(this);\n this.focusInsured = this.focusInsured.bind(this);\n },\n hasAgency: (0, _object.computed)('quote.agency', 'quote.agency.id', 'quote.agency.content.id', function () {\n return !!(0, _getModelId.default)((0, _object.get)(this, 'quote.agency'));\n }),\n selectedAgency: (0, _object.computed)('quote.agency', 'quote.agency.content', function () {\n return (0, _object.get)(this, 'quote.agency.content') || (0, _object.get)(this, 'quote.agency');\n }),\n selectedAgencyId: (0, _object.computed)('quote.agency', 'quote.agency.id', 'quote.agency.content.id', function () {\n return (0, _getModelId.default)((0, _object.get)(this, 'quote.agency'));\n }),\n selectedInsured: (0, _object.computed)('quote.insured', 'quote.insured.content', function () {\n return (0, _object.get)(this, 'quote.insured.content') || (0, _object.get)(this, 'quote.insured');\n }),\n setNewInsured(insured) {\n (0, _object.set)(this, 'creatingNewInsured', false);\n (0, _object.set)(this, 'quote.insured', insured);\n },\n setAgency(agency, option) {\n (0, _object.set)(this, 'quote.agency', agency || option || null);\n (0, _object.set)(this, 'quote.insured', null);\n },\n focusAgency(element) {\n if (!(0, _object.get)(this, 'quote.isEndorsement')) {\n return;\n }\n const input = element.querySelector('input');\n if (input) {\n setTimeout(() => input.focus(), 100);\n }\n },\n focusInsured(element) {\n if (!(0, _object.get)(this, 'quote.isEndorsement')) {\n return;\n }\n const input = element.querySelector('input');\n if (input) {\n setTimeout(() => input.focus(), 100);\n }\n },\n transitionToNewInsured() {\n this.transitionTo('settings.insureds.new');\n },\n acknowledgementPopUp(insured, option) {\n const selectedInsured = insured || option || null;\n (0, _object.set)(this, 'quote.insured', selectedInsured);\n this.onInsuredChange?.(selectedInsured);\n }\n });\n});","define(\"ui/components/forms/custom/single-page-quote-form\", [\"exports\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"ui/utils/mga-selection\", \"ui/utils/get-model-id\"], function (_exports, _component, _tracking, _object, _service, _mgaSelection, _getModelId) {\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, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\",0,\"ui/utils/mga-selection\",0,\"ui/utils/get-model-id\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n let SinglePageQuoteFormComponent = _exports.default = (_class = class SinglePageQuoteFormComponent extends _component.default {\n constructor() {\n super(...arguments);\n _initializerDefineProperty(this, \"alert\", _descriptor, this);\n _initializerDefineProperty(this, \"commands\", _descriptor2, this);\n _initializerDefineProperty(this, \"forms\", _descriptor3, this);\n _initializerDefineProperty(this, \"session\", _descriptor4, this);\n _initializerDefineProperty(this, \"store\", _descriptor5, this);\n // Insured creation properties\n _initializerDefineProperty(this, \"creatingNewInsured\", _descriptor6, this);\n _initializerDefineProperty(this, \"insuredForm\", _descriptor7, this);\n // Policy addition properties\n _initializerDefineProperty(this, \"addingPolicy\", _descriptor8, this);\n _initializerDefineProperty(this, \"editingPolicy\", _descriptor9, this);\n _initializerDefineProperty(this, \"newPolicyPremium\", _descriptor10, this);\n _initializerDefineProperty(this, \"newPolicyAllOtherFees\", _descriptor11, this);\n _initializerDefineProperty(this, \"newPolicyTaxes\", _descriptor12, this);\n _initializerDefineProperty(this, \"newPolicyEffectiveDate\", _descriptor13, this);\n _initializerDefineProperty(this, \"newPolicyExpirationDate\", _descriptor14, this);\n _initializerDefineProperty(this, \"newPolicyAdditionalDaysToCancel\", _descriptor15, this);\n _initializerDefineProperty(this, \"newPolicyShortRate\", _descriptor16, this);\n _initializerDefineProperty(this, \"newPolicyCarrier\", _descriptor17, this);\n _initializerDefineProperty(this, \"newPolicyCoverageType\", _descriptor18, this);\n _initializerDefineProperty(this, \"newPolicyMga\", _descriptor19, this);\n _initializerDefineProperty(this, \"newPolicyAdditionalMga\", _descriptor20, this);\n _initializerDefineProperty(this, \"newPolicyNumber\", _descriptor21, this);\n _initializerDefineProperty(this, \"newPolicyMinEarnedPercentage\", _descriptor22, this);\n // Error tracking for policy fields\n _initializerDefineProperty(this, \"policyErrors\", _descriptor23, this);\n _defineProperty(this, \"previousQuoteId\", null);\n this.resetIfNewQuote(this.args.quote);\n }\n get quote() {\n return this.args.quote;\n }\n resetIfNewQuote(quote) {\n if (!quote) return;\n const quoteId = (0, _getModelId.default)(quote);\n const isNew = quote?.isNew;\n const quoteChanged = quoteId && quoteId !== this.previousQuoteId;\n if (isNew || quoteChanged) {\n this.editingPolicy = null;\n this.creatingNewInsured = false;\n this.insuredForm = null;\n this.clearPolicyForm();\n const hasAgency = !!this.getRelatedModelId(this.quote.agency);\n const hasInsured = !!this.getRelatedModelId(this.quote.insured);\n (0, _object.set)(this, 'addingPolicy', hasAgency && hasInsured);\n }\n (0, _object.set)(this, 'previousQuoteId', quoteId);\n }\n get hasMultipleAgencies() {\n // Always show agency selection for new quotes\n return this.quote.isNew;\n }\n get showInsuredSelection() {\n // Show insured selection if agency is selected & insured is not\n const hasAgency = !!this.getRelatedModelId(this.quote.agency);\n const hasInsured = !!this.getRelatedModelId(this.quote.insured);\n return hasAgency && !hasInsured;\n }\n get showPolicySection() {\n // Show policy section if both agency and insured are selected\n const hasAgency = !!this.getRelatedModelId(this.quote.agency);\n const hasInsured = !!this.getRelatedModelId(this.quote.insured);\n return hasAgency && hasInsured;\n }\n get availableDeliveryMethods() {\n if (this.quote.agency) {\n return this.quote.agency.get('availableDeliveryMethods');\n }\n return [];\n }\n setAgency(agency) {\n this.resetIfNewQuote(this.args.quote);\n (0, _object.set)(this.quote, 'agency', agency);\n }\n setInsured(insured) {\n (0, _object.set)(this.quote, 'insured', insured);\n (0, _object.set)(this, 'creatingNewInsured', false);\n // Automatically show policy form when insured is selected\n (0, _object.set)(this, 'addingPolicy', true);\n this.clearPolicyForm();\n this.args.onInsuredChange?.(insured);\n }\n focusField(element) {\n // Find the input field within the autocomplete component and focus it\n const input = element.querySelector('input');\n if (input) {\n setTimeout(() => {\n input.focus();\n }, 100);\n }\n }\n createNewInsured() {\n this.creatingNewInsured = true;\n // Initialize the insured form with default values\n this.insuredForm = this.forms.create('insured');\n this.insuredForm.set('agencyId.value', this.quote.agency);\n this.insuredForm.set('languageSetting.value', 'English');\n this.insuredForm.set('status.value', 'active');\n this.insuredForm.set('commercial.value', false);\n this.insuredForm.set('ofacConfirmed.value', false);\n this.insuredForm.set('preferredNoticeDeliveryMethod.value', 'email');\n }\n cancelCreateInsured() {\n this.creatingNewInsured = false;\n this.insuredForm = null;\n }\n async saveNewInsured() {\n if (!this.insuredForm) {\n this.alert.error('Form not initialized');\n return;\n }\n const insured = await this.insuredForm.submit();\n this.setInsured(insured);\n this.insuredForm = null;\n }\n async savePolicy() {\n try {\n // Clear previous errors\n this.clearPolicyErrors();\n\n // Validate required fields\n let hasErrors = false;\n if (!this.newPolicyNumber || this.newPolicyNumber.trim() === '') {\n this.policyErrors.number = ['Policy number is required'];\n hasErrors = true;\n }\n if (this.newPolicyPremium === null || this.newPolicyPremium === undefined || this.newPolicyPremium === '') {\n this.policyErrors.premium = ['Premium is required'];\n hasErrors = true;\n }\n if (!this.newPolicyCarrier) {\n this.policyErrors.carrier = ['Carrier is required'];\n hasErrors = true;\n }\n if (!this.newPolicyCoverageType) {\n this.policyErrors.coverageType = ['Coverage type is required'];\n hasErrors = true;\n }\n if (!this.newPolicyEffectiveDate) {\n this.policyErrors.effectiveDate = ['Effective date is required'];\n hasErrors = true;\n }\n if (!this.newPolicyExpirationDate) {\n this.policyErrors.expirationDate = ['Expiration date is required'];\n hasErrors = true;\n }\n if (hasErrors) {\n this.alert.error('Please fix the errors in the form');\n // Force reactivity update\n this.policyErrors = {\n ...this.policyErrors\n };\n return;\n }\n let command;\n if (this.quote.isNew) {\n const accountId = this.getRelatedModelId(this.quote.account);\n const agencyId = this.getRelatedModelId(this.quote.agency);\n const insuredId = this.getRelatedModelId(this.quote.insured);\n if (accountId) {\n command = this.commands.create('createEndorsement', {\n agencyId,\n insuredId,\n accountId\n });\n } else {\n command = this.commands.create('createNewQuote', {\n agencyId,\n insuredId\n });\n }\n } else {\n command = this.commands.create('addPolicyToQuote', {\n quoteId: this.quote.id,\n agencyId: this.getRelatedModelId(this.quote.agency),\n insuredId: this.getRelatedModelId(this.quote.insured)\n });\n }\n const changeset = command.changeset;\n\n // Set policy values\n (0, _object.set)(changeset, 'number', this.newPolicyNumber || 'TBD');\n (0, _object.set)(changeset, 'premium', this.newPolicyPremium);\n (0, _object.set)(changeset, 'allOtherFees', this.newPolicyAllOtherFees || 0);\n (0, _object.set)(changeset, 'taxes', this.newPolicyTaxes || 0);\n (0, _object.set)(changeset, 'effectiveDate', this.newPolicyEffectiveDate);\n (0, _object.set)(changeset, 'expirationDate', this.newPolicyExpirationDate);\n (0, _object.set)(changeset, 'additionalDaysToCancel', this.newPolicyAdditionalDaysToCancel || 0);\n (0, _object.set)(changeset, 'shortRate', this.newPolicyShortRate);\n if (this.newPolicyMinEarnedPercentage !== null && this.newPolicyMinEarnedPercentage !== undefined && this.newPolicyMinEarnedPercentage !== '') {\n (0, _object.set)(changeset, 'minEarnedPercentage', this.newPolicyMinEarnedPercentage);\n }\n\n // Set carrier\n this.setRelatedModel(changeset, 'carrier', this.newPolicyCarrier);\n\n // Set coverage type\n this.setRelatedModel(changeset, 'coverageType', this.newPolicyCoverageType);\n\n // Optional MGA\n if (this.newPolicyMga) {\n this.setRelatedModel(changeset, 'mga', this.newPolicyMga);\n }\n\n // Optional Additional MGA\n if (this.newPolicyAdditionalMga) {\n this.setRelatedModel(changeset, 'additionalMga', this.newPolicyAdditionalMga);\n }\n const responseObjects = await command.save();\n if (!responseObjects || !Array.isArray(responseObjects)) {\n throw new Error('Invalid response from server');\n }\n this.alert.success('Policy saved successfully');\n const quote = responseObjects.find(obj => obj.constructor.modelName === 'quote');\n\n // Notify parent component of the saved quote\n if (quote && this.args.onQuoteSaved) {\n this.args.onQuoteSaved(quote);\n }\n (0, _object.set)(this, 'addingPolicy', false);\n this.clearPolicyForm();\n } catch (error) {\n this.alert.error('Failed to save policy');\n }\n }\n editPolicy(policy) {\n this.editingPolicy = policy;\n }\n setAdditionalMga(mga) {\n this.newPolicyAdditionalMga = mga;\n }\n get mgaFilter() {\n return option => (0, _mgaSelection.excludeSelectedMga)(this.newPolicyAdditionalMga, option);\n }\n get additionalMgaFilter() {\n return option => (0, _mgaSelection.excludeSelectedMga)(this.newPolicyMga, option);\n }\n getRelatedModelId(model) {\n return (0, _getModelId.default)(model);\n }\n setRelatedModel(changeset, fieldName, model) {\n if (!model) {\n return;\n }\n const modelId = this.getRelatedModelId(model);\n if (modelId) {\n (0, _object.set)(changeset, `${fieldName}Id`, modelId);\n (0, _object.set)(changeset, fieldName, model);\n }\n }\n cancelEditPolicy() {\n this.editingPolicy = null;\n }\n async updatePolicy(policy) {\n try {\n const command = this.commands.create('update-policy-on-quote', {\n policyId: policy.id,\n quoteId: this.quote.id\n });\n await command.save();\n this.alert.success('Policy updated successfully');\n if (this.args.onPolicyUpdated) {\n this.args.onPolicyUpdated();\n }\n this.editingPolicy = null;\n } catch (error) {\n this.alert.error('Failed to update policy');\n }\n }\n chooseEffectiveDate(date) {\n this.newPolicyEffectiveDate = date;\n // Auto-set expiration date (1 year for PF loans, 10 years for non-PF loans)\n const expirationDate = new Date(date);\n const yearsToAdd = this.session.nonPfLoans ? 10 : 1;\n expirationDate.setFullYear(expirationDate.getFullYear() + yearsToAdd);\n this.newPolicyExpirationDate = expirationDate;\n }\n chooseExpirationDate(date) {\n this.newPolicyExpirationDate = date;\n }\n toggleShortRate() {\n this.newPolicyShortRate = !this.newPolicyShortRate;\n }\n toggleFilings() {\n if (this.editingPolicy) {\n (0, _object.set)(this.editingPolicy, 'filings', !this.editingPolicy.filings);\n }\n }\n toggleAuditable() {\n if (this.editingPolicy) {\n (0, _object.set)(this.editingPolicy, 'auditable', !this.editingPolicy.auditable);\n }\n }\n clearPolicyForm() {\n this.newPolicyNumber = '';\n this.newPolicyPremium = null;\n this.newPolicyAllOtherFees = null;\n this.newPolicyTaxes = null;\n this.newPolicyEffectiveDate = null;\n this.newPolicyExpirationDate = null;\n this.newPolicyAdditionalDaysToCancel = null;\n this.newPolicyShortRate = false;\n this.newPolicyCarrier = null;\n this.newPolicyCoverageType = null;\n this.newPolicyMga = null;\n this.newPolicyAdditionalMga = null;\n this.newPolicyMinEarnedPercentage = null;\n this.clearPolicyErrors();\n }\n clearPolicyErrors() {\n this.policyErrors = {\n number: [],\n premium: [],\n taxes: [],\n allOtherFees: [],\n effectiveDate: [],\n expirationDate: [],\n carrier: [],\n coverageType: [],\n mga: [],\n additionalMga: [],\n additionalDaysToCancel: [],\n minEarnedPercentage: []\n };\n }\n }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"alert\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"commands\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"forms\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_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 }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"creatingNewInsured\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return false;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"insuredForm\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"addingPolicy\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return false;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"editingPolicy\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyPremium\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyAllOtherFees\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyTaxes\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyEffectiveDate\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyExpirationDate\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyAdditionalDaysToCancel\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyShortRate\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return false;\n }\n }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyCarrier\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyCoverageType\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyMga\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyAdditionalMga\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyNumber\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return '';\n }\n }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"newPolicyMinEarnedPercentage\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return null;\n }\n }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"policyErrors\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return {\n number: [],\n premium: [],\n taxes: [],\n allOtherFees: [],\n effectiveDate: [],\n expirationDate: [],\n carrier: [],\n coverageType: [],\n mga: [],\n additionalMga: [],\n additionalDaysToCancel: [],\n minEarnedPercentage: []\n };\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"setAgency\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setAgency\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setInsured\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setInsured\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusField\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focusField\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createNewInsured\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createNewInsured\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelCreateInsured\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelCreateInsured\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewInsured\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewInsured\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"savePolicy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"savePolicy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editPolicy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"editPolicy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setAdditionalMga\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setAdditionalMga\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEditPolicy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEditPolicy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updatePolicy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updatePolicy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"chooseEffectiveDate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"chooseEffectiveDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"chooseExpirationDate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"chooseExpirationDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShortRate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShortRate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleFilings\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleFilings\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleAuditable\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleAuditable\"), _class.prototype)), _class);\n});","define(\"ui/components/forms/d-buttons\", [\"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: ['d-buttons']\n });\n});","define(\"ui/components/forms/d-create-form\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/forms/base-form\"], function (_exports, _service, _object, _baseForm) {\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,\"ui/components/forms/base-form\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n dataTest: 'd-create-form',\n store: (0, _service.inject)(),\n alert: (0, _service.inject)(),\n model: null,\n createModel: null,\n withoutCreate: false,\n // Is this ever being used?\n\n // this is sadly necessary right now because DS.Error does not allow provide errors between relations\n // if it becomes in an way common we can find a more elegant solution\n // setNestedErrors: observer('model.errors.@each', function() {\n // get(this, 'model.errors').forEach( error => {\n // if (typeof error.message === 'object') {\n // for (let key in error.message) {\n // get(this, `model.${error.attribute}.errors`).add(key, error.message[key]);\n // get(this, `model.errors`).remove(error.attribute);\n // }\n // }\n // });\n // }),\n\n // this allows to pass in a model or create one\n init() {\n this._super(...arguments);\n const model = this.model;\n const createModel = this.createModel;\n if (model) {\n (0, _object.set)(this, 'model', model);\n return;\n }\n if (createModel) {\n const model = this.createModel();\n if (!model) {\n throw 'A `d-create-form` must have take a method `createModel` that returns an instance of the model to create.';\n }\n (0, _object.set)(this, 'model', model);\n }\n },\n // I believe this is providing a binding to the UI of this component to allow the recreation to be triggered form outside the component\n // I do not see it being used anywhere\n // TODO: this is not a great pattern as it requires that weird extra parameter\n // Try not to follow, try to find a better way!\n recreateModel: (0, _object.observer)('observeToRecreateModel', function () {\n const createModel = (0, _object.get)(this, 'createModel');\n if (createModel) {\n (0, _object.set)(this, 'model', (0, _object.get)(this, 'createModel')());\n } else {\n throw \"What are you doing defining a `observeToRecreateModel` without defining a `createModel`?\";\n }\n }),\n actions: {\n internalOnCancel() {\n const model = (0, _object.get)(this, 'model');\n const onCancel = (0, _object.get)(this, 'onCancel');\n if (onCancel) {\n onCancel(model);\n }\n const createModel = (0, _object.get)(this, 'createModel');\n if (createModel) {\n (0, _object.set)(this, 'model', createModel());\n }\n },\n internalOnCreate() {\n (0, _object.get)(this, 'model').save().then(model => {\n (0, _object.get)(this, 'alert').created({\n modelName: 'quote',\n identifier: model.get('name')\n });\n const onCreate = (0, _object.get)(this, 'onCreate');\n if (onCreate) {\n onCreate(model);\n }\n });\n }\n }\n });\n});","define(\"ui/components/forms/funding-source-assignment-section\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n newFundingSource: null,\n selectionFilter: (0, _object.computed)('selectedFundingSources.[]', function () {\n const selectedIds = ((0, _object.get)(this, 'selectedFundingSources') || []).map(fundingSource => parseInt((0, _object.get)(fundingSource, 'id'), 10));\n return option => !selectedIds.includes(parseInt(option.id, 10));\n }),\n actions: {\n addFundingSource(fundingSource) {\n if (!fundingSource) {\n return;\n }\n (0, _object.get)(this, 'onAdd')(fundingSource);\n (0, _object.set)(this, 'newFundingSource', null);\n },\n removeFundingSource(fundingSource) {\n (0, _object.get)(this, 'onRemove')(fundingSource);\n },\n setDefaultFundingSource(fundingSource) {\n (0, _object.get)(this, 'onSetDefault')(fundingSource);\n },\n setCostOfFundsTable(fundingSource, costOfFundsTable) {\n (0, _object.get)(this, 'onSetCostOfFundsTable')(fundingSource, costOfFundsTable);\n }\n }\n });\n});","define(\"ui/components/forms/insured-form\", [\"exports\", \"ui/components/forms/base-form\", \"@ember/object\", \"ui/forms/mailing_address\", \"ui/forms/density-form\"], function (_exports, _baseForm, _object, _mailing_address, _densityForm) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/forms/base-form\",0,\"@ember/object\",0,\"ui/forms/mailing_address\",0,\"ui/forms/density-form\"eaimeta@70e063a35619d71f\n const {\n formNode\n } = _densityForm.default;\n var _default = _exports.default = _baseForm.default.extend({\n dataTest: 'insured-form',\n save() {\n this.send('onSubmit'); // send action to paper form parent component\n this.model.submit().then(mga => {\n this.afterSave(mga);\n }).catch(e => console.log('error', e));\n },\n availableDeliveryMethods: (0, _object.computed)('assignedAgency.availableDeliveryMethods.length', 'chosenAgency.availableDeliveryMethods.length', function () {\n if (this.assignedAgency) {\n return this.assignedAgency.availableDeliveryMethods;\n }\n if (this.chosenAgency) {\n return this.chosenAgency.availableDeliveryMethods;\n }\n return [];\n }),\n actions: {\n updateAddressFromQuickStart(gmapValues) {\n for (const valueName in gmapValues) {\n const attr = this.get(`model.contactInformation.${valueName}`);\n const value = gmapValues[valueName];\n if (attr && value) {\n this.set(`model.contactInformation.${valueName}.value`, value);\n }\n }\n },\n updateAddressFromQuickStartMailingAddress(gmapValues) {\n for (const valueName in gmapValues) {\n const attr = this.get(`model.mailingAddressContactInformation.${valueName}`);\n const value = gmapValues[valueName];\n if (attr && value) {\n this.set(`model.mailingAddressContactInformation.${valueName}.value`, value);\n }\n }\n },\n setAgency(newAgency) {\n (0, _object.set)(this, 'model.agencyId.value', newAgency);\n (0, _object.set)(this, 'chosenAgency', newAgency);\n const chosenDeliveryMethod = this.model.preferredNoticeDeliveryMethod.value;\n if (newAgency && chosenDeliveryMethod && newAgency.availableDeliveryMethods.indexOf(chosenDeliveryMethod) < 0) {\n (0, _object.set)(this, 'model.preferredNoticeDeliveryMethod.value', null);\n }\n if (newAgency) {\n (0, _object.set)(this, 'model.commercial.value', newAgency.commercial);\n } else {\n (0, _object.set)(this, 'model.commercial.value', null);\n (0, _object.set)(this, 'model.`preferredNoticeDeliveryMethod`.value', null);\n }\n },\n updateMailingAddressEqualsPhysicalAddress(newValue) {\n (0, _object.set)(this, 'model.mailingAddressEqualsPhysicalAddress.value', newValue);\n\n // unset all the fields if the user wants to use the same address again\n if (newValue) {\n const mailingAddress = (0, _object.get)(this, 'model.mailingAddressContactInformation');\n for (const key in mailingAddress) {\n if (mailingAddress.hasOwnProperty(key)) {\n if (mailingAddress[key] && mailingAddress[key].value) {\n (0, _object.set)(mailingAddress[key], 'value', null);\n }\n }\n }\n }\n }\n }\n });\n});","define(\"ui/components/forms/interest-rates-form\", [\"exports\", \"@ember/service\", \"@ember/object\", \"@ember/component\", \"ui/mixins/permissions\"], function (_exports, _service, _object, _component, _permissions) {\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/component\",0,\"ui/mixins/permissions\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_permissions.default, {\n dataTest: 'interest-rates-form',\n store: (0, _service.inject)(),\n alert: (0, _service.inject)(),\n session: (0, _service.inject)(),\n commands: (0, _service.inject)(),\n init() {\n this._super(...arguments);\n let quote = (0, _object.get)(this, 'quote');\n const command = (0, _object.get)(this, 'commands').create('updateQuoteTerms');\n (0, _object.set)(quote, 'command', command);\n },\n rates: (0, _object.computed)('quote.compensationRates.@each.{dollars,percent}', 'permissions.viewQuoteCompensations.value', function () {\n let rates = (0, _object.get)(this, 'quote.compensationRates');\n if (!rates) {\n return [];\n }\n const sortedRates = {\n others: []\n };\n rates.forEach(rate => {\n const command = this.commands.create('updateCompensationRate', {\n quoteId: this.quote.id,\n compensationRateId: rate.id\n });\n (0, _object.set)(rate, 'command', command);\n if ((0, _object.get)(rate, 'isSetupFee')) {\n sortedRates.setupFee = rate;\n } else if ((0, _object.get)(rate, 'isBuyRateInterest')) {\n if ((0, _object.get)(this, 'permissions.viewQuoteCompensations.value') || (0, _object.get)(this, 'permissions.unlimitedInterestRatesEdit.value')) {\n sortedRates.buyRateInterest = rate;\n }\n } else {\n if ((0, _object.get)(this, 'permissions.viewQuoteCompensations.value')) {\n sortedRates.others.pushObject(rate);\n }\n }\n });\n if (sortedRates.others.length > 0) {\n sortedRates.others = sortedRates.others.sortBy('name');\n } else {\n delete sortedRates.others;\n }\n return sortedRates;\n }),\n updateRate(rate) {\n return rate.command.save().then(() => {\n rate.command.reset();\n this.alert.success();\n }, errors => {\n this.alert.error(errors);\n });\n },\n cancelRate(rate) {\n (0, _object.get)(rate, 'command').reset();\n },\n updateQuote(quote) {\n (0, _object.set)(quote, 'command.changeset.quoteId', (0, _object.get)(quote, 'id'));\n return (0, _object.get)(quote, 'command').save().then(() => {\n (0, _object.get)(quote, 'command').reset();\n (0, _object.get)(this, 'alert').success();\n }).catch(errors => {\n (0, _object.get)(this, 'alert').error(errors);\n throw errors;\n });\n },\n cancelQuote(quote) {\n (0, _object.get)(quote, 'command').reset();\n }\n });\n});","define(\"ui/components/forms/mga-form\", [\"exports\", \"ui/components/forms/base-form\"], function (_exports, _baseForm) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/forms/base-form\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n dataTest: 'mga-form',\n save() {\n this.send('onSubmit'); // send action to paper form parent component\n this.model.submit().then(mga => {\n this.afterSave(mga);\n }, () => {\n // just catching the error\n });\n },\n actions: {\n updateAddressFromQuickStart(gmapValues) {\n for (const valueName in gmapValues) {\n const attr = this.get(`model.contactInformation.${valueName}`);\n const value = gmapValues[valueName];\n if (attr && value) {\n this.set(`model.contactInformation.${valueName}.value`, value);\n }\n }\n }\n }\n });\n});","define(\"ui/components/forms/new-funding-payment-card\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/string\", \"@ember/object\"], function (_exports, _component, _service, _string, _object) {\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/string\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n dataTest: 'new-funding-payment-card',\n store: (0, _service.inject)(),\n fundingDetailType: '',\n fundingPaymentMethodComponentName: (0, _object.computed)('fundingDetailType', function () {\n return `forms/${this.fundingDetailType}-form-fields`;\n }),\n fundingPaymentMethodModel: (0, _object.computed)('fundingDetailType', function () {\n let detailType = this.fundingDetailType;\n if (detailType) {\n let newModel = this.store.createRecord(`${detailType}-detail`, {\n paymentPurpose: 'funding'\n });\n (0, _object.set)(this, `model.funding${(0, _string.capitalize)(detailType)}Detail`, newModel);\n return newModel;\n }\n }),\n save() {\n let model = this.model;\n return this.fundingPaymentMethodModel.save().then(() => {\n model.reload();\n });\n }\n });\n});","define(\"ui/components/forms/note-form\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/forms/base-form\", \"ui/utils/response-format\"], function (_exports, _service, _object, _baseForm, _responseFormat) {\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,\"ui/components/forms/base-form\",0,\"ui/utils/response-format\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n store: (0, _service.inject)(),\n session: (0, _service.inject)(),\n dataTest: 'note-form',\n model: null,\n init() {\n this._super(...arguments);\n this.resetForm();\n },\n permissions: (0, _object.computed)('session.permissions', function () {\n return this.session.permissions;\n }),\n title: (0, _object.computed)('permissoins', function () {\n if (this.permissions.canAddMessage.value && this.permissions.canAddTask.value) {\n return \"Manage & Assign\";\n } else {\n return \"Notes\";\n }\n }),\n willDestroy() {\n this._super(...arguments);\n let model = this.model;\n if (model.isNew) {\n model.deleteRecord();\n }\n },\n save() {\n this.send('onSubmit'); // send action to paper form parent component\n\n if (this.model.messageAttributes) {\n (0, _object.set)(this.model, 'messageAttributes', (0, _responseFormat.recursiveUnderscoreKeys)(this.model.messageAttributes));\n }\n if (this.model.taskAttributes) {\n // Normalize completeOn to a date-only string (YYYY-MM-DD) to avoid timezone issues\n const completeOn = this.model.taskAttributes.completeOn;\n if (completeOn) {\n let dateObj = completeOn;\n if (dateObj.toDate) {\n dateObj = dateObj.toDate();\n }\n if (dateObj instanceof Date && !isNaN(dateObj)) {\n const year = dateObj.getFullYear();\n const month = String(dateObj.getMonth() + 1).padStart(2, '0');\n const day = String(dateObj.getDate()).padStart(2, '0');\n (0, _object.set)(this.model, 'taskAttributes.completeOn', `${year}-${month}-${day}`);\n }\n }\n (0, _object.set)(this.model, 'taskAttributes', (0, _responseFormat.recursiveUnderscoreKeys)(this.model.taskAttributes));\n }\n let saved = this.onSave(this.model);\n if (saved.then) {\n saved.then(() => {\n this.resetForm();\n });\n } else {\n this.resetForm();\n }\n },\n cancel() {\n this.onCancel();\n this.resetForm();\n },\n resetForm() {\n const store = this.store;\n const systemCommentPath = this.systemCommentPath;\n const note = store.createRecord('note', {\n systemCommentPath\n });\n (0, _object.set)(this, 'toUser', null);\n (0, _object.set)(this, 'model', note);\n (0, _object.set)(this, 'category', 'note');\n },\n actions: {\n switchCategory(category) {\n (0, _object.set)(this, 'category', category);\n (0, _object.set)(this, 'toUser', null);\n if (category === 'note') {\n (0, _object.set)(this, 'model.messageAttributes', null);\n (0, _object.set)(this, 'model.taskAttributes', null);\n }\n if (category === 'message') {\n (0, _object.set)(this, 'model.messageAttributes', {\n immediate: true\n });\n (0, _object.set)(this, 'model.taskAttributes', null);\n }\n if (category === 'task') {\n (0, _object.set)(this, 'model.messageAttributes', null);\n (0, _object.set)(this, 'model.taskAttributes', {});\n }\n },\n toggleMessageImmdeiately() {\n if (this.model.message === null) {\n (0, _object.set)(this.model, 'messageAttributes', {});\n }\n if ((0, _object.get)(this.model, 'messageAttributes.immediate')) {\n (0, _object.set)(this.model, 'messageAttributes.immediate', false);\n let tomorrow = new Date();\n tomorrow.setDate(tomorrow.getDate() + 1);\n (0, _object.set)(this.model, 'messageAttributes.deliverAt', tomorrow);\n } else {\n (0, _object.set)(this.model, 'messageAttributes.immediate', true);\n (0, _object.set)(this.model, 'messageAttributes.deliverAt', null);\n }\n },\n assignTaskToUser(user) {\n if (user) {\n (0, _object.set)(this, 'model.taskAttributes.user_id', user.id);\n (0, _object.set)(this, 'toUser', user);\n } else {\n (0, _object.set)(this, 'model.taskAttributes.user_id', null);\n (0, _object.set)(this, 'toUser', null);\n }\n },\n addUserToMessage(user) {\n if (user) {\n (0, _object.set)(this, 'model.messageAttributes.user_id', user.id);\n (0, _object.set)(this, 'toUser', user);\n } else {\n (0, _object.set)(this, 'model.messageAttributes.user_id', null);\n (0, _object.set)(this, 'toUser', null);\n }\n }\n }\n });\n});","define(\"ui/components/forms/optimal-terms-form\", [\"exports\", \"@ember/service\", \"@ember/object\", \"@ember/component\"], function (_exports, _service, _object, _component) {\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/component\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n dataTest: 'optimal-terms-form',\n commands: (0, _service.inject)(),\n command: (0, _object.computed)('options', function () {\n return this.commands.create('updateTopOptimalTerms');\n }),\n actions: {\n updateOptimalTerms() {\n const options = this.options;\n const command = this.command;\n return this.updateOptions(options, command).then(() => {\n return true;\n });\n },\n resetForm() {\n this.command.reset();\n return true;\n }\n }\n });\n});","define(\"ui/components/forms/payment-details-card\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Provides a choice of payment type with accompanieng form fields\n \n ```\n {{forms/payment-details-card\n parent=model\n paymentPurpose=\"funding\"\n model=model.paymentDetailToUpdate\n }}\n ```\n \n @class forms.payment-details\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n dataTest: 'payment-details-card',\n store: (0, _service.inject)(),\n paymentMethodComponentName: (0, _object.computed)('paymentDetail.paymentType', function () {\n return `forms/payment-details/${(0, _object.get)(this, 'paymentDetail.paymentType')}-form-fields-card`;\n }),\n paymentDetail: (0, _object.computed)('model', function () {\n const model = this.model;\n if (model) {\n return model;\n } else {\n const purpose = this.paymentPurpose;\n const relationParam = {};\n relationParam[this.parentModelName] = this.parentModel;\n return this.store.createRecord(`${purpose}-payment-recipient`, relationParam);\n }\n }),\n internalIsEditable: (0, _object.computed)('isEditable', function () {\n if (this.isEditable === true) {\n return true;\n } else if (this.isEditable == false) {\n return false;\n } else {\n return true; // true by default\n }\n })\n });\n});","define(\"ui/components/forms/payment-details\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n dataTest: 'payment-details',\n paymentMethodComponentName: (0, _object.computed)('paymentType', function () {\n return `forms/payment-details/${(0, _object.get)(this, 'paymentType')}-form-fields`;\n }),\n paymentMethodModel: (0, _object.computed)('paymentPurpose', 'paymentType', function () {\n const paymentPurpose = (0, _object.get)(this, 'paymentPurpose');\n const newModel = this.model[`${paymentPurpose}PaymentRecipient`];\n newModel.paymentType.set('value', (0, _object.get)(this, 'paymentType'));\n return newModel;\n }),\n updatePaymentType(newValue) {\n (0, _object.set)(this, 'paymentType', newValue);\n const paymentPurpose = (0, _object.get)(this, 'paymentPurpose');\n const newModel = this.model[`${paymentPurpose}PaymentRecipient`];\n newModel.paymentType.set('value', newValue);\n }\n });\n});","define(\"ui/components/forms/payment-form-fields\", [\"exports\", \"@ember/service\", \"@ember/component\", \"ui/mixins/testable-element\", \"@ember/object\", \"ember-concurrency\"], function (_exports, _service, _component, _testableElement, _object, _emberConcurrency) {\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/component\",0,\"ui/mixins/testable-element\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n const paymentRatioToDefaultToCountAsPaid = 0.94;\n const deferrablePaymentTypes = ['regular_payment'];\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'payment-form-fields',\n store: (0, _service.inject)(),\n ajax: (0, _service.inject)(),\n init() {\n this._super(...arguments);\n this.getMethodReceivedOptions.perform();\n this.getPaymentTypeOptions.perform();\n const payment = this.get('payment');\n if (this.account && this.account.get('policies')) {\n this.account.get('policies').forEach(policy => {\n if (policy.id === payment.policyId) {\n policy.set('selected', true);\n }\n });\n }\n if (payment.installmentId) {\n (0, _object.set)(this, 'countAsPaid', true);\n }\n (0, _object.set)(this, 'partiallyPaidInstallments', this.getPartiallyPaidInstallments());\n (0, _object.set)(this, 'nextUnpaidInstallment', this.updateNextUnpaidInstallment());\n },\n getMethodReceivedOptions: (0, _emberConcurrency.task)(function* () {\n let data = yield (0, _object.get)(this, 'ajax').clientConstants('method_received_options');\n (0, _object.set)(this, 'methodReceivedPossibleOptions', data);\n }),\n methodReceivedOptions: (0, _object.computed)('account.requiresCertifiedFunds', 'methodReceivedPossibleOptions.length', function () {\n let methods = (0, _object.get)(this, 'methodReceivedPossibleOptions');\n if (methods) {\n if ((0, _object.get)(this, 'account.requiresCertifiedFunds')) {\n let allowedMethods = ['wire', 'cash', 'money_order'];\n methods = methods.filter(method => allowedMethods.indexOf(method.name) > -1);\n }\n return methods.map(method => method.name);\n }\n }),\n getPaymentTypeOptions: (0, _emberConcurrency.task)(function* () {\n let data = yield (0, _object.get)(this, 'ajax').clientConstants('payment_purposes');\n (0, _object.set)(this, 'paymentTypeOptionsAll', data);\n if ((0, _object.get)(this, 'account.isClosed') || (0, _object.get)(this, 'account.isFlatCanceled')) {\n data = data.filter(d => d.id === 'refund_due_insured' || d.id === 'down_payment');\n } else {\n data = data.filter(d => d.id !== 'refund_due_insured');\n }\n (0, _object.set)(this, 'paymentTypeOptions', data);\n }),\n paymentTypeCanReinstate: (0, _object.computed)('payment.purpose', function () {\n const canCauseReinstatement = ['regular_payment', 'active_return_premium__regular_payment'];\n return canCauseReinstatement.includes((0, _object.get)(this, 'payment.purpose'));\n }),\n defaultRequestReinstatePreference() {\n let isCanceled = (0, _object.get)(this, 'account.isCanceled');\n let manyPaymentsRemaining = (0, _object.get)(this, 'account.paymentsRemaining') > 1;\n let significantlyPaidOff = (0, _object.get)(this, 'payment.amount') / (0, _object.get)(this, 'account.currentAmountDue') >= paymentRatioToDefaultToCountAsPaid;\n if (isCanceled && manyPaymentsRemaining && significantlyPaidOff) {\n (0, _object.set)(this, 'payment.reinstate', true);\n }\n },\n getPartiallyPaidInstallments() {\n // Returns each installment paid by the payment, the amount paid, the amount due, and the remaining balance\n const paymentSchedule = (0, _object.get)(this, 'account.paymentSchedule');\n let amount = (0, _object.get)(this, 'payment.amount');\n const currAmtDue = (0, _object.get)(this, 'account.currentAmountDue');\n if (!paymentSchedule) {\n return [];\n }\n const numberOfPaysRemaining = (0, _object.get)(this, 'account.paymentsRemaining');\n const unpaidInstallments = paymentSchedule.slice(-numberOfPaysRemaining);\n let amountToCreditFirstInstallment = 0;\n if (currAmtDue > 0) {\n const unpaidInstallmentsDue = unpaidInstallments.filter(installment => installment.isDue);\n const totalOfInstallmentsDue = unpaidInstallmentsDue.reduce((total, installment) => {\n return total + installment.amount;\n }, 0);\n amountToCreditFirstInstallment = totalOfInstallmentsDue - currAmtDue;\n } else {\n // If there are no unpaid installments due, then any overpayment needs to be calculated\n // using the receivables balance\n const receivables = (0, _object.get)(this, 'account.accountsReceivable');\n const totalOfUnpaidInstallments = unpaidInstallments.reduce((total, installment) => {\n return total + installment.amount;\n }, 0);\n amountToCreditFirstInstallment = totalOfUnpaidInstallments - receivables;\n }\n\n // Display the first installment if the user hasn't entered a payment amount\n if (!amount || amount === '0') {\n const index = 0;\n let remainingAmount = 0;\n const {\n installment,\n amountPaid,\n amountDue,\n remainingBalance\n } = this.createPaidInstallmentsObject(unpaidInstallments, index, amountToCreditFirstInstallment, remainingAmount);\n return [{\n installment,\n amountPaid,\n amountDue,\n remainingBalance,\n canDefer: false\n }];\n }\n ;\n\n // For each unpaid installment, see if the payment amount is enough to cover it.\n // If so, then keep moving through the installments until the payment is used up.\n // Return all installments that would be paid in full or in part.\n let paidInstallments = [];\n let remainingAmount = amount;\n let i = 0;\n while (remainingAmount > 0 && i < unpaidInstallments.length) {\n const {\n installment,\n amountPaid,\n amountDue,\n remainingBalance\n } = this.createPaidInstallmentsObject(unpaidInstallments, i, amountToCreditFirstInstallment, remainingAmount);\n remainingAmount -= amountPaid;\n paidInstallments.push({\n installment,\n amountPaid,\n amountDue,\n remainingBalance,\n canDefer: remainingBalance > 0\n });\n i++;\n }\n return paidInstallments;\n },\n createPaidInstallmentsObject(unpaidInstallments, index, amountToCreditFirstInstallment, remainingAmount) {\n const installment = unpaidInstallments[index];\n let amountDue = installment.amount;\n if (index == 0) {\n amountDue -= amountToCreditFirstInstallment;\n }\n const amountPaid = Math.min(remainingAmount, amountDue);\n const remainingBalance = amountDue - amountPaid;\n return {\n installment,\n amountPaid,\n amountDue,\n remainingBalance\n };\n },\n updateNextUnpaidInstallment() {\n let paidInstallments = (0, _object.get)(this, 'partiallyPaidInstallments');\n if (paidInstallments.length) {\n let lastPaidInstallment = paidInstallments[paidInstallments.length - 1];\n let lastDueDateWithPayment = lastPaidInstallment.installment.dueDate;\n return (0, _object.get)(this, 'account.paymentSchedule').find(installment => installment.dueDate > lastDueDateWithPayment);\n }\n return (0, _object.get)(this, 'account.paymentSchedule');\n },\n defaultToCountAsPaid() {\n let amount = (0, _object.get)(this, 'payment.amount');\n let partiallyPaidInstallments = (0, _object.get)(this, 'partiallyPaidInstallments');\n if (this.paymentTypeOptionsAll && amount) {\n const purpose = this.paymentTypeOptionsAll.find(purpose => purpose.id === this.payment.purpose);\n if (purpose && deferrablePaymentTypes.includes(purpose.id)) {\n let lastInstallmentBeingPaid = partiallyPaidInstallments[partiallyPaidInstallments.length - 1];\n let portionOfLastInstallmentPaid = lastInstallmentBeingPaid.amountPaid / lastInstallmentBeingPaid.installment.amount;\n if (portionOfLastInstallmentPaid !== 1 && portionOfLastInstallmentPaid >= paymentRatioToDefaultToCountAsPaid && amount) {\n this.setCountAsPaid();\n } else {\n (0, _object.set)(this, 'countAsPaid', false);\n (0, _object.set)(this, 'payment.installmentId', null);\n }\n }\n }\n },\n selectPurpose(payment, purpose) {\n (0, _object.set)(payment, 'isConfirmed', false);\n (0, _object.get)(this, 'account.policies').forEach(policy => (0, _object.set)(policy, 'selected', false));\n (0, _object.set)(payment, 'policyId', null);\n (0, _object.set)(payment, 'purpose', purpose.id);\n this.defaultToCountAsPaid();\n this.defaultRequestReinstatePreference();\n },\n updatePaymentAmount(payment, amount) {\n (0, _object.set)(payment, 'amount', amount);\n (0, _object.set)(this, 'partiallyPaidInstallments', this.getPartiallyPaidInstallments());\n (0, _object.set)(this, 'nextUnpaidInstallment', this.updateNextUnpaidInstallment());\n this.defaultToCountAsPaid();\n this.defaultRequestReinstatePreference();\n },\n mustChoosePolicy: (0, _object.computed)('payment.purpose', 'paymentTypeOptionsAll.@each.id', function () {\n if (!this.paymentTypeOptionsAll) {\n return false;\n }\n const purpose = this.paymentTypeOptionsAll.find(purpose => {\n if (purpose.id === this.payment.purpose) {\n return true;\n }\n });\n if (!purpose) {\n return false;\n }\n return purpose.requiresPolicy;\n }),\n balanceCanBeDeferred: (0, _object.computed)('payment.purpose', function () {\n if ((0, _object.get)(this, 'account.isClosed') || (0, _object.get)(this, 'account.isFlatCanceled')) {\n return false;\n }\n if (deferrablePaymentTypes.includes(this.payment.purpose)) {\n return true;\n }\n return false;\n }),\n selectPolicy(payment, policy) {\n (0, _object.get)(this, 'account.policies').forEach(policy => (0, _object.set)(policy, 'selected', false));\n (0, _object.set)(policy, 'selected', true);\n (0, _object.set)(payment, 'policyId', (0, _object.get)(policy, 'id'));\n },\n setCountAsPaid() {\n (0, _object.set)(this, 'countAsPaid', true);\n const installment = (0, _object.get)(this, 'nextUnpaidInstallment');\n if (installment) {\n (0, _object.set)(this, 'payment.installmentId', installment.id);\n }\n },\n toggleCountAsPaid() {\n let priorValueWasTrue = (0, _object.get)(this, 'countAsPaid');\n if (priorValueWasTrue) {\n (0, _object.set)(this, 'countAsPaid', false);\n (0, _object.set)(this, 'payment.installmentId', null);\n } else {\n this.setCountAsPaid();\n }\n }\n });\n});","define(\"ui/components/forms/payment-form\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/forms/base-form\"], function (_exports, _service, _object, _baseForm) {\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,\"ui/components/forms/base-form\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n store: (0, _service.inject)(),\n ajax: (0, _service.inject)(),\n commands: (0, _service.inject)(),\n classNames: ['payment-form', 'flex', 'flex-column'],\n dataTest: 'payment-form',\n init() {\n this._super(...arguments);\n this.resetModel();\n (0, _object.set)(this, 'submitIsDisabled', false);\n },\n resetModel() {\n const command = (0, _object.get)(this, 'commands').create('processIncomingPayment', {\n accountId: (0, _object.get)(this, 'account.id')\n });\n (0, _object.set)(this, 'model', command);\n const changeset = (0, _object.get)(command, 'changeset');\n (0, _object.set)(this, 'changeset', changeset);\n },\n save() {\n const newPayment = (0, _object.get)(this, 'model');\n const purpose = (0, _object.get)(newPayment, 'changeset.purpose');\n if (!(0, _object.get)(newPayment, 'isConfirmed') && purpose === 'active_return_premium__loan_adjustment') {\n (0, _object.set)(this, 'isConfirming', true);\n return false;\n }\n (0, _object.set)(this, 'submitIsDisabled', true);\n newPayment.save().then(() => {\n (0, _object.get)(this, 'onSave')();\n (0, _object.get)(this, 'alert').success();\n (0, _object.set)(this, 'submitIsDisabled', false);\n this.resetModel();\n }).catch(errors => {\n (0, _object.get)(this, 'alert').error(errors);\n (0, _object.set)(this, 'submitIsDisabled', false);\n });\n },\n confirmAndSave() {\n const newPayment = (0, _object.get)(this, 'model');\n (0, _object.set)(newPayment, 'isConfirmed', true);\n this.save();\n },\n willDestroy() {\n (0, _object.set)(this, 'changeset', null);\n (0, _object.set)(this, 'model', null);\n (0, _object.set)(this, 'submitIsDisabled', false);\n }\n });\n});","define(\"ui/components/forms/policy-form\", [\"exports\", \"ui/components/forms/base-form\", \"@ember/service\", \"@ember/object\"], function (_exports, _baseForm, _service, _object) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/forms/base-form\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseForm.default.extend({\n commands: (0, _service.inject)(),\n alert: (0, _service.inject)(),\n dataTest: 'policy-form',\n confirmedNewPolicy: false,\n expirationDateUpdated: false,\n model: null,\n quote: null,\n init() {\n this._super(...arguments);\n const quote = (0, _object.get)(this, 'quote');\n let command;\n if (quote.get('isNew')) {\n // if we are creating the quote with this policy\n const accountId = (0, _object.get)(quote, 'account.id');\n if (accountId) {\n command = (0, _object.get)(this, 'commands').create('createEndorsement', {\n agencyId: (0, _object.get)(quote, 'agency.id'),\n insuredId: (0, _object.get)(quote, 'insured.id'),\n number: 'TBD',\n accountId\n });\n } else {\n command = (0, _object.get)(this, 'commands').create('createNewQuote', {\n agencyId: (0, _object.get)(quote, 'agency.id'),\n insuredId: (0, _object.get)(quote, 'insured.id'),\n number: 'TBD'\n });\n }\n } else {\n // if the quote exists and we are just adding a new policy\n command = (0, _object.get)(this, 'commands').create('addPolicyToQuote', {\n quoteId: (0, _object.get)(quote, 'id'),\n agencyId: (0, _object.get)(quote, 'agency.id'),\n insuredId: (0, _object.get)(quote, 'insured.id'),\n number: 'TBD'\n });\n }\n const changeset = (0, _object.get)(command, 'changeset');\n (0, _object.set)(this, 'command', command);\n (0, _object.set)(this, 'model', changeset);\n this.setValuesFromPolicy((0, _object.get)(this, 'policy'));\n },\n setValuesFromPolicy(policy) {\n if (!policy) {\n return;\n }\n const model = (0, _object.get)(this, 'model');\n (0, _object.set)(model, 'number', (0, _object.get)(policy, 'number'));\n (0, _object.set)(model, 'coverageType', (0, _object.get)(policy, 'coverageType'));\n (0, _object.set)(model, 'carrier', (0, _object.get)(policy, 'carrier'));\n (0, _object.set)(model, 'mga', (0, _object.get)(policy, 'mga'));\n (0, _object.set)(model, 'additionalMga', (0, _object.get)(policy, 'additionalMga'));\n (0, _object.set)(model, 'additionalDaysToCancel', (0, _object.get)(policy, 'additionalDaysToCancel'));\n (0, _object.set)(model, 'shortRate', (0, _object.get)(policy, 'shortRate'));\n (0, _object.set)(model, 'filings', (0, _object.get)(policy, 'filings'));\n (0, _object.set)(model, 'auditable', (0, _object.get)(policy, 'auditable'));\n const expDate = (0, _object.get)(policy, 'expirationDate');\n if (expDate) {\n (0, _object.set)(model, 'expirationDate', expDate);\n (0, _object.set)(this, 'expirationDateUpdated', true);\n }\n },\n confirmNewPolicy() {\n (0, _object.set)(this, 'confirmedNewPolicy', true);\n },\n internalOnCancel() {\n const onCancel = (0, _object.get)(this, 'onCancel');\n if (onCancel) {\n onCancel((0, _object.get)(this, 'quote'));\n }\n },\n // willDestroy() {\n // let model = get(this, 'model');\n\n // if (get(model, 'isNew')) {\n // model.deleteRecord();\n // }\n // },\n\n confirmed: (0, _object.computed)('quote.isNew', 'confirmedNewPolicy', 'model.contracts.length', function () {\n if ((0, _object.get)(this, 'quote.isNew')) {\n return true;\n }\n if ((0, _object.get)(this, 'quote.contracts.length')) {\n return (0, _object.get)(this, 'confirmedNewPolicy');\n } else {\n return true;\n }\n }),\n mgaFilter: (0, _object.computed)('model.additionalMga.id', function () {\n const additionalMgaId = (0, _object.get)(this, 'model.additionalMga.id');\n return option => {\n if (!additionalMgaId) return true;\n return (0, _object.get)(option, 'id') != additionalMgaId;\n };\n }),\n additionalMgaFilter: (0, _object.computed)('model.mga.id', function () {\n const mgaId = (0, _object.get)(this, 'model.mga.id');\n return option => {\n if (!mgaId) return true;\n return (0, _object.get)(option, 'id') != mgaId;\n };\n }),\n chooseEffectiveDate(newDate) {\n (0, _object.set)(this, 'model.effectiveDate', newDate);\n if (!this.expirationDateUpdated) {\n (0, _object.set)(this, 'model.expirationDate', moment(newDate).add(this.session.nonPfLoans ? 10 : 1, 'year').toDate());\n }\n },\n chooseExpirationDate(newDate) {\n (0, _object.set)(this, 'model.expirationDate', newDate);\n (0, _object.set)(this, 'expirationDateUpdated', true);\n },\n save() {\n const command = (0, _object.get)(this, 'command');\n const changeset = (0, _object.get)(this, 'model');\n const carrier = (0, _object.get)(changeset, 'carrier');\n if (carrier) {\n (0, _object.set)(changeset, 'carrierId', (0, _object.get)(carrier, 'id'));\n }\n const mga = (0, _object.get)(changeset, 'mga');\n if (mga) {\n (0, _object.set)(changeset, 'mgaId', (0, _object.get)(mga, 'id'));\n }\n const additionalMga = (0, _object.get)(changeset, 'additionalMga');\n if (additionalMga) {\n (0, _object.set)(changeset, 'additionalMgaId', (0, _object.get)(additionalMga, 'id'));\n }\n const coverageType = (0, _object.get)(changeset, 'coverageType');\n if (coverageType) {\n (0, _object.set)(changeset, 'coverageTypeId', (0, _object.get)(coverageType, 'id'));\n }\n (0, _object.set)(this, 'submitIsDisabled', true);\n command.save().then(responseObjects => {\n const onSave = (0, _object.get)(this, 'onSave');\n (0, _object.get)(this, 'alert').success();\n (0, _object.set)(this, 'submitIsDisabled', false);\n let quote = responseObjects.find(obj => {\n return (0, _object.get)(obj, 'constructor.modelName') === 'quote';\n });\n if (onSave) {\n onSave((0, _object.get)(quote, 'id'));\n }\n }, () => {\n (0, _object.get)(this, 'alert').error();\n (0, _object.set)(this, 'submitIsDisabled', false);\n });\n }\n });\n});","define(\"ui/components/forms/single-value-form\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ui/mixins/testable-element\"], function (_exports, _component, _object, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'single-value-form',\n dataTestAttributeBinding: 'label',\n classNames: ['single-value-form'],\n classNameBindings: ['isEditable', 'isBlock', 'isEditing'],\n isBlock: false,\n label: '',\n value: '',\n startEditing() {\n (0, _object.set)(this, 'isEditing', true);\n },\n cancelEditing() {\n const onCancel = this.onCancel;\n if (onCancel) {\n onCancel();\n }\n (0, _object.set)(this, 'isEditing', false);\n },\n save() {\n const onSave = this.onSave;\n if (!onSave) {\n (0, _object.set)(this, 'isEditing', false);\n return;\n }\n const result = onSave();\n if (result && typeof result.then === 'function') {\n result.then(success => {\n success !== false && (0, _object.set)(this, 'isEditing', false);\n });\n } else if (result !== false) {\n (0, _object.set)(this, 'isEditing', false);\n }\n }\n });\n});","define(\"ui/components/forms/user-form\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/forms/add-form\"], function (_exports, _service, _object, _addForm) {\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,\"ui/components/forms/add-form\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _addForm.default.extend({\n store: (0, _service.inject)(),\n dataTest: 'user-form-container',\n // Need to manually reset the errors because this value is not on the model\n manualResetErrors: (0, _object.observer)('model.territory', 'model.role', function () {\n (0, _object.get)(this, 'model.errors').clear();\n }),\n cancel() {\n this.model.deleteRecord();\n this.onCancel();\n }\n });\n});","define(\"ui/components/forms/yield-rate-table-builder\", [\"exports\", \"@ember/service\", \"@ember/component\", \"ui/mixins/permissions\"], function (_exports, _service, _component, _permissions) {\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/component\",0,\"ui/mixins/permissions\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_permissions.default, {\n dataTest: 'yield-rate-table-builder',\n store: (0, _service.inject)(),\n yieldRateTable: null,\n add() {\n let yieldRateTable = this.yieldRateTable;\n let store = this.store;\n store.createRecord('yield-rate-table-record', {\n yieldRateTable: yieldRateTable,\n rangeStart: this.calculateNextRangeStart(yieldRateTable.yieldRateTableRecords),\n isExpanded: true\n });\n },\n calculateNextRangeStart(yieldRateTableRecords) {\n if (yieldRateTableRecords.length) {\n let sorted = yieldRateTableRecords.sortBy('rangeEnd');\n let largest = sorted.lastObject;\n return largest.rangeEnd + 0.01;\n }\n return 0;\n }\n });\n});","define(\"ui/components/fundings/approved-buttons\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n ajax: (0, _service.inject)(),\n showingCheckNotices: false,\n showingAchNotices: false,\n showingWireNotices: false,\n filteredFundings: (0, _object.computed)('fundings.@each.paidAt', function () {\n return this.fundings.filter(f => !f.paidAt);\n }),\n payChecks() {\n return this.payFundings('checks');\n },\n payAchs() {\n return this.payFundings('ach');\n },\n payWires() {\n return this.payFundings('wire');\n },\n payFundings(paymentType) {\n return this.ajax.payFundings(paymentType).then(() => this.refreshModel());\n },\n checksToPay: (0, _object.computed)('filteredFundings.{length,@each.paymentType}', function () {\n return this.filteredFundings.filter(f => f.paymentType == 'check');\n }),\n checksToPayCount: (0, _object.computed)('checksToPay.length', function () {\n return (0, _object.get)(this, 'checksToPay.length');\n }),\n noChecksToPay: (0, _object.computed)('checksToPayCount', function () {\n return (0, _object.get)(this, 'checksToPayCount') === 0;\n }),\n achsToPay: (0, _object.computed)('filteredFundings.{length,@each.paymentType}', function () {\n return this.filteredFundings.filter(f => f.paymentType == 'ach');\n }),\n achsToPayCount: (0, _object.computed)('achsToPay.length', function () {\n return (0, _object.get)(this, 'achsToPay.length');\n }),\n noAchsToPay: (0, _object.computed)('achsToPayCount', function () {\n return (0, _object.get)(this, 'achsToPayCount') === 0;\n }),\n wireToPay: (0, _object.computed)('filteredFundings.{length,@each.paymentType}', function () {\n return this.filteredFundings.filter(f => f.paymentType == 'wire');\n }),\n wiresToPayCount: (0, _object.computed)('wireToPay.length', function () {\n return (0, _object.get)(this, 'wireToPay.length');\n }),\n noWiresToPay: (0, _object.computed)('wiresToPayCount', function () {\n return (0, _object.get)(this, 'wiresToPayCount') === 0;\n })\n });\n});","define(\"ui/components/fundings/report-approved\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n filteredFundings: (0, _object.computed)('fundings.@each.paidAt', function () {\n let fundings = this.fundings;\n return fundings.filter(funding => {\n return !funding.get('paidAt');\n });\n })\n });\n});","define(\"ui/components/grid-stack-item\", [\"exports\", \"ember-gridstack/components/grid-stack-item\"], function (_exports, _gridStackItem) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _gridStackItem.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-gridstack/components/grid-stack-item\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/grid-stack\", [\"exports\", \"ember-gridstack/components/grid-stack\"], function (_exports, _gridStack) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _gridStack.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-gridstack/components/grid-stack\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/header/header-alerts\", [\"exports\", \"@ember/service\", \"@ember/component\", \"ui/mixins/permissions\", \"@ember/object\"], function (_exports, _service, _component, _permissions, _object) {\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/component\",0,\"ui/mixins/permissions\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_permissions.default, {\n session: (0, _service.inject)(),\n ajax: (0, _service.inject)(),\n store: (0, _service.inject)(),\n messenger: (0, _service.inject)(),\n classNames: ['header-alerts'],\n filteredMessages: (0, _object.computed)('messages.@each.deliverAt', function () {\n const messages = (0, _object.get)(this, 'messages');\n if (!messages) {\n return [];\n }\n const now = new Date();\n return messages.filter(m => {\n return m.deliverAt < now;\n });\n }),\n requiresAck: (0, _object.computed)('filteredMessages.@each.acknowledgedAt', function () {\n const messages = (0, _object.get)(this, 'filteredMessages');\n if (!messages) {\n return false;\n }\n var requiresAck = false;\n messages.forEach(m => {\n if (!m.acknowledgedAt) {\n requiresAck = true;\n }\n });\n return requiresAck;\n }),\n updateMessages() {\n this.store.query('message', {\n for_header: true,\n __skip_loading_indicator: true\n }).then(messages => {\n (0, _object.set)(this, 'messages', messages);\n }).catch(err => {\n (0, _object.get)(this, 'alert').error(err);\n });\n },\n didInsertElement() {\n this._super(...arguments);\n this.updateMessages();\n const id = (0, _object.get)(this, 'session.currentUser.id');\n this.messenger.registerAlerts(id, this.updateMessages.bind(this));\n\n // Event listener for clicking outside the popup\n document.body.addEventListener('click', event => {\n if (event) {\n const popup = document.querySelector('.notifications');\n const button = document.querySelector('.header-alerts button');\n if (popup && button) {\n if (!popup.contains(event.target) && !button.contains(event.target)) {\n (0, _object.set)(this, 'showingNotifications', false);\n }\n } else {\n (0, _object.set)(this, 'showingNotifications', false);\n }\n }\n });\n },\n willDestroyElement() {\n this._super(...arguments);\n const id = (0, _object.get)(this, 'session.currentUser.id');\n this.messenger.unregisterAlerts(id);\n\n // Remove event listener after clicking outside the popup\n document.body.removeEventListener('click', () => {});\n },\n acknowledge(message) {\n if ((0, _object.get)(message, 'acknowledgedAt')) {\n return;\n }\n (0, _object.set)(message, 'acknowledgedAt', new Date());\n message.save();\n }\n });\n});","define(\"ui/components/header/header-calls\", [\"exports\", \"@ember/runloop\", \"@ember/object\", \"@ember/service\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _runloop, _object, _service, _component, _testableElement) {\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\",0,\"@ember/service\",0,\"@ember/component\",0,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n flipper: (0, _service.inject)(),\n messages: (0, _service.inject)(),\n store: (0, _service.inject)(),\n communicationStream: (0, _service.inject)(),\n session: (0, _service.inject)(),\n commands: (0, _service.inject)(),\n classNames: ['header-calls'],\n dataTest: 'header-calls',\n cannotCall: (0, _object.computed)('session.isAgency', 'messages.isOpen', function () {\n return !this.session.isAgency || !this.messages.isOpen;\n }),\n callRecipientGroups: (0, _object.computed)('session.currentUser.callRecipientGroups.length', function () {\n return this.session.currentUser.callRecipientGroups;\n }),\n didInsertElement() {\n (0, _object.set)(this, 'incomingCalls', []);\n\n // offeror side\n this.messages.register('CALL_OFFERED', this.dataTest, message => {\n this.store.findRecord('user', message.offeror_id).then(offeror => {\n this.incomingCalls.pushObject({\n offeror,\n callId: message.call_id\n });\n }); //.catch( error => console.log(\"ERROR\", error))\n });\n\n // answerer side\n this.messages.register('CALL_ANSWERED_BY_OTHER', this.dataTest, message => {\n this.ignoreCall(message.call_id);\n });\n this.messages.register('CALL_ENDED', this.dataTest, message => {\n this.ignoreCall(message.call_id);\n this.communicationStream.callEnded();\n (0, _object.set)(this, 'chosenGroup', undefined);\n });\n },\n willDestroyElement() {\n this.messages.remove('CALL_OFFERED', this.dataTest);\n this.messages.remove('CALL_ANSWERED_BY_OTHER', this.dataTest);\n this.messages.remove('CALL_ENDED', this.dataTest);\n },\n ignoreCall(callId) {\n (0, _object.set)(this, 'incomingCalls', this.incomingCalls.filter(i => i.callId !== callId));\n },\n endCurrentCall() {\n // we need to shut down the camera immediately\n if (this.communicationStream.offer) {\n this.communicationStream.offer.teardownStream();\n }\n const group = this.chosenGroup;\n const callId = this.communicationStream.callId;\n if (group || callId) {\n (0, _object.set)(this, 'chosenGroup', undefined);\n this.commands.create('endCall', {\n callId: callId\n }).save();\n //.catch( error => console.log(\"ERROR\", error))\n }\n },\n inAppCallsEnabled: (0, _object.computed)(function () {\n return this.flipper.isEnabled('in-app-calls');\n }),\n actions: {\n makeCall() {\n if (!this.session.isAgency) {\n return;\n }\n (0, _object.set)(this, 'isCalling', true);\n },\n cancelCall() {\n (0, _object.set)(this, 'isCalling', false);\n this.endCurrentCall();\n },\n leaveCall() {\n this.endCurrentCall();\n },\n // offeror side\n chooseGroup(group) {\n this.chosenGroup;\n (0, _object.set)(this, 'chosenGroup', group);\n const offerorId = this.session.currentUser.id;\n this.commands.create('startCall', {\n offerorId,\n callRecipientGroupId: group.id\n }).save().then(response => {\n const callId = response[0].call_id;\n\n // the video elements are not present until after the chosenGroup is present\n // we just added the group, so the elements will be present in the next run loop\n _runloop.run.next(this, () => {\n let localVideo = this.element.getElementsByClassName('local-video')[0];\n let remoteVideo = this.element.getElementsByClassName('remote-video')[0];\n this.communicationStream.startCall({\n callId,\n offerorId,\n localVideo,\n remoteVideo\n });\n });\n });\n //.catch( error => console.log(\"ERROR\", error))\n },\n // answeror side\n answerCall(incoming) {\n // do not allow it to be answered twice\n if (incoming.answered) {\n return;\n }\n this.commands.create('answerCall', {\n callId: incoming.callId\n }).save().then(() => {\n (0, _object.set)(incoming, 'answered', true);\n\n // the video elements are not present until after the chosenGroup is present\n // we just added the group, so the elements will be present in the next run loop\n _runloop.run.next(this, () => {\n let localVideo = this.element.getElementsByClassName('local-video')[0];\n let remoteVideo = this.element.getElementsByClassName('remote-video')[0];\n this.communicationStream.answerCall({\n callId: incoming.callId,\n answererId: this.session.currentUser.id,\n offerorId: incoming.offeror.id,\n localVideo,\n remoteVideo\n });\n });\n });\n }\n }\n });\n});","define(\"ui/components/header/header-container\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\", \"ui/mixins/testable-element\", \"ui/mixins/permissions\"], function (_exports, _service, _component, _object, _testableElement, _permissions) {\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/component\",0,\"@ember/object\",0,\"ui/mixins/testable-element\",0,\"ui/mixins/permissions\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, _permissions.default, {\n classNames: ['header-container', 'layout-row'],\n dataTest: 'header-container',\n session: (0, _service.inject)(),\n flipper: (0, _service.inject)(),\n isAcceptPayment: false,\n showAlerts: (0, _object.computed)(function () {\n return (0, _object.get)(this, 'permissions.canAddMessage.value');\n }),\n resetSearch() {\n (0, _object.setProperties)(this, {\n isAcceptPayment: false\n });\n },\n invalidateSession() {\n this.session.invalidate();\n }\n });\n});","define(\"ui/components/header/header-current-user\", [\"exports\", \"@ember/service\", \"@ember/component\", \"ui/mixins/permissions\", \"@ember/object\", \"ui/config/environment\", \"ui/helpers/flag-emoji\", \"@ember/string\"], function (_exports, _service, _component, _permissions, _object, _environment, _flagEmoji, _string) {\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/component\",0,\"ui/mixins/permissions\",0,\"@ember/object\",0,\"ui/config/environment\",0,\"ui/helpers/flag-emoji\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_permissions.default, {\n session: (0, _service.inject)(),\n flipper: (0, _service.inject)(),\n ajax: (0, _service.inject)(),\n alert: (0, _service.inject)(),\n router: (0, _service.inject)(),\n classNames: ['header-current-user'],\n isReminderTextsModalOpen: false,\n phoneNumber: '',\n receiveReminderTexts: false,\n successReminderTextMessage: '',\n insuredUserOrViewInsuredSection: (0, _object.computed)('session.isInsured', 'permissions.viewInsuredSection.value', function () {\n return this.session.isInsured || this.permissions.viewInsuredSection.value;\n }),\n currentUserLanguageSettingWithFlagHTML: (0, _object.computed)('currentUserLanguageSetting', function () {\n return (0, _string.htmlSafe)(`${(0, _flagEmoji.flagEmoji)(this.currentUserLanguageSetting)} ${this.currentUserLanguageSetting}`);\n }),\n isMimicking: (0, _object.computed)('session.isMimicking', function () {\n return this.session.isMimicking;\n }),\n currentUserLanguageSetting: (0, _object.computed)('session.currentUser.languageSetting', function () {\n return this.session.currentUser.languageSetting;\n }),\n languageOptions: (0, _object.computed)(function () {\n return ['English', 'Español', 'Français', 'Русский'];\n }),\n simplifiedQuoteView: (0, _object.computed)('session.currentUser.simplifiedQuoteView', function () {\n return this.session.currentUser.simplifiedQuoteView;\n }),\n canSignUpForReminderTexts: (0, _object.computed)('session.currentUser.insured.eligibleForReminderTextSignup', function () {\n const insured = this.session.currentUser?.insured;\n if (!insured) return false;\n return !!(0, _object.get)(insured, 'eligibleForReminderTextSignup');\n }),\n actions: {\n toggleSimplifiedQuoteView() {\n const newValue = !this.simplifiedQuoteView;\n const currentRoute = this.router.currentRouteName;\n this.session.currentUser.set('simplifiedQuoteView', newValue);\n // Check if enabling Simplified Quote Display and on a quotes.show route (but not the single page quoting route)\n const isOnQuotesShow = currentRoute.startsWith('quotes.show.');\n // redirect to policies route if new value is true\n const shouldRedirect = newValue && isOnQuotesShow;\n return this.session.currentUser.save().then(() => {\n this.alert.success('Quote display preference updated. Refreshing page...');\n\n // If redirecting, navigate to policies first, then reload\n if (shouldRedirect) {\n // Extract quote_id from current URL path\n const pathMatch = window.location.pathname.match(/\\/quotes\\/([^\\/]+)/);\n const quoteId = pathMatch ? pathMatch[1] : null;\n if (quoteId) {\n this.router.transitionTo('quotes.show.policies', quoteId).then(() => {\n window.location.reload();\n });\n }\n } else {\n window.location.reload();\n }\n return true;\n }).catch(() => {\n this.alert.error('Failed to update quote display preference');\n return false;\n });\n },\n changeCurrentUserLanguageSetting() {\n const languageSetting = this.currentUserLanguageSetting;\n this.session.currentUser.set('languageSetting', languageSetting);\n return this.session.currentUser.save().then(() => {\n this.alert.success('Language setting updated');\n\n // I almost tied it all together rather nicely :sob:\n // the BE knows how to map the language setting to the correct locale,\n // but here the FE does too, so I'm just gonna add the map here and probably do some kind\n // of client constants thing soon\n const localsMap = {\n \"English\": \"en-us\",\n \"Español\": \"es-419\",\n \"Français\": \"fr\",\n \"Русский\": \"ru\"\n };\n this.session.setLocal(localsMap[languageSetting]);\n return true;\n });\n },\n async openReminderTextsModal() {\n let insured = this.session.currentUser?.insured;\n if (!insured) return;\n await insured.reload();\n const submission = insured.get('reminderTextConsentSubmission');\n const consentGiven = submission?.consent_given;\n const phoneNumber = submission?.phone_number;\n this.set('receiveReminderTexts', consentGiven);\n this.set('phoneNumber', phoneNumber);\n this.set('isReminderTextsModalOpen', true);\n },\n closeReminderTextsModal() {\n this.set('isReminderTextsModalOpen', false);\n },\n confirmReminderTextConsent() {\n let insured = this.session.currentUser?.insured;\n if (!insured) return;\n this.ajax.post(`${_environment.default.DS.host}/${_environment.default.DS.namespace}/reminder_text_consent_submissions`, {\n data: {\n reminder_text_consent_submission: {\n phone_number: this.phoneNumber,\n consent_given: this.receiveReminderTexts\n }\n }\n }).then(() => {\n this.alert.success();\n insured.reload();\n this.set('isReminderTextsModalOpen', false);\n }).catch(error => {\n this.alert.error(error);\n console.error(error);\n });\n },\n cancelCurrentUserLanguageSetting() {\n (0, _object.set)(this, 'currentUserLanguageSetting', this.session.currentUser.languageSetting);\n },\n setDropdownObject(dropdown) {\n (0, _object.set)(this, 'dropdown', dropdown);\n },\n removeDropdownObject() {\n (0, _object.set)(this, 'dropdown', null);\n },\n closeHeaderCurrentUser() {\n this.dropdown.actions.close();\n },\n endMimic() {\n this.ajax.post(`${_environment.default.DS.host}/${_environment.default.DS.namespace}/authentications/destroy-mimic`).then(mimicCreds => {\n this.session.endMimicUser();\n });\n },\n invalidateSession() {\n this.session.invalidate();\n this.send('closeHeaderCurrentUser');\n }\n }\n });\n});","define(\"ui/components/header/header-search-input\", [\"exports\", \"@ember/legacy-built-in-components\", \"@ember/object\"], function (_exports, _legacyBuiltInComponents, _object) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/legacy-built-in-components\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n var _default = _exports.default = _legacyBuiltInComponents.TextField.extend({\n classNames: ['header-search-input'],\n placeholder: (0, _object.computed)('isAcceptPayment', function () {\n if (this.isAcceptPayment === true) {\n return 'Search for account by agency, insured, contact, etc.';\n }\n return 'Search for quote or account';\n }),\n isAcceptPayment: false,\n didUpdateAttrs() {\n document.getElementById(this.elementId).focus();\n },\n keyUp(e) {\n if ([38,\n // UP\n 40,\n // DOWN\n 27,\n // ESCAPE\n 13 // RETURN\n ].indexOf(e.keyCode) > -1) {\n (0, _object.get)(this, 'internalKeyUp')(e);\n } else {\n (0, _object.get)(this, 'search')((0, _object.get)(this, 'value'));\n }\n },\n keyDown(e) {\n // if (e.keyCode === 13) {\n // get(this, 'internalKeyUp')(e);\n // e.preventDefault(); // prevent up or down arrow from moving the cursor\n // return\n // }\n\n if ([38, 40, 27].indexOf(e.keyCode) > -1) {\n e.preventDefault(); // prevent up or down arrow from moving the cursor\n }\n }\n });\n});","define(\"ui/components/header/header-search-result\", [\"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 /**\n @module Component\n */\n /**\n Part of header\n \n ```\n {{header/header-search-result\n text=text\n result=result\n selected=attrs.selected }}\n ```\n \n @class header.header-search-result\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n tagName: 'li',\n classNameBindings: ['result.isSelected'],\n text: '',\n result: null,\n click() {\n this.selected(this.result);\n }\n });\n});","define(\"ui/components/header/header-search-results\", [\"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 /**\n @module Component\n */\n /**\n Part of header\n \n ```\n {{header/header-search-results\n text=text\n results=results\n selected=(action selected)\n }}\n ```\n \n @class header.header-search-results\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n classNames: ['header-search-results'],\n /**\n The search text\n @property text\n @type String\n @default ''\n @required\n */\n text: '',\n /**\n The search results\n @property results\n @type Array\n @default null\n @required\n */\n results: null\n });\n});","define(\"ui/components/header/header-search\", [\"exports\", \"@ember/service\", \"@ember/object/computed\", \"@ember/component\", \"@ember/object\", \"ui/mixins/testable-element\", \"ember-concurrency\", \"ui/mixins/permissions\", \"ember-inflector\", \"@ember/runloop\"], function (_exports, _service, _computed, _component, _object, _testableElement, _emberConcurrency, _permissions, _emberInflector, _runloop) {\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/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"ui/mixins/testable-element\",0,\"ember-concurrency\",0,\"ui/mixins/permissions\",0,\"ember-inflector\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, _permissions.default, {\n dataTest: 'header-search',\n store: (0, _service.inject)(),\n ajax: (0, _service.inject)(),\n classNames: ['header-search', 'flex'],\n text: '',\n results: null,\n isShowingNoResults: false,\n isShowingResults: (0, _computed.and)('results.length', 'text'),\n init() {\n this._super(...arguments);\n (0, _object.set)(this, 'results', []);\n },\n search(text) {\n (0, _object.setProperties)(this, {\n text: text,\n isShowingNoResults: false\n });\n (0, _object.get)(this, 'setResultsForAutocomplete').perform(text);\n },\n setResultsForAutocomplete: (0, _emberConcurrency.task)(function* (text) {\n let response = yield (0, _object.get)(this, 'ajax').topNavSearch(text);\n (0, _object.set)(this, 'results', response.allOptions);\n this.setSelection();\n }).restartable(),\n setSelection() {\n if ((0, _object.get)(this, 'results.length')) {\n (0, _object.set)(this, 'results.firstObject.isSelected', true);\n } else {\n if ((0, _object.get)(this, 'text')) {\n (0, _object.set)(this, 'isShowingNoResults', true);\n }\n }\n },\n selected(result) {\n if (result.resourceName === \"activated_contract\") {\n (0, _object.get)(this, 'transitionToRoute')('accounts.show.terms', result.accountId);\n } else {\n if ((0, _object.get)(this, 'permissions.viewInsuredSection.value')) {\n (0, _object.get)(this, 'transitionToRoute')(`insureds.${(0, _emberInflector.pluralize)(result.resourceName)}.show.terms`, result.id);\n } else {\n (0, _object.get)(this, 'transitionToRoute')(`${(0, _emberInflector.pluralize)(result.resourceName)}.show.terms`, result.id);\n }\n }\n this.resetInput();\n },\n keyDown(e) {\n if (e.keyCode === 38 || e.keyCode === 40) {\n // UP || DOWN\n e.preventDefault(); // prevent up or down arrow from moving the cursor\n }\n },\n handleUp() {\n let results = (0, _object.get)(this, 'results');\n let result = results.findBy('isSelected');\n if (result) {\n let index = results.indexOf(result);\n if (index > 0) {\n (0, _object.set)(result, 'isSelected', false);\n let nextResult = results.objectAt(index - 1);\n (0, _object.set)(nextResult, 'isSelected', true);\n }\n }\n },\n handleDown() {\n let results = this.results;\n let result = results.findBy('isSelected');\n if (result) {\n let index = results.indexOf(result);\n if (index < results.length - 1) {\n (0, _object.set)(result, 'isSelected', false);\n let nextResult = results.objectAt(index + 1);\n (0, _object.set)(nextResult, 'isSelected', true);\n }\n }\n },\n handleReturn() {\n let result = this.results.findBy('isSelected');\n if (result) {\n this.selected(result);\n }\n this.resetInput();\n },\n handleEscape() {\n this.resetInput();\n },\n resetInput() {\n (0, _runloop.next)(this, () => {\n (0, _object.setProperties)(this, {\n text: '',\n results: []\n });\n });\n },\n calculatePosition(trigger) {\n let {\n left,\n width\n } = trigger.getBoundingClientRect();\n let style = {\n left: left,\n top: 60,\n width: width\n };\n return {\n style\n };\n },\n actions: {\n internalKeyUp(e) {\n if (e.keyCode === 38) {\n // UP\n this.handleUp();\n } else if (e.keyCode === 40) {\n // DOWN\n this.handleDown();\n } else if (e.keyCode === 27) {\n // ESCAPE\n this.handleEscape();\n } else if (e.which === 13) {\n // RETURN\n this.handleReturn();\n }\n }\n }\n });\n});","define(\"ui/components/header/header-settings-menu\", [\"exports\", \"@ember/component\", \"ui/mixins/permissions\", \"ui/mixins/navs-by-group\"], function (_exports, _component, _permissions, _navsByGroup) {\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,\"ui/mixins/permissions\",0,\"ui/mixins/navs-by-group\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n var _default = _exports.default = _component.default.extend(_permissions.default, _navsByGroup.default, {\n classNames: ['header-settings-menu', 'layout-align-end']\n });\n});","define(\"ui/components/header/header-settings\", [\"exports\", \"@ember/component\", \"ui/mixins/permissions\", \"@ember/object\"], function (_exports, _component, _permissions, _object) {\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,\"ui/mixins/permissions\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_permissions.default, {\n classNames: ['header-settings'],\n tagName: 'li',\n actions: {\n setDropdownObject(dropdown) {\n (0, _object.set)(this, 'dropdown', dropdown);\n },\n removeDropdownObject() {\n (0, _object.set)(this, 'dropdown', null);\n },\n closeHeaderSettings() {\n this.dropdown.actions.close();\n }\n }\n });\n});","define(\"ui/components/header/insured-view-header-container\", [\"exports\", \"@ember/service\", \"@ember/object\", \"@ember/component\", \"ui/mixins/testable-element\", \"ui/mixins/permissions\"], function (_exports, _service, _object, _component, _testableElement, _permissions) {\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/component\",0,\"ui/mixins/testable-element\",0,\"ui/mixins/permissions\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, _permissions.default, {\n classNames: ['header-container', 'layout-row'],\n dataTest: 'header-container',\n session: (0, _service.inject)(),\n flipper: (0, _service.inject)(),\n canViewSearchBar: (0, _object.computed)('session.isInsured', function () {\n return !this.session.isInsured;\n }),\n invalidateSession() {\n this.session.invalidate();\n }\n });\n});","define(\"ui/components/header/result-account-for-payment\", [\"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 /**\n @module Component\n */\n /**\n Part of header\n \n ```\n {{header/result-account-for-payment\n text=text\n result=result\n selected=attrs.selected }}\n ```\n \n @class header.result-account-for-payment\n @extends Component\n */\n var _default = _exports.default = _component.default.extend({\n tagName: 'li',\n classNameBindings: ['result.isSelected'],\n text: '',\n result: null,\n click() {\n this.selected(this.result);\n }\n });\n});","define(\"ui/components/inline-iframe\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\", \"@ember/object\"], function (_exports, _component, _testableElement, _object) {\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,\"ui/mixins/testable-element\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'inline-iframe',\n tagName: 'iframe',\n classNames: ['inline-iframe'],\n src: 'about:blank',\n frameborder: '1',\n zoom: 1,\n didInsertElement() {\n this._super(...arguments);\n const element = document.getElementById(this.elementId);\n const doc = element.contentWindow.document;\n (0, _object.set)(this, 'document', doc);\n this.writeDocumentContent();\n },\n writeDocumentContent() {\n const doc = this.document;\n if (!doc) {\n return;\n }\n doc.open();\n doc.write(this.content);\n doc.close();\n this.applyDocumentZoom();\n },\n applyDocumentZoom() {\n const doc = this.document;\n if (!doc || !doc.documentElement) {\n return;\n }\n doc.documentElement.style.zoom = this.zoom || 1;\n },\n resetDocumentContent: (0, _object.observer)('content', function () {\n this.writeDocumentContent();\n }),\n updateDocumentZoom: (0, _object.observer)('zoom', function () {\n this.applyDocumentZoom();\n })\n });\n});","define(\"ui/components/inputs/base-input\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _component, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n classNames: ['ember-paper-input'],\n dataTest: 'd-input',\n dataTestAttributeBinding: 'label'\n });\n});","define(\"ui/components/inputs/d-checkbox-list\", [\"exports\", \"ui/components/inputs/base-input\", \"ember-concurrency\", \"@ember/object\", \"@ember/service\"], function (_exports, _baseInput, _emberConcurrency, _object, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/inputs/base-input\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseInput.default.extend({\n dataTest: 'd-checkbox-list',\n classNames: ['md-default-theme', 'md-block', 'md-checkbox-list', 'd-checkbox-list'],\n attributeBindings: ['flex'],\n classNameBindings: ['isFocused:md-focused', 'isFocused:md-input-focused', 'isInvalid:md-input-invalid'],\n ajax: (0, _service.inject)(),\n setup: (0, _emberConcurrency.task)(function* () {\n const constant = (0, _object.get)(this, 'constantName');\n if (!constant) {\n return;\n }\n let options = yield (0, _object.get)(this, 'ajax').constant(constant);\n let without = (0, _object.get)(this, 'without') || [];\n without = without.map(w => w.toUpperCase());\n options = options.reject(option => {\n return without.indexOf(option.name.toUpperCase()) > -1;\n });\n (0, _object.set)(this, 'options', options);\n if (this.initiallyIncludeAll) {\n (0, _object.set)(this, 'value', this.options.map(o => o.name));\n }\n }).on('init'),\n internalOptions: (0, _object.computed)('options.@each.value', 'value', function () {\n if (!this.options) {\n return [];\n }\n if (!this.value) {\n return [];\n }\n const currentList = this.value;\n return this.options.map(option => {\n return {\n name: option.name,\n included: currentList.indexOf(option.name) > -1\n };\n });\n }),\n updateOption(option, value) {\n if (value) {\n this.onChange(this.value.concat(option.name));\n } else {\n this.onChange(this.value.filter(val => val !== option.name));\n }\n }\n });\n});","define(\"ui/components/inputs/d-checkbox\", [\"exports\", \"ember-paper/components/paper-checkbox\", \"ui/mixins/testable-element\", \"ui/templates/components/inputs/d-checkbox\", \"@ember/object/computed\"], function (_exports, _paperCheckbox, _testableElement, _dCheckbox, _computed) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-checkbox\",0,\"ui/mixins/testable-element\",0,\"ui/templates/components/inputs/d-checkbox\",0,\"@ember/object/computed\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCheckbox.default.extend(_testableElement.default, {\n dataTest: 'd-checkbox',\n classNameBindings: ['isInvalid:md-input-invalid'],\n dataTestAttributeBinding: 'label',\n layout: _dCheckbox.default,\n flex: 100,\n block: false,\n isInvalid: (0, _computed.alias)('errors.length')\n });\n});","define(\"ui/components/inputs/d-currency-input\", [\"exports\", \"ui/components/inputs/d-number-input\", \"@ember/object\"], function (_exports, _dNumberInput, _object) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/inputs/d-number-input\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dNumberInput.default.extend({\n classNames: ['md-default-theme', 'md-block'],\n dataTest: 'd-currency-input',\n classNameBindings: ['isFocused:md-focused', 'isFocused:md-input-focused', 'isInvalid:md-input-invalid'],\n didInsertElement() {\n this._super(...arguments);\n const input = this.element.getElementsByTagName('input')[0];\n\n // need to turn the browser autocomplete off so it won't be so annoying\n input.setAttribute('autocomplete', 'off');\n input.addEventListener('focus', () => {\n (0, _object.set)(this, 'isFocused', true);\n });\n input.addEventListener('blur', () => {\n (0, _object.set)(this, 'isFocused', false);\n });\n },\n internalOnChange(value) {\n // Would really love to provide number values instead of string values here\n // There is a fundamental problem of negative though. When making a 0 value negative\n // there is no way to preserve that negative as the value propogates through the data down actions up\n // data flow. So the negative gets lost. This is a pain for the UX.\n\n // It may be possible to strip the responsability of knowing the value is negative from the masked string\n // and keep it as a property on the component. Then the value multiply by -1 if negative here.\n // That would require capturing all key strokes and hijacking the \"-\" ones. Sounds really messy\n // value = parseFloat(value)\n\n const onChange = this.onChange;\n if (onChange) {\n onChange(value);\n } else {\n this.value = value;\n }\n }\n });\n});","define(\"ui/components/inputs/d-datetime\", [\"exports\", \"@glimmer/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"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), a = null), a; }\n let InputsDDatetimeComponent = _exports.default = (_dec = (0, _object.computed)('args.value'), (_class = class InputsDDatetimeComponent extends _component.default {\n formatValue(value) {\n if (!value) return '';\n\n // Ensure the value is a Date object\n const valueDate = value instanceof Date ? value : new Date(value);\n const year = valueDate.getFullYear();\n const month = valueDate.getMonth() + 1; // getMonth() is zero-indexed\n const day = valueDate.getDate();\n const hours = valueDate.getHours();\n const minutes = valueDate.getMinutes();\n\n // Pad single digits with leading zero\n const monthFormatted = month < 10 ? `0${month}` : month;\n const dayFormatted = day < 10 ? `0${day}` : day;\n const hoursFormatted = hours < 10 ? `0${hours}` : hours;\n const minutesFormatted = minutes < 10 ? `0${minutes}` : minutes;\n\n // Return the formatted string\n return `${year}-${monthFormatted}-${dayFormatted}T${hoursFormatted}:${minutesFormatted}`;\n }\n get valueString() {\n return this.formatValue(this.args.value);\n }\n updateDatetime(event) {\n const value = event.target.value;\n if (this.args.onChange) {\n this.args.onChange(value);\n }\n }\n }, (_applyDecoratedDescriptor(_class.prototype, \"valueString\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"valueString\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateDatetime\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDatetime\"), _class.prototype)), _class));\n});","define(\"ui/components/inputs/d-file-upload\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"ui/config/environment\", \"ui/utils/response-format\"], function (_exports, _component, _object, _service, _environment, _responseFormat) {\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,\"ui/config/environment\",0,\"ui/utils/response-format\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n // REMOVED TestableElementMixin MIXIN (ui/mixins/testable-element)\n let FileUploadComponent = _exports.default = (_class = class FileUploadComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _initializerDefineProperty(this, \"alert\", _descriptor, this);\n _initializerDefineProperty(this, \"ajax\", _descriptor2, this);\n _initializerDefineProperty(this, \"request\", _descriptor3, this);\n _defineProperty(this, \"dataTest\", 'd-file-upload');\n _defineProperty(this, \"dataTestAttributeBinding\", 'label');\n }\n async uploadFile(file) {\n if (file.state !== 'queued') {\n return;\n }\n const urlPath = this.args.urlPath || 'document/upload';\n const url = `${_environment.default.DS.host}/${_environment.default.DS.namespace}/${urlPath}`;\n const data = {\n file_name: file.name\n };\n if (this.args.resourceName) {\n data.resource_name = this.args.resourceName;\n }\n if (this.args.resourceId) {\n data.resource_id = this.args.resourceId;\n }\n let {\n 'Content-Type': _,\n ...headers\n } = this.ajax.baseHeaders; // we have the wrong content type by default\n\n try {\n this.request.loadingStart();\n const response = await file.upload(url, {\n headers,\n data\n });\n const json = await response.json();\n this.request.loadingEnd();\n this.alert.success();\n if (this.args.didUpload) {\n this.args.didUpload((0, _responseFormat.recursiveCamelizeKeys)(json, true));\n }\n } catch (error) {\n const responseJson = await error.response.json();\n this.request.loadingEnd();\n this.alert.error(responseJson);\n file.state = 'aborted';\n }\n }\n }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"alert\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"ajax\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"request\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"uploadFile\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"uploadFile\"), _class.prototype)), _class);\n});","define(\"ui/components/inputs/d-integer-input\", [\"exports\", \"@ember/object\", \"numeral\", \"ui/components/inputs/d-text-input\"], function (_exports, _object, _numeral, _dTextInput) {\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,\"numeral\",0,\"ui/components/inputs/d-text-input\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n var _default = _exports.default = _dTextInput.default.extend({\n dataTest: 'd-number-input',\n info: (0, _object.computed)('suggestedMin', 'suggestedMax', 'value', function () {\n let info = [];\n const value = this.value;\n const min = this.suggestedMin;\n const max = this.suggestedMax;\n if (value && value < min) {\n info.push(`Suggested min is ${min}`);\n }\n if (value && value > max) {\n info.push(`Suggested max is ${max}`);\n }\n return info;\n }),\n actions: {\n handleInput(inputEvent) {\n let original_val, val;\n original_val = inputEvent.target.value;\n if (original_val.indexOf('-') > -1) {\n original_val = original_val.replace('-', '');\n if (this.allowNegative) {\n val = (0, _numeral.default)(original_val).value() * -1;\n } else {\n val = (0, _numeral.default)(original_val).value();\n }\n } else {\n val = (0, _numeral.default)(original_val).value();\n }\n inputEvent.target.value = val;\n this._super(...arguments);\n }\n }\n });\n});","define(\"ui/components/inputs/d-number-input\", [\"exports\", \"@ember/object/computed\", \"@ember/utils\", \"@ember/object\", \"ui/components/inputs/base-input\"], function (_exports, _computed, _utils, _object, _baseInput) {\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/utils\",0,\"@ember/object\",0,\"ui/components/inputs/base-input\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseInput.default.extend({\n dataTest: 'd-number-input',\n classNames: ['md-default-theme', 'md-block', 'd-number-input'],\n classNameBindings: ['isFocused:md-focused', 'isFocused:md-input-focused', 'hasValue:md-input-has-value', 'isInvalid:md-input-invalid'],\n attributeBindings: ['flex'],\n flex: null,\n value: '',\n block: false,\n label: '',\n placeholder: '',\n prefix: '',\n suffix: '',\n precision: 2,\n allowZero: true,\n allowNegative: false,\n errors: null,\n isFocused: false,\n hasValue: (0, _object.computed)('value', function () {\n return (0, _utils.isPresent)((0, _object.get)(this, 'value'));\n }),\n isInvalid: (0, _computed.alias)('errors.length'),\n inputClasses: (0, _object.computed)('isInvalid', function () {\n if ((0, _object.get)(this, 'isInvalid')) {\n return 'md-input ng-invalid';\n }\n return \"md-input\";\n }),\n init() {\n this._super(...arguments);\n this.tagName = ['md-input-container'];\n this.syncCachedValue();\n },\n syncCachedValue: (0, _object.observer)('value', function () {\n let value = (0, _object.get)(this, 'value');\n if (value && !(typeof value === 'number')) {\n value = parseFloat(value);\n }\n (0, _object.set)(this, 'cachedValue', value);\n }),\n internalOnChange(value) {\n if (value !== (0, _object.get)(this, 'cachedValue')) {\n if (!this.allowNegative && value < 0) {\n this.alert.error(`Cannot make this value negative : ${value}`);\n return;\n }\n const onChange = (0, _object.get)(this, 'onChange');\n if (onChange) {\n onChange(value);\n }\n (0, _object.set)(this, 'cachedValue', value);\n }\n },\n info: (0, _object.computed)('suggestedMin', 'suggestedMax', 'value', function () {\n let info = [];\n const value = (0, _object.get)(this, 'value');\n const min = (0, _object.get)(this, 'suggestedMin');\n const max = (0, _object.get)(this, 'suggestedMax');\n if (value && value < min) {\n info.push(`Suggested min is ${(0, _object.get)(this, 'prefix')}${min.toFixed(2)}${(0, _object.get)(this, 'suffix')}`);\n }\n if (value && value > max) {\n info.push(`Suggested max is ${(0, _object.get)(this, 'prefix')}${max.toFixed(2)}${(0, _object.get)(this, 'suffix')}`);\n }\n return info;\n })\n });\n});","define(\"ui/components/inputs/d-phone\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ui/mixins/testable-element\", \"ui/helpers/format-phone\"], function (_exports, _component, _object, _testableElement, _formatPhone) {\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,\"ui/mixins/testable-element\",0,\"ui/helpers/format-phone\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'd-phone',\n dataTestAttributeBinding: 'label',\n internalValue: (0, _object.computed)('value', function () {\n return (0, _formatPhone.formatPhone)(this.value);\n }),\n internalOnChange(value) {\n const regexMatchingParensSpacesAndDashes = /(\\(+|(\\)|( )|(-)))/g;\n let newValue = value.replace(regexMatchingParensSpacesAndDashes, '');\n const onChange = this.onChange;\n if (onChange) {\n onChange(newValue);\n } else {\n (0, _object.set)(this, 'value', newValue);\n }\n }\n });\n});","define(\"ui/components/inputs/d-pickaday\", [\"exports\", \"@ember/object/computed\", \"@ember/object\", \"ui/components/inputs/base-input\", \"ui/helpers/format-date\"], function (_exports, _computed, _object, _baseInput, _formatDate) {\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/object\",0,\"ui/components/inputs/base-input\",0,\"ui/helpers/format-date\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n var _default = _exports.default = _baseInput.default.extend({\n dataTest: 'd-pikaday-input',\n classNames: ['md-default-theme', 'md-block', 'd-pickaday-input'],\n classNameBindings: ['isFocused:md-focused', 'isFocused:md-input-focused', 'value:md-input-has-value', 'isInvalid:md-input-invalid'],\n attributeBindings: ['flex'],\n flex: null,\n // Match the longest formatted date so auto-layout tables do not use the\n // browser's default 20-character text-input width. CSS can still size it.\n nativeInputSize: 12,\n block: true,\n renderInPlace: true,\n verticalPosition: 'auto',\n isFocused: false,\n excludeTime: false,\n // It is possible this should always be true but we need to be sure before we change the default\n\n isInvalid: (0, _computed.alias)('errors.length'),\n inputClasses: (0, _object.computed)('isInvalid', function () {\n if (this.isInvalid) {\n return 'md-input ng-invalid';\n }\n return 'md-input';\n }),\n internalHandleSelection(dd, day) {\n // start to depricate handleSelection\n let handleSelection = this.handleSelection;\n let onChange = this.onChange;\n let newValue = day.date;\n\n // we need to allow for the onChange function to return falsy if the date cannot be selected\n if (handleSelection) {\n handleSelection(newValue);\n } else if (onChange) {\n const result = onChange(newValue);\n if (result && result.then) {\n result.then(status => {\n if (status) {\n dd.actions.close();\n }\n });\n } else if (result) {\n dd.actions.close();\n }\n } else {\n (0, _object.set)(this, 'value', newValue);\n dd.actions.close();\n }\n },\n internalOnClose() {\n (0, _object.set)(this, 'isFocused', false);\n let onClose = (0, _object.get)(this, 'onClose');\n if (onClose) {\n onClose();\n }\n },\n info: (0, _object.computed)('suggestedMin', 'suggestedMax', 'suggestedMonthRange', 'value', 'isEditing', function () {\n const info = [];\n let value = this.value;\n if (!value) {\n return info;\n }\n let isFocused = (0, _object.get)(this, 'isEditing');\n if (value instanceof moment) {\n value = value.toDate();\n }\n value = new Date(value.setHours(0, 0, 0, 0));\n let min = this.suggestedMin;\n if (min) {\n if (min instanceof moment) {\n min = min.toDate();\n }\n if (value > min) {\n info.push(`Suggested min is ${min.toLocaleDateString()}`);\n }\n }\n let max = this.suggestedMax;\n if (max) {\n if (max instanceof moment) {\n max = max.toDate();\n }\n if (value > max) {\n info.push(`Suggested max is ${max.toLocaleDateString()}`);\n }\n }\n if (this.suggestedMonthRange && isFocused) {\n const suggestedMonthRange = Number(this.suggestedMonthRange);\n const today = new Date();\n const maxFutureDate = new Date(today);\n maxFutureDate.setMonth(today.getMonth() + suggestedMonthRange);\n const minPastDate = new Date(today);\n minPastDate.setMonth(today.getMonth() - suggestedMonthRange);\n if (value < minPastDate || value > maxFutureDate) {\n info.push(`Did you mean to select a date that's greater than ${suggestedMonthRange} months away?`);\n }\n }\n return info;\n }),\n updateManualValue(manualValue) {\n const dd = {\n actions: {\n close: () => {}\n }\n };\n if (manualValue === '') {\n (0, _object.set)(this, 'manualValue', undefined);\n this.internalHandleSelection(dd, {\n date: null\n });\n return;\n }\n if (manualValue === null) {\n this.internalHandleSelection(dd, {\n date: null\n });\n return;\n }\n if (manualValue === undefined) {\n return;\n }\n\n // Keep native validation: dateFromString can normalize invalid month/day\n // values such as 2026-13-20 into a valid date instead of rejecting them.\n let manValue = new Date(manualValue);\n if (isNaN(manValue)) {\n return;\n } else {\n // Native parsing treats typed YYYY-MM-DD as midnight UTC. Behind UTC,\n // local date getters then return the previous day (Collections sent\n // August 19 when the user typed 2026-08-20 in New York). Calendar clicks\n // already produce local dates; named-month and slash formats also worked.\n // Reuse the calendar-date parser so typed ISO dates match calendar clicks.\n // Other formats, including timestamps with offsets, retain native parsing.\n this.internalHandleSelection(dd, {\n date: (0, _formatDate.dateFromString)(manualValue)\n });\n }\n (0, _object.set)(this, 'manualValue', null);\n (0, _object.set)(this, 'calendarOpened', false);\n },\n manualValueOrEmptyStr: (0, _object.computed)('manualValue', function () {\n const manVal = (0, _object.get)(this, 'manualValue');\n if (manVal === '') {\n return ' ';\n }\n return manVal;\n }),\n openCalendar(dd) {\n dd.actions.open();\n }\n });\n});","define(\"ui/components/inputs/d-search-account\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\", \"ember-concurrency\"], function (_exports, _service, _component, _object, _emberConcurrency) {\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/component\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n dataTest: 'd-search-account',\n searchString: '',\n searchEnabled: true,\n allowClear: false,\n ajax: (0, _service.inject)(),\n init() {\n this._super(...arguments);\n this.options = [];\n },\n searchQuery: (0, _emberConcurrency.task)(function* (searchString) {\n yield (0, _emberConcurrency.timeout)(50);\n let response = yield (0, _object.get)(this, 'ajax').accountForPayment(searchString);\n response = response.allOptions.map(option => {\n if (option.normalPaymentAmount) {\n option.normalPaymentAmount.value = option.normalPaymentAmount.value / 100;\n }\n return option;\n });\n (0, _object.set)(this, 'options', response);\n }).restartable(),\n internalOnChange(option) {\n (0, _object.get)(this, 'onChange')(option);\n },\n getNormalPaymentAmount(result) {\n const value = (0, _object.get)(result, 'normalPaymentAmount');\n return value / 100;\n }\n });\n});","define(\"ui/components/inputs/d-select-autocomplete\", [\"exports\", \"@ember/string\", \"@ember/service\", \"@ember/object/computed\", \"@ember/object\", \"@ember/component\", \"ember-concurrency\", \"ui/mixins/testable-element\", \"ui/utils/get-model-id\"], function (_exports, _string, _service, _computed, _object, _component, _emberConcurrency, _testableElement, _getModelId) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/string\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@ember/object\",0,\"@ember/component\",0,\"ember-concurrency\",0,\"ui/mixins/testable-element\",0,\"ui/utils/get-model-id\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n classNames: ['md-default-theme', 'md-block', 'ember-paper-power-select', 'd-select-autocomplete'],\n classNameBindings: ['isFocused:md-focused', 'isFocused:md-input-focused', 'hasValue:md-input-has-value', 'isInvalid:md-input-invalid'],\n attributeBindings: ['flex'],\n isInvalid: (0, _computed.alias)('errors.length'),\n dataTest: 'd-select-autocomplete',\n dataTestAttributeBinding: 'label',\n store: (0, _service.inject)(),\n ajax: (0, _service.inject)(),\n searchEnabled: true,\n allowClear: true,\n searchField: 'name',\n clearUncommittedSelection: true,\n commitExactMatchOnClose: true,\n commitFirstOptionOnTab: true,\n requireCommittedSelectionState: true,\n didInsertElement() {\n this._super(...arguments);\n // need to turn the browser autocomplete off so it won't be so annoying\n this.element.getElementsByTagName('input')[0].setAttribute('autocomplete', 'off');\n },\n init() {\n this._super(...arguments);\n if (this.clauses === undefined || (0, _object.get)(this, 'clauses.length') < 1) {\n throw 'You must set at least one clause';\n }\n const name = (0, _object.get)(this, 'value.name');\n if (name) {\n (0, _object.set)(this, 'internalValue', name);\n } else {\n (0, _object.set)(this, 'internalValue', '');\n }\n },\n setInternalValue: (0, _object.observer)('value', 'value.name', function () {\n const name = (0, _object.get)(this, 'value.name');\n if (name) {\n (0, _object.set)(this, 'internalValue', name);\n } else {\n (0, _object.set)(this, 'internalValue', '');\n }\n if (!this.value || this._hasCommittedSelection()) {\n (0, _object.set)(this, 'pendingCommittedOption', null);\n }\n }),\n hasValue: (0, _object.computed)('selectedDisplayValue', function () {\n return !!this.selectedDisplayValue;\n }),\n selectedDisplayValue: (0, _object.computed)('internalValue', 'requireCommittedSelectionState', 'value', 'value.id', 'value.name', 'value.content.id', 'pendingCommittedOption', 'pendingCommittedOption.id', 'pendingCommittedOption.name', function () {\n if (this.requireCommittedSelectionState) {\n return this._committedDisplayValue();\n }\n return this.internalValue;\n }),\n resources: (0, _object.computed)('clauses', function () {\n // We may need to allow for a complex clause\n // a simple one is a string but a complex one is an object\n let clauses = this.clauses;\n const resources = {};\n const addClauseToResources = clause => {\n let resourceName, field, withPermissions, contextResourceName, contextResourceId;\n if (typeof clause === 'string') {\n [resourceName, field] = clause.split(':');\n } else {\n resourceName = clause.resource;\n field = clause.field;\n withPermissions = clause.withPermissions;\n contextResourceName = clause.contextResourceName;\n contextResourceId = clause.contextResourceId;\n }\n resources[resourceName] ||= {\n field,\n with_permissions: withPermissions,\n context_resource_name: contextResourceName,\n context_resource_id: contextResourceId\n };\n };\n if (Array.isArray(clauses)) {\n clauses.forEach(clause => addClauseToResources(clause));\n } else {\n addClauseToResources(clauses);\n }\n return resources;\n }),\n query: (0, _emberConcurrency.task)(function* (text) {\n yield (0, _emberConcurrency.timeout)(250);\n let resources = this.resources;\n\n // Add agency_id to insured searches if agencyId prop is provided\n if (this.agencyId && resources.insured) {\n resources = {\n ...resources\n };\n resources.insured = {\n ...resources.insured,\n agency_id: this.agencyId\n };\n }\n let response = yield this.ajax.autocomplete.perform(text, resources);\n let options = response.allOptions;\n let filter = this.filter;\n if (filter) {\n options = options.filter(filter);\n }\n (0, _object.set)(this, 'options', options);\n }).restartable(),\n internalOnChange(option) {\n if (!option) {\n (0, _object.set)(this, 'pendingCommittedOption', null);\n }\n if (this.skipModel) {\n if (option) {\n this.onChange(option, option); // sending twice to mimic the api of finding the record\n (0, _object.set)(this, 'internalValue', option.name);\n } else {\n this.onChange(null, null);\n (0, _object.set)(this, 'internalValue', '');\n }\n return;\n }\n this.findRecord.perform(option);\n },\n internalOnKeydown(select, e) {\n if (!this._isTabEvent(e) || !this.commitFirstOptionOnTab) {\n return;\n }\n const option = this._optionToCommitOnTab(select);\n if (!option) {\n return;\n }\n e?.stopImmediatePropagation?.();\n (0, _object.set)(this, 'pendingCommittedOption', option);\n (0, _object.set)(this, 'internalValue', this._optionLabel(option));\n (0, _object.get)(select, 'actions.choose')?.(option, e);\n return false;\n },\n internalOnClose(select, e) {\n const onClose = this.onClose;\n const searchText = this._normalizedSearchText(select);\n if (this.pendingCommittedOption) {\n this._clearSearchText(select);\n onClose?.(select, e);\n return;\n }\n if (!searchText) {\n if (this._committedSelectionWasCleared(select)) {\n (0, _object.set)(this, 'pendingCommittedOption', null);\n (0, _object.set)(this, 'internalValue', '');\n this.onChange?.(null, null);\n onClose?.(select, e);\n return;\n }\n if (this.clearUncommittedSelection && this.requireCommittedSelectionState && !this._hasCommittedSelection()) {\n (0, _object.set)(this, 'internalValue', '');\n }\n onClose?.(select, e);\n return;\n }\n if (this._hasCommittedSelection()) {\n (0, _object.set)(this, 'internalValue', this._valueLabel());\n this._clearSearchText(select);\n onClose?.(select, e);\n return;\n }\n if (this.commitExactMatchOnClose) {\n const exactOption = this._findExactMatch(searchText);\n if (exactOption) {\n this.internalOnChange(exactOption);\n this._clearSearchText(select);\n onClose?.(select, e);\n return;\n }\n }\n if (this.clearUncommittedSelection) {\n this._clearSearchText(select);\n (0, _object.set)(this, 'pendingCommittedOption', null);\n (0, _object.set)(this, 'internalValue', '');\n this.onChange?.(null, null);\n }\n onClose?.(select, e);\n },\n findRecord: (0, _emberConcurrency.task)(function* (option) {\n if (option) {\n if (this.skipModel) {\n this.onChange(option, option);\n (0, _object.set)(this, 'internalValue', option.name);\n return;\n }\n let modelName = this.modelName || option.resourceName;\n let optionId = (0, _getModelId.default)(option);\n if (!modelName || !optionId) {\n return;\n }\n let record = yield this.store.findRecord(modelName, optionId);\n this.onChange(record, option);\n (0, _object.set)(this, 'pendingCommittedOption', null);\n if (record.name) {\n (0, _object.set)(this, 'internalValue', record.name);\n } else {\n (0, _object.set)(this, 'internalValue', record);\n }\n } else {\n this.onChange(option, option);\n (0, _object.set)(this, 'pendingCommittedOption', null);\n (0, _object.set)(this, 'internalValue', '');\n }\n }),\n internalLabel: (0, _object.computed)('hasValue', 'label', function () {\n let label = this.label;\n if (this.hasValue) {\n label = (0, _string.htmlSafe)(`${label} ✓`);\n }\n return label;\n }),\n _clearSearchText(select) {\n (0, _object.get)(select, 'actions.search')?.('');\n },\n _findExactMatch(searchText) {\n const normalizedSearchText = `${searchText}`.trim().toLowerCase();\n const options = this.options || [];\n const matchingOptions = options.filter(option => {\n const optionLabel = `${this._optionLabel(option) || ''}`.trim().toLowerCase();\n return optionLabel === normalizedSearchText;\n });\n return matchingOptions.length === 1 ? matchingOptions[0] : null;\n },\n _committedDisplayValue() {\n if (this._hasCommittedSelection()) {\n return this._valueLabel();\n }\n const pendingCommittedOption = this.pendingCommittedOption;\n if (pendingCommittedOption && (0, _getModelId.default)(pendingCommittedOption)) {\n return this._optionLabel(pendingCommittedOption);\n }\n return '';\n },\n _hasCommittedSelection() {\n const value = this.value;\n if (!value) {\n return false;\n }\n if (typeof value === 'string' || typeof value === 'number') {\n return !this.requireCommittedSelectionState;\n }\n return !!(0, _getModelId.default)(value);\n },\n _committedSelectionWasCleared(select) {\n return this.clearUncommittedSelection && this.requireCommittedSelectionState && this._hasCommittedSelection() && this._selectSelectionWasCleared(select);\n },\n _selectSelectionWasCleared(select) {\n return !!select && 'selected' in select && !select.selected;\n },\n _normalizedSearchText(select) {\n return `${select.searchText || ''}`.trim();\n },\n _isTabEvent(e) {\n return e?.key === 'Tab' || e?.keyCode === 9 || e?.which === 9;\n },\n _optionToCommitOnTab(select) {\n if (!this._normalizedSearchText(select)) {\n return null;\n }\n return this._selectableOption(select.highlighted) || this._firstSelectableOption(select.results) || this._firstSelectableOption(this.options);\n },\n _selectableOption(option) {\n if (!option) {\n return null;\n }\n if (typeof option === 'object' && option.disabled) {\n return null;\n }\n if (this.skipModel) {\n return option;\n }\n const modelName = this.modelName || option.resourceName;\n return modelName && (0, _getModelId.default)(option) ? option : null;\n },\n _firstSelectableOption(options) {\n if (!options) {\n return null;\n }\n const length = options.length || 0;\n for (let index = 0; index < length; index += 1) {\n const option = options.objectAt ? options.objectAt(index) : options[index];\n if (option && typeof option === 'object' && option.disabled) {\n continue;\n }\n const childOption = option && typeof option === 'object' ? this._firstSelectableOption(option.options) : null;\n if (childOption) {\n return childOption;\n }\n const selectableOption = this._selectableOption(option);\n if (selectableOption) {\n return selectableOption;\n }\n }\n return null;\n },\n _optionLabel(option) {\n if (!option) {\n return '';\n }\n if (typeof option === 'string' || typeof option === 'number') {\n return option;\n }\n return (0, _object.get)(option, this.searchField) || option.name || option;\n },\n _valueLabel() {\n return this._optionLabel(this.value);\n }\n });\n});","define(\"ui/components/inputs/d-select-constant\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/inputs/d-select\", \"ember-concurrency\", \"ui/templates/components/inputs/d-select\", \"ui/helpers/to-human\"], function (_exports, _service, _object, _dSelect, _emberConcurrency, _dSelect2, _toHuman) {\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,\"ui/components/inputs/d-select\",0,\"ember-concurrency\",0,\"ui/templates/components/inputs/d-select\",0,\"ui/helpers/to-human\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dSelect.default.extend({\n dataTest: 'd-select-constant',\n layout: _dSelect2.default,\n flex: 100,\n searchField: 'name',\n store: (0, _service.inject)(),\n ajax: (0, _service.inject)(),\n setup: (0, _emberConcurrency.task)(function* () {\n let options = yield (0, _object.get)(this, 'ajax').constant((0, _object.get)(this, 'constantName'));\n let without = (0, _object.get)(this, 'without') || [];\n without = without.map(w => w.toUpperCase());\n options = options.reject(option => {\n return without.indexOf(option.name.toUpperCase()) > -1;\n });\n options.forEach(option => {\n option.name = (0, _toHuman.toHuman)(option.name);\n });\n (0, _object.set)(this, 'options', options);\n }).on('init'),\n internalValue: (0, _object.computed)('value', 'value.name', 'options.@each.{id,name}', function () {\n let value = (0, _object.get)(this, 'value');\n if (typeof value === 'string') {\n return (0, _object.get)(this, 'options')?.find(option => `${option.id}` === value)?.name || value;\n }\n if (typeof value === 'number') {\n return (0, _object.get)(this, 'options')?.find(option => option.id === value)?.name;\n }\n let name = (0, _object.get)(this, 'value.name');\n if (name) {\n return name;\n }\n return undefined;\n }),\n internalOnChange(option) {\n if (option) {\n let modelName = (0, _object.get)(this, 'modelName');\n if (modelName) {\n (0, _object.get)(this, 'store').findRecord(modelName, option.id).then(newModel => {\n (0, _object.get)(this, 'onChange')(newModel, option);\n });\n } else {\n (0, _object.get)(this, 'onChange')(option.value || option.name, option);\n }\n } else {\n (0, _object.get)(this, 'onChange')(null);\n }\n }\n });\n});","define(\"ui/components/inputs/d-select-state\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ui/components/inputs/d-select\", \"ember-concurrency\", \"ui/templates/components/inputs/d-select\"], function (_exports, _service, _object, _dSelect, _emberConcurrency, _dSelect2) {\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,\"ui/components/inputs/d-select\",0,\"ember-concurrency\",0,\"ui/templates/components/inputs/d-select\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _dSelect.default.extend({\n dataTest: 'd-select-state',\n layout: _dSelect2.default,\n flex: 100,\n searchField: 'name',\n store: (0, _service.inject)(),\n ajax: (0, _service.inject)(),\n setup: (0, _emberConcurrency.task)(function* () {\n let options = yield (0, _object.get)(this, 'ajax').constant((0, _object.get)(this, 'constantName'));\n let without = (0, _object.get)(this, 'without') || [];\n options = options.reject(option => {\n return without.indexOf(option.name) > -1;\n });\n (0, _object.set)(this, 'options', options);\n }).on('init'),\n internalValue: (0, _object.computed)('value', 'value.name', function () {\n let value = (0, _object.get)(this, 'value');\n if (typeof value === 'string') {\n return value;\n }\n let name = (0, _object.get)(this, 'value.name');\n if (name) {\n return name;\n }\n }),\n internalOnChange(option) {\n if (option) {\n let modelName = (0, _object.get)(this, 'modelName');\n if (modelName) {\n (0, _object.get)(this, 'store').findRecord(modelName, option.id).then(newModel => {\n (0, _object.get)(this, 'onChange')(newModel, option);\n });\n } else {\n (0, _object.get)(this, 'onChange')(option.value || option.name, option);\n }\n } else {\n (0, _object.get)(this, 'onChange')(null);\n }\n }\n });\n});","define(\"ui/components/inputs/d-select\", [\"exports\", \"@ember/object/computed\", \"@ember/object\", \"ui/components/inputs/base-input\"], function (_exports, _computed, _object, _baseInput) {\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/object\",0,\"ui/components/inputs/base-input\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseInput.default.extend({\n init() {\n this._super(...arguments);\n this.tagName = ['md-input-container'];\n },\n // should dynamically add the name of the select to the list of classes\n classNames: ['md-default-theme', 'md-block', 'ember-paper-power-select'],\n classNameBindings: ['isFocused:md-focused', 'isFocused:md-input-focused', 'internalValue:md-input-has-value', 'isInvalid:md-input-invalid'],\n attributeBindings: ['flex'],\n dataTest: 'd-select',\n dataTestAttributeBinding: 'label',\n flex: 100,\n block: false,\n isFocused: false,\n searchEnabled: false,\n allowClear: true,\n loadingMessage: \"Searching...\",\n isInvalid: (0, _computed.alias)('errors.length'),\n internalValue: (0, _object.computed)('value', function () {\n let value = this.value;\n\n // moment objects get screwey when passed to `to-human` helper so this is an attempt to tame that until we can get rid of moment\n if (value && moment.isMoment(value)) {\n value = value.toDate();\n }\n return value;\n }),\n internalOnChange(option) {\n if (option && option.key && option.name) {\n (0, _object.get)(this, 'onChange')(option.key, option.name);\n } else {\n (0, _object.get)(this, 'onChange')(option);\n }\n }\n });\n});","define(\"ui/components/inputs/d-text-input\", [\"exports\", \"ember-paper/components/paper-input\", \"ui/mixins/testable-element\", \"ui/templates/components/inputs/d-text-input\"], function (_exports, _paperInput, _testableElement, _dTextInput) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-input\",0,\"ui/mixins/testable-element\",0,\"ui/templates/components/inputs/d-text-input\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperInput.default.extend(_testableElement.default, {\n classNames: ['md-default-theme', 'ember-paper-power-select'],\n classNameBindings: ['isFocused:md-focused', 'isFocused:md-input-focused', 'internalValue:md-input-has-value', 'isInvalid:md-input-invalid'],\n attributeBindings: ['flex'],\n dataTest: 'd-text-input',\n dataTestAttributeBinding: 'label',\n layout: _dTextInput.default,\n flex: 100,\n // Preserve the component's rendered default while allowing explicit false.\n block: true,\n click() {\n let onclick = this.onclick;\n if (onclick) {\n this.onclick();\n }\n }\n });\n});","define(\"ui/components/inputs/ember-paper-power-select\", [\"exports\", \"@ember/object/computed\", \"ui/components/inputs/base-input\"], function (_exports, _computed, _baseInput) {\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,\"ui/components/inputs/base-input\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseInput.default.extend({\n dataTest: 'd-select',\n dataTestAttributeBinding: 'label',\n init() {\n this._super(...arguments);\n this.tagName = ['md-input-container'];\n },\n classNames: ['md-default-theme', 'md-block', 'ember-paper-power-select'],\n classNameBindings: ['isFocused:md-focused', 'isFocused:md-input-focused', 'value:md-input-has-value', 'isInvalid:md-input-invalid'],\n attributeBindings: ['flex'],\n isFocused: false,\n /**\n Flex width of element as %, increments of 5\n @property flex\n @type String\n @default null\n */\n flex: null,\n /**\n Input value\n @property value\n @type String\n @default ''\n @required\n */\n value: '',\n /**\n Label\n @property label\n @type String\n @default ''\n @required\n */\n label: '',\n /**\n Not sure\n @property options\n @type Object\n @default ''\n @required\n */\n options: '',\n /**\n Errors for this attribute\n @property errors\n @type Array\n @default null\n @required\n */\n errors: null,\n isInvalid: (0, _computed.alias)('errors.length')\n });\n});","define(\"ui/components/inputs/g-map-input\", [\"exports\", \"@ember/object/computed\", \"@ember/object\", \"ui/components/inputs/base-input\"], function (_exports, _computed, _object, _baseInput) {\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/object\",0,\"ui/components/inputs/base-input\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _baseInput.default.extend({\n dataTest: 'g-map-input',\n classNames: ['g-map-input'],\n attributeBindings: ['flex'],\n isFocused: false,\n flex: 100,\n isInvalid: (0, _computed.alias)('errors.length'),\n showFields: (0, _object.computed)('showingAddressFields', 'errorsPresent', function () {\n return (0, _object.get)(this, 'showingAddressFields') || !(0, _object.get)(this, 'errorsPresent');\n }),\n initAutocomplete() {\n this.reset();\n const input = document.getElementById(this.elementId).querySelector('input');\n const autocomplete = new google.maps.places.Autocomplete(input, {\n types: ['geocode']\n });\n const pullValuesFromPlace = place => {\n (0, _object.set)(this, 'addressHtml', place.adr_address);\n let components = {};\n components.addressComponents = place.address_components;\n components.addressHtml = place.adr_address;\n if (place.geometry) {\n components.latitude = place.geometry.location.lat();\n components.longitude = place.geometry.location.lng();\n }\n components.placeId = place.place_id;\n if (place.address_components) {\n place.address_components.forEach(component => {\n components[component.types[0]] = component.long_name;\n });\n }\n components.isUS = false;\n if (components.country === 'United States') {\n components.isUS = true;\n components.county = components.administrative_area_level_2;\n components.state = components.administrative_area_level_1;\n components.city = components.locality;\n components.address_1 = `${components.street_number} ${components.route}`;\n components.formattedAddress = place.formatted_address;\n let zipcode = [];\n if (components.postal_code) {\n zipcode.pushObject(components.postal_code);\n }\n if (components.postal_code_suffix) {\n zipcode.pushObject(components.postal_code_suffix);\n }\n components.zipcode = zipcode.join('-');\n } else if (components.country === \"Guam\") {\n components.isUS = true;\n components.city = components.locality;\n components.address_1 = [components.street_number, components.route].join(' ');\n components.state = \"Guam\";\n components.country = \"United States\";\n let zipcode = [];\n if (components.postal_code) {\n zipcode.pushObject(components.postal_code);\n }\n if (components.postal_code_suffix) {\n zipcode.pushObject(components.postal_code_suffix);\n }\n components.zipcode = zipcode.join('-');\n components.formattedAddress = [components.street_number, components.route, components.state, components.country].join(' ');\n } else if (components.country === \"Puerto Rico\") {\n components.isUS = true;\n components.city = components.locality;\n components.address_1 = [components.street_number, components.route].join(' ');\n components.state = \"Puerto Rico\";\n components.country = \"United States\";\n let zipcode = [];\n if (components.postal_code) {\n zipcode.pushObject(components.postal_code);\n }\n if (components.postal_code_suffix) {\n zipcode.pushObject(components.postal_code_suffix);\n }\n components.zipcode = zipcode.join('-');\n components.formattedAddress = [components.street_number, components.route, components.state, components.country].join(' ');\n } else if (components.country === \"U.S. Virgin Islands\") {\n components.isUS = true;\n components.city = components.administrative_area_level_1;\n components.address_1 = [components.street_number, components.route].join(' ');\n components.state = \"U.S. Virgin Islands\";\n components.country = \"United States\";\n let zipcode = [];\n if (components.postal_code) {\n zipcode.pushObject(components.postal_code);\n }\n if (components.postal_code_suffix) {\n zipcode.pushObject(components.postal_code_suffix);\n }\n components.zipcode = zipcode.join('-');\n components.formattedAddress = [components.street_number, components.route, components.state, components.country].join(' ');\n } else {\n const topRow = [components.street_number, components.route];\n const bottomRow = [];\n if (components.sublocality_level_1) {\n bottomRow.pushObject(components.sublocality_level_1);\n }\n if (components.locality) {\n bottomRow.pushObject(components.locality);\n }\n if (components.postal_code) {\n bottomRow.pushObject(components.postal_code);\n }\n if (components.postal_code_suffix) {\n bottomRow.pushObject(components.postal_code_suffix);\n }\n if (components.country) {\n bottomRow.pushObject(components.country);\n }\n components.formattedAddress = [topRow.join(' '), bottomRow.join(', ')].join('\\n');\n }\n\n // if the formattedAddress has no characters\n if (!/[a-zA-Z]/g.test(components.formattedAddress)) {\n components.formattedAddress = input.value;\n }\n (0, _object.set)(this, 'value', components.formattedAddress);\n return components;\n };\n const model = this.model;\n const onChange = this.onChange;\n autocomplete.addListener('place_changed', () => {\n const place = autocomplete.getPlace();\n const values = pullValuesFromPlace(place);\n values.prenormalized = place;\n (0, _object.set)(this, 'showingAddressFields', true);\n if (model) {\n model.setProperties(values);\n } else if (onChange) {\n onChange(values);\n } else {\n throw new Error(`A g-map input must have a model to update or an onChange event to fire.`);\n }\n (0, _object.set)(this, 'completed', true);\n (0, _object.set)(this, 'info', []);\n });\n },\n findNewPlaces(newValue) {\n this.reset();\n (0, _object.set)(this, 'value', newValue);\n },\n reset() {\n (0, _object.set)(this, 'completed', false);\n (0, _object.set)(this, 'info', []);\n }\n });\n});","define(\"ui/components/javascript-script-form\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n tagName: '',\n // Props\n script: null,\n onSave: null,\n onCancel: null,\n isEditing: false,\n actions: {\n handleSave() {\n if (this.onSave) {\n this.onSave(this.script);\n }\n },\n handleCancel() {\n if (this.onCancel) {\n this.onCancel(this.script);\n }\n }\n }\n });\n});","define(\"ui/components/maybe-in-element\", [\"exports\", \"ember-maybe-in-element/components/maybe-in-element\"], function (_exports, _maybeInElement) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _maybeInElement.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-maybe-in-element/components/maybe-in-element\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/modals/collect-down-payment\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _templateFactory, _templateOnly) {\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\"eaimeta@70e063a35619d71f\n const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @contract}}\n \n \n \n
\n
\n
\n

Down Payment Amount

\n

\n An invoice for the down payment will be sent from Coral Billing\n to the provided email address. It will include an option to set up recurring payments.\n

\n \n
\n
\n \n
\n \n {{#unless @contract.isEndorsement}}\n \n \n
\n {{/unless}}\n
\n \n {{#unless @contract.isEndorsement}}\n \n {{@totalDue}}\n \n {{/unless}}\n \n
\n
\n \n
\n
\n
\n
\n
\n
\n

Fund Commission Directly

\n

If you would like commissions collected in the down payment to be funded to your agency directly, then enable this\n option below.

\n \n
\n
\n \n
\n
\n \n {{#if @contract.downPaymentRequest.fundCommissionsSeparately}}\n

Policies

\n
\n \n \n \n {{fp.policy.number}}\n {{fp.policy.coverageType.name}}\n {{fp.policy.carrier.name}}\n {{format-currency fp.policy.premium}}\n \n \n \n \n \n \n
\n
\n
\n

New Funding Details

\n
\n \n \n \n {{to-human funding.purpose}}\n {{funding.fundingPaymentRecipient.name}}\n {{or (to-human funding.fundingPaymentRecipient.paymentType) \"--\"}}\n {{format-currency (sum funding.amount funding.adjustmentAmount)}}\n \n \n
\n {{/if}}\n
\n
\n
\n \n
\n
\n
\n \n

Send Invoice

\n

\n Creating an invoice will require the down payment to be paid before the loan can be activated.\n

\n \n {{#paper-radio-group\n groupValue=@invoiceDeliveryMethod\n onChange=(action @onInvoiceDeliveryMethodChange)\n class=\"layout-column\"\n as |group|}}\n {{#group.radio value=\"create-link-only\" disabled=@esignFlowLocked}}\n
\n Create link only\n Generate an invoice URL that I can copy.\n {{#if @esignFlowLocked}}\n Void this request before switching to a payment-only link.\n {{/if}}\n
\n {{/group.radio}}\n \n {{#group.radio value=\"email-payment-link\" disabled=(or @esignFlowLocked @paymentEmailLocked)}}\n
\n Email invoice link\n Send an invoice link to the insured.\n {{#if @esignFlowLocked}}\n Void this request before switching to a payment-only email.\n {{else if @paymentEmailLocked}}\n Void this request before sending another invoice email.\n {{/if}}\n
\n {{/group.radio}}\n \n {{#group.radio value=\"email-esign-and-payment-link\" disabled=@paymentOnlyFlowLocked}}\n
\n Email combined e-signature request and invoice link\n Requires an e-signature before the insured can pay the down payment.\n {{#if @paymentOnlyFlowLocked}}\n Void this request before switching to e-signature.\n {{/if}}\n
\n {{/group.radio}}\n {{/paper-radio-group}}\n \n {{#if (or\n (eq @invoiceDeliveryMethod \"email-payment-link\")\n (eq @invoiceDeliveryMethod \"email-esign-and-payment-link\")\n )}}\n
\n \n
\n {{/if}}\n \n \n {{#if (eq @invoiceDeliveryMethod \"email-esign-and-payment-link\")}}\n
\n \n
\n {{/if}}\n \n
\n {{#if (eq @invoiceDeliveryMethod \"create-link-only\")}}\n \n {{else if (eq @invoiceDeliveryMethod \"email-payment-link\")}}\n \n {{else}}\n \n {{/if}}\n
\n {{#if @invoiceUrl}}\n
\n

\n Down Payment Invoice:\n \n {{@invoiceUrl}}\n \n

\n

\n
\n
\n {{/if}}\n
\n \n \n \n \n \n \n \n {{/if}}\n \n */\n {\n \"id\": \"5zNgSbVr\",\n \"block\": \"[[[41,[30,1],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@isShowing\\\"],[[52,[30,1,[\\\"downPaymentRequest\\\",\\\"requestedAt\\\"]],\\\"Update Down Payment Request\\\",\\\"Collect Down Payment\\\"],[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n \\\"],[10,\\\"md-dialog-content\\\"],[14,0,\\\"md-dialog-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-row flex-grow\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-column flex\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[12],[1,\\\"Down Payment Amount\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n An invoice for the down payment will be sent from \\\"],[10,3],[14,6,\\\"https://coralbilling.com\\\"],[12],[1,\\\"Coral Billing\\\"],[13],[1,\\\"\\\\n to the provided email address. It will include an option to set up recurring payments.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"layout-row layout-align-start-end\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-column flex flex-30\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,2],[[4,[38,5],[\\\"focusout\\\",[30,4]],null]],[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@errors\\\"],[\\\"Down Payment to Collect\\\",[30,1,[\\\"downPaymentRequest\\\",\\\"downPaymentToCollect\\\"]],[28,[37,3],[[30,0],[28,[37,4],[[30,1,[\\\"downPaymentRequest\\\",\\\"downPaymentToCollect\\\"]]],null]],null],[30,3]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,1,[\\\"isEndorsement\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"layout-column flex-offset-10\\\"],[14,5,\\\"max-width: 300px; flex: 0 0 300px;\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,7],[[24,0,\\\"static-label\\\"],[4,[38,5],[\\\"focusout\\\",[30,4]],null]],[[\\\"@reserveMessageSpace\\\",\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@errors\\\"],[true,\\\"Installments for finance company to collect along with down payment\\\",[30,1,[\\\"downPaymentRequest\\\",\\\"installmentsToCollectAtActivation\\\"]],[28,[37,3],[[30,0],[28,[37,4],[[30,1,[\\\"downPaymentRequest\\\",\\\"installmentsToCollectAtActivation\\\"]]],null]],null],[30,5]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,1,[\\\"isEndorsement\\\"]]],[[[1,\\\" \\\"],[8,[39,8],null,[[\\\"@class\\\",\\\"@label\\\"],[\\\"font-weight-500 font-size-16\\\",\\\"Total due\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,1],[12],[1,[30,7]],[13],[1,\\\"\\\\n \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-row flex-grow\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-column flex\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[12],[1,\\\"Fund Commission Directly\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"If you would like commissions collected in the down payment to be funded to your agency directly, then enable this\\\\n option below.\\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"layout-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-column flex flex-40\\\"],[14,5,\\\"margin-top: 1rem;\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@disabled\\\"],[\\\"Fund commission directly\\\",[30,1,[\\\"downPaymentRequest\\\",\\\"fundCommissionsSeparately\\\"]],[30,8],[28,[37,10],[[30,1,[\\\"agencyHasFundingRecipient\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"downPaymentRequest\\\",\\\"fundCommissionsSeparately\\\"]],[[[1,\\\" \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Policies\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-column\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@headers\\\",\\\"@list\\\"],[[28,[37,12],[\\\"Policy Number\\\",\\\"Coverage Type\\\",\\\"Carrier\\\",\\\"Premium\\\",\\\"Commission\\\"],null],[28,[37,13],[\\\"premium\\\",[30,9]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,10,[\\\"policy\\\",\\\"number\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,10,[\\\"policy\\\",\\\"coverageType\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,10,[\\\"policy\\\",\\\"carrier\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,14],[[30,10,[\\\"policy\\\",\\\"premium\\\"]]],null]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,2],[[4,[38,5],[\\\"focusout\\\",[28,[37,3],[[30,0],[30,12],[30,10]],null]],null]],[[\\\"@value\\\",\\\"@onChange\\\",\\\"@errors\\\"],[[30,10,[\\\"commission\\\"]],[28,[37,3],[[30,0],[30,11],[30,10]],null],[30,10,[\\\"policy\\\",\\\"errors\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"]],[10]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"New Funding Details\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-column\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@headers\\\",\\\"@list\\\"],[[28,[37,12],[\\\"Funding Type\\\",\\\"Recipient\\\",\\\"Payment Type\\\",\\\"Amount\\\"],null],[30,13]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,15],[[30,14,[\\\"purpose\\\"]]],null]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,14,[\\\"fundingPaymentRecipient\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[28,[37,15],[[30,14,[\\\"fundingPaymentRecipient\\\",\\\"paymentType\\\"]]],null],\\\"--\\\"],null]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,14],[[28,[37,17],[[30,14,[\\\"amount\\\"]],[30,14,[\\\"adjustmentAmount\\\"]]],null]],null]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[14]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"h1\\\"],[12],[1,\\\"Send Invoice\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n Creating an invoice will require the down payment to be paid before the loan can be activated.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[6,[39,18],null,[[\\\"groupValue\\\",\\\"onChange\\\",\\\"class\\\"],[[30,15],[28,[37,3],[[30,0],[30,16]],null],\\\"layout-column\\\"]],[[\\\"default\\\"],[[[[6,[30,17,[\\\"radio\\\"]],null,[[\\\"value\\\",\\\"disabled\\\"],[\\\"create-link-only\\\",[30,18]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"layout-column \\\",[52,[30,18],\\\"text-gray-500\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[10,\\\"b\\\"],[12],[1,\\\"Create link only\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"text-gray-600\\\"],[12],[1,\\\"Generate an invoice URL that I can copy.\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,18],[[[1,\\\" \\\"],[10,1],[14,0,\\\"text-gray-600\\\"],[12],[1,\\\"Void this request before switching to a payment-only link.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\" \\\\n\\\"],[6,[30,17,[\\\"radio\\\"]],null,[[\\\"value\\\",\\\"disabled\\\"],[\\\"email-payment-link\\\",[28,[37,16],[[30,18],[30,19]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"layout-column \\\",[52,[28,[37,16],[[30,18],[30,19]],null],\\\"text-gray-500\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[10,\\\"b\\\"],[12],[1,\\\"Email invoice link\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"text-gray-600\\\"],[12],[1,\\\"Send an invoice link to the insured.\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,18],[[[1,\\\" \\\"],[10,1],[14,0,\\\"text-gray-600\\\"],[12],[1,\\\"Void this request before switching to a payment-only email.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,19],[[[1,\\\" \\\"],[10,1],[14,0,\\\"text-gray-600\\\"],[12],[1,\\\"Void this request before sending another invoice email.\\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\" \\\\n\\\"],[6,[30,17,[\\\"radio\\\"]],null,[[\\\"value\\\",\\\"disabled\\\"],[\\\"email-esign-and-payment-link\\\",[30,20]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"layout-column \\\",[52,[30,20],\\\"text-gray-500\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[10,\\\"b\\\"],[12],[1,\\\"Email combined e-signature request and invoice link\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"text-gray-600\\\"],[12],[1,\\\"Requires an e-signature before the insured can pay the down payment.\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,20],[[[1,\\\" \\\"],[10,1],[14,0,\\\"text-gray-600\\\"],[12],[1,\\\"Void this request before switching to e-signature.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[17]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[28,[37,19],[[30,15],\\\"email-payment-link\\\"],null],[28,[37,19],[[30,15],\\\"email-esign-and-payment-link\\\"],null]],null],[[[1,\\\" \\\"],[10,0],[14,5,\\\"max-width: 300px; flex: 0 0 300px;\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,21],[52,[28,[37,19],[[30,15],\\\"email-esign-and-payment-link\\\"],null],\\\"Invoice and e-signature recipient email\\\",\\\"Invoice recipient email\\\"],\\\"Enter email address\\\",[30,22]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,19],[[30,15],\\\"email-esign-and-payment-link\\\"],null],[[[1,\\\" \\\"],[10,0],[14,5,\\\"max-width: 300px; flex: 0 0 300px; margin-top: 16px;\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,20],null,[[\\\"@dataTestOverride\\\",\\\"@value\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[\\\"collect-down-payment-agent-esign-email\\\",[28,[37,16],[[30,1,[\\\"downPaymentRequest\\\",\\\"agencyEsignEmail\\\"]],\\\"\\\"],null],[30,23],\\\"Agent e-signature recipient email\\\",\\\"Enter agent e-signature recipient email\\\",[30,24]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-row flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,15],\\\"create-link-only\\\"],null],[[[1,\\\" \\\"],[8,[39,21],null,[[\\\"@dataTestOverride\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"collect-down-payment-get-invoice-url\\\",[28,[37,16],[[30,18],[28,[37,10],[[30,25]],null]],null],\\\"Get Invoice URL\\\",[28,[37,3],[[30,0],[30,26],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,15],\\\"email-payment-link\\\"],null],[[[1,\\\" \\\"],[8,[39,21],null,[[\\\"@dataTestOverride\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"collect-down-payment-email-invoice\\\",[28,[37,16],[[30,18],[30,19],[28,[37,10],[[30,27]],null],[28,[37,10],[[30,25]],null]],null],\\\"Email Invoice\\\",[28,[37,3],[[30,0],[30,26],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[8,[39,21],null,[[\\\"@dataTestOverride\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"collect-down-payment-email-invoice\\\",[28,[37,16],[[30,20],[30,28],[28,[37,10],[[30,27]],null],[28,[37,10],[[30,25]],null]],null],\\\"Email Invoice & E-Signature\\\",[28,[37,3],[[30,0],[30,26],true],null]]],null],[1,\\\"\\\\n \\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,29],[[[1,\\\" \\\"],[10,0],[14,0,\\\"layout-row flex\\\"],[14,5,\\\"padding-left: 8px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n Down Payment Invoice:\\\\n \\\"],[10,3],[14,\\\"data-test\\\",\\\"collect-down-payment-invoice-url\\\"],[15,6,[30,29]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,29]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[8,[39,22],null,[[\\\"@text\\\"],[[30,29]]],null],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"md-dialog-actions\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@primary\\\",\\\"@onClick\\\"],[\\\"Close\\\",false,[30,30]]],null],[1,\\\"\\\\n\\\\n \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@class\\\",\\\"@primary\\\",\\\"@disabled\\\",\\\"@onClick\\\"],[\\\"Void Invoice\\\",[52,[30,31],\\\"alert\\\"],false,[28,[37,10],[[30,31]],null],[28,[37,3],[[30,0],[30,32]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@contract\\\",\\\"@isShowing\\\",\\\"@downPaymentToCollectErrors\\\",\\\"@onUpdateDownPaymentRequest\\\",\\\"@installmentsToCollectAtActivationErrors\\\",\\\"label\\\",\\\"@totalDue\\\",\\\"@onToggleFundCommissionsSeparately\\\",\\\"@fundingPolicies\\\",\\\"fp\\\",\\\"@onUpdatePolicyCommission\\\",\\\"@onUpdateContractPolicy\\\",\\\"@fundingPoliciesWithCommission\\\",\\\"funding\\\",\\\"@invoiceDeliveryMethod\\\",\\\"@onInvoiceDeliveryMethodChange\\\",\\\"group\\\",\\\"@esignFlowLocked\\\",\\\"@paymentEmailLocked\\\",\\\"@paymentOnlyFlowLocked\\\",\\\"@email\\\",\\\"@onEmailChange\\\",\\\"@agencyEsignEmailErrors\\\",\\\"@onUpdateAgencyEsignEmail\\\",\\\"@isDownPaymentRequestValid\\\",\\\"@onRequestDownPaymentUrl\\\",\\\"@isEmailValid\\\",\\\"@esignEmailLocked\\\",\\\"@invoiceUrl\\\",\\\"@onClose\\\",\\\"@dpCanBeVoided\\\",\\\"@deleteDownPaymentRequest\\\"],false,[\\\"if\\\",\\\"modals/d-base\\\",\\\"inputs/d-currency-input\\\",\\\"action\\\",\\\"mut\\\",\\\"on\\\",\\\"unless\\\",\\\"inputs/d-number-input\\\",\\\"forms/card-group\\\",\\\"inputs/d-checkbox\\\",\\\"not\\\",\\\"tables/d-table\\\",\\\"array\\\",\\\"sort-by\\\",\\\"format-currency\\\",\\\"to-human\\\",\\\"or\\\",\\\"sum\\\",\\\"paper-radio-group\\\",\\\"eq\\\",\\\"inputs/d-text-input\\\",\\\"buttons/d-button\\\",\\\"copy-to-clipboard\\\"]]\",\n \"moduleName\": \"ui/components/modals/collect-down-payment.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ui/components/modals/d-adjustment\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n tagName: '',\n store: (0, _service.inject)(),\n isShowing: false,\n amount: 0,\n comment: '',\n canProvideBrand: true,\n internalSaveAdjustment(amount, comment, sendNsfCheck, brand) {\n this.saveAdjustment(amount, comment, sendNsfCheck, brand).then(() => {\n if (this.isDestroyed) {\n return;\n }\n (0, _object.set)(this, 'amount', 0);\n (0, _object.set)(this, 'comment', '');\n (0, _object.set)(this, 'brand', '');\n (0, _object.set)(this, 'isAdjusting', false);\n });\n },\n internalCancelAdjustment() {\n const cancelAdjustment = this.cancelAdjustment;\n if (cancelAdjustment) {\n cancelAdjustment();\n }\n (0, _object.set)(this, 'isAdjusting', false);\n (0, _object.set)(this, 'amount', 0);\n (0, _object.set)(this, 'comment', '');\n (0, _object.set)(this, 'brand', '');\n }\n });\n});","define(\"ui/components/modals/d-base\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _component, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n classNames: ['d-modal'],\n dataTest: 'd-modal',\n dataTestAttributeBinding: 'title',\n isShowing: false\n });\n});","define(\"ui/components/modals/d-confirm-with-note\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n tagName: '',\n store: (0, _service.inject)(),\n isShowing: false,\n note: (0, _object.computed)('systemCommentPath', 'attachNoteTo', 'attachedModelName', function () {\n let systemCommentPath = (0, _object.get)(this, 'systemCommentPath');\n let attachNoteTo = (0, _object.get)(this, 'attachNoteTo');\n let attachedModelName = (0, _object.get)(this, 'attachedModelName');\n let noteParams = {\n systemCommentPath\n };\n\n // prefer to use `createNote` over this; this should be depricated\n if (attachNoteTo && attachedModelName) {\n noteParams[attachedModelName] = attachNoteTo;\n }\n const createNote = (0, _object.get)(this, 'createNote');\n if (createNote) {\n const note = createNote();\n note.setProperties(noteParams);\n return note;\n } else {\n return this.store.createRecord('note', noteParams);\n }\n }),\n inernalDidConfirm() {\n (0, _object.get)(this, 'note').save().then(() => {\n const didConfirm = this.didConfirm;\n if (didConfirm) {\n const confirmed = didConfirm();\n if (confirmed && confirmed.then) {\n confirmed.then(() => {\n (0, _object.set)(this, 'isShowing', false);\n });\n } else {\n (0, _object.set)(this, 'isShowing', false);\n }\n }\n });\n },\n internalDidCancel() {\n (0, _object.set)(this, 'isShowing', false);\n (0, _object.set)(this, 'note.comment', null);\n }\n });\n});","define(\"ui/components/modals/d-confirm\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n /* eslint-disable ember/no-classic-components, ember/no-classic-classes */\n var _default = _exports.default = _component.default.extend({\n tagName: '',\n store: (0, _service.inject)(),\n isShowing: false,\n // If didConfirm is not present the confirm button acts as an acknowlegement\n confirmButtonLabel: (0, _object.computed)('didConfirm', function () {\n return this.didConfirm ? 'Confirm' : 'OK';\n }),\n inernalDidConfirm() {\n const didConfirmFunc = this.didConfirm;\n if (didConfirmFunc) {\n const didConfirm = didConfirmFunc(this.comment);\n if (didConfirm && didConfirm.then) {\n didConfirm.then(confirmed => {\n // Existing async callbacks may resolve undefined on success.\n if (confirmed !== false) {\n (0, _object.set)(this, 'isShowing', false);\n }\n });\n } else if (didConfirm) {\n (0, _object.set)(this, 'isShowing', false);\n }\n } else {\n (0, _object.set)(this, 'isShowing', false);\n }\n }\n });\n});","define(\"ui/components/modals/d-delete-prompt\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n tagName: '',\n alert: (0, _service.inject)(),\n isShowing: false,\n actions: {\n delete() {\n let didDelete = this.didDelete;\n this.model.destroyRecord().then(() => {\n if (!this.isDestroyed && !this.isDestroying) {\n (0, _object.set)(this, 'isShowing', false);\n }\n this.alert.success();\n if (didDelete) {\n didDelete();\n }\n }, error => {\n this.set('error', error);\n this.alert.error(error);\n });\n }\n }\n });\n});","define(\"ui/components/modals/d-edit-form\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\", \"ember-changeset\"], function (_exports, _service, _component, _object, _emberChangeset) {\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/component\",0,\"@ember/object\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n tagName: '',\n alert: (0, _service.inject)(),\n init() {\n let model = this.model;\n if (!model) {\n throw 'Do not have a model for this form';\n }\n this._super(...arguments);\n this.set('changeset', new _emberChangeset.default(model));\n },\n internalCreate() {\n const changeset = (0, _object.get)(this, 'changeset');\n changeset.save().then(() => {\n let didSave = (0, _object.get)(this, 'didSave');\n if (didSave) {\n didSave((0, _object.get)(this, 'model'));\n }\n (0, _object.get)(this, 'alert').success();\n }, () => {\n (0, _object.get)(this, 'alert').error();\n });\n this.closeModal();\n },\n closeModal() {\n (0, _object.get)(this, 'changeset').rollback();\n (0, _object.set)(this, 'isShowing', false);\n }\n });\n});","define(\"ui/components/modals/d-make-online-payment\", [\"exports\", \"@ember/service\", \"@ember/object\", \"@glimmer/component\"], function (_exports, _service, _object, _component) {\n \"use 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; // import Component from '@ember/component';\n // import PermissionsMixin from 'ui/mixins/permissions';\n // import Changeset from 'ember-changeset';\n // import config from 'ui/config/environment';\n // import { alias } from '@ember/object/computed';\n 0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n // import { tracked } from '@glimmer/tracking';\n let MakeOnlineComponent = _exports.default = (_dec = (0, _object.computed)('permissions.createAndUseAchPaymentMethodsForInsureds.value', 'permissions.createAndUseAchPaymentMethodsForAgencies.value'), _dec2 = (0, _object.computed)('permissions.onlineAchPayments.value', 'hasEntityAchPermission'), _dec3 = (0, _object.computed)('permissions.createAndUseCcPaymentMethodsForInsureds.value', 'permissions.createAndUseCcPaymentMethodsForAgencies.value'), _dec4 = (0, _object.computed)('args.account.allowCreditCardPayments', 'session.ccClient', 'hasEntityCcPermission', 'brand.currentBrand.creditCardMerchantId'), _dec5 = (0, _object.computed)('args.account.requiresCertifiedFunds', 'permissions.makeOnlinePayments.value', 'onlineAchPaymentsPermitted', 'onlineCcPaymentsPermitted'), _dec6 = (0, _object.computed)('onlineAchPaymentsPermitted', 'onlineCcPaymentsPermitted'), (_class = class MakeOnlineComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _initializerDefineProperty(this, \"session\", _descriptor, this);\n _initializerDefineProperty(this, \"brand\", _descriptor2, this);\n _initializerDefineProperty(this, \"commands\", _descriptor3, this);\n _initializerDefineProperty(this, \"alert\", _descriptor4, this);\n _initializerDefineProperty(this, \"flipper\", _descriptor5, this);\n _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n _initializerDefineProperty(this, \"request\", _descriptor7, this);\n }\n get permissions() {\n return this.session.permissions;\n }\n get hasEntityAchPermission() {\n return this.permissions.createAndUseAchPaymentMethodsForInsureds.value || this.permissions.createAndUseAchPaymentMethodsForAgencies.value;\n }\n get onlineAchPaymentsPermitted() {\n if (!this.permissions.makeOnlinePaymentsOnClosedAndFlatCancelledAccounts.value && this.args.account.isInactive) {\n return false;\n }\n return this.permissions.onlineAchPayments.value === true && this.hasEntityAchPermission;\n }\n get hasEntityCcPermission() {\n return this.permissions.createAndUseCcPaymentMethodsForInsureds.value || this.permissions.createAndUseCcPaymentMethodsForAgencies.value;\n }\n get onlineCcPaymentsPermitted() {\n if (this.args.account.allowCreditCardPayments === false) {\n return false;\n }\n if (!this.permissions.makeOnlinePaymentsOnClosedAndFlatCancelledAccounts.value && this.args.account.isInactive) {\n return false;\n }\n if (!(this.session.ccClient && this.hasEntityCcPermission)) {\n return false;\n }\n if (this.session.ccClient === 'insure_pay') {\n // Temporary hack to get InsurePay out the door: vendor feedback suggests\n // no merchant ID should be required, so keep this path available even\n // when the current brand has no stored credit-card merchant ID.\n return true;\n }\n return !!this.brand.currentBrand.creditCardMerchantId;\n }\n get canPayOnline() {\n if (this.args.account.requiresCertifiedFunds) {\n return false;\n }\n if (!this.permissions.makeOnlinePayments.value) {\n return false;\n }\n if (this.onlineAchPaymentsPermitted) {\n return true;\n }\n if (this.onlineCcPaymentsPermitted) {\n return true;\n }\n return false;\n }\n get startPaymentTableList() {\n const list = [];\n if (this.onlineAchPaymentsPermitted) {\n list.push({\n name: this.intl.t('make-online-payment.tabs.ach'),\n type: 'ach'\n });\n }\n if (this.onlineCcPaymentsPermitted) {\n list.push({\n name: this.intl.t('make-online-payment.tabs.credit-card'),\n type: 'creditCard'\n });\n }\n return list;\n }\n cancelPayment() {\n (0, _object.set)(this, 'chosenPaymentType', undefined);\n (0, _object.set)(this, 'isShowing', false);\n (0, _object.set)(this, 'paymethodWasSelected', false);\n }\n stopRecurringPayments() {\n this.commands.create('removeRecurringPaymethod', {\n accountId: this.args.account.id\n }).save().then(() => {\n this.alert.success();\n return true;\n }, () => {\n this.alert.error();\n return false;\n });\n }\n choosePaymentType(chosenType) {\n (0, _object.set)(this, 'chosenPaymentType', chosenType);\n }\n onPaymethodSelected(wasSelected) {\n (0, _object.set)(this, 'paymethodWasSelected', wasSelected);\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, \"brand\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"commands\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"alert\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"flipper\", [_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, \"request\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"hasEntityAchPermission\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"hasEntityAchPermission\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onlineAchPaymentsPermitted\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onlineAchPaymentsPermitted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasEntityCcPermission\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"hasEntityCcPermission\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onlineCcPaymentsPermitted\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onlineCcPaymentsPermitted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canPayOnline\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"canPayOnline\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startPaymentTableList\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"startPaymentTableList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelPayment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelPayment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopRecurringPayments\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopRecurringPayments\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"choosePaymentType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"choosePaymentType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPaymethodSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPaymethodSelected\"), _class.prototype)), _class));\n});","define(\"ui/components/modals/d-new-form\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n tagName: '',\n alert: (0, _service.inject)(),\n init() {\n this._super(...arguments);\n let createModel = this.createModel;\n if (createModel) {\n let model = createModel();\n (0, _object.set)(this, 'model', model);\n } else {\n // console.log('Cannot create a model for this form');\n }\n },\n internalCreate() {\n const model = (0, _object.get)(this, 'model');\n model.save().then(() => {\n let didSave = (0, _object.get)(this, 'didSave');\n if (didSave) {\n didSave(model);\n }\n (0, _object.get)(this, 'alert').success();\n }, () => {\n (0, _object.get)(this, 'alert').error();\n });\n this.closeModal();\n },\n closeModal() {\n (0, _object.set)(this, 'model', (0, _object.get)(this, 'createModel')());\n (0, _object.set)(this, 'isShowing', false);\n }\n });\n});","define(\"ui/components/modals/manage-recurring-payments\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _templateFactory, _templateOnly) {\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\"eaimeta@70e063a35619d71f\n const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @canManageRecurringPayments}}\n \n \n \n \n {{#if @chosenPaymethod}}\n
\n
\n {{#if (and @quote.stateDetailsRecurringAchFeePercent @quote.stateDetailsRecurringAchFeeDollars)}}\n

\n The one-time Delivery Fee is calculated as {{format-currency @quote.stateDetailsRecurringAchFeeDollars}} plus {{format-percentage @quote.stateDetailsRecurringAchFeePercent}} of the regular installment amount.\n

\n \n

Expected Delivery Fee: {{ format-currency @expectedDeliveryFee }}

\n \n

\n After this quote is activated, the Delivery Fee will be calculated based on the installment amount of the activated quote. The Delivery Fee will be charged by the Payment Processor to the Insured when the first installment amount is debited from their bank account. The Delivery Fee will be shown as a separate, one-time transaction.\n

\n \n

\n By submitting this recurring ACH payment request, you are authorizing the Payment Processor to initiate recurring ACH debit entries on behalf of the Insured for each installment payment on the scheduled date due and attesting that the Insured has been notified of and authorized that both the installment amount and the one-time delivery fee be deducted from the bank account selected.\n

\n \n

\n Payments returned for any reason could result in the cancellation of the insurance policies shown on this quote and may result in additional fees.\n

\n {{/if}}\n \n {{#if (and @quote.stateDetailsRecurringAchFeePercent (not @quote.stateDetailsRecurringAchFeeDollars))}}\n

\n The one-time Delivery Fee is calculated as {{format-percentage @quote.stateDetailsRecurringAchFeePercent}} of the regular installment amount.\n

\n \n

Expected Delivery Fee: {{ format-currency @expectedDeliveryFee }}

\n \n

\n After this quote is activated, the Delivery Fee will be calculated based on the installment amount of the activated quote. The Delivery Fee will be charged by the Payment Processor to the Insured when the first installment amount is debited from their bank account. The Delivery Fee will be shown as a separate, one-time transaction.\n

\n \n

\n By submitting this recurring ACH payment request, you are authorizing the Payment Processor to initiate recurring ACH debit entries on behalf of the Insured for each installment payment on the scheduled date due and attesting that the Insured has been notified of and authorized that both the installment amount and the one-time delivery fee be deducted from the bank account selected.\n

\n \n

\n Payments returned for any reason could result in the cancellation of the insurance policies shown on this quote and may result in additional fees.\n

\n {{/if}}\n \n {{#if (and (not @quote.stateDetailsRecurringAchFeePercent) @quote.stateDetailsRecurringAchFeeDollars)}}\n

\n The one-time Delivery Fee is {{format-currency @quote.stateDetailsRecurringAchFeeDollars}}.\n

\n \n

Delivery Fee: {{ format-currency @expectedDeliveryFee }}

\n \n

\n After this quote is activated, the Delivery Fee will be charged by the Payment Processor to the Insured when the first installment amount is debited from their bank account. The Delivery Fee will be shown as a separate, one-time transaction.\n

\n \n

\n By submitting this recurring ACH payment request, you are authorizing the Payment Processor to initiate recurring ACH debit entries on behalf of the Insured for each installment payment on the scheduled date due and attesting that the Insured has been notified of and authorized that both the installment amount and the one-time delivery fee be deducted from the bank account selected.\n

\n \n

\n Payments returned for any reason could result in the cancellation of the insurance policies shown on this quote and may result in additional fees.\n

\n {{/if}}\n \n {{#if (and (not @quote.stateDetailsRecurringAchFeePercent) (not @quote.stateDetailsRecurringAchFeeDollars))}}\n

Delivery Fee: $0.00

\n \n

\n By submitting this recurring ACH payment request, you are authorizing the Payment Processor to initiate recurring ACH debit entries on behalf of the Insured for each installment payment on the scheduled date due and attesting that the Insured has been notified of and authorized that both the installment amount and the one-time delivery fee be deducted from the bank account selected.\n

\n \n

\n Payments returned for any reason could result in the cancellation of the insurance policies shown on this quote and may result in additional fees.\n

\n {{/if}}\n
\n
\n {{else}}\n {{#unless @addingPaymethod}}\n
\n
\n \n Add Bank Account\n \n
\n
\n {{/unless}}\n \n
\n {{#if @addingPaymethod}}\n
\n \n \n \n
\n \n
\n \n
\n {{else}}\n
\n \n \n {{paymethod.financialInstitution}}\n {{paymethod.maskedAccountNumber}}\n {{paymethod.maskedRoutingNumber}}\n {{#if @canAssociateAgencyAndInsured}}\n {{to-human paymethod.associatedWith}}\n {{/if}}\n \n \n \n \n \n {{paper-icon 'delete'}}\n \n \n \n \n
\n {{/if}}\n
\n {{/if}}\n
\n \n \n {{#if @addingPaymethod}}\n \n {{/if}}\n \n {{#if @chosenPaymethod}}\n \n {{/if}}\n \n {{#if (and (not @addingPaymethod) (not @chosenPaymethod))}}\n \n {{/if}}\n \n \n \n \n {{/if}}\n \n \n */\n {\n \"id\": \"vXe9s9SX\",\n \"block\": \"[[[41,[30,1],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@isShowing\\\"],[\\\"Insured's Recurring Payment Method\\\",[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n \\\"],[10,\\\"md-dialog-content\\\"],[14,0,\\\"md-dialog-content\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3],[[[1,\\\" \\\"],[10,0],[14,0,\\\"layout-row flex\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"flex flex-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,4,[\\\"stateDetailsRecurringAchFeePercent\\\"]],[30,4,[\\\"stateDetailsRecurringAchFeeDollars\\\"]]],null],[[[1,\\\" \\\"],[10,2],[12],[1,\\\"\\\\n The one-time Delivery Fee is calculated as \\\"],[1,[28,[35,3],[[30,4,[\\\"stateDetailsRecurringAchFeeDollars\\\"]]],null]],[1,\\\" plus \\\"],[1,[28,[35,4],[[30,4,[\\\"stateDetailsRecurringAchFeePercent\\\"]]],null]],[1,\\\" of the regular installment amount.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[10,\\\"b\\\"],[12],[1,\\\"Expected Delivery Fee: \\\"],[1,[28,[35,3],[[30,5]],null]],[13],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n After this quote is activated, the Delivery Fee will be calculated based on the installment amount of the activated quote. The Delivery Fee will be charged by the Payment Processor to the Insured when the first installment amount is debited from their bank account. The Delivery Fee will be shown as a separate, one-time transaction.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n By submitting this recurring ACH payment request, you are authorizing the Payment Processor to initiate recurring ACH debit entries on behalf of the Insured for each installment payment on the scheduled date due and attesting that the Insured has been notified of and authorized that both the installment amount and the one-time delivery fee be deducted from the bank account selected.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n Payments returned for any reason could result in the cancellation of the insurance policies shown on this quote and may result in additional fees.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,4,[\\\"stateDetailsRecurringAchFeePercent\\\"]],[28,[37,5],[[30,4,[\\\"stateDetailsRecurringAchFeeDollars\\\"]]],null]],null],[[[1,\\\" \\\"],[10,2],[12],[1,\\\"\\\\n The one-time Delivery Fee is calculated as \\\"],[1,[28,[35,4],[[30,4,[\\\"stateDetailsRecurringAchFeePercent\\\"]]],null]],[1,\\\" of the regular installment amount.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[10,\\\"b\\\"],[12],[1,\\\"Expected Delivery Fee: \\\"],[1,[28,[35,3],[[30,5]],null]],[13],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n After this quote is activated, the Delivery Fee will be calculated based on the installment amount of the activated quote. The Delivery Fee will be charged by the Payment Processor to the Insured when the first installment amount is debited from their bank account. The Delivery Fee will be shown as a separate, one-time transaction.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n By submitting this recurring ACH payment request, you are authorizing the Payment Processor to initiate recurring ACH debit entries on behalf of the Insured for each installment payment on the scheduled date due and attesting that the Insured has been notified of and authorized that both the installment amount and the one-time delivery fee be deducted from the bank account selected.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n Payments returned for any reason could result in the cancellation of the insurance policies shown on this quote and may result in additional fees.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[28,[37,5],[[30,4,[\\\"stateDetailsRecurringAchFeePercent\\\"]]],null],[30,4,[\\\"stateDetailsRecurringAchFeeDollars\\\"]]],null],[[[1,\\\" \\\"],[10,2],[12],[1,\\\"\\\\n The one-time Delivery Fee is \\\"],[1,[28,[35,3],[[30,4,[\\\"stateDetailsRecurringAchFeeDollars\\\"]]],null]],[1,\\\".\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[10,\\\"b\\\"],[12],[1,\\\"Delivery Fee: \\\"],[1,[28,[35,3],[[30,5]],null]],[13],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n After this quote is activated, the Delivery Fee will be charged by the Payment Processor to the Insured when the first installment amount is debited from their bank account. The Delivery Fee will be shown as a separate, one-time transaction.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n By submitting this recurring ACH payment request, you are authorizing the Payment Processor to initiate recurring ACH debit entries on behalf of the Insured for each installment payment on the scheduled date due and attesting that the Insured has been notified of and authorized that both the installment amount and the one-time delivery fee be deducted from the bank account selected.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n Payments returned for any reason could result in the cancellation of the insurance policies shown on this quote and may result in additional fees.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[28,[37,5],[[30,4,[\\\"stateDetailsRecurringAchFeePercent\\\"]]],null],[28,[37,5],[[30,4,[\\\"stateDetailsRecurringAchFeeDollars\\\"]]],null]],null],[[[1,\\\" \\\"],[10,2],[12],[10,\\\"b\\\"],[12],[1,\\\"Delivery Fee: $0.00\\\"],[13],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n By submitting this recurring ACH payment request, you are authorizing the Payment Processor to initiate recurring ACH debit entries on behalf of the Insured for each installment payment on the scheduled date due and attesting that the Insured has been notified of and authorized that both the installment amount and the one-time delivery fee be deducted from the bank account selected.\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n Payments returned for any reason could result in the cancellation of the insurance policies shown on this quote and may result in additional fees.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[30,6]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"layout-row flex\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"flex flex-100\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onClick\\\"],[\\\"right\\\",\\\"Confirm\\\",[30,7],[30,8]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n Add Bank Account\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"layout-row flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6],[[[1,\\\" \\\"],[10,0],[14,0,\\\"flex flex-45\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,8],null,[[\\\"@value\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@block\\\",\\\"@onChange\\\"],[[30,9,[\\\"details\\\",\\\"financialInstitution\\\"]],[30,9,[\\\"details\\\",\\\"financialInstitution\\\",\\\"errors\\\"]],\\\"Financial Institution\\\",true,[28,[37,9],[[30,0],[28,[37,10],[[30,9,[\\\"details\\\",\\\"financialInstitution\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\\n \\\"],[8,[39,8],null,[[\\\"@value\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@block\\\",\\\"@groupSize\\\",\\\"@onChange\\\"],[[30,9,[\\\"details\\\",\\\"routingNumber\\\"]],[30,9,[\\\"details\\\",\\\"routingNumber\\\",\\\"errors\\\"]],\\\"Routing Number\\\",true,2000,[28,[37,9],[[30,0],[28,[37,10],[[30,9,[\\\"details\\\",\\\"routingNumber\\\"]]],null]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"flex flex-45 flex-offset-10\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,8],null,[[\\\"@value\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@block\\\",\\\"@groupSize\\\",\\\"@onChange\\\"],[[30,9,[\\\"details\\\",\\\"accountNumber\\\"]],[30,9,[\\\"details\\\",\\\"accountNumber\\\",\\\"errors\\\"]],\\\"Account Number\\\",true,2000,[28,[37,9],[[30,0],[28,[37,10],[[30,9,[\\\"details\\\",\\\"accountNumber\\\"]]],null]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"flex flex-100\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@headers\\\",\\\"@emptyText\\\",\\\"@list\\\"],[[28,[37,12],[\\\"Financial Institution\\\",\\\"Account #\\\",\\\"Routing #\\\"],null],\\\"No ACH accounts yet.\\\",[28,[37,13],[\\\"createdAt\\\",[30,10]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,11,[\\\"financialInstitution\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,11,[\\\"maskedAccountNumber\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,11,[\\\"maskedRoutingNumber\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,12],[[[1,\\\" \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,14],[[30,11,[\\\"associatedWith\\\"]]],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"row-actions\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,15],null,[[\\\"@disabled\\\",\\\"@onClick\\\"],[[30,7],[28,[37,16],[[30,13],[30,11]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"row-actions\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,17],null,[[\\\"@dataTestId\\\",\\\"@disabled\\\",\\\"@onClick\\\"],[\\\"delete\\\",[30,7],[28,[37,16],[[30,14],[30,11]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[1,[28,[35,18],[\\\"delete\\\"],null]],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[11]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"md-dialog-actions\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onClick\\\"],[\\\"Save\\\",[30,7],[30,15]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,3],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onClick\\\"],[\\\"Activate Recurring Payments\\\",[30,7],[30,16]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[28,[37,5],[[30,6]],null],[28,[37,5],[[30,3]],null]],null],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,19],[[30,7],[28,[37,5],[[30,4,[\\\"hasRecurringPaymethod\\\"]]],null]],null],\\\"Stop Recurring Payments\\\",[30,17]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[8,[39,7],null,[[\\\"@primary\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onClick\\\"],[false,[52,[28,[37,2],[[28,[37,5],[[30,6]],null],[28,[37,5],[[30,3]],null]],null],\\\"Close\\\",\\\"Cancel\\\"],[30,7],[30,18]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[\\\"@canManageRecurringPayments\\\",\\\"@isShowing\\\",\\\"@chosenPaymethod\\\",\\\"@quote\\\",\\\"@expectedDeliveryFee\\\",\\\"@addingPaymethod\\\",\\\"@isSaving\\\",\\\"@onAddPaymethod\\\",\\\"@newPaymethod\\\",\\\"@paymethods\\\",\\\"paymethod\\\",\\\"@canAssociateAgencyAndInsured\\\",\\\"@onChoosePaymethod\\\",\\\"@onDeletePaymethod\\\",\\\"@onSavePaymethod\\\",\\\"@onSetRecurringPaymethod\\\",\\\"@onStopRecurringPayments\\\",\\\"@onCancel\\\"],false,[\\\"if\\\",\\\"modals/d-base\\\",\\\"and\\\",\\\"format-currency\\\",\\\"format-percentage\\\",\\\"not\\\",\\\"unless\\\",\\\"buttons/d-button\\\",\\\"inputs/d-text-input\\\",\\\"action\\\",\\\"mut\\\",\\\"tables/d-table\\\",\\\"array\\\",\\\"sort-by\\\",\\\"to-human\\\",\\\"buttons/d-table-visit\\\",\\\"fn\\\",\\\"buttons/d-table-button\\\",\\\"paper-icon\\\",\\\"or\\\"]]\",\n \"moduleName\": \"ui/components/modals/manage-recurring-payments.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ui/components/name-value-pair\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _component, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'name-value-pair',\n classNames: ['layout-row', 'flex', 'name-value-pair'],\n classNameBindings: ['leftAlign:layoutAlignCenter']\n });\n});","define(\"ui/components/notes-area\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _component, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n dataTest: 'notes'\n });\n});","define(\"ui/components/notes-list\", [\"exports\", \"@ember/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n var _default = _exports.default = _component.default.extend({\n tagName: 'ul',\n sortedNotes: (0, _object.computed)('notes.@each.createdAt', function () {\n return this.notes.sortBy('createdAt').reverse();\n }),\n selectNewNote(selectedNote) {\n let currentStatus = selectedNote.get('isSelected');\n this.notes.forEach(note => {\n note.set('isSelected', false);\n });\n selectedNote.set('isSelected', !currentStatus);\n }\n });\n});","define(\"ui/components/notice-table-cell\", [\"exports\", \"@glimmer/component\", \"ember-string\", \"@ember/object\", \"@ember/service\"], function (_exports, _component, _emberString, _object, _service) {\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, _descriptor4;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"ember-string\",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), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n let NoticeTableCellComponent = _exports.default = (_dec = (0, _object.computed)('row.mail.recipients.length', 'row.email.recipients.length', 'row.fax.recipients.length'), _dec2 = (0, _object.computed)('recipients.length'), _dec3 = (0, _object.computed)('args.deliverForType', 'args.deliverForId'), (_class = class NoticeTableCellComponent extends _component.default {\n constructor() {\n super(...arguments);\n _initializerDefineProperty(this, \"store\", _descriptor, this);\n _initializerDefineProperty(this, \"ajax\", _descriptor2, this);\n _initializerDefineProperty(this, \"alert\", _descriptor3, this);\n _initializerDefineProperty(this, \"session\", _descriptor4, this);\n this.row = this.args.noticeTable.table[(0, _emberString.camelize)(this.args.purpose)];\n if (this.row === undefined) {\n throw new Error(`No row found for purpose ${this.args.purpose}`);\n }\n this.cell = this.row[this.args.deliveryMethod];\n if (this.cell === undefined) {\n throw new Error(`No cell found for delivery method ${this.args.deliveryMethod}`);\n }\n this.available = !!this.cell.available;\n this.recipients = this.cell.recipients || [];\n this.possibleRecipients = this.cell.possibleRecipients || [];\n }\n get lessThanTwoRecipients() {\n let count = 0;\n Object.values(this.row).forEach(cell => {\n count += (0, _object.get)(cell, 'recipients.length');\n });\n return count < 2;\n }\n get recipientsToAdd() {\n const recipientsNames = this.recipients.map(recipient => recipient.name);\n return this.possibleRecipients.filter(recipient => !recipientsNames.includes(recipient.name));\n }\n get canEditRecipients() {\n // If it's not an agency, allow deletion (MGAs and carriers don't have territory restrictions)\n if (this.args.deliverForType !== 'agency') {\n return this.session.can('editMgas') || this.session.can('editCarriers');\n }\n\n // For agencies, check if user has editAgencies permission\n return this.session.can('editAgencies');\n }\n startAddingRecipient() {\n (0, _object.set)(this, 'isAddingRecipient', true);\n }\n cancelAddingRecipient() {\n (0, _object.set)(this, 'selectedRecipient', undefined);\n (0, _object.set)(this, 'isAddingRecipient', false);\n }\n saveAddingRecipient() {\n const newRecipientAttrs = {\n delivery_method: this.args.deliveryMethod,\n purpose: this.args.purpose,\n deliver_for_type: this.args.deliverForType,\n deliver_for_id: this.args.deliverForId,\n recipient_type: this.selectedRecipient.recipientType\n };\n newRecipientAttrs[this.selectedRecipient.modelIdField] = this.selectedRecipient.modelId;\n this.ajax.createIntendedNoticeRecipient(newRecipientAttrs).then(response => {\n this.recipients.pushObject({\n id: response.data.id,\n name: this.selectedRecipient.name\n });\n (0, _object.set)(this, 'selectedRecipient', undefined);\n (0, _object.set)(this, 'isAddingRecipient', false);\n this.alert.success('Recipient added');\n });\n }\n deleteRecipient(recipient) {\n this.ajax.deleteIntendedNoticeRecipient(recipient.id).then(response => {\n if (response === true) {\n this.recipients.removeObject(recipient);\n this.alert.success('Recipient deleted');\n }\n if (response === false) {\n this.alert.error('Could not delete recipient');\n }\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, \"ajax\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"alert\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"lessThanTwoRecipients\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"lessThanTwoRecipients\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"recipientsToAdd\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"recipientsToAdd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canEditRecipients\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"canEditRecipients\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startAddingRecipient\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startAddingRecipient\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelAddingRecipient\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelAddingRecipient\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveAddingRecipient\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveAddingRecipient\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteRecipient\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteRecipient\"), _class.prototype)), _class));\n});","define(\"ui/components/notice-table\", [\"exports\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\"], function (_exports, _component, _service, _object) {\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\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n let NoticeTableComponent = _exports.default = (_class = class NoticeTableComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _initializerDefineProperty(this, \"flipper\", _descriptor, this);\n }\n get faxAvailable() {\n return this.flipper.isEnabled('fax_delivery');\n }\n }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"flipper\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class);\n});","define(\"ui/components/one-way-credit-card-mask\", [\"exports\", \"ember-inputmask/components/one-way-credit-card-mask\"], function (_exports, _oneWayCreditCardMask) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _oneWayCreditCardMask.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inputmask/components/one-way-credit-card-mask\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/one-way-currency-mask\", [\"exports\", \"ember-inputmask/components/one-way-currency-mask\"], function (_exports, _oneWayCurrencyMask) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _oneWayCurrencyMask.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inputmask/components/one-way-currency-mask\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/one-way-date-mask\", [\"exports\", \"ember-inputmask/components/one-way-date-mask\"], function (_exports, _oneWayDateMask) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _oneWayDateMask.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inputmask/components/one-way-date-mask\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/one-way-email-mask\", [\"exports\", \"ember-inputmask/components/one-way-email-mask\"], function (_exports, _oneWayEmailMask) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _oneWayEmailMask.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inputmask/components/one-way-email-mask\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/one-way-input-mask\", [\"exports\", \"ember-inputmask/components/one-way-input-mask\"], function (_exports, _oneWayInputMask) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-inputmask/components/one-way-input-mask\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _oneWayInputMask.default;\n});","define(\"ui/components/one-way-number-mask\", [\"exports\", \"ember-inputmask/components/one-way-number-mask\"], function (_exports, _oneWayNumberMask) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _oneWayNumberMask.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inputmask/components/one-way-number-mask\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/one-way-phone-mask\", [\"exports\", \"ember-inputmask/components/one-way-phone-mask\"], function (_exports, _oneWayPhoneMask) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _oneWayPhoneMask.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inputmask/components/one-way-phone-mask\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/one-way-ssn-mask\", [\"exports\", \"ember-inputmask/components/one-way-ssn-mask\"], function (_exports, _oneWaySsnMask) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _oneWaySsnMask.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inputmask/components/one-way-ssn-mask\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/one-way-zip-code-mask\", [\"exports\", \"ember-inputmask/components/one-way-zip-code-mask\"], function (_exports, _oneWayZipCodeMask) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _oneWayZipCodeMask.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inputmask/components/one-way-zip-code-mask\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/online-payment/ach-page\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"ui/utils/default-online-payment-amount\"], function (_exports, _component, _object, _service, _defaultOnlinePaymentAmount) {\n \"use strict\";\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, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"ui/utils/default-online-payment-amount\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n let OnlinePaymentAchPageComponent = _exports.default = (_dec = (0, _object.computed)('args.account.{currentAmountDue,normalPaymentAmount}'), _dec2 = (0, _object.computed)('payTowardsBalance', 'oneTimePaymentFee'), _dec3 = (0, _object.computed)('account.{stateDetailsAchFeeDollars,stateDetailsAchFeePercent,stateDetailsCreditCardFeePercent,stateDetailsCreditCardFeeDollars}', 'payTowardsBalance', 'chosenPaymentType'), _dec4 = (0, _object.computed)('account.{stateDetailsRecurringAchFeeDollars,stateDetailsRecurringAchFeePercent,normalPaymentAmount}'), _dec5 = (0, _object.computed)('permissions.createAndUseAchPaymentMethodsForInsureds.value', 'permissions.createAndUseAchPaymentMethodsForAgencies.value'), _dec6 = (0, _object.computed)('permissions.canPostOnlinePaymentsAsReturnPremiums.value'), _dec7 = (0, _object.computed)('args.account.hasRecurringPaymethod', 'args.account.id'), _dec8 = (0, _object.computed)('chosenPaymethod', 'payTowardsBalance', 'typeOfOneTimePayment', 'oneTimePaymentReturnPremiumPurpose', 'selectedPolicy'), (_class = class OnlinePaymentAchPageComponent extends _component.default {\n constructor(owner, args) {\n super(owner, args);\n _initializerDefineProperty(this, \"store\", _descriptor, this);\n _initializerDefineProperty(this, \"session\", _descriptor2, this);\n _initializerDefineProperty(this, \"alert\", _descriptor3, this);\n _initializerDefineProperty(this, \"commands\", _descriptor4, this);\n _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n this.selectedIntention = \"oneTime\";\n (0, _object.set)(this, 'payTowardsBalance', this.paymentAmountToDue);\n\n // Ensure account data is fresh\n this.args.account.reload();\n this.store.query('paymethod', {\n agency_id: (0, _object.get)(this.args.account, 'agency.id'),\n insured_id: (0, _object.get)(this.args.account, 'insured.id'),\n payment_type: 'ach'\n }).then(response => {\n (0, _object.set)(this, 'allPaymethods', response.toArray());\n });\n (0, _object.set)(this, 'typeOfOneTimePayment', 'regularPayment');\n const oneTimePaymentReturnPremiumCanceled = ['canceled', 'canceled_1', 'canceled_2', 'collections'].includes(this.args.account.statusCode);\n (0, _object.set)(this, 'oneTimePaymentReturnPremiumCanceled', oneTimePaymentReturnPremiumCanceled);\n const newAccountStatusOptions = [{\n value: 'cancellation_return_premium__net',\n name: 'Cancellation Return Premium Net'\n }, {\n value: 'cancellation_return_premium__gross',\n name: 'Cancellation Return Premium Gross'\n }, {\n value: 'return_commission',\n name: 'Return Commission'\n }];\n (0, _object.set)(this, 'newAccountStatusOptions', newAccountStatusOptions);\n }\n get permissions() {\n return this.session.permissions;\n }\n get paymentAmountToDue() {\n return (0, _defaultOnlinePaymentAmount.default)(this.args.account);\n }\n get total() {\n return parseFloat(this.payTowardsBalance) + parseFloat(this.oneTimePaymentFee);\n }\n get oneTimePaymentFee() {\n const centsFromPercent = (0, _object.get)(this.args.account, 'stateDetailsOneTimeAchFeePercent') / 100.0 * this.payTowardsBalance;\n return parseFloat((0, _object.get)(this.args.account, 'stateDetailsOneTimeAchFeeDollars') + centsFromPercent).toFixed(2);\n }\n get recurringFee() {\n const centsFromPercent = this.args.account.stateDetailsRecurringAchFeePercent / 100.0 * this.args.account.normalPaymentAmount;\n return parseFloat(this.args.account.stateDetailsRecurringAchFeeDollars + centsFromPercent).toFixed(2);\n }\n get canAssociateAgencyAndInsured() {\n return this.permissions.createAndUseAchPaymentMethodsForInsureds.value && this.permissions.createAndUseAchPaymentMethodsForAgencies.value;\n }\n get canPostOnlinePaymentsAsReturnPremiums() {\n return this.permissions.canPostOnlinePaymentsAsReturnPremiums?.value;\n }\n get canSetRecurring() {\n return !this.args.account.hasRecurringPaymethod;\n }\n get submitButtonDisabled() {\n if (this.payTowardsBalance === undefined || this.payTowardsBalance === null) {\n return true;\n }\n if (this.chosenPaymethod === undefined || this.chosenPaymethod === null) {\n return true;\n }\n if (this.typeOfOneTimePayment === 'returnPremium') {\n if (this.oneTimePaymentReturnPremiumPurpose === undefined) {\n return true;\n }\n if (this.selectedPolicy === undefined) {\n return true;\n }\n }\n return false;\n }\n willDestroy() {\n this.reset();\n }\n reset() {\n (0, _object.set)(this, 'addingAch', false);\n (0, _object.set)(this, 'showingSuccessDialog', false);\n (0, _object.set)(this, 'showingRecurringSuccessDialog', false);\n (0, _object.set)(this, 'selectedIntention', undefined);\n (0, _object.set)(this, 'insuredFirstName', this.insuredFirstName);\n (0, _object.set)(this, 'insuredLastName', this.insuredLastName);\n (0, _object.set)(this, 'payTowardsBalance', this.paymentAmountToDue);\n this.args.account.policies.forEach(policy => (0, _object.set)(policy, 'selected', false));\n (0, _object.set)(this, 'selectedPolicy', undefined);\n if (this.newPaymethod) {\n this.newPaymethod.delete();\n (0, _object.set)(this, 'newPaymethod', undefined);\n }\n }\n deletePaymethod(paymethod) {\n this.commands.create('deletePaymethod', {\n accountId: this.args.account.id,\n paymethodId: paymethod.id\n }).save().then(() => {\n this.allPaymethods.removeObject(paymethod);\n return true;\n }, () => {\n this.alert.error();\n return false;\n });\n }\n addAch() {\n const newPaymethod = this.store.createRecord('paymethod', {\n provider: 'internal',\n paymentType: 'ach',\n details: {}\n });\n if (this.permissions.createAndUseAchPaymentMethodsForInsureds.value && this.permissions.createAndUseAchPaymentMethodsForAgencies.value) {\n (0, _object.set)(newPaymethod, 'mustChooseEntity', true);\n } else {\n if (this.permissions.createAndUseAchPaymentMethodsForInsureds.value) {\n (0, _object.set)(newPaymethod, 'insured', this.args.account.insured);\n }\n if (this.permissions.createAndUseAchPaymentMethodsForAgencies.value) {\n (0, _object.set)(newPaymethod, 'agency', this.args.account.agency);\n }\n }\n (0, _object.set)(this, 'newPaymethod', newPaymethod);\n (0, _object.set)(this, 'addingAch', true);\n }\n cancelNewAch() {\n if ((0, _object.get)(this, 'newPaymethod')) {\n this.store.deleteRecord(this.newPaymethod);\n }\n (0, _object.set)(this, 'newPaymethod', undefined);\n (0, _object.set)(this, 'addingAch', false);\n }\n saveNewAch() {\n const newPaymethod = this.newPaymethod;\n if (newPaymethod.mustChooseEntity) {\n if (newPaymethod.chosenEntity === this.intl.t(\"make-online-payment.chosen-entity.insured\")) {\n (0, _object.set)(newPaymethod, 'insured', this.args.account.insured);\n } else if (newPaymethod.chosenEntity === this.intl.t(\"make-online-payment.chosen-entity.agency\")) {\n (0, _object.set)(newPaymethod, 'agency', this.args.account.agency);\n }\n }\n newPaymethod.save().then(() => {\n this.alert.success();\n (0, _object.set)(this, 'newPaymethod', undefined);\n (0, _object.set)(this, 'addingAch', false);\n this.args.onPaymethodSelected(false);\n this.allPaymethods.pushObject(newPaymethod);\n return true;\n }, errors => {\n this.alert.error(errors);\n return false;\n });\n }\n resetPayTowardsBalance() {\n (0, _object.set)(this, 'payTowardsBalance', this.paymentAmountToDue);\n }\n choosePaymentType(paymethod) {\n (0, _object.set)(this, 'chosenPaymethod', paymethod);\n this.args.onPaymethodSelected(true);\n }\n makeOneTimePayment(paymethod) {\n let purpose;\n if (this.typeOfOneTimePayment === 'regularPayment') {\n purpose = 'regular_payment';\n }\n if (this.typeOfOneTimePayment === 'returnPremium') {\n if (this.oneTimePaymentReturnPremiumPurpose) {\n purpose = this.oneTimePaymentReturnPremiumPurpose.value;\n }\n }\n if (purpose === undefined) {\n throw \"Purpose is undefined\";\n }\n this.commands.create('makeOnlinePayment', {\n accountId: this.args.account.id,\n paymethodId: paymethod.id,\n purpose: purpose,\n policyId: this.selectedPolicy?.id,\n feeAmount: parseInt((this.oneTimePaymentFee * 100).toFixed(0)),\n primaryAmount: parseInt((this.payTowardsBalance * 100).toFixed(0))\n }).save().then(() => {\n (0, _object.set)(this, 'showingSuccessDialog', true);\n (0, _object.set)(this, 'chosenPaymethod', undefined);\n this.args.onPaymethodSelected(false);\n return true;\n }, () => {\n this.alert.error();\n return false;\n });\n }\n selectPolicy(policy) {\n this.args.account.policies.forEach(policy => (0, _object.set)(policy, 'selected', false));\n (0, _object.set)(policy, 'selected', true);\n (0, _object.set)(this, 'selectedPolicy', policy);\n }\n selectAsRecurringPaymentMethod() {\n this.commands.create('selectRecurringPaymentMethod', {\n accountId: this.args.account.id,\n paymethodId: this.chosenPaymethod.id\n }).save().then(() => {\n this.alert.success();\n (0, _object.set)(this, 'isShowing', false);\n (0, _object.set)(this, 'showingRecurringSuccessDialog', true);\n (0, _object.set)(this, 'chosenPaymethod', undefined);\n this.args.onPaymethodSelected(false);\n this.args.account.reload();\n this.allPaymethods.forEach(paymethod => {\n if (!paymethod.isDeleted) {\n paymethod.reload();\n }\n });\n return true;\n }, () => {\n this.alert.error();\n return false;\n });\n }\n stopShowingSuccessDialog() {\n (0, _object.set)(this, 'showingSuccessDialog', false);\n }\n setTypeOfOneTimePayment(type) {\n (0, _object.set)(this, 'typeOfOneTimePayment', type);\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, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"alert\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"commands\", [_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 }), _applyDecoratedDescriptor(_class.prototype, \"paymentAmountToDue\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"paymentAmountToDue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"total\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"total\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"oneTimePaymentFee\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"oneTimePaymentFee\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"recurringFee\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"recurringFee\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canAssociateAgencyAndInsured\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"canAssociateAgencyAndInsured\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canPostOnlinePaymentsAsReturnPremiums\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"canPostOnlinePaymentsAsReturnPremiums\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canSetRecurring\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"canSetRecurring\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submitButtonDisabled\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"submitButtonDisabled\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deletePaymethod\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deletePaymethod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addAch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addAch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelNewAch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelNewAch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewAch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewAch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetPayTowardsBalance\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetPayTowardsBalance\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"choosePaymentType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"choosePaymentType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"makeOneTimePayment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"makeOneTimePayment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectPolicy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectPolicy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectAsRecurringPaymentMethod\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAsRecurringPaymentMethod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopShowingSuccessDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopShowingSuccessDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTypeOfOneTimePayment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setTypeOfOneTimePayment\"), _class.prototype)), _class));\n});","define(\"ui/components/online-payment/credit-card-page\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"ui/config/environment\", \"ui/utils/default-online-payment-amount\"], function (_exports, _component, _object, _service, _environment, _defaultOnlinePaymentAmount) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"ui/config/environment\",0,\"ui/utils/default-online-payment-amount\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n let OnlinePaymentCreditCardPageComponent = _exports.default = (_dec = (0, _object.computed)('args.account.{currentAmountDue,normalPaymentAmount}'), _dec2 = (0, _object.computed)('args.account.{stateDetailsCreditCardFeePercent,stateDetailsCreditCardFeeDollars}', 'payTowardsBalanceOverride'), _dec3 = (0, _object.computed)('args.account.{stateDetailscreditCardFeeDollars,stateDetailscreditCardFeePercent,normalPaymentAmount}'), _dec4 = (0, _object.computed)('payTowardsBalance', 'oneTimePaymentFee'), _dec5 = (0, _object.computed)('args.account.insured.name'), _dec6 = (0, _object.computed)('args.account.insured.name'), _dec7 = (0, _object.computed)('permissions.createAndUseCcPaymentMethodsForInsureds.value', 'permissions.createAndUseCcPaymentMethodsForAgencies.value'), (_class = class OnlinePaymentCreditCardPageComponent extends _component.default {\n constructor(owner, args) {\n super(owner, args);\n _initializerDefineProperty(this, \"session\", _descriptor, this);\n _initializerDefineProperty(this, \"ajax\", _descriptor2, this);\n _initializerDefineProperty(this, \"brand\", _descriptor3, this);\n _initializerDefineProperty(this, \"alert\", _descriptor4, this);\n _initializerDefineProperty(this, \"commands\", _descriptor5, this);\n _initializerDefineProperty(this, \"store\", _descriptor6, this);\n _initializerDefineProperty(this, \"flipper\", _descriptor7, this);\n this.selectedIntention = 'One Time';\n (0, _object.set)(this, 'payTowardsBalance', this.paymentAmountToDue);\n this.store.query('paymethod', {\n agency_id: (0, _object.get)(this.args.account, 'agency.id'),\n insured_id: (0, _object.get)(this.args.account, 'insured.id'),\n payment_type: 'credit_card'\n }).then(response => {\n (0, _object.set)(this, 'allPaymethods', response.toArray());\n });\n }\n get permissions() {\n return this.session.permissions;\n }\n get paymentAmountToDue() {\n return (0, _defaultOnlinePaymentAmount.default)(this.args.account);\n }\n get oneTimePaymentFee() {\n const percent = (0, _object.get)(this.args.account, 'stateDetailsCreditCardFeePercent') / 100.0 * this.payTowardsBalance;\n return parseFloat((0, _object.get)(this.args.account, 'stateDetailsCreditCardFeeDollars') + percent).toFixed(2);\n }\n get recurringFee() {\n const percent = this.args.account.stateDetailsCreditCardFeePercent / 100.0 * this.args.account.normalPaymentAmount;\n return parseFloat(this.args.account.stateDetailsCreditCardFeeDollars + percent).toFixed(2);\n }\n get total() {\n return parseFloat(this.payTowardsBalance) + parseFloat(this.oneTimePaymentFee);\n }\n get insuredFirstName() {\n const insuredName = (0, _object.get)(this.args.account, 'insured.name');\n if (!insuredName) {\n return '';\n }\n return insuredName.split(' ')[0];\n }\n get insuredLastName() {\n const insuredName = (0, _object.get)(this.args.account, 'insured.name');\n if (!insuredName) {\n return '';\n }\n const split = insuredName.split(' ');\n return split[split.length - 1];\n }\n get canAssociateAgencyAndInsured() {\n return this.permissions.createAndUseCcPaymentMethodsForInsureds.value && this.permissions.createAndUseCcPaymentMethodsForAgencies.value;\n }\n getElavonOneTimeTokenForRecurring() {\n this.ajax.post(`${_environment.default.DS.host}/${_environment.default.DS.namespace}/online-payment/get-elavon-one-time-token`, {\n purpose: 'recurring',\n account_id: this.args.account.id\n }).then(response => {\n const paymentFields = {\n ssl_txn_auth_token: response.token\n };\n const callbacks = {\n onError: error => {\n this.triggerConfirmModal('error');\n },\n onCancelled: () => {},\n onDeclined: response => {\n this.triggerConfirmModal('declined');\n },\n onApproval: response => {\n (0, _object.set)(this.newPaymethod, 'details', response);\n this.saveNewPaymethod();\n }\n };\n PayWithConverge.open(paymentFields, callbacks);\n });\n }\n saveNewPaymethod() {\n const newPaymethod = this.newPaymethod;\n if (newPaymethod.chosenEntity === 'Insured') {\n (0, _object.set)(newPaymethod, 'insured', this.args.account.insured);\n } else if (newPaymethod.chosenEntity === 'Agency') {\n (0, _object.set)(newPaymethod, 'agency', this.args.account.agency);\n }\n newPaymethod.save().then(() => {\n this.alert.success();\n (0, _object.set)(this, 'newPaymethod', undefined);\n this.allPaymethods.pushObject(newPaymethod);\n return true;\n }, errors => {\n this.alert.error(errors);\n return false;\n });\n }\n reset() {\n (0, _object.set)(this, 'payingOneTimeCc', false);\n (0, _object.set)(this, 'showingSuccessDialog', false);\n (0, _object.set)(this, 'insuredFirstName', this.insuredFirstName);\n (0, _object.set)(this, 'insuredLastName', this.insuredLastName);\n (0, _object.set)(this, 'payTowardsBalance', this.paymentAmountToDue);\n if (this.newPaymethod) {\n this.newPaymethod.delete();\n (0, _object.set)(this, 'newPaymethod', undefined);\n }\n }\n openExpressPayTab() {\n let url = undefined;\n const account = this.args.account;\n const pk = _environment.default.xpressPay.pk || (0, _object.get)(this, 'brand.currentBrand.creditCardMerchantId');\n const accountNumber = account.number;\n const uid = (0, _object.get)(account, 'insured.id');\n const name = (0, _object.get)(account, 'insured.name');\n const amount = (0, _object.get)(this, 'total');\n const domain = _environment.default.seppay.domain;\n url = new URL(`https://${domain}/`);\n url.searchParams.append('l1', account.number);\n url.searchParams.append('pa', amount);\n url.searchParams.append('l2', name);\n window.open(url.href, '_blank');\n }\n insurePayPayload() {\n return {\n account_id: this.args.account.id,\n primary_amount: Number(this.payTowardsBalance),\n fee_amount: Number(this.oneTimePaymentFee)\n };\n }\n triggerConfirmModal(status) {\n (0, _object.set)(this, 'confirmModalStatus', status);\n }\n deletePaymethod(paymethod) {\n this.commands.create('deletePaymethod', {\n accountId: this.args.account.id,\n paymethodId: paymethod.id\n }).save().then(() => {\n this.allPaymethods.removeObject(paymethod);\n return true;\n }, () => {\n this.alert.error();\n return false;\n });\n }\n resetInsuredFirstName() {\n (0, _object.set)(this, 'insuredFirstName', this.insuredFirstName);\n }\n resetInsuredLastName() {\n (0, _object.set)(this, 'insuredLastName', this.insuredLastName);\n }\n resetPayTowardsBalance() {\n (0, _object.set)(this, 'payTowardsBalance', this.paymentAmountToDue);\n }\n startPayingOneTimeCc() {\n (0, _object.set)(this, 'payingOneTimeCc', true);\n }\n addCc(provider, givenAssociatedChoice) {\n // givenAssociatedChoice is a PointerEvent when nothing is passed explicitly :shrug:\n let associatedChoice = undefined;\n if (givenAssociatedChoice === 'insured') {\n associatedChoice = 'insured';\n }\n if (givenAssociatedChoice === 'agency') {\n associatedChoice = 'agency';\n }\n const newPaymethod = this.store.createRecord('paymethod', {\n provider: provider,\n paymentType: 'credit_card',\n details: {}\n });\n if (associatedChoice === undefined && this.canAssociateAgencyAndInsured) {\n throw `When can associate agency and insured the associatedChoice must be present : ${associatedChoice} : ${this.canAssociateAgencyAndInsured}`;\n }\n if (this.permissions.createAndUseCcPaymentMethodsForInsureds.value && (associatedChoice === 'insured' || associatedChoice === undefined)) {\n (0, _object.set)(newPaymethod, 'insured', this.args.account.insured);\n }\n if (this.permissions.createAndUseCcPaymentMethodsForAgencies.value && (associatedChoice === 'agency' || associatedChoice === undefined)) {\n (0, _object.set)(newPaymethod, 'agency', this.args.account.agency);\n }\n (0, _object.set)(this, 'newPaymethod', newPaymethod);\n if (provider == 'elavon') {\n this.getElavonOneTimeTokenForRecurring();\n }\n }\n choosePaymethod(paymethod) {\n (0, _object.set)(this, 'chosenPaymethod', paymethod);\n this.args.onPaymethodSelected(true);\n }\n stopShowingSuccessDialog() {\n (0, _object.set)(this, 'showingSuccessDialog', false);\n }\n makeOneTimePayment() {\n this.commands.create('makeOnlinePayment', {\n accountId: this.args.account.id,\n paymethodId: (0, _object.get)(this, 'chosenPaymethod.id'),\n feeAmount: (0, _object.get)(this, 'oneTimePaymentFee') * 100,\n primaryAmount: (0, _object.get)(this, 'payTowardsBalance') * 100\n }).save().then(() => {\n (0, _object.set)(this, 'showingSuccessDialog', true);\n this.alert.success();\n this.reset();\n this.args.cancelPayment();\n return true;\n }, () => {\n this.alert.error();\n return false;\n });\n }\n selectAsRecurringPaymentMethod() {\n this.commands.create('selectRecurringPaymentMethod', {\n accountId: this.args.account.id,\n paymethodId: (0, _object.get)(this, 'chosenPaymethod.id')\n }).save().then(() => {\n this.alert.success();\n this.reset();\n this.args.cancelPayment();\n this.allPaymethods.forEach(paymethod => {\n if (!paymethod.isDeleted) {\n paymethod.reload();\n }\n });\n return true;\n }, () => {\n this.alert.error();\n return false;\n });\n }\n payWithoutSavingCreditCard() {\n const primaryAmount = this.payTowardsBalance * 100;\n const feeAmount = this.oneTimePaymentFee * 100;\n this.ajax.post(`${_environment.default.DS.host}/${_environment.default.DS.namespace}/online-payment/get-elavon-one-time-token`, {\n primary_amount: primaryAmount,\n fee_amount: feeAmount,\n first_name: this.insuredFirstName,\n last_name: this.insuredLastName,\n purpose: 'sale',\n account_id: this.args.account.id\n }).then(response => {\n this.reset();\n const paymentFields = {\n ssl_txn_auth_token: response.token\n };\n const callbacks = {\n onError: error => {\n this.triggerConfirmModal('error');\n },\n onCancelled: () => {\n // don't really need to do anything\n },\n onDeclined: response => {\n this.triggerConfirmModal('declined');\n },\n onApproval: response => {\n this.commands.create('make-one-time-credit-card-payment-elavon', {\n accountId: this.args.account.id,\n details: response,\n primaryAmount: primaryAmount,\n feeAmount: feeAmount\n }).save().then(() => {\n this.args.cancelPayment();\n });\n }\n };\n PayWithConverge.open(paymentFields, callbacks);\n });\n }\n redirectToXpressPay() {\n this.openExpressPayTab();\n this.reset();\n this.args.cancelPayment();\n }\n redirectToInsurePay() {\n const popup = window.open('', '_blank');\n (0, _object.set)(this, 'creatingInsurePayLink', true);\n this.ajax.post(`${_environment.default.DS.host}/${_environment.default.DS.namespace}/online-payment/create-insure-pay-link`, this.insurePayPayload()).then(response => {\n const paymentUrl = response.payment_url;\n if (!paymentUrl) {\n throw new Error('Failed to create InsurePay payment link');\n }\n if (popup) {\n popup.location = paymentUrl;\n } else {\n window.open(paymentUrl, '_blank');\n }\n this.reset();\n this.args.cancelPayment();\n }).catch(error => {\n if (popup) {\n popup.close();\n }\n this.alert.error(error && error.message || error || 'Failed to create InsurePay payment link');\n }).finally(() => {\n (0, _object.set)(this, 'creatingInsurePayLink', false);\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, \"ajax\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"brand\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"alert\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"commands\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"flipper\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"paymentAmountToDue\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"paymentAmountToDue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"oneTimePaymentFee\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"oneTimePaymentFee\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"recurringFee\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"recurringFee\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"total\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"total\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"insuredFirstName\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"insuredFirstName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"insuredLastName\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"insuredLastName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canAssociateAgencyAndInsured\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"canAssociateAgencyAndInsured\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deletePaymethod\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deletePaymethod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetInsuredFirstName\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetInsuredFirstName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetInsuredLastName\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetInsuredLastName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetPayTowardsBalance\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetPayTowardsBalance\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startPayingOneTimeCc\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startPayingOneTimeCc\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addCc\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addCc\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"choosePaymethod\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"choosePaymethod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopShowingSuccessDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopShowingSuccessDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"makeOneTimePayment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"makeOneTimePayment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectAsRecurringPaymentMethod\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAsRecurringPaymentMethod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"payWithoutSavingCreditCard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"payWithoutSavingCreditCard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"redirectToXpressPay\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"redirectToXpressPay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"redirectToInsurePay\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"redirectToInsurePay\"), _class.prototype)), _class));\n});","define(\"ui/components/page-title\", [\"exports\", \"@ember/component\", \"ui/mixins/testable-element\"], function (_exports, _component, _testableElement) {\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,\"ui/mixins/testable-element\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend(_testableElement.default, {\n tagName: 'h1',\n dataTest: 'page-title',\n classNames: ['page-title', 'left']\n });\n});","define(\"ui/components/pagination-controls\", [\"exports\", \"@glimmer/component\", \"@ember/object\"], function (_exports, _component, _object) {\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\"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), a = null), a; }\n let PaginationControlsComponent = _exports.default = (_class = class PaginationControlsComponent extends _component.default {\n get pageLength() {\n return this.args.pagination?.pageSize || 20;\n }\n nextPage() {\n if (this.isLastPage) {\n return false;\n }\n this.args.pagination.nextPage();\n }\n previousPage() {\n if (this.isFirstPage) {\n return false;\n }\n this.args.pagination.previousPage();\n }\n get isLastPage() {\n return this.args.pagination.pageNumber * this.pageLength >= this.args.pagination.total;\n }\n get isFirstPage() {\n return this.args.pagination.pageNumber === 1;\n }\n get numberOfPages() {\n return Math.ceil(this.args.pagination.total / this.pageLength);\n }\n }, (_applyDecoratedDescriptor(_class.prototype, \"nextPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previousPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"previousPage\"), _class.prototype)), _class);\n});","define(\"ui/components/paper-autocomplete-highlight\", [\"exports\", \"ember-paper/components/paper-autocomplete/highlight/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-autocomplete/highlight/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-autocomplete\", [\"exports\", \"ember-paper/components/paper-autocomplete/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-autocomplete/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-autocomplete/ebd-content\", [\"exports\", \"ember-paper/components/paper-autocomplete/ebd-content/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-autocomplete/ebd-content/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-autocomplete/ebd-trigger\", [\"exports\", \"ember-paper/components/paper-autocomplete/ebd-trigger/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-autocomplete/ebd-trigger/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-autocomplete/eps-trigger\", [\"exports\", \"ember-paper/components/paper-autocomplete/eps-trigger/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-autocomplete/eps-trigger/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-autocomplete/highlight\", [\"exports\", \"ember-paper/components/paper-autocomplete/highlight/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-autocomplete/highlight/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-autocomplete/no-matches-message\", [\"exports\", \"ember-paper/components/paper-autocomplete/no-matches-message/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-autocomplete/no-matches-message/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-autocomplete/options\", [\"exports\", \"ember-paper/components/paper-autocomplete/options/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,\"ember-paper/components/paper-autocomplete/options/index\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-autocomplete/reset-button\", [\"exports\", \"ember-paper/components/paper-autocomplete/reset-button/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-autocomplete/reset-button/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-backdrop\", [\"exports\", \"ember-paper/components/paper-backdrop\"], function (_exports, _paperBackdrop) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-backdrop\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperBackdrop.default;\n});","define(\"ui/components/paper-button\", [\"exports\", \"ember-paper/components/paper-button\"], function (_exports, _paperButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperButton.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-button\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-card-actions\", [\"exports\", \"ember-paper/components/paper-card-actions\"], function (_exports, _paperCardActions) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-actions\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardActions.default;\n});","define(\"ui/components/paper-card-avatar\", [\"exports\", \"ember-paper/components/paper-card-avatar\"], function (_exports, _paperCardAvatar) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-avatar\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardAvatar.default;\n});","define(\"ui/components/paper-card-content\", [\"exports\", \"ember-paper/components/paper-card-content\"], function (_exports, _paperCardContent) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-content\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardContent.default;\n});","define(\"ui/components/paper-card-header-headline\", [\"exports\", \"ember-paper/components/paper-card-header-headline\"], function (_exports, _paperCardHeaderHeadline) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-header-headline\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardHeaderHeadline.default;\n});","define(\"ui/components/paper-card-header-subhead\", [\"exports\", \"ember-paper/components/paper-card-header-subhead\"], function (_exports, _paperCardHeaderSubhead) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-header-subhead\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardHeaderSubhead.default;\n});","define(\"ui/components/paper-card-header-text\", [\"exports\", \"ember-paper/components/paper-card-header-text\"], function (_exports, _paperCardHeaderText) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-header-text\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardHeaderText.default;\n});","define(\"ui/components/paper-card-header-title\", [\"exports\", \"ember-paper/components/paper-card-header-title\"], function (_exports, _paperCardHeaderTitle) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-header-title\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardHeaderTitle.default;\n});","define(\"ui/components/paper-card-header\", [\"exports\", \"ember-paper/components/paper-card-header\"], function (_exports, _paperCardHeader) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-header\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardHeader.default;\n});","define(\"ui/components/paper-card-icon-actions\", [\"exports\", \"ember-paper/components/paper-card-icon-actions\"], function (_exports, _paperCardIconActions) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-icon-actions\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardIconActions.default;\n});","define(\"ui/components/paper-card-image\", [\"exports\", \"ember-paper/components/paper-card-image\"], function (_exports, _paperCardImage) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-image\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardImage.default;\n});","define(\"ui/components/paper-card-media\", [\"exports\", \"ember-paper/components/paper-card-media\"], function (_exports, _paperCardMedia) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-media\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardMedia.default;\n});","define(\"ui/components/paper-card-title-media\", [\"exports\", \"ember-paper/components/paper-card-title-media\"], function (_exports, _paperCardTitleMedia) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-title-media\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardTitleMedia.default;\n});","define(\"ui/components/paper-card-title-text\", [\"exports\", \"ember-paper/components/paper-card-title-text\"], function (_exports, _paperCardTitleText) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-title-text\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardTitleText.default;\n});","define(\"ui/components/paper-card-title\", [\"exports\", \"ember-paper/components/paper-card-title\"], function (_exports, _paperCardTitle) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card-title\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCardTitle.default;\n});","define(\"ui/components/paper-card\", [\"exports\", \"ember-paper/components/paper-card\"], function (_exports, _paperCard) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-card\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCard.default;\n});","define(\"ui/components/paper-checkbox\", [\"exports\", \"ember-paper/components/paper-checkbox\"], function (_exports, _paperCheckbox) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-checkbox\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperCheckbox.default;\n});","define(\"ui/components/paper-chips\", [\"exports\", \"ember-paper/components/paper-chips/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-chips/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-contact-chips\", [\"exports\", \"ember-paper/components/paper-contact-chips/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-contact-chips/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-content\", [\"exports\", \"ember-paper/components/paper-content/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-content/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-dialog-actions\", [\"exports\", \"ember-paper/components/paper-dialog-actions\"], function (_exports, _paperDialogActions) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperDialogActions.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-dialog-actions\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-dialog-container\", [\"exports\", \"ember-paper/components/paper-dialog-container\"], function (_exports, _paperDialogContainer) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperDialogContainer.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-dialog-container\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-dialog-content\", [\"exports\", \"ember-paper/components/paper-dialog-content\"], function (_exports, _paperDialogContent) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperDialogContent.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-dialog-content\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-dialog-inner\", [\"exports\", \"ember-paper/components/paper-dialog-inner\"], function (_exports, _paperDialogInner) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperDialogInner.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-dialog-inner\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-dialog\", [\"exports\", \"ember-paper/components/paper-dialog\"], function (_exports, _paperDialog) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperDialog.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-dialog\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-divider\", [\"exports\", \"ember-paper/components/paper-divider/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-divider/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-form\", [\"exports\", \"ember-paper/components/paper-form\"], function (_exports, _paperForm) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-form\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperForm.default;\n});","define(\"ui/components/paper-grid-list\", [\"exports\", \"ember-paper/components/paper-grid-list\"], function (_exports, _paperGridList) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperGridList.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-grid-list\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-grid-tile-footer\", [\"exports\", \"ember-paper/components/paper-grid-tile-footer\"], function (_exports, _paperGridTileFooter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperGridTileFooter.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-grid-tile-footer\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-grid-tile\", [\"exports\", \"ember-paper/components/paper-grid-tile\"], function (_exports, _paperGridTile) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperGridTile.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-grid-tile\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-icon\", [\"exports\", \"ember-paper/components/paper-icon\"], function (_exports, _paperIcon) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-icon\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperIcon.default;\n});","define(\"ui/components/paper-ink-bar\", [\"exports\", \"ember-paper/components/paper-ink-bar\"], function (_exports, _paperInkBar) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperInkBar.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-ink-bar\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-input\", [\"exports\", \"@ember/object/computed\", \"ember-paper/components/paper-input\"], function (_exports, _computed, _paperInput) {\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-paper/components/paper-input\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperInput.default.extend({\n isInvalidAndTouched: (0, _computed.alias)('isInvalid')\n });\n});","define(\"ui/components/paper-item\", [\"exports\", \"ember-paper/components/paper-item\"], function (_exports, _paperItem) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-item\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperItem.default;\n});","define(\"ui/components/paper-list\", [\"exports\", \"ember-paper/components/paper-list\"], function (_exports, _paperList) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-list\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperList.default;\n});","define(\"ui/components/paper-menu\", [\"exports\", \"ember-paper/components/paper-menu/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-menu/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-menu/content\", [\"exports\", \"ember-paper/components/paper-menu/content/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-menu/content/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-menu/item\", [\"exports\", \"ember-paper/components/paper-menu/item/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-menu/item/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-menu/trigger\", [\"exports\", \"ember-paper/components/paper-menu/trigger/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-menu/trigger/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-progress-circular\", [\"exports\", \"ember-paper/components/paper-progress-circular\"], function (_exports, _paperProgressCircular) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperProgressCircular.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-progress-circular\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-progress-linear\", [\"exports\", \"ember-paper/components/paper-progress-linear\"], function (_exports, _paperProgressLinear) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperProgressLinear.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-progress-linear\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-radio-group-label\", [\"exports\", \"ember-paper/components/paper-radio-group-label\"], function (_exports, _paperRadioGroupLabel) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperRadioGroupLabel.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-radio-group-label\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-radio-group\", [\"exports\", \"ember-paper/components/paper-radio-group\"], function (_exports, _paperRadioGroup) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperRadioGroup.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-radio-group\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-radio-proxiable\", [\"exports\", \"ember-paper/components/paper-radio-proxiable\"], function (_exports, _paperRadioProxiable) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperRadioProxiable.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-radio-proxiable\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-radio\", [\"exports\", \"ember-paper/components/paper-radio\"], function (_exports, _paperRadio) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperRadio.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-radio\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-reset-button\", [\"exports\", \"ember-paper/components/paper-reset-button\"], function (_exports, _paperResetButton) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperResetButton.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-reset-button\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-ripple\", [\"exports\", \"ember-paper/components/paper-ripple/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-ripple/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-select\", [\"exports\", \"ember-paper/components/paper-select/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-select/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-select/ebd-content\", [\"exports\", \"ember-paper/components/paper-select/ebd-content/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-select/ebd-content/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-select/ebd-trigger\", [\"exports\", \"ember-paper/components/paper-select/ebd-trigger/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-select/ebd-trigger/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-select/eps-trigger\", [\"exports\", \"ember-paper/components/paper-select/eps-trigger/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-select/eps-trigger/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-select/no-matches-message\", [\"exports\", \"ember-paper/components/paper-select/no-matches-message/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-select/no-matches-message/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-select/option\", [\"exports\", \"ember-paper/components/paper-select/option/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-select/option/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-select/options\", [\"exports\", \"ember-paper/components/paper-select/options/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,\"ember-paper/components/paper-select/options/index\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-select/search-message\", [\"exports\", \"ember-paper/components/paper-select/search-message/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-select/search-message/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-select/search\", [\"exports\", \"ember-paper/components/paper-select/search/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,\"ember-paper/components/paper-select/search/index\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-sidenav-container\", [\"exports\", \"ember-paper/components/paper-sidenav-container\"], function (_exports, _paperSidenavContainer) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperSidenavContainer.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-sidenav-container\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-sidenav-inner\", [\"exports\", \"ember-paper/components/paper-sidenav-inner\"], function (_exports, _paperSidenavInner) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-sidenav-inner\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperSidenavInner.default;\n});","define(\"ui/components/paper-sidenav-toggle\", [\"exports\", \"ember-paper/components/paper-sidenav-toggle\"], function (_exports, _paperSidenavToggle) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-sidenav-toggle\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperSidenavToggle.default;\n});","define(\"ui/components/paper-sidenav\", [\"exports\", \"ember-paper/components/paper-sidenav\"], function (_exports, _paperSidenav) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-sidenav\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperSidenav.default;\n});","define(\"ui/components/paper-slider\", [\"exports\", \"ember-paper/components/paper-slider/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-slider/component\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-speed-dial-actions-action\", [\"exports\", \"ember-paper/components/paper-speed-dial-actions-action\"], function (_exports, _paperSpeedDialActionsAction) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperSpeedDialActionsAction.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-speed-dial-actions-action\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-speed-dial-actions\", [\"exports\", \"ember-paper/components/paper-speed-dial-actions\"], function (_exports, _paperSpeedDialActions) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperSpeedDialActions.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-speed-dial-actions\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-speed-dial-trigger\", [\"exports\", \"ember-paper/components/paper-speed-dial-trigger\"], function (_exports, _paperSpeedDialTrigger) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperSpeedDialTrigger.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-speed-dial-trigger\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-speed-dial\", [\"exports\", \"ember-paper/components/paper-speed-dial\"], function (_exports, _paperSpeedDial) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperSpeedDial.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-speed-dial\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-subheader\", [\"exports\", \"ember-paper/components/paper-subheader\"], function (_exports, _paperSubheader) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-subheader\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperSubheader.default;\n});","define(\"ui/components/paper-switch\", [\"exports\", \"ember-paper/components/paper-switch\"], function (_exports, _paperSwitch) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-switch\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperSwitch.default;\n});","define(\"ui/components/paper-tab\", [\"exports\", \"ember-paper/components/paper-tab\"], function (_exports, _paperTab) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperTab.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-tab\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-tabs\", [\"exports\", \"ember-paper/components/paper-tabs\"], function (_exports, _paperTabs) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperTabs.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-tabs\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-toast-inner\", [\"exports\", \"ember-paper/components/paper-toast-inner\"], function (_exports, _paperToastInner) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperToastInner.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-toast-inner\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-toast-text\", [\"exports\", \"ember-paper/components/paper-toast-text\"], function (_exports, _paperToastText) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperToastText.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-toast-text\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-toast\", [\"exports\", \"ember-paper/components/paper-toast\"], function (_exports, _paperToast) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperToast.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-toast\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-toaster\", [\"exports\", \"ember-paper/components/paper-toaster\"], function (_exports, _paperToaster) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperToaster.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-toaster\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-toolbar-tools\", [\"exports\", \"ember-paper/components/paper-toolbar-tools\"], function (_exports, _paperToolbarTools) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-toolbar-tools\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperToolbarTools.default;\n});","define(\"ui/components/paper-toolbar\", [\"exports\", \"ember-paper/components/paper-toolbar\"], function (_exports, _paperToolbar) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-toolbar\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _paperToolbar.default;\n});","define(\"ui/components/paper-tooltip-inner\", [\"exports\", \"ember-paper/components/paper-tooltip-inner\"], function (_exports, _paperTooltipInner) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperTooltipInner.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-tooltip-inner\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/paper-tooltip\", [\"exports\", \"ember-paper/components/paper-tooltip\"], function (_exports, _paperTooltip) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _paperTooltip.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-paper/components/paper-tooltip\"eaimeta@70e063a35619d71f\n});","define(\"ui/components/payments/policy-select-table\", [\"exports\", \"ui/components/tables/list-table\"], function (_exports, _listTable) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ui/components/tables/list-table\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n /**\n Responsible for displaying payments on accounts.show.transactions\n \n ```\n {{payments/policy-select-table\n model=account.policies\n select=(action selectPolicy) }}\n ```\n \n @class payments.policy-select-table\n @extends ListTable\n */\n var _default = _exports.default = _listTable.default.extend({\n dataTestId: 'policy-select',\n classNames: ['list-table', 'policy-select-table', 'flex', 'flex-100'],\n /**\n The ember-data policies array (e.g., account.policies)\n @property model\n @type Array\n @default null\n @required\n */\n model: null\n });\n});","define(\"ui/components/pfa-example-data-fields\", [\"exports\", \"@glimmer/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,\"@glimmer/component\"eaimeta@70e063a35619d71f\n class PfaExampleDataFieldsComponent extends _component.default {\n get fields() {\n return buildFields(this.args.data, this.args.path);\n }\n }\n _exports.default = PfaExampleDataFieldsComponent;\n function buildFields(data, parentPath = '') {\n if (Array.isArray(data)) {\n return data.map((item, index) => buildArrayItem('item', item, index, parentPath));\n }\n if (!isObject(data)) {\n return [];\n }\n return Object.keys(data).map(key => buildField(key, data[key], parentPath));\n }\n function buildField(key, value, parentPath) {\n let rubyKey = rubyHashKey(key);\n let keyPath = parentPath ? `${parentPath}['${rubyKey}']` : rubyKey;\n let field = {\n key,\n rubyKey,\n keyPath,\n label: rubyKey,\n value,\n displayValue: displayValue(value),\n isArray: Array.isArray(value),\n isObject: isObject(value)\n };\n if (field.isArray) {\n field.items = value.map((item, index) => buildArrayItem(key, item, index, keyPath));\n }\n return field;\n }\n function buildArrayItem(key, value, index, parentPath) {\n let rubyKey = rubyHashKey(key);\n let basePath = parentPath || rubyKey;\n return {\n keyPath: `${basePath}[${index}]`,\n label: `${basePath}[${index}]`,\n value,\n displayValue: displayValue(value),\n isArray: Array.isArray(value),\n isObject: isObject(value)\n };\n }\n function isObject(value) {\n return value !== null && typeof value === 'object' && !Array.isArray(value);\n }\n function displayValue(value) {\n if (value === null || value === undefined) {\n return '--';\n }\n if (value === '') {\n return '(blank)';\n }\n if (value === true) {\n return 'True';\n }\n if (value === false) {\n return 'False';\n }\n return `${value}`;\n }\n function rubyHashKey(key) {\n return `${key}`.replace(/-/g, '_');\n }\n});","define(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/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(\"ui/components/quote-analysis/equity-per-installment\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"chart.js/auto\", \"ui/helpers/format-currency\"], function (_exports, _component, _object, _auto, _formatCurrency) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.equityConfig = equityConfig;\n var _class;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"chart.js/auto\",0,\"ui/helpers/format-currency\"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), a = null), a; }\n function equityConfig(equity = []) {\n return {\n type: 'bar',\n data: {\n labels: equity.map((_, index) => index + 1),\n datasets: [{\n data: equity,\n backgroundColor: '#03A9F4',\n borderWidth: 0\n }]\n },\n options: {\n maintainAspectRatio: false,\n plugins: {\n legend: {\n display: false\n },\n tooltip: {\n callbacks: {\n title: () => '',\n label: context => (0, _formatCurrency.formatCurrency)(context.raw)\n }\n }\n },\n scales: {\n x: {\n grid: {\n display: false\n },\n title: {\n display: true,\n text: 'Installment'\n }\n },\n y: {\n beginAtZero: true,\n grid: {\n display: false\n },\n ticks: {\n callback: value => (0, _formatCurrency.formatCurrency)(value, 0)\n }\n }\n }\n }\n };\n }\n let QuoteAnalysisEquityPerInstallmentComponent = _exports.default = (_class = class QuoteAnalysisEquityPerInstallmentComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _defineProperty(this, \"chart\", void 0);\n }\n createChart(canvas) {\n this.chart = new _auto.default(canvas, equityConfig(this.args.equity ?? []));\n }\n updateChart() {\n if (this.chart) {\n this.chart.data = equityConfig(this.args.equity ?? []).data;\n this.chart.update();\n }\n }\n destroyChart() {\n this.chart?.destroy();\n }\n }, (_applyDecoratedDescriptor(_class.prototype, \"createChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createChart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateChart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroyChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroyChart\"), _class.prototype)), _class);\n});","define(\"ui/components/quote-analysis/late-fee-histogram\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"chart.js/auto\"], function (_exports, _component, _object, _auto) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.formatAxisProbability = formatAxisProbability;\n _exports.formatProbability = formatProbability;\n _exports.histogramConfig = histogramConfig;\n _exports.histogramData = histogramData;\n var _class;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"chart.js/auto\"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), a = null), a; }\n const CHART_FONT_FAMILY = \"'Source Sans 3', sans-serif\";\n function formatProbability(value) {\n return `${Number(value).toFixed(1)}%`;\n }\n function formatAxisProbability(value) {\n return `${Number(value).toFixed(0)}%`;\n }\n function histogramData(probabilities = {}) {\n const entries = Object.entries(probabilities).map(([lateFeeCount, probability]) => [Number(lateFeeCount), Number(probability)]).filter(([lateFeeCount, probability]) => Number.isFinite(lateFeeCount) && Number.isFinite(probability)).sort(([leftCount], [rightCount]) => leftCount - rightCount);\n return {\n labels: entries.map(([lateFeeCount]) => lateFeeCount),\n probabilities: entries.map(([, probability]) => probability)\n };\n }\n function histogramConfig(probabilities) {\n const data = histogramData(probabilities);\n return {\n type: 'bar',\n data: {\n labels: data.labels,\n datasets: [{\n data: data.probabilities,\n backgroundColor: '#03A9F4',\n borderWidth: 0\n }]\n },\n options: {\n font: {\n family: CHART_FONT_FAMILY\n },\n maintainAspectRatio: false,\n plugins: {\n legend: {\n display: false\n },\n tooltip: {\n callbacks: {\n title: () => '',\n label: context => formatProbability(context.raw)\n }\n }\n },\n scales: {\n x: {\n grid: {\n display: false\n }\n },\n y: {\n beginAtZero: true,\n suggestedMax: 100,\n grid: {\n display: false\n },\n ticks: {\n callback: formatAxisProbability\n },\n title: {\n display: true,\n text: 'Probability'\n }\n }\n }\n }\n };\n }\n let QuoteAnalysisLateFeeHistogramComponent = _exports.default = (_class = class QuoteAnalysisLateFeeHistogramComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _defineProperty(this, \"chart\", void 0);\n }\n updateChart(canvas) {\n const config = histogramConfig(this.args.probabilities);\n if (config.data.labels.length === 0) {\n this.destroyChart();\n return;\n }\n if (this.chart) {\n this.chart.data = config.data;\n this.chart.update();\n } else {\n this.chart = new _auto.default(canvas, config);\n }\n }\n destroyChart() {\n this.chart?.destroy();\n this.chart = null;\n }\n }, (_applyDecoratedDescriptor(_class.prototype, \"updateChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateChart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroyChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroyChart\"), _class.prototype)), _class);\n});","define(\"ui/components/quote-analysis/simulation-distribution\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"chart.js/auto\", \"ui/helpers/format-currency\"], function (_exports, _component, _object, _auto, _formatCurrency) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _exports.averageLinePlugin = _exports.DISTRIBUTION_DESCRIPTION = void 0;\n _exports.distributionConfig = distributionConfig;\n _exports.distributionPoints = distributionPoints;\n _exports.formatDistributionValue = formatDistributionValue;\n var _class;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"chart.js/auto\",0,\"ui/helpers/format-currency\"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), a = null), a; }\n const CHART_FONT_FAMILY = \"'Source Sans 3', sans-serif\";\n const DISTRIBUTION_DESCRIPTION = _exports.DISTRIBUTION_DESCRIPTION = \"This chart shows the distribution of simulated accounts with this quote's characteristics. The distribution includes results from the 5th-95th percentile, while the average value includes all simulations.\";\n function formatDistributionValue(value, valueFormat, precision = 2) {\n const number = Number(value);\n if (!Number.isFinite(number)) {\n return '--';\n }\n if (valueFormat === 'percentage') {\n return `${(number * 100).toFixed(precision)}%`;\n }\n return (0, _formatCurrency.formatCurrency)(number, precision);\n }\n function distributionPoints(statistics = {}) {\n return (statistics.distribution || []).map(point => ({\n x: Number(point.value),\n y: Number(point.relative_likelihood)\n })).filter(({\n x,\n y\n }) => Number.isFinite(x) && Number.isFinite(y)).sort(({\n x: leftValue\n }, {\n x: rightValue\n }) => leftValue - rightValue);\n }\n const averageLinePlugin = _exports.averageLinePlugin = {\n id: 'quoteAnalysisAverageLine',\n afterDatasetsDraw(chart, _args, options) {\n const average = Number(options.value);\n const xScale = chart.scales.x;\n if (!Number.isFinite(average) || !xScale) {\n return;\n }\n const x = xScale.getPixelForValue(average);\n const {\n ctx,\n chartArea\n } = chart;\n const label = options.label || `Average: ${average}`;\n const labelPadding = 5;\n const labelOffset = 8;\n ctx.save();\n ctx.strokeStyle = '#455A64';\n ctx.lineWidth = 2;\n ctx.setLineDash([6, 4]);\n ctx.beginPath();\n ctx.moveTo(x, chartArea.top);\n ctx.lineTo(x, chartArea.bottom);\n ctx.stroke();\n ctx.font = '600 12px Roboto, sans-serif';\n const labelWidth = ctx.measureText(label).width + labelPadding * 2;\n const labelHeight = 24;\n const labelLeft = Math.min(x + labelOffset, chart.width - labelWidth - 4);\n const labelTop = chartArea.top + 5;\n ctx.setLineDash([]);\n ctx.fillStyle = '#455A64';\n ctx.fillRect(labelLeft, labelTop, labelWidth, labelHeight);\n ctx.fillStyle = '#FFFFFF';\n ctx.textAlign = 'center';\n ctx.textBaseline = 'middle';\n ctx.fillText(label, labelLeft + labelWidth / 2, labelTop + labelHeight / 2);\n ctx.restore();\n }\n };\n function distributionConfig(statistics, valueFormat, averageValue) {\n const explicitAverage = Number(averageValue);\n const average = averageValue !== undefined && averageValue !== null && Number.isFinite(explicitAverage) ? explicitAverage : Number(statistics?.mean);\n const points = distributionPoints(statistics);\n const xValues = points.map(({\n x\n }) => x);\n if (Number.isFinite(average)) {\n xValues.push(average);\n }\n const xMinimum = Math.min(...xValues);\n const xMaximum = Math.max(...xValues);\n const formatValue = (value, precision = 2) => formatDistributionValue(value, valueFormat, precision);\n return {\n type: 'line',\n data: {\n datasets: [{\n data: points,\n parsing: false,\n borderColor: '#03A9F4',\n backgroundColor: 'rgba(3, 169, 244, 0.18)',\n borderWidth: 3,\n pointRadius: 0,\n tension: 0.35,\n fill: true\n }]\n },\n plugins: [averageLinePlugin],\n options: {\n font: {\n family: CHART_FONT_FAMILY\n },\n maintainAspectRatio: false,\n events: [],\n plugins: {\n legend: {\n display: false\n },\n tooltip: {\n enabled: false\n },\n quoteAnalysisAverageLine: {\n value: average,\n label: `Average: ${formatValue(average)}`\n }\n },\n scales: {\n x: {\n type: 'linear',\n suggestedMin: xMinimum,\n suggestedMax: xMaximum,\n grid: {\n display: false\n },\n ticks: {\n callback: value => formatValue(value, 0)\n }\n },\n y: {\n beginAtZero: true,\n min: 0,\n max: 1.05,\n grid: {\n display: false\n },\n ticks: {\n display: false\n },\n title: {\n display: true,\n text: 'Relative likelihood'\n }\n }\n }\n }\n };\n }\n let QuoteAnalysisSimulationDistributionComponent = _exports.default = (_class = class QuoteAnalysisSimulationDistributionComponent extends _component.default {\n constructor(...args) {\n super(...args);\n _defineProperty(this, \"chart\", void 0);\n _defineProperty(this, \"infoVisualization\", {\n description: DISTRIBUTION_DESCRIPTION\n });\n }\n updateChart(canvas) {\n if (distributionPoints(this.args.statistics).length === 0) {\n this.destroyChart();\n return;\n }\n const config = distributionConfig(this.args.statistics, this.args.valueFormat, this.args.average);\n if (this.chart) {\n this.chart.data = config.data;\n this.chart.options = config.options;\n this.chart.update();\n } else {\n this.chart = new _auto.default(canvas, config);\n }\n }\n destroyChart() {\n this.chart?.destroy();\n this.chart = null;\n }\n }, (_applyDecoratedDescriptor(_class.prototype, \"updateChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateChart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroyChart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroyChart\"), _class.prototype)), _class);\n});","define(\"ui/components/quotes/apr-comparison\", [\"exports\", \"@ember/service\", \"@ember/component\", \"@ember/object\"], function (_exports, _service, _component, _object) {\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/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n /**\n @module Component\n */\n var _default = _exports.default = _component.default.extend({\n ajax: (0, _service.inject)(),\n classNames: ['apr-comparison'],\n newAprIsMore: true,\n policies: (0, _object.computed)('model.fundings', function () {\n let quote = this.model;\n let fundings = quote.get('fundings');\n return quote.get('policies').map(policy => {\n let funding = fundings.findBy('policyId', parseInt(policy.get('id')));\n for (let prop in funding) {\n if (funding.hasOwnProperty(prop) && prop !== 'id') {\n policy.set(prop, funding.get(prop));\n }\n }\n return policy;\n });\n }),\n newAprComparison: (0, _object.computed)('newApr', 'model.apr', function () {\n let newApr = this.newApr;\n let apr = (0, _object.get)(this, 'model.apr');\n if (newApr > apr) {\n return 'success';\n } else if (newApr < apr) {\n return 'danger';\n }\n }),\n getNewApr() {\n let quoteId = (0, _object.get)(this, 'model.id');\n let payload = (0, _object.get)(this, 'policies').map(policy => {\n return {\n policyId: policy.get('id'),\n earliestDate: policy.get('proposedEarliestDate') || policy.get('earliestDate')\n };\n });\n return (0, _object.get)(this, 'ajax').fundingDelayCalculation(quoteId, payload);\n },\n updateNewApr(policy, proposedEarliestDate) {\n policy.set('proposedEarliestDate', proposedEarliestDate);\n this.getNewApr().then(newApr => {\n (0, _object.set)(this, 'newApr', newApr);\n });\n }\n });\n});","define(\"ui/components/script-injector\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\"], function (_exports, _component, _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/component\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n store: (0, _service.inject)(),\n session: (0, _service.inject)(),\n scriptsLoaded: false,\n injectedScripts: [],\n didInsertElement() {\n this._super(...arguments);\n this.loadAndInjectScripts();\n },\n willDestroyElement() {\n this._super(...arguments);\n this.removeAllScripts();\n },\n async loadAndInjectScripts() {\n // Prevent loading scripts multiple times\n if (this.scriptsLoaded) {\n return;\n }\n try {\n const tenantSubdomain = this.session.get('effectiveTenant');\n if (!tenantSubdomain) {\n return;\n }\n const tenants = await this.store.query('tenant', {\n filter: {\n subdomain: tenantSubdomain\n }\n });\n const tenantId = tenants.get('firstObject')?.get('id');\n if (!tenantId) {\n return;\n }\n const scripts = await this.store.query('javascript-script', {\n filter: {\n tenant_id: tenantId,\n enabled: true\n }\n });\n scripts.forEach(script => {\n this.injectScript(script);\n });\n (0, _object.set)(this, 'scriptsLoaded', true);\n } catch (error) {\n console.error('Failed to load custom scripts:', error);\n }\n },\n injectScript(scriptModel) {\n try {\n const content = scriptModel.scriptContent?.trim();\n if (!content) {\n return;\n }\n // Process full HTML