1import{c as L,d as F,e as k,f as V}from"./chunk-VA4OIPUL.js";import{c as U}from"./chunk-CBHFYP5M.js";import{G as E,c as I,d as x}from"./chunk-5UX7LOXR.js";import{a as S,b as P}from"./chunk-BSAB5FTB.js";import{D as y,g as D,h as B,i as $,j as T,v as O,y as b}from"./chunk-IVKO44MK.js";import{$b as u,Gb as _,Gc as d,Hc as f,Ic as A,Lb as w,Qc as C,Zb as r,_ as N,_b as l,ac as p,pb as a,ra as v,rc as m,wa as s}from"./chunk-GV4FS4I4.js";var z=(function(e){return e.FlatBill="FlatBill",e.FixedRate="Fixed Rate",e.BudgetBilling="Budget Billing",e})(z||{}),q=(function(e){return e.Eft="Eft",e.Closed="Closed",e.Ineligible="Ineligible",e.SummaryBilling="SummaryBilling",e.CashOnly="CashOnly",e})(q||{}),J=(function(e){return e.Success="Y",e.Failure="N",e.Unknown="U",e})(J||{}),Y=(function(e){return e.AutoPaySameDayUnenroll="AUTO_PAY_SAME_DAY",e})(Y||{}),ve={[Y.AutoPaySameDayUnenroll]:"We're sorry, but you cannot unenroll from Auto Pay on the same day you enrolled. Please try again after 24 hours. If you need further assistance, please contact our customer support team at #. "}
1,K=(function(e){return e[e.NotApplicable=0]="NotApplicable",e[e.CurrentDueAmount=1]="CurrentDueAmount",e[e.FullAmount=2]="FullAmount",e[e.OtherAmount=3]="OtherAmount",e})(K||{}),Q=(function(e){return e.NoTypeSupplied="NoTypeSupplied",e.Electric="Electric",e.Gas="Gas",e})(Q||{}),X=(function(e){return e.Connected="Connected",e.Disconnected="Disconnected",e.PendingConnect="PendingConnect",e.PendingDisconnect="PendingDisconnect",e.Unknown="Unknown",e})(X||{}),Z=(function(e){return e.On="On",e.Off="Off",e.Unknown="Unknown",e})(Z||{});var R=(function(e){return e.NotEligible="NotEligible",e.SinglePartEligible="SinglePartEligible",e.SinglePartExisting="SinglePartExisting",e.MultiPartExisting="MultiPartExisting",e})(R||{});var ee=(function(e){return e.Add="ADD",e.Update="UPD",e})(ee||{}),te=(function(e){return e.PrePayPayByDayAccount="PrePayPayByDayAccount",e.FinalAccount="FinalAccount",e.FinalCollections="FinalCollections",e.NoOutstandingAmounts="NoOutstandingAmounts",e.BillExtenderProgram="BillExtenderProgram",e.SummaryBillAccount="SummaryBillAccount",e.NoBillInfoHeaderRow="NoBillInfoHeaderRow",e.EnrolledInAutoPay="EnrolledInAutoPay",e.CutNonPay="CutNonPay",e.ActivePayPlan="ActivePayPlan",e.DefaultedOnPreviousPayPlan="DefaultedOnPreviousPayPlan",e.EligibleToCutSpecial="EligibleToCutSpecial",e.ReturnedItemLast30Days="ReturnedItemLast30Days",e.PendingService="PendingService",e.ThreeMonthBillBrokenPayPlan="ThreeMonthBillBrokenPayPlan",e.RecommendedHoldDateHasPassed="RecommendedHoldDateHasPassed",e.Success="Success",e.EligibleToCut="EligibleToCut",e.UnbilledDeposit="UnbilledDeposit",e.MultiInstallmentPayPlan="MultiInstallmentPayPlan",e.ExistingPayPlanOver2MonthsService="ExistingPayPlanOver2MonthsService",e.PendingPrePayAccount="PendingPrePayAccount",e.NoActiveNonServiceSA="NoActiveNonServiceSA",e})(te||{});var _e=(()=>{let t=class t{constructor(){this.http=s(y),this.httpCacheService=s(x),this.globalConstants=s(S),this.userService=s(E),this.constants=this.globalConstants.getConstants(),this.apiPayPlanEndpoint=this.constants.apiAscendPaymentBaseUrl+"api/v1/PayPlans/"}payPlanDeclined(n){this.httpCacheService.removeCache("getBillSummary"),this.httpCacheService.removeCache("getPayPlanStatus"),this.httpCacheService.removeCache("payPlanEligibility");let i=`${this.apiPayPlanEndpoint}decline`;return this.http.post(i,n)}payPlanEnroll(n){this.httpCacheService.removeCache("getBillSummary"),this.httpCacheService.removeCache("getPayPlanStatus"),this.httpCacheService.removeCache("payPlanEligibility"),this.httpCacheService.removeCache("getReminders");let i=`${this.apiPayPlanEndpoint}enroll`;return this.http.post(i,n)}payPlanModify(n){this.httpCacheService.removeCache("getBillSummary"),this.httpCacheService.removeCache("getPayPlanStatus"),this.httpCacheService.removeCache("payPlanEligibility");let i=`${this.apiPayPlanEndpoint}modify`;return this.http.post(i,n)}getPayPlanStatus(n){let i=this.userService.accountSummary.accountId,o=this.userService.accountSummary.accountType,h=this.httpCacheService.setUrl("getPayPlanStatus",`${this.apiPayPlanEndpoint}Status/${i}/${o}`,n?{payPlanId:n}:void 0);return this.httpCacheService.get(h)}getPayPlanEligibility(n,i){let o=this.httpCacheService.setUrl("payPlanEligibility",`${this.apiPayPlanEndpoint}eligibility/${n}`,{actionType:i});return this.httpCacheService.get(o)}filterReminderDayOptions(n,i){let o=new Date,h=new Date(o.getFullYear(),o.getMonth(),o.getDate()),j=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime()-h.getTime(),W=Math.round(j/(1e3*60*60*24));return i.filter(G=>parseInt(G.value,10)<W)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ve=(()=>{let t=class t{constructor(){this.globalConstants=s(S),this.http=s(y),this.httpCacheService=s(x),this.userService=s(E),this.utilitiesService=s(I),this.webLogsService=s(V),this.constants=this.globalConstants.getConstants(),this.apiEndPoint=`${this.constants.apiAscendCustomerServiceBaseUrl}api/v1/NewsLetter/`}getCurrentIssue(n,i,o,h){let g=this.httpCacheService.setUrl("currentIssue",`${this.apiEndPoint}CurrentIssue?Opco=${n}&Month=${i}&Year=${o}&AccountType=${h}`);return this.httpCacheService.get(g)}getNewsletterName(){switch(this.userService.operatingCompany){case P.APC:return"Power Facts";case P.MPC:return"Brighter Views";
1default:return"Electric Living"}}getNewsletterThumbnailByDateOpco(n,i,o){return this.http.get(`${this.apiEndPoint}ThumbnailByDateOpco?Opco=${n}&Month=${i}&Year=${o}`)}getNewsletterThumbnailById(n){return this.http.get(`${this.apiEndPoint}ThumbnailByid/${n}`)}getPastIssues(n,i){let o=this.httpCacheService.setUrl("pastIssues",`${this.apiEndPoint}PastIssues?Opco=${n}&AccountType=${i}`);return this.httpCacheService.get(o)}getPast12Issues(n,i,o,h){let g=this.httpCacheService.setUrl("past12Issues",`${this.apiEndPoint}Past12Issues?Opco=${n}&Month=${i}&Year=${o}&AccountType=${h}`);return this.httpCacheService.get(g)}openNewsletterLink(n){this.webLogsService.insertWebLogAscend({activityType:k.View,logType:L.EBill,functionArea:F.BillInsert,eventDesc:"View Bill Insert for account "+this.userService.accountSummary.accountId,isSuccessful:!0}),this.openNewsletterFileById(n)}openNewsletterFileById(n){let i=new b().set("Id",n),o=this.utilitiesService.openWindow();document.body.style.cursor="wait",this.http.get(`${this.apiEndPoint}FileById`,{params:i,responseType:"arraybuffer"}).pipe(N(()=>document.body.style.cursor="default")).subscribe({next:h=>{let g=new Blob([h],{type:"application/pdf"});this.utilitiesService.redirectWindowToBlob(o,g)},error:()=>o?.close()})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var M=(function(e){return e.ApplePay="ApplePay",e.GooglePay="GooglePay",e.PayPal="PayPal",e.Venmo="Venmo",e})(M||{});function ne(e,t){e&1&&p(0,"img",11)}function ie(e,t){if(e&1&&(l(0,"span",12),d(1),u()),e&2){let c=m();a(),f(c.payMethodName)}}function oe(e,t){e&1&&p(0,"img",13)}function re(e,t){if(e&1&&(l(0,"span",12),d(1),u()),e&2){let c=m();a(),f(c.payMethodName)}}function ae(e,t){e&1&&p(0,"img",14)}function ce(e,t){if(e&1&&(l(0,"span",12),d(1),u()),e&2){let c=m();a(),f(c.payMethodName)}}function se(e,t){e&1&&p(0,"img",15)}function pe(e,t){if(e&1&&(l(0,"span",12),d(1),u()),e&2){let c=m();a(),f(c.payMethodName)}}function me(e,t){if(e&1&&p(0,"img",16),e&2){let c=m();r("alt",C(c.payMethodName))}}function he(e,t){if(e&1&&p(0,"img",17),e&2){let c=m();r("alt",C(c.payMethodName))}}function le(e,t){if(e&1&&p(0,"img",18),e&2){let c=m();r("alt",C(c.payMethodName))}}function ue(e,t){if(e&1&&p(0,"img",19),e&2){let c=m();r("alt",C(c.payMethodName))}}function ge(e,t){e&1&&(l(0,"a",21),p(1,"i",22),u()),e&2&&r("outsideClick",!0)("popover","This includes Apple Pay, Google Pay, PayPal, and Venmo payments.")}function de(e,t){if(e&1&&(l(0,"span"),d(1),w(2,ge,2,2,"a",20),u()),e&2){let c=m();a(),A(" ",c.payMethodName),a(),r("ngIf",c.payMethodName==="Digital Wallet")}}var qe=(()=>{let t=class t{constructor(){this.paymentCategoryEnum=M}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=_({type:t,selectors:[["occ-pay-method-logo"]],inputs:{payMethodName:"payMethodName",payMethodValue:"payMethodValue"},decls:14,vars:13,consts:[[3,"ngSwitch"],["src","/images/payment-methods/ach-logo.png","height","28",4,"ngSwitchCase"],["class","pay-method-label",4,"ngSwitchCase"],["src","/images/payment-methods/credit-card-logo.png","height","22",4,"ngSwitchCase"],["src","/images/payment-methods/debit-card-logo.png","height","22",4,"ngSwitchCase"],["src","/images/payment-methods/card-logo.png","height","22",4,"ngSwitchCase"],["src","/images/payment-methods/apple-pay-logo.png","height","35",3,"alt",4,"ngSwitchCase"],["src","/images/payment-methods/google-pay-logo.png","height","35",3,"alt",4,"ngSwitchCase"],["src","/images/payment-methods/paypal-logo.png","height","24",3,"alt",4,"ngSwitchCase"],["src","/images/payment-methods/venmo-logo.png","height","16",3,"alt",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["src","/images/payment-methods/ach-logo.png","height","28"],[1,"pay-method-label"],["src","/images/payment-methods/credit-card-logo.png","height","22"],["src","/images/payment-methods/debit-card-logo.png","height","22"],["src","/images/payment-methods/card-logo.png","height","22"],["src","/images/payment-methods/apple-pay-logo.png","height","35",3,"alt"],["src","/images/payment-methods/google-pay-logo.png","height","35",3,"alt"],["src","/images/payment-methods/paypal-logo.png","height","24",3,"alt"],["src","/images/payment-methods/venmo-logo.png","height","16",3,"alt"],["class","icon-spacing-left",3,"outsideClick","popover",4,"ngIf"],[1,"icon-spacing-left",3,"outsideClick","popover"],[1,"fa","fa-info-circle"]],template:function(i,o){i&1&&(l(0,"div",0),w(1,ne,1,0,"img",1)(2,ie,2,1,"span",2)(3,oe,1,0,"img",3)(4,re,2,1,"span",2)(5,ae,1,0,"img",4)(6,ce,2,1,"span",2)(7,se,1,0,"img",5)(8,pe,2,1,"span",2)(9,me,1,2,"img",6)(10,he,1,2,"img",7)(11,le,1,2,"img",8)(12,ue,1,2,"img",9)(13,de,3,2,"span",10),u()),i&2&&(r("ngSwitch",o.payMethodValue),a(),r("ngSwitchCase",-1),a(),r("ngSwitchCase",-1),a(),r("ngSwitchCase",-2),a(),r("ngSwitchCase",-2),a(),r("ngSwitchCase",-3),a(),r("ngSwitchCase",-3),a(),r("ngSwitchCase","Card"),a(),r("ngSwitchCase","Card"),a(),r("ngSwitchCase",o.paymentCategoryEnum.ApplePay),a(),r("ngSwitchCase",o.paymentCategoryEnum.GooglePay),a(),r("ngSwitchCase",o.paymentCategoryEnum.PayPal),a(),r("ngSwitchCase",o.paymentCategoryEnum.Venmo))},dependencies:[O,D,B,$,T,U],encapsulation:2});let e=t;return e})();export{z as a,q as b,J as c,Y as d,ve as e,K as f,Q as g,X as h,Z as i,R as j,ee as k,te as l,_e as m,Ve as n,M as o,qe as p};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.