1import{a as A,b as P,c as xe}from"./chunk-HJNZRW6W.js";import{b as Ce}from"./chunk-NRIJESHM.js";import{a as at}from"./chunk-QIJFN622.js";import{b as Ye,d as je,g as Ke,h as Qe,i as Ze,k as Je}from"./chunk-QCQS6FND.js";import{b as Oe}from"./chunk-QNLCJB32.js";import{a as nt}from"./chunk-2RWDNVPN.js";import{a as Xe}from"./chunk-AOR3LCFC.js";import{a as ot}from"./chunk-6QFSCBKG.js";import{a as et}from"./chunk-JQGL2ZOM.js";import"./chunk-FKKL3XMQ.js";import{a as rt}from"./chunk-5PNCNZZ7.js";import{a as $e}from"./chunk-FNUH6QDF.js";import"./chunk-6RDGXMI7.js";import"./chunk-WU746J7T.js";import{a as tt,b as it}from"./chunk-MJYM7VF6.js";import{a as fe,c as ve}from"./chunk-3OUOMSJ2.js";import{b as K}from"./chunk-UZULQSOJ.js";import{a as he}from"./chunk-67UDPAWG.js";import{a as Le}from"./chunk-SECJNKOY.js";import{B as _e,b as Ne,c as de,f as We,h as me,i as Fe,k as pe,m as Q,n as Be,o as Ue,s as qe,t as He,u as ze,v as ue,y as ge,z as Ge}from"./chunk-LW33INVI.js";import"./chunk-FFZFW6O4.js";import{a as Pe}from"./chunk-3WYUHSXD.js";import{B as ce,D as Ie,G as j,h as F,i as L,j as Y,k as re,l as we,x as ae,y as se,z as le}from"./chunk-5UX7LOXR.js";import{a as oe,b}from"./chunk-BSAB5FTB.js";import{L as ke,N as Ve,R as De,T as ie,U as ne,c as Me,f as ee,g as U,h as q,i as H,j as z,l as te,v as G}from"./chunk-IVKO44MK.js";import{$b as n,Ba as p,Bc as y,Ca as u,Gb as B,Gc as a,Hc as S,Ib as Ee,Ic as w,Kc as X,Lb as _,Nc as v,Oc as f,Pc as x,Qc as V,Rc as I,Sa as Te,Sc as Re,Tc as E,Uc as ye,Zb as d,_b as o,ac as h,ec as Z,fc as J,fd as D,gc as k,hc as C,kb as M,lb as T,ob as Ae,pb as r,pc as g,ra as be,rc as c,wa as O}from"./chunk-GV4FS4I4.js";var st=(()=>{let m=class m{constructor(){this.router=O(ie),this.userService=O(j)}canActivate(s){return s.routeConfig.path.includes("Report")&&(!this.userService.isLoggedIn||!this.userService.cap.length)?(this.router.navigate(["Outages/Report/Location"]),!1):!0}};m.\u0275fac=function(t){return new(t||m)},m.\u0275prov=be({token:m,factory:m.\u0275fac,providedIn:"root"});let i=m;return i})();var ut=()=>["/Login"],gt=()=>["/Register"],_t=()=>({outageType:"Electric"}),$=()=>({activePanel:"Outages"});function ht(i,m){if(i&1&&(o(0,"div",22)(1,"div",23),h(2,"i",24)(3,"span",25),n()()),i&2){let e=c();r(3),d("innerHtml",e.bannerMessage,M)}}function ft(i,m){if(i&1){let e=C();o(0,"div")(1,"p")(2,"strong"),a(3,"Registered Users"),n(),a(4," can receive outage status for their accounts."),n(),o(5,"a",30),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Login Button","outages"))}),a(6,"Login"),n(),o(7,"a",31),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Register Now","outages"))}),a(8,"Don't have an account? Register now"),n(),o(9,"div",28)(10,"p"),a(11," Registered users can also:"),h(12,"br"),a(13," \u2012 Enroll in outage alerts"),h(14,"br"),a(15," \u2012 Receive outage status for their accounts."),h(16,"br"),a(17," \u2012 Learn about weather events in your area. "),n()(),h(18,"div",27),o(19,"div",28)(20,"p")(21,"strong"),a(22,"Not registered?"),n(),a(23," You can report an outage without logging in."),n(),o(24,"a",32),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Report an Outage","outages"))}),a(25,"Report an Outage"),h(26,"i",33),n()()()}i&2&&(r(5),d("routerLink",E(2,ut)),r(2),d("routerLink",E(3,gt)))}function vt(i,m){i&1&&(Z(0),h(1,"div",27),o(2,"div",28)(3,"p",37)(4,"strong"),a(5,"Experiencing an outage?"),n(),a(6," Quickly report an outage for your business. "),n(),o(7,"a",38),a(8,"Report an Outage"),n()(),J())}function xt(i,m){if(i&1){let e=C();o(0,"div",35)(1,"occ-service-agreement-selector",36),g("selectOption",function(t){p(e);let l=c(3);return u(l.onServiceAgreementChange(t))}),n(),_(2,vt,9,0,"ng-container",14),n()}if(i&2){let e=c(3);r(),d("options",e.filteredServiceAgreements)("selectedItem",e.selectedServiceAgreement)("filterStatusTypes",e.serviceStatus),r(),d("ngIf",!e.selectedServiceAgreement)}}function Ct(i,m){i&1&&(o(0,"p",43),a(1," Your Power is: "),o(2,"span",44),a(3,"ON"),n()())}function St(i,m){i&1&&(o(0,"p",43),a(1,"UNAVAILABLE"),n())}function yt(i,m){i&1&&k(0)}function wt(i,m){if(i&1&&h(0,"p",45),i&2){let e=c(5);d("innerHtml",e.notes,M)}}function Ot(i,m){if(i&1&&(o(0,"div",28)(1,"h3")(2,"strong"),a(3,"Outages in Your Area"),n()(),o(4,"p"),a(5),n()()),i&2){let e=c(5);r(5),S(e.areaMessages)}}function bt(i,m){if(i&1&&(o(0,"div"),_(1,Ct,4,0,"p",39)(2,St,2,0,"p",39)(3,yt,1,0,"ng-container",40)(4,wt,1,1,"p",41)(5,Ot,6,1,"div",42),h(6,"div",27),o(7,"div",28)(8,"p",37)(9,"strong"),a(10,"Experiencing an outage?"),n(),a(11," Quickly report an outage for your home or business. "),n(),o(12,"a",38),a(13,"Report an Outage"),n()()()),i&2){let e=c(4),s=y(30);r(),d("ngIf",e.isStatusAvailable),r(),d("ngIf",!e.isStatusAvailable),r(),d("ngTemplateOutlet",s),r(),d("ngIf",!e.isStatusAvailable||e.opCo===e.OperatingCompany.APC&&e.areaMessages===""),r(),d("ngIf",e.areaMessages!=="")}}function Tt(i,m){i&1&&(o(0,"p",43),a(1," Your Power is: "),o(2,"span",47),a(3,"OFF"),n()())}function At(i,m){i&1&&(o(0,"p",43),a(1,"UNAVAILABLE"),n())}function Et(i,m){i&1&&k(0)}function Rt(i,m){if(i&1&&(o(0,"small"),a(1),n()),i&2){let e=c(5);r(),w("Last Updated: ",e.lastUpdatedTime)}}function Mt(i,m){if(i&1){let e=C();o(0,"p",28)(1,"a",48),g("click",function(){p(e);let t=c(5);return u(t.pushToDataLayer("Clicks to additional details on my outage","outages"))}),a(2,"Provide additional details on my outage"),n()()}i&2&&(r(),d("queryParams",E(1,_t)))}function kt(i,m){if(i&1&&(o(0,"div",28)(1,"h3")(2,"strong"),a(3,"Outages in Your Area"),n()(),o(4,"p"),a(5),n()()),i&2){let e=c(5);r(5),S(e.areaMessages)}}function Vt(i,m){if(i&1){let e=C();o(0,"div"),_(1,Tt,4,0,"p",39)(2,At,2,0,"p",39)(3,Et,1,0,"ng-container",40),o(4,"div",28)(5,"dl",35)(6,"dt"),a(7),n(),o(8,"dd")(9,"strong"),a(10),n()(),o(11,"dd"),_(12,Rt,2,1,"small",14),n()()(),h(13,"p",45),_(14,Mt,3,2,"p",42)(15,kt,6,1,"div",42),h(16,"div",27),o(17,"div",28)(18,"p"),a(19,"Would you like to report an outage at a different location?"),n(),o(20,"a",46),g("click",function(){p(e);let t=c(4);return u(t.pushToDataLayer("Report Another Outage/Report An Outage Not In My List","outages"))}
1),a(21,"Report Another Outage"),h(22,"i",33),n()()()}if(i&2){let e=c(4),s=y(30);r(),d("ngIf",e.isStatusAvailable),r(),d("ngIf",!e.isStatusAvailable),r(),d("ngTemplateOutlet",s),r(4),w(" Estimated ",e.opCo===e.OperatingCompany.APC?"Repair":"Restoration"," Time: "),r(3),S(e.restoreTime),r(2),d("ngIf",e.lastUpdatedTime!==""),r(),d("innerHtml",e.notes,M),r(),d("ngIf",e.isStatusAvailable),r(),d("ngIf",e.areaMessages!=="")}}function Dt(i,m){if(i&1&&(o(0,"div"),_(1,bt,14,5,"div",14)(2,Vt,23,9,"div",14),n()),i&2){let e=c(3);r(),d("ngIf",e.powerStatus),r(),d("ngIf",!e.powerStatus)}}function It(i,m){if(i&1){let e=C();o(0,"div")(1,"div",28)(2,"p"),a(3," There are no accounts in your profile."),h(4,"br")(5,"br"),a(6," You can still report an outage below or "),o(7,"a",49),g("click",function(){p(e);let t=c(3);return u(t.pushToDataLayer("Clicks to add account to profile","outages"))}),a(8,"add an account to your profile"),n(),a(9,". "),n(),h(10,"div",27),n(),o(11,"div",28)(12,"p",37)(13,"strong"),a(14,"Experiencing an outage?"),n(),a(15," Quickly report an outage for your home or business. "),n(),o(16,"a",50),a(17,"Report an Outage"),n()()()}}function Lt(i,m){if(i&1&&(o(0,"div"),_(1,xt,3,4,"div",34)(2,Dt,3,2,"div",14)(3,It,18,0,"div",14),n()),i&2){let e=c(2);r(),d("ngIf",e.isMultipleServiceAgreementsAvailable),r(),d("ngIf",e.isAccountInProfile&&e.selectedServiceAgreement||e.isOtherThanElectricAccount),r(),d("ngIf",!e.isAccountInProfile)}}function Pt(i,m){if(i&1){let e=C();o(0,"p")(1,"a",51),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to View Full Outage Map","outages"))}),a(2,"View Full Outage Map"),n()()}if(i&2){let e=c(2);r(),d("href",V(e.outageMapURL),T)}}function Nt(i,m){if(i&1){let e=C();o(0,"p",52)(1,"a",51),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Follow Us On Twitter","outages"))}),h(2,"i",53),a(3,"Follow us on Twitter for updates"),n()()}if(i&2){let e=c(2);r(),d("href",V(e.twitterURL),T)}}function Wt(i,m){if(i&1&&(o(0,"div"),_(1,ft,27,4,"div",14)(2,Lt,4,3,"div",14),o(3,"div",26),h(4,"div",27),o(5,"div",28),_(6,Pt,3,2,"p",14)(7,Nt,4,2,"p",29),n()()()),i&2){let e=c();r(),d("ngIf",!e.isLoggedIn),r(),d("ngIf",e.isLoggedIn),r(4),d("ngIf",e.outageMapURL),r(),d("ngIf",e.twitterURL)}}function Ft(i,m){i&1&&h(0,"loading-spinner")}function Bt(i,m){if(i&1&&(o(0,"dd")(1,"strong"),a(2),n(),h(3,"br"),n()),i&2){let e=m.$implicit;r(2),S(e.contactDetailValue)}}function Ut(i,m){if(i&1&&(o(0,"dl")(1,"dt"),a(2,"Email Alerts"),n(),_(3,Bt,4,1,"dd",56),n()),i&2){let e=c(2);r(3),d("ngForOf",e.emailAlert)}}function qt(i,m){if(i&1&&(o(0,"dd")(1,"strong"),a(2),n()()),i&2){let e=m.$implicit;r(2),S(e.contactDetailValue)}}function Ht(i,m){if(i&1&&(o(0,"dl")(1,"dt"),a(2,"Text Alerts"),n(),_(3,qt,3,1,"dd",56),n()),i&2){let e=c(2);r(3),d("ngForOf",e.textAlert)}}function zt(i,m){if(i&1&&(o(0,"dd")(1,"strong"),a(2),n()()),i&2){let e=m.$implicit;r(2),S(e.contactDetailValue)}}function Gt(i,m){if(i&1&&(o(0,"dl")(1,"dt"),a(2,"Voice Alerts"),n(),_(3,zt,3,1,"dd",56),n()),i&2){let e=c(2);r(3),d("ngForOf",e.voiceAlert)}}function Yt(i,m){if(i&1){let e=C();o(0,"div",6)(1,"div",7)(2,"div",8),h(3,"i",54),n(),o(4,"div",10)(5,"h2",11),a(6,"Outage Alerts"),n()(),h(7,"div",12),n(),o(8,"div",13)(9,"p"),a(10,"Your current outage alert settings"),n(),_(11,Ut,4,1,"dl",14)(12,Ht,4,1,"dl",14)(13,Gt,4,1,"dl",14),o(14,"a",55),g("
1click",function(){p(e);let t=c();return u(t.pushToDataLayer("Clicks to Manage Outage Alerts","outages"))}),a(15,"Manage My Outage Alerts"),n()()()}if(i&2){let e=c();r(11),d("ngIf",e.emailAlert.length>0),r(),d("ngIf",e.textAlert.length>0),r(),d("ngIf",e.voiceAlert.length>0),r(),d("queryParams",E(4,$))}}function jt(i,m){if(i&1){let e=C();o(0,"div",61)(1,"a",62),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Manage Outage Alerts","outages"))}),h(2,"img",63),n(),o(3,"a",64),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Manage Outage Alerts","outages"))}),h(4,"img",65),n()()}i&2&&(r(),d("queryParams",E(2,$)),r(2),d("queryParams",E(3,$)))}function Kt(i,m){if(i&1){let e=C();o(0,"div",66)(1,"a",62),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Manage Outage Alerts","outages"))}),h(2,"img",67),n(),o(3,"a",64),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Manage Outage Alerts","outages"))}),h(4,"img",68),n()()}i&2&&(r(),d("queryParams",E(2,$)),r(2),d("queryParams",E(3,$)))}function Qt(i,m){if(i&1&&(o(0,"div",57)(1,"div",58),_(2,jt,5,4,"div",59)(3,Kt,5,4,"div",60),n()()),i&2){let e=c();r(),d("ngSwitch",e.opCo),r(),d("ngSwitchCase",e.OperatingCompany.MPC)}}function Zt(i,m){if(i&1){let e=C();o(0,"div",69)(1,"div",70)(2,"a",51),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Clicks to View Full Outage Map","outages"))}),a(3,"View Full Outage Map"),n()()()}if(i&2){let e=c();r(2),d("href",V(e.outageMapURL),T)}}function Jt(i,m){if(i&1){let e=C();o(0,"div",69)(1,"div",71)(2,"a",51),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Follow Us On Twitter","outages"))}),h(3,"i",53),a(4,"Follow us on Twitter for updates"),n()()()}if(i&2){let e=c();r(2),d("href",V(e.twitterURL),T)}}function Xt(i,m){i&1&&(o(0,"div",7)(1,"div",8),h(2,"i",72),n(),o(3,"div",10)(4,"h2",11),a(5,"Frequently Asked Questions"),n()(),h(6,"div",12),n())}function $t(i,m){if(i&1){let e=C();o(0,"div")(1,"div",73)(2,"div",74)(3,"a",75)(4,"img",76),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("click on banner ad","outages"))}),n(),o(5,"img",77),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("click on banner ad","outages"))}),n()()()()()}}function ei(i,m){if(i&1&&(o(0,"li"),a(1),n()),i&2){let e=c(3);r(),w(" ",e.opCoAddressAscend.addressLine2," ")}}function ti(i,m){if(i&1&&(Z(0),o(1,"ul",78)(2,"li"),a(3),n(),_(4,ei,2,1,"li",14),o(5,"li"),a(6),n()(),J()),i&2){let e=c(2);r(3),S(e.opCoAddressAscend.addressLine1),r(),d("ngIf",e.opCoAddressAscend.addressLine2),r(2),X(" ",e.opCoAddressAscend.city,", ",e.opCoAddressAscend.state," ",e.opCoAddressAscend.zipCode," ")}}function ii(i,m){if(i&1&&_(0,ti,7,5,"ng-container",14),i&2){let e=c();d("ngIf",e.isSAExists)}}var ct=(()=>{let m=class m{constructor(){this.adobeAnalyticsService=O(K),this.sanitizer=O(ke),this.globalConstants=O(oe),this.knowledgeBaseService=O($e),this.outageService=O(xe),this.userService=O(j),this.formatService=O(ce),this.accountApiService=O(le),this.OperatingCompany=b,this.bannerMessageHidden=!0,this.emailAlert=[],this.hasOutageAlerts=!1,this.isAccountInProfile=this.userService.cap.length>0,this.isLoading=!1,this.isLoggedIn=!1,this.isStatusAvailable=!0,this.opCo=this.userService.operatingCompany,this.textAlert=[],this.voiceAlert=[],this.isMultipleServiceAgreementsAvailable=!1,this.isSAExists=!1,this.isOtherThanElectricAccount=!1,this.selectedServiceAgreement=null,this.filteredServiceAgreements=[],this.serviceStatus=[Y.Active,Y.PendingStop],this.constants=this.globalConstants.getConstants(),this.accountSummary=this.userService.accountSummary}ngOnInit(){this.isLoggedIn=this.userService.isLoggedIn,this.pushToDataLayer=this.adobeAnalyticsService.pushToDataLayer,sessionStorage.getItem("bannerDisplay")&&sessionStorage.bannerDisplay==="false"&&(this.bannerMessageHidden=!0),this.isLoggedIn?this.userService.cap.length?(this.isMultipleServiceAgreementsAvailable=!1,this.processServiceAgreements()):this.outageMapEmbededURL=this.sanitizer.bypassSecurityTrustResourceUrl(this.constants.Outages[this.opCo].OutageMapEmbeded+this.constants.DefaultOpcoAddress[this.opCo].State):(this.hasOutageAlerts=!1,this.outageMapEmbededURL=this.sanitizer.bypassSecurityTrustResourceUrl(this.constants.Outages[this.opCo].OutageMapEmbeded+this.constants.DefaultOpcoAddress[this.opCo].State)),this.outageMapURL=this.constants.Outages[this.opCo].OutageMap,this.twitterURL=this.constants.SocialMedia[this.opCo].Twitter,this.knowledgeBaseService.topicLoadedSubject.subscribe(s=>{this.topicLoaded=s})}onServiceAgreementChange(s){this.isLoading=!0,this.selectedServiceAgreement=s.serviceAgreement,this.isSAExists=!0,this.opCoAddressAscend=this.formatService.getAddressObject(this.selectedServiceAgreement.premiseAddress),this.get
1Status(this.selectedServiceAgreement.serviceAgreementId)}filterServiceAgreements(){return this.userService.filterServiceAgreements({serviceType:[F.Electric],serviceSubType:[L.Electric],serviceStatus:this.serviceStatus},!0)}handleSingleAgreement(s){this.isLoading=!0,this.isSAExists=!0,this.selectedServiceAgreement=s,this.opCoAddressAscend=this.formatService.getAddressObject(s.premiseAddress),this.getStatus(this.selectedServiceAgreement.serviceAgreementId)}handleNoServiceAgreements(){this.isLoading=!0,this.isSAExists=!1,this.outageService.getOutageStatusAscend(this.accountSummary.accountId).subscribe({next:s=>{this.areaMessages=s.data?.areaMessages,this.getOutageStatusOtherthanElectric(s.data?.errorType),this.isLoading=!1}})}handleMultipleAgreements(){this.isMultipleServiceAgreementsAvailable=!0}processServiceAgreements(){switch(this.filteredServiceAgreements=this.filterServiceAgreements(),this.filteredServiceAgreements.length){case 0:this.handleNoServiceAgreements();break;case 1:this.handleSingleAgreement(this.filteredServiceAgreements[0]);break;default:this.handleMultipleAgreements();break}}getOutageAlerts(){this.isLoggedIn&&this.userService.accountSummary.accountId&&this.accountApiService.getReminders(this.userService.accountSummary.accountId,this.accountSummary.mainPersonId,ae.Outage).subscribe({next:s=>{let t=s.data?.notificationTypes[0]?.notificationPreferences.filter(l=>l.keepPreference);t?(this.hasOutageAlerts=t.length>0,this.hasOutageAlerts&&(this.emailAlert=t.filter(l=>l.deliveryTypeCode.toUpperCase()===se.Email),this.textAlert=t.filter(l=>l.deliveryTypeCode.toUpperCase()===se.Text),this.voiceAlert=t.filter(l=>l.deliveryTypeCode.toUpperCase()===se.Voice))):this.hasOutageAlerts=!1},error:()=>{this.bannerMessage=this.constants.defaultErrorMsg}})}getStatus(s){this.outageService.getOutageStatusAscend(this.accountSummary.accountId,s).subscribe({next:t=>{this.getOutageStatusAscend(t.data),this.isLoading=!1},error:()=>{this.isStatusAvailable=!1,this.powerStatus=!0,this.notes=this.outageService.getStatusMessage(6,this.opCo),this.isLoading=!1}})}getOutageStatusAscend(s){if(s.errorType===this.constants.enumOutageErrorType.NotSet){this.areaMessages=s.areaMessages,this.isStatusAvailable=!0,this.lastUpdatedTime=s.lastUpdatedTime,this.namedStorm=s.namedStorm,this.notes=(s.caseNotes||"").trim();let t=this.notes.length>0,l=s.wsoFlExistOutage==="N"&&this.opCo===b.APC;this.powerStatus=!(t&&!l),this.restoreTime=s.restoreTime||A.Assessing;let W=this.opCo===b.APC?"repair":"restoration",R={Assessing:`Our systems indicate your power is OFF. We are currently assessing your estimated ${W} time.`,Reevaluating:`Our systems indicate your power is OFF. We are currently reevaluating your estimated ${W} time.`,UnderReview:`Our system indicates your power is off. Currently the estimated ${W} time is under review.`,Processing:"Your reported outage is being processed. We will provide updates as more information becomes available.",Default:`Our systems indicate your power is OFF. Estimated ${W} time is: ${this.restoreTime}.`,WideSpread:"We are experiencing widespread outages in your area."};if(this.notes&&s.wsoFlExistOutage==="N"&&this.opCo!==b.APC){switch(this.restoreTime){case A.Assessing:this.bannerMessage=R.Assessing,this.getBannerDisplayStatus();break;case A.Reevaluating:this.bannerMessage=R.Reevaluating,this.getBannerDisplayStatus();break;case A.UnderReview:this.bannerMessage=R.UnderReview,this.getBannerDisplayStatus();break;case A.Processing:this.bannerMessage=R.Processing,this.getBannerDisplayStatus();break;case A.TRA:this.bannerMessage=this.notes,this.powerStatus=!0,this.getBannerDisplayStatus();break;default:this.bannerMessage=R.Default,this.pushToDataLayer("Estimated Restore Time Message Displayed","outages"),sessionStorage.bannerDisplay===void 0?(this.bannerMessageHidden=!1,sessionStorage.bannerDisplay=!0,this.areaMessages="",sessionStorage.bannerDisplay=!1):sessionStorage.bannerDisplay?this.bannerMessageHidden=!1:this.bannerMessageHidden=!0;break}this.pushToDataLayer("Casenote Alert Banner Displayed","outages")}this.opCo===b.APC&&(this.restoreTime=s.wsoFlExistOutage==="B"||s.wsoFlExistOutage==="A"?this.restoreTime:s.wsoFlExistOutage,this.getWideSpreadDisplayStatus(s,R.WideSpread)),this.areaMessages=s.areaMessages,this.opCo===b.APC&&this.restoreTime!==A.TRA?(this.powerStatus=s.isPowerOn,!this.powerStatus&&this.notes&&(this.areaMessages="")):this.powerStatus?this.notes=this.areaMessages?"":this.notes:this.areaMessages=this.areaMessages?"":this.areaMessages,this.areaMessages&&this.pushToDataLayer("Area Message Displayed","outages"),this.opCo===b.GPC&&this.namedStorm&&(this.bannerMessage=this.namedStorm+' is causing widespread outages in your area. Please visit our <a class="alert-link" href="https://www.georgiapower.com/company/safety/outages-and-stormcenter.html" target="_blank">Storm Center</a> for more information.'),this.getOutageAlertsByErrorTypeAndAcctStatus()}else sessionStorage.bannerDisplay=!1,this.bannerMessage="",this.bannerMessageHidden=!0,this.errorType=s.errorType,this.isStatusAvailable=!1,this.notes=this.outageService.getStatusMessage(s.errorType,this.opCo),this.powerStatus=!0,this.getOutageAlertsByErrorTypeAndAcctStatus()}getOutageStatusOtherthanElectric(s){switch(this.isOtherThanElectricAccount=!0,s){case 54:this.isStatusAvailable=!1,this.powerStatus=!0,this.notes=this.outageService.getStatusMessage(this.constants.enumOutageErrorType.LightingAccount,this.opCo);break;case 72:case 51:case 60:case 48:case 45:this.isStatusAvailable=!1,this.powerStatus=!0,this.notes=this.outageService.getStatusMessage(this.constants.enumOutageErrorType.NonServiceAccount,this.opCo);break;default:this.isStatusAvailable=!1,this.notes=this.outageService.getStatusMessage(this.errorType,this.opCo);break}}getBannerDisplayStatus(){sessionStorage.bannerDisplay===void 0?(this.bannerMessageHidden=!1,sessionStorage.bannerDisplay=!0):sessionStorage.bannerDisplay?this.bannerMessageHidden=!1:this.bannerMessageHidden=!0}getWideSpreadDisplayStatus(s,t){this.areaMessages&&(this.bannerMessage=t,this.powerStatus=s.wsoFlExistOutage!=="B",sessionStorage.bannerDisplay===void 0&&(this.bannerMessageHidden=!1,sessionStorage.bannerDisplay=!0))}getOutageAlertsByErrorTypeAndAcctStatus(){this.userService.accountSummary.accountStatus!==re.Inactive&&this.errorType!==this.constants.enumOutageErrorType.CutOutForNonPay&&this.getOutageAlerts()}};m.\u0275fac=function(t){return new(t||m)},m.\u0275cmp=B({type:m,selectors:[["occ-outage-overview"]],decls:31,vars:10,consts:[["address",""],["id","OutageOverview",1,"container-md"],["class","alert-wrapper",4,"ngIf"],[1,"page-header"],[1,"row"],[1,"col-md-4"],[1,"panel","panel-card"],[1,"panel-heading"],[1,"icon-block"],[1,"icon-OCC_Font_2_Energy_Savings_Tip"],[1,"headline-block"],[1,"panel-title"],[1,"clearfix"],[1,"panel-body"],[4,"ngIf"],["class","panel panel-card",4,"ngIf"],["id","OutageStatusAdPanel","class","panel panel-ad","occAdFadeIn","",4,"ngIf"],[1,"col-md-8"],[1,"panel","panel-card","hidden-xs"],["class","col-md-6",4,"ngIf"],["class","panel-heading",4,"ngIf"],[3,"topic"],[1,"alert-wrapper"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-exclamation-triangle","fa-lg","icon-spacing-right"],[3,"innerHtml"],[1,"visible-xs"],[1,"panel-border"],[1,"panel-text-block"],["class","mb-0",4,"ngIf"],[1,"btn","btn-primary","btn-lg","btn-block",3,"click","routerLink"],[1,"block-link",3,"click","routerLink"],["routerLink","/Outages/Report/Location","title","Report an outage",1,"btn","btn-link","btn-link-secondary",3,"click"],[1,"fa","fa-chevron-right","icon-spacing-left"],["class","mb-3",4,"ngIf"],[1,"mb-3"],["defaultValue","View Service location status",3,"selectOption","options","selectedItem","filterStatusTypes"],[1,"exp-outage"],["routerLink","/Outages/Report","title","Report an outage",1,"btn","btn-primary","btn-lg","btn-block"],["class","large-outages-text",4,"ngIf"],[4,"ngTemplateOutlet"],["class","panel-text-block",3,"innerHtml",4,"ngIf"],["class","panel-text-block",4,"ngIf"],[1,"large-outages-text"],[1,"green-text"],[1,"panel-text-block",3,"innerHtml"],["routerLink","/Outages/Report","title","Report another outage",1,"btn","btn-link","btn-link-secondary",3,"click"],[1,"red-text"],["routerLink","/Outages/Report/AdditionalDetails",3,"click","queryParams"],["routerLink","/MyProfile/AddAccount",3,"click"],["routerLink","/Outages/Report/Location","title","Report an outage",1,"btn","btn-primary","btn-lg","btn-block"],["target","_blank",3,"click","href"],[1,"mb-0"],[1,"fa","fa-twitter","icon-spacing-right"],[1,"fa","fa-exclamation-circle"],["routerLink","/MyProfile/Alerts",3,"click","queryParams"],[4,"ngFor","ngForOf"],["id","OutageStatusAdPanel","occAdFadeIn","",1,"panel","panel-ad"],[3,"ngSwitch"],["id","OutageStatusAdMPC",4,"ngSwitchCase"],["id","OutageStatusAdGPC",4,"ngSwitchDefault"],["id","OutageStatusAdMPC"],["routerLink","/MyProfile/Alerts","title","Sign up for Outage Alerts",1,"hidden-xs",3,"click","queryParams"],["src","/images/DefaultAds/MPC/MyAccount/Bottom/Residential/360x3603.jpg","alt","Cell Phone with Outage Alerts",1,"img-fluid"],["routerLink","/MyProfile/Alerts","title","Sign up for Outage Alerts",1,"visible-xs",3,"click","queryParams"],["src","/images/DefaultAds/MPC/MyAccount/Bottom/Residential/768x7683.jpg","alt","Cell Phone with Outage Alerts",1,"img-fluid"],["id","OutageStatusAdGPC"],["src","/images/DefaultAds/GPC/outages/Item132OutageAlerts360x360.jpg","alt","Outages Alerts Sign-up Ad",1,"img-fluid"],["src","/images/DefaultAds/GPC/outages/Item132OutageAlerts768x768.jpg","alt","Outages Alerts Sign-up Ad",1,"img-fluid"],[1,"col-md-6"],[1,"view-full"],[1,"follow-us-twitter"],[1,"fa","fa-question-circle"],["id","OutageStatusAdPanel",1,"ap-outages-ads"],["id","OutageStatusAdAPC",1,"ap-ad"],["href","https://www.alabamapower.com/our-company/outages-and-storm-center.html","title","Outages and Storm Center","target","_blank"],["src","/images/DefaultAds/APC/NewAds/Outage/Outages-750x100.png","alt","Outages and Storm Center",1,"img-fluid","hidden-xs",3,"click"],["src","/images/DefaultAds/APC/NewAds/Outage/Outages-768x768.png","alt","Outages and Storm Center",1,"img-fluid","visible-xs",3,"click"],[1,"list-unstyled","current-account-info"]],template:function(t,l){t&1&&(o(0,"main",1),_(1,ht,4,1,"div",2),o(2,"h1",3),a(3,"Outages"),n(),o(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8),h(9,"span",9),n(),o(10,"div",10)(11,"h2",11),a(12,"Status"),n()(),h(13,"div",12),n(),o(14,"div",13),_(15,Wt,8,4,"div",14)(16,Ft,1,0,"loading-spinner",14),n()(),_(17,Yt,16,5,"div",15)(18,Qt,4,2,"div",16),n(),o(19,"div",17)(20,"div",18)(21,"div",13)(22,"div",4),_(23,Zt,4,2,"div",19)(24,Jt,5,2,"div",19),n()()(),o(25,"div",6),_(26,Xt,7,0,"div",20),h(27,"occ-kb-topic",21),n(),_(28,$t,6,0,"div",14),n()()(),_(29,ii,1,1,"ng-template",null,0,D)),t&2&&(r(),d("ngIf",l.bannerMessage),r(14),d("ngIf",!l.isLoading),r(),d("ngIf",l.isLoading),r(),d("ngIf",l.isLoggedIn&&l.isAccountInProfile&&l.hasOutageAlerts),r(),d("ngIf",!l.hasOutageAlerts),r(5),d("ngIf",l.outageMapURL),r(),d("ngIf",l.twitterURL),r(2),d("ngIf",l.topicLoaded),r(),d("topic","PowerOutage"),r(),d("ngIf",l.opCo===l.OperatingCompany.APC))},dependencies:[G,ee,U,te,q,H,z,ne,Ce,he,Je,et],encapsulation:2});let i=m;return i})();var dt=(()=>{let m=class m{constructor(){this.el=O(Te),this.ngModel=O(Q)}ngOnInit(){this.ngModel.valueChanges.subscribe(s=>{if(s){let t=this.removeInvalidChars(s);this.el.nativeElement.value=t,this.ngModel.update.emit(t)}})}removeInvalidChars(s){let t=["\uD83C[\uDF00-\uDFFF]","\uD83D[\uDC00-\uDE4F]","\uD83D[\uDE80-\uDEFF]"];return s=s.replace(new RegExp(t.join("|"),"g"),""),s=s.replace(/[`~#%^*_|+\-:<>\{\}\[\]\\]/gi,""),s}};m.\u0275fac=function(t){return new(t||m)},m.\u0275dir=Ee({type:m,selectors:[["","occNoEmojiNoSpecial",""]]});let i=m;return i})();function oi(i,m){if(i&1){let e=C();o(0,"div")(1,"div",16)(2,"label"),a(3,"City of Outage Location *"),n(),o(4,"div",35)(5,"div",36)(6,"input",37,4),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.outageCity,t)||(l.form.outageCity=t),u(t)}),g("blur",function(){p(e);let t=y(7);return u(t.control.markAsTouched())}),n()()()(),o(8,"div",16)(9,"label"),a(10,"Nearest Street Address to Outage Location *"),n(),o(11,"div",35)(12,"div",36)(13,"input",38,5),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.outageAddress,t)||(l.form.outageAddress=t),u(t)}),g("blur",function(){p(e);let t=y(14);return u(t.control.markAsTouched())}),n()()()()()}if(i&2){let e=c(2);r(6),v("ngModel",e.form.outageCity),r(7),v("ngModel",e.form.outageAddress)}}function ri(i,m){i&1&&(o(0,"span",39),a(1,"Required"),n())}function ai(i,m){i&1&&(o(0,"span",39),a(1,"Required"),n())}function si(i,m){i&1&&(o(0,"span",39),a(1,"Required"),n())}function li(i,m){i&1&&(o(0,"span",39),a(1,"Required"),n())}function ci(i,m){if(i&1){let e=C();o(0,"div"),_(1,oi,15,2,"div",18),o(2,"div",19)(3,"label",20),a(4,"Is the light blinking on and off? * "),_(5,ri,2,0,"span",21),n(),o(6,"div",20)(7,"label",22)(8,"input",23),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Light Blinking Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.blinkingLight,t)||(l.form.blinkingLight=t),u(t)}),n(),a(9," Yes "),n(),o(10,"label",22)(11,"input",24),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Light Blinking Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.blinkingLight,t)||(l.form.blinkingLight=t),u(t)}
1),n(),a(12," No "),n(),o(13,"label",22)(14,"input",25,0),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Light Blinking Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.blinkingLight,t)||(l.form.blinkingLight=t),u(t)}),g("blur",function(){p(e);let t=y(15);return u(t.control.markAsTouched())}),n(),a(16," Don't Know "),n()()(),o(17,"div",19)(18,"label",20),a(19,"Does the light stay on all day (24 hours)? * "),_(20,ai,2,0,"span",21),n(),o(21,"div",20)(22,"label",22)(23,"input",26),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Light on All Day Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.onAllDay,t)||(l.form.onAllDay=t),u(t)}),n(),a(24," Yes "),n(),o(25,"label",22)(26,"input",27),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Light on All Day Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.onAllDay,t)||(l.form.onAllDay=t),u(t)}),n(),a(27," No "),n(),o(28,"label",22)(29,"input",28,1),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Light on All Day Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.onAllDay,t)||(l.form.onAllDay=t),u(t)}),g("blur",function(){p(e);let t=y(30);return u(t.control.markAsTouched())}),n(),a(31," Don't Know "),n()()(),o(32,"div",19)(33,"label",20),a(34,"Is the light too bright or too dim? * "),_(35,si,2,0,"span",21),n(),o(36,"div",20)(37,"label",22)(38,"input",29),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Too Bright or Too Dim Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.tooBrightDim,t)||(l.form.tooBrightDim=t),u(t)}),n(),a(39," Yes "),n(),o(40,"label",22)(41,"input",30),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Too Bright or Too Dim Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.tooBrightDim,t)||(l.form.tooBrightDim=t),u(t)}),n(),a(42," No "),n(),o(43,"label",22)(44,"input",31,2),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Too Bright or Too Dim Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.tooBrightDim,t)||(l.form.tooBrightDim=t),u(t)}),g("blur",function(){p(e);let t=y(45);return u(t.control.markAsTouched())}),n(),a(46," Don't Know "),n()()(),o(47,"div",19)(48,"label",20),a(49,"Is the light completely out? * "),_(50,li,2,0,"span",21),n(),o(51,"div",20)(52,"label",22)(53,"input",32),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Light Out Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.lightOut,t)||(l.form.lightOut=t),u(t)}),n(),a(54," Yes "),n(),o(55,"label",22)(56,"input",33),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Light Out Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.lightOut,t)||(l.form.lightOut=t),u(t)}),n(),a(57," No "),n(),o(58,"label",22)(59,"input",34,3),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Light Out Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.lightOut,t)||(l.form.lightOut=t),u(t)}),g("blur",function(){p(e);let t=y(60);return u(t.control.markAsTouched())}),n(),a(61," Don't Know "),n()()()()}if(i&2){let e=c();r(),d("ngIf",e.outageType===e.ServiceTypeText.Streetlight),r(4),d("ngIf",!e.form.blinkingLight&&e.submitMade),r(3),v("ngModel",e.form.blinkingLight),r(3),v("ngModel",e.form.blinkingLight),r(3),v("ngModel",e.form.blinkingLight),r(6),d("ngIf",!e.form.onAllDay&&e.submitMade),r(3),v("ngModel",e.form.onAllDay),r(3),v("ngModel",e.form.onAllDay),r(3),v("ngModel",e.form.onAllDay),r(6),d("ngIf",!e.form.tooBrightDim&&e.submitMade),r(3),v("ngModel",e.form.tooBrightDim),r(3),v("ngModel",e.form.tooBrightDim),r(3),v("ngModel",e.form.tooBrightDim),r(6),d("ngIf",!e.form.lightOut&&e.submitMade),r(3),v("ngModel",e.form.lightOut),r(3),v("ngModel",e.form.lightOut),r(3),v("ngModel",e.form.lightOut)}}function di(i,m){i&1&&(o(0,"span",39),a(1,"Required"),n())}function mi(i,m){i&1&&(o(0,"span",39),a(1,"Required"),n())}function pi(i,m){i&1&&(o(0,"span",39),a(1,"Required"),n())}function ui(i,m){i&1&&(o(0,"span",39),a(1,"Required"),n())}function gi(i,m){if(i&1){let e=C();o(0,"div")(1,"div",19)(2,"label",20),a(3),_(4,di,2,0,"span",21),n(),o(5,"div",20)(6,"label",22)(7,"input",40),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Power Out Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.allPowerOut,t)||(l.form.allPowerOut=t),u(t)}),n(),a(8," Yes "),n(),o(9,"label",22)(10,"input",41),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Power Out Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.allPowerOut,t)||(l.form.allPowerOut=t),u(t)}),n(),a(11," No "),n(),o(12,"label",22)(13,"input",42,6),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Power Out Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.allPowerOut,t)||(l.form.allPowerOut=t),u(t)}),g("blur",function(){p(e);let t=y(14);return u(t.control.markAsTouched())}),n(),a(15," Don't Know "),n()()(),o(16,"div",19)(17,"label",20),a(18),_(19,mi,2,0,"span",21),n(),o(20,"div",20)(21,"label",22)(22,"input",43),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Neighbors Power Out Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.othersWithPower,t)||(l.form.othersWithPower=t),u(t)}),n(),a(23," Yes "),n(),o(24,"label",22)(25,"input",44),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Neighbors Power Out Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.othersWithPower,t)||(l.form.othersWithPower=t),u(t)}),n(),a(26," No "),n(),o(27,"label",22)(28,"input",45,7),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Neighbors Power Out Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.othersWithPower,t)||(l.form.othersWithPower=t),u(t)}),g("blur",function(){p(e);let t=y(29);return u(t.control.markAsTouched())}),n(),a(30," Don't Know "),n()()(),o(31,"div",19)(32,"label",20),a(33),_(34,pi,2,0,"span",21),n(),o(35,"div",20)(36,"label",22)(37,"input",46),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Wires Down Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.wiresDown,t)||(l.form.wiresDown=t),u(t)}),n(),a(38," Yes "),n(),o(39,"label",22)(40,"input",47),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Wires Down Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.wiresDown,t)||(l.form.wiresDown=t),u(t)}),n(),a(41," No "),n(),o(42,"label",22)(43,"input",48,8),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Wires Down Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.wiresDown,t)||(l.form.wiresDown=t),u(t)}),g("blur",function(){p(e);let t=y(44);return u(t.control.markAsTouched())}),n(),a(45," Don't Know "),n()()(),o(46,"div",19)(47,"label",20),a(48,"Did you hear a loud noise when the lights went out? * "),_(49,ui,2,0,"span",21),n(),o(50,"div",20)(51,"label",22)(52,"input",49),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Loud Noise Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.loudNoise,t)||(l.form.loudNoise=t),u(t)}),n(),a(53," Yes "),n(),o(54,"label",22)(55,"input",50),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Loud Noise Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.loudNoise,t)||(l.form.loudNoise=t),u(t)}),n(),a(56," No "),n(),o(57,"label",22)(58,"input",51,9),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Loud Noise Radio Button selected","reportoutage"))}),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.loudNoise,t)||(l.form.loudNoise=t),u(t)}),g("blur",function(){p(e);let t=y(59);return u(t.control.markAsTouched())}),n(),a(60," Don't Know "),n()()()()}if(i&2){let e=c();r(3),w("Is the power out throughout your ",e.isResidentialAcct?"home":"business","? * "),r(),d("ngIf",!e.form.allPowerOut&&e.submitMade),r(3),v("ngModel",e.form.allPowerOut),r(3),v("ngModel",e.form.allPowerOut),r(3),v("ngModel",e.form.allPowerOut),r(5),w("Do ",e.isResidentialAcct?"your neighbors":"other businesses around you"," have power? * "),r(),d("ngIf",!e.form.othersWithPower&&e.submitMade),r(3),v("ngModel",e.form.othersWithPower),r(3),v("ngModel",e.form.othersWithPower),r(3),v("ngModel",e.form.othersWithPower),r(5),w("Are there wires down near your ",e.isResidentialAcct?"home":"business","? * "),r(),d("ngIf",!e.form.wiresDown&&e.submitMade),r(3),v("ngModel",e.form.wiresDown),r(3),v("ngModel",e.form.wiresDown),r(3),v("ngModel",e.form.wiresDown),r(6),d("ngIf",!e.form.loudNoise&&e.submitMade),r(3),v("ngModel",e.form.loudNoise),r(3),v("ngModel",e.form.loudNoise),r(3),v("ngModel",e.form.loudNoise)}}function _i(i,m){if(i&1){let e=C();o(0,"div",16)(1,"label"),a(2,"Directions to Outage Location *"),n(),o(3,"textarea",52,10),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.Directions,t)||(l.form.Directions=t),u(t)}),g("blur",function(){p(e);let t=y(4);return u(t.control.markAsTouched())}),n()()}if(i&2){let e=c();r(3),v("ngModel",e.form.Directions)}}function hi(i,m){if(i&1){let e=C();o(0,"div",16)(1,"label"),a(2,"Directions to Outage Location"),n(),o(3,"textarea",53),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.Directions,t)||(l.form.Directions=t),u(t)}),n()()}if(i&2){let e=c();r(3),v("ngModel",e.form.Directions)}}var mt=(()=>{let m=class m{constructor(){this.adobeAnalyticsService=O(K),this.ServiceTypeText=P,this.form={},this.pushToDataLayer=this.adobeAnalyticsService.pushToDataLayer}};m.\u0275fac=function(t){return new(t||m)},m.\u0275cmp=B({type:m,selectors:[["occ-outage-details"]],inputs:{form:"form",isResidentialAcct:"isResidentialAcct",outageType:"outageType",submitMade:"submitMade"},features:[Re([],[{provide:We,useExisting:pe}])],decls:15,vars:5,consts:[["BlinkingLight","ngModel"],["OnAllDay","ngModel"],["TooBrightDim","ngModel"],["LightOut","ngModel"],["OutageCity","ngModel"],["OutageAddress","ngModel"],["AllPowerOut","ngModel"],["OthersWithPower","ngModel"],["WiresDown","ngModel"],["LoudNoise","ngModel"],["Directions","ngModel"],[1,"occ-outage-details",3,"ngSwitch"],[1,"text-muted"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","form-group",4,"ngIf"],[1,"form-group"],["name","Comments","rows","5","maxlength","160","occNoEmojiNoSpecial","",1,"form-control",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"form-group","row","
1justify-content-between"],[1,"col-12","col-md-auto"],["class","badge text-bg-danger",4,"ngIf"],[1,"radio-inline"],["type","radio","name","BlinkingLight","value","1","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","BlinkingLight","value","2","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","BlinkingLight","value","3","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",3,"click","ngModelChange","blur","ngModel"],["type","radio","name","OnAllDay","value","1","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","OnAllDay","value","2","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","OnAllDay","value","3","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",3,"click","ngModelChange","blur","ngModel"],["type","radio","name","TooBrightDim","value","1","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","TooBrightDim","value","2","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","TooBrightDim","value","3","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",3,"click","ngModelChange","blur","ngModel"],["type","radio","name","LightOut","value","1","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","LightOut","value","2","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","LightOut","value","3","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",3,"click","ngModelChange","blur","ngModel"],[1,"row"],[1,"col-md-6","col-lg-5","col-xl-4"],["type","text","name","OutageCity","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],["type","text","name","OutageAddress","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],[1,"badge","text-bg-danger"],["type","radio","name","AllPowerOut","value","1","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","AllPowerOut","value","2","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","AllPowerOut","value","3","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",3,"click","ngModelChange","blur","ngModel"],["type","radio","name","OthersWithPower","value","1","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","OthersWithPower","value","2","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","OthersWithPower","value","3","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",3,"click","ngModelChange","blur","ngModel"],["type","radio","name","WiresDown","value","1","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","WiresDown","value","2","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","WiresDown","value","3","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",3,"click","ngModelChange","blur","ngModel"],["type","radio","name","LoudNoise","value","1","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","LoudNoise","value","2","required","",3,"click","ngModelChange","ngModel"],["type","radio","name","LoudNoise","value","3","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",3,"click","ngModelChange","blur","ngModel"],["name","Directions","rows","5","maxlength","360","formFieldValidator","","triggers","manual","placement","bottom","container","body","tooltip","Required","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],["name","Directions","rows","5","maxlength","360",1,"form-control",3,"ngModelChange","ngModel"]],template:function(t,l){t&1&&(o(0,"div",11)(1,"p",12)(2,"small"),a(3,"* Required"),n()(),_(4,ci,62,17,"div",13)(5,gi,61,19,"div",14)(6,_i,5,1,"div",15)(7,hi,4,1,"div",15),o(8,"div",16)(9,"label"),a(10,"Comments"),n(),o(11,"textarea",17),x("ngModelChange",function(R){return f(l.form.Comments,R)||(l.form.Comments=R),R}),n(),o(12,"p",12)(13,"small"),a(14,"Some of the special characters are not allowed."),n()()()()),t&2&&(d("ngSwitch",l.outageType===l.ServiceTypeText.Lighting||l.outageType===l.ServiceTypeText.Streetlight),r(4),d("ngSwitchCase",!0),r(2),d("ngIf",l.outageType==="Streetlight"),r(),d("ngIf",l.outageType!=="Streetlight"),r(4),v("ngModel",l.form.Comments))},dependencies:[G,U,q,H,z,_e,de,Ue,me,ue,ge,Q,ve,fe,dt],encapsulation:2});let i=m;return i})();var pt=()=>["/Login"],fi=i=>({enabled:!0,checkboxOnly:!0,mode:i}),vi=()=>[12,24,48,"All"],xi=i=>({pageSizes:i});function Ci(i,m){if(i&1&&(o(0,"div",27)(1,"div",28),h(2,"i",29)(3,"span",30),n()()),i&2){let e=c();r(3),d("innerHtml",e.bannerMessage,M)}}function Si(i,m){if(i&1&&(o(0,"div",31)(1,"em"),h(2,"i",32),a(3," If this is a dangerous condition, including downed power lines, please call "),o(4,"a",33),a(5),n(),a(6,". "),n()()),i&2){let e=c();r(4),d("href",I("tel:",e.reportOutagePhone),T),r(),S(e.reportOutagePhone)}}function yi(i,m){i&1&&k(0)}function wi(i,m){if(i&1&&(o(0,"div"),_(1,yi,1,0,"ng-container",34),n()),i&2){c();let e=y(14);r(),d("ngTemplateOutlet",e)}}function Oi(i,m){i&1&&k(0)}function bi(i,m){if(i&1&&(o(0,"div"),_(1,Oi,1,0,"ng-container",34),n()),i&2){c();let e=y(16);r(),d("ngTemplateOutlet",e)}}function Ti(i,m){i&1&&k(0)}function Ai(i,m){if(i&1&&(o(0,"div"),_(1,Ti,1,0,"ng-container",34),n()),i&2){c();let e=y(18);r(),d("ngTemplateOutlet",e)}}function Ei(i,m){i&1&&k(0)}function Ri(i,m){if(i&1&&(o(0,"div"),_(1,Ei,1,0,"ng-container",34),n()),i&2){c();let e=y(20);r(),d("ngTemplateOutlet",e)}}function Mi(i,m){i&1&&k(0)}function ki(i,m){if(i&1&&(o(0,"div"),_(1,Mi,1,0,"ng-container",34),n()),i&2){c();let e=y(22);r(),d("ngTemplateOutlet",e)}}function Vi(i,m){i&1&&k(0)}function Di(i,m){if(i&1&&(o(0,"div"),_(1,Vi,1,0,"ng-container",34),n()),i&2){c();let e=y(24);r(),d("ngTemplateOutlet",e)}}function Ii(i,m){i&1&&k(0)}function Li(i,m){if(i&1&&(o(0,"div"),_(1,Ii,1,0,"ng-container",34),n()),i&2){c();let e=y(26);r(),d("ngTemplateOutlet",e)}}function Pi(i,m){i&1&&k(0)}function Ni(i,m){if(i&1&&(o(0,"div"),_(1,Pi,1,0,"ng-container",34),n()),i&2){c();let e=y(28);r(),d("ngTemplateOutlet",e)}}function Wi(i,m){if(i&1&&(o(0,"div",27)(1,"div",55),h(2,"i",29),a(3," Our Outage Reporting system is currently down for maintenance. Please contact Customer Service at "),o(4,"strong")(5,"a",33),a(6),n()(),a(7," to report an outage. "),n()()),i&2){let e=c(2);r(5),d("href",I("tel:",e.apcOutageUnavailablePhoneNumber),T),r(),S(e.apcOutageUnavailablePhoneNumber)}}function Fi(i,m){if(i&1&&(o(0,"option",56),a(1),n()),i&2){let e=m.$implicit;
1d("ngValue",e),r(),w(" ",e.description+": "+e.accountIdFormatted," ")}}function Bi(i,m){if(i&1){let e=C();o(0,"div",57)(1,"occ-service-agreement-selector",58),g("selectOption",function(t){p(e);let l=c(2);return u(l.onServiceAgreementChange(t))}),n()()}if(i&2){let e=c(2);r(),d("options",e.filteredServiceAgreements)("selectedItem",e.selectedServiceAgreement)("showCount",!1)("filterStatusTypes",e.serviceStatus)}}function Ui(i,m){if(i&1&&(o(0,"li"),a(1),n()),i&2){let e=c(3);r(),w(" ",e.selectedPremiseAddress.addressLine2," ")}}function qi(i,m){if(i&1&&(o(0,"ul",59)(1,"li"),a(2),n(),_(3,Ui,2,1,"li",26),o(4,"li"),a(5),n()()),i&2){let e=c(2);r(2),S(e.selectedPremiseAddress.addressLine1),r(),d("ngIf",e.selectedPremiseAddress.addressLine2),r(2),X(" ",e.selectedPremiseAddress.city,",",e.selectedPremiseAddress.state,", ",e.selectedPremiseAddress.zipCode," ")}}function Hi(i,m){if(i&1&&(o(0,"small"),a(1),n()),i&2){let e=c(5);r(),w("Last Updated: ",e.outageStatusAscend.lastUpdatedTime)}}function zi(i,m){if(i&1&&(o(0,"dl")(1,"dt"),a(2,"Estimated Restoration Time:"),n(),o(3,"dd")(4,"strong"),a(5),n()(),o(6,"dd"),_(7,Hi,2,1,"small",26),n()()),i&2){let e=c(4);r(5),S(e.outageStatusAscend.restoreTime),r(2),d("ngIf",e.outageStatusAscend.lastUpdatedTime)}}function Gi(i,m){i&1&&(o(0,"a",65),a(1,"Get more details"),n())}function Yi(i,m){if(i&1){let e=C();o(0,"li")(1,"a",66),g("click",function(){p(e);let t=c(4);return u(t.pushToDataLayer("Clicks to additional details on my outage","reportoutage"))}),a(2,"Provide Additional Details on my Outage"),n()()}}function ji(i,m){if(i&1){let e=C();o(0,"div"),_(1,zi,8,2,"dl",26),o(2,"p",60),h(3,"span",30),_(4,Gi,2,0,"a",61),n(),o(5,"h3"),a(6,"What would you like to do next?"),n(),o(7,"ul",62),_(8,Yi,3,0,"li",26),o(9,"li")(10,"a",63),g("click",function(){p(e);let t=c(3);return u(t.pushToDataLayer("Clicks to View Full Outage Map","reportoutage"))}),a(11,"View Outage Map"),n()(),o(12,"li")(13,"a",64),a(14,"Return to My Account Home"),n()()()()}if(i&2){let e=c(3);r(),d("ngIf",e.isStatusAvailable),r(2),d("innerHtml",e.notes,M),r(),d("ngIf",e.isStatusAvailable),r(4),d("ngIf",e.isStatusAvailable),r(2),d("href",V(e.outageMapURL),T)}}function Ki(i,m){if(i&1&&(o(0,"small"),a(1),n()),i&2){let e=c(5);r(),w("Last Updated: ",e.outageStatusAscend.lastUpdatedTime)}}function Qi(i,m){if(i&1&&(o(0,"dl")(1,"dt"),a(2,"Estimated Repair Time:"),n(),o(3,"dd")(4,"strong"),a(5),n()(),o(6,"dd"),_(7,Ki,2,1,"small",26),n()()),i&2){let e=c(4);r(5),S(e.outageStatusAscend.restoreTime),r(2),d("ngIf",e.outageStatusAscend.lastUpdatedTime)}}function Zi(i,m){i&1&&(o(0,"a",65),a(1,"Get more details"),n())}function Ji(i,m){if(i&1&&(o(0,"p",60),h(1,"span",30),_(2,Zi,2,0,"a",61),n()),i&2){let e=c(4);r(),d("innerHtml",e.outageStatusAscend.areaMessages,M),r(),d("ngIf",e.isStatusAvailable)}}function Xi(i,m){i&1&&(o(0,"a",65),a(1,"Get more details"),n())}function $i(i,m){if(i&1&&(o(0,"p",60),h(1,"span",30),_(2,Xi,2,0,"a",61),n()),i&2){let e=c(4);r(),d("innerHtml",e.notes,M),r(),d("ngIf",e.isStatusAvailable)}}function en(i,m){if(i&1){let e=C();o(0,"li")(1,"a",66),g("click",function(){p(e);let t=c(5);return u(t.pushToDataLayer("Clicks to additional details on my outage","reportoutage"))}),a(2,"Provide Additional Details on my Outage"),n()()}}function tn(i,m){if(i&1&&(o(0,"div")(1,"h3"),a(2,"What would you like to do next?"),n(),o(3,"ul",62),_(4,en,3,0,"li",26),o(5,"li")(6,"a",64),a(7,"Return to My Account Home"),n()()()()),i&2){let e=c(4);r(4),d("ngIf",e.isStatusAvailable)}}function nn(i,m){if(i&1&&(o(0,"div"),_(1,Qi,8,2,"dl",26)(2,Ji,3,2,"p",67)(3,$i,3,2,"p",67)(4,tn,8,1,"div",26),n()),i&2){let e=c(3);r(),d("ngIf",e.isStatusAvailable&&!e.isTRACustomer),r(),d("ngIf",e.outageStatusAscend.areaMessages),r(),d("ngIf",e.notes),r(),d("ngIf",e.notes)}}function on(i,m){if(i&1){let e=C();o(0,"div")(1,"label"),a(2,"To report your outdoor/security light outage, please answer the following questions."),n(),h(3,"hr",68),o(4,"form",69,8),g("ngSubmit",function(){p(e);let t=y(5),l=c(3);return u(t.valid&&l.reportLightingOutage())}),o(6,"occ-outage-details",70),x("formChange",function(t){p(e);let l=c(3);return f(l.form,t)||(l.form=t),u(t)})("outageTypeChange",function(t){p(e);let l=c(3);return f(l.ServiceTypeText.Lighting,t)||(l.ServiceTypeText.Lighting=t),u(t)})("isResidentialAcctChange",function(t){p(e);let l=c(3);return f(l.isResidentialAcct,t)||(l.isResidentialAcct=t),u(t)}),n(),o(7,"div",71)(8,"button",72),g("click",function(){p(e);let t=c(3);return u(t.submitMade=!0)}),a(9),n(),o(10,"a",73),a(11,"Cancel"),n(),h(12,"occ-cancel-modal",74),n()()()}if(i&2){let e=c(3);r(6),v("form",e.form)("outageType",e.ServiceTypeText.Lighting)("isResidentialAcct",e.isResidentialAcct),d("submitMade",e.submitMade),r(2),d("disabled",e.formSubmitted),r(),w(" ",e.formSubmitted?"Please wait...":"Submit"," "),r(3),d("redirect","/Outages/Overview")}}function rn(i,m){if(i&1){let e=C();o(0,"div")(1,"p"),a(2," Our systems indicate that your power is "),o(3,"strong",75),a(4,"ON"),n(),a(5,". If power is off, please answer the following questions. "),n(),h(6,"hr",68),o(7,"form",69,8),g("ngSubmit",function(){p(e);let t=y(8),l=c(3);return u(t.valid&&l.submitElectricOutage())}),o(9,"occ-outage-details",70),x("formChange",function(t){p(e);let l=c(3);return f(l.form,t)||(l.form=t),u(t)})("outageTypeChange",function(t){p(e);let l=c(3);return f(l.ServiceTypeText.Electric,t)||(l.ServiceTypeText.Electric=t),u(t)})("isResidentialAcctChange",function(t){p(e);let l=c(3);return f(l.isResidentialAcct,t)||(l.isResidentialAcct=t),u(t)}),n(),o(10,"div",71)(11,"button",72),g("click",function(){p(e);let t=c(3);return u(t.submitMade=!0)}),a(12),n(),o(13,"a",73),a(14,"Cancel"),n(),h(15,"occ-cancel-modal",74),n()()()}if(i&2){let e=c(3);r(9),v("form",e.form)("outageType",e.ServiceTypeText.Electric)("isResidentialAcct",e.isResidentialAcct),d("submitMade",e.submitMade),r(2),d("disabled",e.formSubmitted),r(),w(" ",e.formSubmitted?"Please wait...":"Submit"," "),r(3),d("redirect","/Outages/Overview")}}function an(i,m){if(i&1){let e=C();o(0,"div"),h(1,"hr",68),o(2,"form",69,8),g("ngSubmit",function(){p(e);let t=y(3),l=c(3);return u(t.valid&&l.submitElectricOutage())}),o(4,"occ-outage-details",76),x("formChange",function(t){p(e);let l=c(3);return f(l.form,t)||(l.form=t),u(t)}),n(),o(5,"div",71)(6,"button",72),g("click",function(){p(e);let t=c(3);return u(t.submitMade=!0)}),a(7),n(),o(8,"a",73),a(9,"Cancel"),n(),h(10,"occ-cancel-modal",74),n()()()}if(i&2){let e=c(3);r(4),v("form",e.form),d("outageType",e.form.outageType)("isResidentialAcct",e.isResidentialAcct)("submitMade",e.submitMade),r(2),d("disabled",e.formSubmitted),r(),w(" ",e.formSubmitted?"Please wait...":"Submit"," "),r(3),d("redirect","/Outages/Overview")}}function sn(i,m){if(i&1&&(o(0,"div"),_(1,ji,15,6,"div",26)(2,nn,5,4,"div",26)(3,on,13,7,"div",26)(4,rn,16,7,"div",26)(5,an,11,7,"div",26),n()),i&2){let e=c(2);r(),d("ngIf",e.opCo!==e.OperatingCompany.APC&&!e.powerStatusOn&&e.electricSA),r(),d("ngIf",e.opCo===e.OperatingCompany.APC&&(e.outageStatusAscend.areaMessages||e.notes)&&e.electricSA),r(),d("ngIf",e.lightingSA),r(),d("ngIf",e.powerStatusOn&&e.electricSA),r(),d("ngIf",e.showAddDetails)}}function ln(i,m){if(i&1&&(o(0,"div"),h(1,"p",30),n()),i&2){let e=c(2);r(),d("innerHtml",e.notes,M)}}function cn(i,m){i&1&&h(0,"loading-spinner")}function dn(i,m){if(i&1){let e=C();_(0,Wi,8,3,"div",23),o(1,"div",35)(2,"div",36)(3,"div",37),h(4,"i",38),n(),o(5,"div",39)(6,"h2",40),a(7,"Outage Information"),n()(),h(8,"div",41),n(),o(9,"div",42)(10,"div",43)(11,"label"),a(12,"Where do you want to report the outage?"),n(),o(13,"div",44)(14,"div",45)(15,"select",46),x("ngModelChange",function(t){p(e);let l=c();return f(l.loggedin.user.activeAccount,t)||(l.loggedin.user.activeAccount=t),u(t)}),g("ngModelChange",function(){p(e);let t=c();return u(t.populateOutageData())}),_(16,Fi,2,2,"option",47),n(),_(17,Bi,2,4,"div",48)(18,qi,6,5,"ul",49),n(),o(19,"div",50)(20,"p",51),a(21,"\u2013 OR \u2013"),n()(),o(22,"div",52)(23,"p",53)(24,"a",54),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Report Another Outage/Report An Outage Not In My List","reportoutage"))}),a(25,"Report an outage not in my list"),n()()()()(),_(26,sn,6,5,"div",26)(27,ln,2,1,"div",26)(28,cn,1,0,"loading-spinner",26),n()()}if(i&2){let e=c();d("ngIf",e.outagesDisabled),r(15),d("disabled",!e.accounts.length),v("ngModel",e.loggedin.user.activeAccount),r(),d("ngForOf",e.accounts),r(),d("ngIf",e.isMultipleServiceAgreementsAvailable),r(),d("ngIf",!e.isMultipleServiceAgreementsAvailable&&e.selectedPremiseAddress),r(8),d("ngIf",!e.isLoading&&e.isLoggedIn&&!e.outagesDisabled&&!e.noServiceAgreements),r(),d("ngIf",!e.isLoading&&e.isLoggedIn&&!e.outagesDisabled&&e.noServiceAgreements&&e.notes),r(),d("ngIf",e.isLoading)}}function mn(i,m){if(i&1&&(o(0,"div",89)(1,"div",90)(2,"p")(3,"strong"),a(4,"Outage not reported:"),n(),a(5," We are currently experiencing technical difficulties and are unable to report your outage at this time. Please try again or c
1ontact us at "),o(6,"a",33),a(7),n(),a(8,". "),n()()()),i&2){let e=c(2);r(6),d("href",I("tel:",e.reportOutagePhone),T),r(),S(e.reportOutagePhone)}}function pn(i,m){i&1&&(o(0,"a",73),a(1,"Cancel"),n())}function un(i,m){if(i&1){let e=C();o(0,"div",35)(1,"div",36)(2,"div",37),h(3,"i",38),n(),o(4,"div",39)(5,"h2",40),a(6,"Outage Information"),n()(),h(7,"div",41),n(),o(8,"div",42),_(9,mn,9,3,"div",77),o(10,"form",69,8),g("ngSubmit",function(){p(e);let t=y(11),l=c();return u(t.valid&&l.reportStreetLightOutage())}),o(12,"occ-outage-details",76),x("formChange",function(t){p(e);let l=c();return f(l.form,t)||(l.form=t),u(t)}),n(),o(13,"h3",78)(14,"strong"),a(15,"Contact Information"),n()(),o(16,"p",79)(17,"small"),a(18,"* Required"),n()(),o(19,"div",44)(20,"div",80)(21,"div",81)(22,"label"),a(23,"Name *"),n(),o(24,"input",82,9),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.name,t)||(l.form.name=t),u(t)}),g("blur",function(){p(e);let t=y(25);return u(t.control.markAsTouched())}),n()(),o(26,"div",81)(27,"label"),a(28,"Email *"),n(),o(29,"input",83,10),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.email,t)||(l.form.email=t),u(t)}),g("blur",function(){p(e);let t=y(30);return u(t.control.markAsTouched())}),n()(),o(31,"div",44)(32,"div",84)(33,"div",81)(34,"label"),a(35,"Phone Number *"),n(),o(36,"input",85,11),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.phone,t)||(l.form.phone=t),u(t)}),g("blur",function(){p(e);let t=y(37);return u(t.control.markAsTouched())}),n()()(),o(38,"div",86)(39,"div",81)(40,"label"),a(41,"Ext."),n(),o(42,"input",87),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.phoneExt,t)||(l.form.phoneExt=t),u(t)}),n()()()()()(),o(43,"div",71)(44,"button",72),g("click",function(){p(e);let t=c();return u(t.submitMade=!0)}),a(45),n(),_(46,pn,2,0,"a",88),h(47,"occ-cancel-modal",74),n()()()()}if(i&2){let e=c();r(9),d("ngIf",e.reportOutageFailure),r(3),v("form",e.form),d("outageType",e.ServiceTypeText.Streetlight)("isResidentialAcct",e.isResidentialAcct)("submitMade",e.submitMade),r(12),v("ngModel",e.form.name),r(5),v("ngModel",e.form.email),r(7),v("ngModel",e.form.phone),r(6),v("ngModel",e.form.phoneExt),r(2),d("disabled",e.formSubmitted),r(),w(" ",e.formSubmitted?"Please wait...":"Submit"," "),r(),d("ngIf",!(e.opCo===e.OperatingCompany.GPC&&e.form.outageType==="Streetlight")),r(),d("redirect","/Outages/Overview")}}function gn(i,m){i&1&&(o(0,"span"),a(1," We apologize for your inconvenience and will work to restore your power as soon as possible. "),n())}function _n(i,m){i&1&&(o(0,"span"),a(1," We will repair the light as soon as possible. "),n())}function hn(i,m){if(i&1&&(o(0,"dd"),a(1),n()),i&2){let e=c(3);r(),S(e.confirmationNum)}}function fn(i,m){if(i&1&&(o(0,"dl",57)(1,"dt"),a(2,"Confirmation Number"),n(),_(3,hn,2,1,"dd",26),n()),i&2){let e=c(2);r(3),d("ngIf",e.confirmationNum!=="-1")}}function vn(i,m){if(i&1&&(o(0,"span"),a(1,"A confirmation email has been sent to "),o(2,"em"),a(3),n()()),i&2){let e=c(3);r(3),S(e.confirmationEmail)}}function xn(i,m){if(i&1&&(a(0,"A confirmation email will be sent to "),o(1,"em"),a(2),n()),i&2){let e=c(3);r(2),S(e.confirmationEmail)}}function Cn(i,m){if(i&1&&(o(0,"p"),_(1,vn,4,1,"span",105)(2,xn,3,1,"ng-template",null,12,D),n()),i&2){let e=y(3),s=c(2);r(),d("ngIf",!(s.form.outageType===s.ServiceTypeText.Streetlight&&s.opCo===s.OperatingCompany.MPC&&!s.mpcStreetlightFeatureFlag))("ngIfElse",e)}}function Sn(i,m){if(i&1){let e=C();o(0,"div")(1,"p"),a(2,"Do you want to make changes to your current outage notifications?"),n(),o(3,"p")(4,"a",106),g("click",function(){p(e);let t=c(3);return u(t.pushToDataLayer("Clicks to Manage Contact Preferences","reportoutage"))}),a(5,"Manage my Alerts"),n()()()}}function yn(i,m){i&1&&(o(0,"div")(1,"p"),a(2," Did you know that you can have alerts sent to your email or phone in the event of a power outage? "),n(),o(3,"p")(4,"a",107),a(5,"Sign Up for Outage Alerts"),n()()())}function wn(i,m){if(i&1&&(o(0,"div",94),_(1,Sn,6,0,"div",95)(2,yn,6,0,"div",96),n()),i&2){let e=c(2);d("ngSwitch",e.enrolledOutageAlerts),r(),d("ngSwitchCase",!0)}}function On(i,m){i&1&&(o(0,"div")(1,"p"),a(2," Did you know that with an online account you can have alerts sent to your email or phone in the event of a power outage? "),n(),o(3,"p")(4,"a",108),a(5," Log In Here"),n(),a(6,". Don't have an account? "),o(7,"a",109),a(8,"Register Now"),n(),a(9,". "),n()()),i&2&&(r(4),d("routerLink",E(1,pt)))}function bn(i,m){i&1&&(o(0,"div")(1,"p"),a(2," We concentrate restoration efforts in the areas and on the power lines that restore electricity to the greatest number of people in the shortest period of time. We place emphasis on vital community services, such as hospitals, emergency services, public safety, and water and sewage stations. "),n(),o(3,"p"),a(4," If possible, we suggest that you arrange to move anyone with serious medical problems to another location where service is available until power is restored. "),n()())}function Tn(i,m){i&1&&(o(0,"div")(1,"p"),a(2," If possible, please mark the pole of the light you are reporting so we can find it easily during daylight hours. For example, tie a brightly colored ribbon or bag around the pole. "),n()())}function An(i,m){if(i&1&&(o(0,"dl",110)(1,"dt"),a(2),n(),h(3,"dd",30),n()),i&2){let e=c(2);r(2),w("",e.form.lookupType==="Address"?"Address":"Address beginning with",":"),r(),d("innerHtml",e.selectedAddress?e.selectedAddress:e.selectedServiceAgreement.premiseAddress,M)}}function En(i,m){if(i&1&&(o(0,"div")(1,"dl",57)(2,"dt"),a(3,"City of Outage Location"),n(),o(4,"dd"),a(5),n()(),o(6,"dl")(7,"dt"),a(8,"Nearest Street Address to Outage Location"),n(),o(9,"dd"),a(10),n()()()),i&2){let e=c(2);r(5),S(e.form.outageCity),r(5),S(e.form.outageAddress)}}function Rn(i,m){if(i&1&&(o(0,"dl",111)(1,"dt"),a(2),n(),o(3,"dd"),a(4),n(),o(5,"dt"),a(6),n(),o(7,"dd"),a(8),n(),o(9,"dt"),a(10),n(),o(11,"dd"),a(12),n(),o(13,"dt"),a(14,"Did you hear a loud noise when the lights went out?"),n(),o(15,"dd"),a(16),n()()),i&2){let e=c(2);r(2),w("Is the power out throughout your ",e.isResidentialAcct?"home":"business","?"),r(2),S(e.form.allPowerOut==="1"?"Yes":e.form.allPowerOut==="2"?"No":"Don't Know"),r(2),w("Do ",e.isResidentialAcct?"your neighbors":"other businesses around you"," have power?"),r(2),w(" ",e.form.othersWithPower==="1"?"Yes":e.form.othersWithPower==="2"?"No":"Don't Know"," "),r(2),w("Are there wires down near your ",e.isResidentialAcct?"home":"business","?"),r(2),S(e.form.wiresDown==="1"?"Yes":e.form.wiresDown==="2"?"No":"Don't Know"),r(4),S(e.form.loudNoise==="1"?"Yes":e.form.loudNoise==="2"?"No":"Don't Know")}}function Mn(i,m){if(i&1&&(o(0,"dl",111)(1,"dt"),a(2,"Is the light blinking on and off?"),n(),o(3,"dd"),a(4),n(),o(5,"dt"),a(6,"Does the light stay on all day (24 hours)?"),n(),o(7,"dd"),a(8),n(),o(9,"dt"),a(10,"Is the light too bright or too dim?"),n(),o(11,"dd"),a(12),n(),o(13,"dt"),a(14,"Is the light completely out?"),n(),o(15,"dd"),a(16),n()()),i&2){let e=c(2);r(4),S(e.form.blinkingLight==="1"?"Yes":e.form.blinkingLight==="2"?"No":"Don't Know"),r(4),S(e.form.onAllDay==="1"?"Yes":e.form.onAllDay==="2"?"No":"Don't Know"),r(4),S(e.form.tooBrightDim==="1"?"Yes":e.form.tooBrightDim==="2"?"No":"Don't Know"),r(4),S(e.form.lightOut==="1"?"Yes":e.form.lightOut==="2"?"No":"Don't Know")}}function kn(i,m){if(i&1&&(o(0,"dd"),a(1),n()),i&2){let e=c(3);r(),S(e.form.Directions.substring(0,150))}}function Vn(i,m){if(i&1&&(o(0,"dd"),a(1),n()),i&2){let e=c(3);r(),S(e.form.Directions)}}function Dn(i,m){if(i&1&&(o(0,"dl",57)(1,"dt"),a(2,"Directions to Outage Location"),n(),_(3,kn,2,1,"dd",26)(4,Vn,2,1,"dd",26),n()),i&2){let e=c(2);r(3),d("ngIf",e.lightingSA),r(),d("ngIf",e.electricSA)}}function In(i,m){if(i&1&&(o(0,"dd"),a(1),n()),i&2){let e=c(3);r(),S(e.form.Comments.substring(0,150))}}function Ln(i,m){if(i&1&&(o(0,"dd"),a(1),n()),i&2){let e=c(3);r(),S(e.form.Comments.substring(0,110))}}function Pn(i,m){if(i&1&&(o(0,"dl")(1,"dt"),a(2,"Comments"),n(),_(3,In,2,1,"dd",26)(4,Ln,2,1,"dd",26),n()),i&2){let e=c(2);r(3),d("ngIf",e.lightingSA),r(),d("ngIf",e.electricSA)}}function Nn(i,m){i&1&&(o(0,"a",64),a(1,"Return to My Account Home"),n())}function Wn(i,m){if(i&1){let e=C();o(0,"div",35)(1,"div",36)(2,"button",91),a(3,"Print"),n(),o(4,"div",37),h(5,"i",92),n(),o(6,"div",39)(7,"h3",40),a(8,"Confirmation"),n()(),h(9,"div",41),n(),o(10,"div",42)(11,"h3",93)(12,"strong"),a(13,"Thank you for your report."),n()(),o(14,"p",94),_(15,gn,2,0,"span",95)(16,_n,2,0,"span",96
1),a(17," If you have any additional questions or concerns, please call us at "),o(18,"a",33),a(19),n(),a(20,". "),n(),_(21,fn,4,1,"dl",48)(22,Cn,4,2,"p",26)(23,wn,3,2,"div",97)(24,On,10,2,"div",26),o(25,"h3",98)(26,"strong"),a(27,"What's Next"),n()(),o(28,"div",94),_(29,bn,5,0,"div",95)(30,Tn,3,0,"div",96),n(),o(31,"h3",98)(32,"strong"),a(33,"Submitted Information"),n()(),o(34,"div",99),_(35,An,4,2,"dl",100)(36,En,11,2,"div",96),n(),o(37,"div",94),_(38,Rn,17,7,"dl",101)(39,Mn,17,4,"dl",102),n(),o(40,"div",60),_(41,Dn,5,2,"dl",48)(42,Pn,5,2,"dl",26),n(),o(43,"h3"),a(44,"What would you like to do next?"),n(),o(45,"ul",62)(46,"li")(47,"a",103),g("click",function(){p(e);let t=c();return t.pushToDataLayer("Clicks to Report another outage","outages"),u(t.resetForm())}),a(48,"Report Another Outage"),n()(),o(49,"li")(50,"a",63),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Clicks to View Full Outage Map","outages"))}),a(51,"View Outage Map"),n()(),o(52,"li"),_(53,Nn,2,0,"a",104),n()()()()}if(i&2){let e=c();r(14),d("ngSwitch",!e.lightingSA&&e.form.outageType!==e.ServiceTypeText.Lighting&&e.form.outageType!==e.ServiceTypeText.Streetlight),r(),d("ngSwitchCase",!0),r(3),d("href",I("tel:",e.reportOutagePhone),T),r(),S(e.reportOutagePhone),r(2),d("ngIf",e.form.outageType!==e.ServiceTypeText.Streetlight),r(),d("ngIf",e.confirmationEmail),r(),d("ngIf",e.isLoggedIn),r(),d("ngIf",!e.isLoggedIn),r(4),d("ngSwitch",e.electricSA),r(),d("ngSwitchCase",!0),r(5),d("ngSwitch",e.form.outageType!==e.ServiceTypeText.Streetlight),r(),d("ngSwitchCase",!0),r(2),d("ngSwitch",e.electricSA&&e.form.outageType!==e.ServiceTypeText.Lighting&&e.form.outageType!==e.ServiceTypeText.Streetlight),r(),d("ngSwitchCase",!0),r(3),d("ngIf",e.form.Directions),r(),d("ngIf",e.form.Comments),r(8),d("href",V(e.outageMapURL),T),r(3),d("ngIf",e.isLoggedIn)}}function Fn(i,m){if(i&1){let e=C();o(0,"p",125)(1,"a",126),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Login Button","outages"))}),a(2,"Login"),n(),o(3,"span",127),a(4," to report your outage easier and faster! You can enroll in outage alerts, learn about weather events in your area and check the status of your outage."),n(),o(5,"span",128),a(6,"for more benefits."),n()()}i&2&&(r(),d("routerLink",E(1,pt)))}function Bn(i,m){if(i&1&&(o(0,"p",60),a(1),o(2,"a",33),a(3),n(),a(4,". "),n()),i&2){let e=c(2);r(),w(" Please check your ",e.form.lookupType==="SSN"||e.form.lookupType==="Tax ID"?e.form.lookupType:e.form.lookupType.toLowerCase()," or use one of the other lookup options and try again. If you are unable to report your outage online, please call us at "),r(),d("href",I("tel:",e.reportOutagePhone),T),r(),S(e.reportOutagePhone)}}function Un(i,m){if(i&1&&(o(0,"option"),a(1),n()),i&2){let e=m.$implicit;r(),S(e)}}function qn(i,m){if(i&1){let e=C();o(0,"a",63),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Report Streetlight Outage Not My Property","reportoutage"))}),a(1,"Report a streetlight outage"),n()}if(i&2){let e=c(2);d("href",V(e.reportOutageStreetlightGPCUrl),T)}}function Hn(i,m){if(i&1){let e=C();o(0,"a",129),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Clicks to Report Streetlight Outage Not My Property","reportoutage"))}),a(1,"Report a streetlight outage"),n()}}function zn(i,m){if(i&1){let e=C();o(0,"div")(1,"div",81)(2,"label"),a(3,"Account Holder's Phone Number"),n(),o(4,"input",130,11),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.phoneNum,t)||(l.form.phoneNum=t),u(t)}),g("blur",function(){p(e);let t=y(5);return u(t.control.markAsTouched())}),n()()()}if(i&2){let e=c(2);r(4),v("ngModel",e.form.phoneNum)}}function Gn(i,m){if(i&1){let e=C();o(0,"div")(1,"div",81)(2,"label"),a(3,"Account Number"),n(),o(4,"input",131,14),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.accountNumber,t)||(l.form.accountNumber=t),u(t)}),g("blur",function(){p(e);let t=y(5);return u(t.control.markAsTouched())}),n()()()}if(i&2){let e=c(2);r(4),v("ngModel",e.form.accountNumber)}}function Yn(i,m){if(i&1){let e=C();o(0,"div")(1,"div",81)(2,"label"),a(3,"Account Holder's SSN"),n(),o(4,"input",132,15),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.ssnId,t)||(l.form.ssnId=t),u(t)}),g("blur",function(){p(e);let t=y(5);return u(t.control.markAsTouched())}),n()()()}if(i&2){let e=c(2);r(4),v("ngModel",e.form.ssnId),d("identifierType","ssn")}}function jn(i,m){if(i&1){let e=C();o(0,"div")(1,"div",81)(2,"label"),a(3,"Account Holder's Tax ID"),n(),o(4,"input",133,16),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.taxId,t)||(l.form.taxId=t),u(t)}),g("blur",function(){p(e);let t=y(5);return u(t.control.markAsTouched())}),n()()()}if(i&2){let e=c(2);r(4),v("ngModel",e.form.taxId),d("identifierType","taxId")}}function Kn(i,m){if(i&1){let e=C();o(0,"div")(1,"div",81)(2,"label"),a(3,"Meter Number on Account"),n(),o(4,"input",134,17),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.meterNum,t)||(l.form.meterNum=t),u(t)}),g("blur",function(){p(e);let t=y(5);return u(t.control.markAsTouched())}),n()()()}if(i&2){let e=c(2);r(4),v("ngModel",e.form.meterNum)}}function Qn(i,m){if(i&1){let e=C();o(0,"div")(1,"div",44)(2,"div",135)(3,"div",81)(4,"label"),a(5,"Street # *"),n(),o(6,"input",136,18),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.streetNum,t)||(l.form.streetNum=t),u(t)}),g("blur",function(){p(e);let t=y(7);return u(t.control.markAsTouched())}),n()()(),o(8,"div",115)(9,"div",81)(10,"label"),a(11,"Street Name *"),n(),o(12,"input",137,19),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.streetName,t)||(l.form.streetName=t),u(t)}),g("blur",function(){p(e);let t=y(13);return u(t.control.markAsTouched())}
1),n()()(),o(14,"div",138)(15,"div",81)(16,"label"),a(17),n(),o(18,"input",139),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.unit,t)||(l.form.unit=t),u(t)}),n()()()(),o(19,"div",44)(20,"div",140)(21,"div",81)(22,"label"),a(23,"City"),n(),o(24,"input",141),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.city,t)||(l.form.city=t),u(t)}),n()()(),o(25,"div",142)(26,"div",81)(27,"label"),a(28,"State"),n(),o(29,"select",143),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.state,t)||(l.form.state=t),u(t)}),o(30,"option",144),a(31,"AL"),n(),o(32,"option",145),a(33,"GA"),n(),o(34,"option",146),a(35,"MS"),n()()()(),o(36,"div",138)(37,"div",81)(38,"label"),a(39,"Zip Code *"),n(),o(40,"input",147,20),x("ngModelChange",function(t){p(e);let l=c(2);return f(l.form.zipCode,t)||(l.form.zipCode=t),u(t)}),g("blur",function(){p(e);let t=y(41);return u(t.control.markAsTouched())}),n()()()()()}if(i&2){let e=c(2);r(6),v("ngModel",e.form.streetNum),r(6),v("ngModel",e.form.streetName),r(5),w("",e.accountSummary.accountType===e.AccountType.Residential?"Apt/Unit":"Unit/Suite"," #"),r(),v("ngModel",e.form.unit),r(6),v("ngModel",e.form.city),r(5),v("ngModel",e.form.state),r(11),v("ngModel",e.form.zipCode)}}function Zn(i,m){if(i&1){let e=C();o(0,"div")(1,"p"),a(2," Below are the search results based on the information you entered. Please select your address by clicking the row. To refine the results, update the search fields below. "),n(),o(3,"div",44)(4,"div",135)(5,"div",81)(6,"label"),a(7,"Street #"),n(),o(8,"input",162),x("ngModelChange",function(t){p(e);let l=c(4);return f(l.form.streetNum2,t)||(l.form.streetNum2=t),u(t)}),n()()(),o(9,"div",135)(10,"div",81)(11,"label"),a(12),n(),o(13,"input",163),x("ngModelChange",function(t){p(e);let l=c(4);return f(l.form.unit2,t)||(l.form.unit2=t),u(t)}),n()()()()()}if(i&2){let e=c(4);r(8),v("ngModel",e.form.streetNum2),r(4),w("",e.accountSummary.accountType===e.AccountType.Residential?"Apt/Unit":"Unit/Suite"," #"),r(),v("ngModel",e.form.unit2)}}function Jn(i,m){i&1&&(o(0,"p",60),a(1," Below are the search results based on the information you entered. Please select your street number by clicking the row. "),n())}function Xn(i,m){if(i&1){let e=C();o(0,"input",164),x("ngModelChange",function(t){p(e);let l=c(4);return f(l.form.location,t)||(l.form.location=t),u(t)}),n()}if(i&2){let e=c(4);v("ngModel",e.form.location)}}function $n(i,m){if(i&1&&(o(0,"span",127),a(1),n()),i&2){let e=c().$implicit;r(),S(e.premiseAddress1)}}function eo(i,m){if(i&1&&(Z(0),a(1),h(2,"br"),J()),i&2){let e=c(2).$implicit;r(),S(e.premiseAddress2)}}function to(i,m){if(i&1&&(o(0,"span",170),a(1),h(2,"br"),_(3,eo,3,1,"ng-container",26),a(4),n()),i&2){let e=c().$implicit;r(),S(e.premiseAddress1),r(2),d("ngIf",e.premiseAddress2.trim()),r(),X(" ",e.premiseCity.trim(),", ",e.premiseState," ",e.premisePostal," ")}}function io(i,m){if(i&1&&(o(0,"div",167)(1,"label"),_(2,$n,2,1,"span",168)(3,to,5,5,"span",169),n()()),i&2){let e=c(5);r(2),d("ngIf",!e.isMobileView),r(),d("ngIf",e.isMobileView)}}function no(i,m){i&1&&(o(0,"kendo-grid-column",165),_(1,io,4,2,"ng-template",166),n())}function oo(i,m){i&1&&h(0,"kendo-grid-column",171)}function ro(i,m){i&1&&h(0,"kendo-grid-column",172)}function ao(i,m){i&1&&h(0,"kendo-grid-column",173)}function so(i,m){if(i&1&&(o(0,"div",167)(1,"label")(2,"span"),a(3),n()()()),i&2){let e=m.$implicit;r(3),S((e.premiseAddress1||"").split(" ")[0])}}function lo(i,m){i&1&&(o(0,"kendo-grid-column",174),_(1,so,4,1,"ng-template",166),n())}function co(i,m){i&1&&h(0,"kendo-grid-column",175)}function mo(i,m){if(i&1){let e=C();o(0,"p")(1,"a",160),g("click",function(){p(e);let t=c(4);return t.mapAddress(),u(t.pushToDataLayer("Clicks to Map This Address","reportoutage"))}),a(2,"Map this address"),n(),h(3,"br"),n()}}function po(i,m){if(i&1){let e=C();o(0,"div",71)(1,"button",72),g("click",function(){p(e);let t=c(4);return u(t.pushToDataLayer("Clicks to Next","reportoutage"))}),a(2," Next "),n(),o(3,"a",176),g("click",function(){p(e);let t=c(4);return u(t.pushToDataLayer("Clicks to Cancel","reportoutage"))}),a(4,"Cancel"),n(),h(5,"occ-cancel-modal",74),n()}if(i&2){let e=c(4);r(),d("disabled",!e.isRowSelected),r(4),d("redirect","/Outages/Overview")}}function uo(i,m){if(i&1){let e=C();o(0,"div")(1,"div",94),_(2,Zn,14,3,"div",95)(3,Jn,2,0,"p",150),n(),o(4,"kendo-gri
1d",151),g("selectionChange",function(t){p(e);let l=c(3);return u(l.selectRow(t))})("filterChange",function(t){p(e);let l=c(3);return u(l.applyFilter(t))}),o(5,"kendo-grid-checkbox-column",152),_(6,Xn,1,1,"ng-template"),n(),_(7,no,2,0,"kendo-grid-column",153)(8,oo,1,0,"kendo-grid-column",154)(9,ro,1,0,"kendo-grid-column",155)(10,ao,1,0,"kendo-grid-column",156)(11,lo,2,0,"kendo-grid-column",157)(12,co,1,0,"kendo-grid-column",158),n(),o(13,"div",44)(14,"div",159),_(15,mo,4,0,"p",26),o(16,"p")(17,"a",160),g("click",function(){p(e);let t=c(3);return t.clearSearchResults(),u(t.pushToDataLayer("Clicks to My Address is Not Listed","reportoutage"))}),a(18,"My address is not listed"),n()()()(),_(19,po,6,2,"div",161),n()}if(i&2){let e=c(3);r(),d("ngSwitch",e.form.lookupType),r(),d("ngSwitchCase","Address"),r(2),d("kendoGridBinding",e.gridData)("selectable",ye(15,fi,e.single))("pageable",ye(18,xi,E(17,vi)))("pageSize",10)("filter",e.gridFilter),r(3),d("ngIf",e.form.lookupType==="Address"),r(),d("ngIf",e.form.lookupType==="Address"&&!e.isMobileView),r(),d("ngIf",e.form.lookupType==="Address"&&!e.isMobileView),r(),d("ngIf",e.form.lookupType==="Address"&&!e.isMobileView),r(),d("ngIf",e.form.lookupType!=="Address"),r(),d("ngIf",e.form.lookupType!=="Address"),r(3),d("ngIf",e.form.lookupType==="Address"&&e.isRowSelected),r(4),d("ngIf",e.gridData.length&&!e.noAddressReportable)}}function go(i,m){if(i&1&&(o(0,"p"),a(1),o(2,"a",33),a(3),n(),a(4,". "),n()),i&2){let e=c(4);r(),w(" Sorry, we could not find an address based on the information you entered. Please check your ",e.form.lookupType==="SSN"||e.form.lookupType==="Tax ID"?e.form.lookupType:e.form.lookupType.toLowerCase()," or use one of the other lookup options and try again. If you are unable to report your outage online, please call us at "),r(),d("href",I("tel:",e.reportOutagePhone),T),r(),S(e.reportOutagePhone)}}function _o(i,m){if(i&1){let e=C();o(0,"p"),a(1),o(2,"a",160),g("click",function(){p(e);let t=c(4);return u(t.pushToDataLayer("Clicks to Try Again","reportoutage"))}),a(3,"try again"),n(),a(4,". If you are unable to report your outage online, please call us at "),o(5,"a",33),a(6),n(),a(7,". "),n()}if(i&2){let e=c(4);r(),w(" We\u2019re sorry but outages cannot be reported at this address. If you would like to report an outage at a different location, please change your ",e.form.lookupType==="SSN"||e.form.lookupType==="Tax ID"?e.form.lookupType:e.form.lookupType.toLowerCase()," or use one of the other lookup options and "),r(4),d("href",I("tel:",e.reportOutagePhone),T),r(),S(e.reportOutagePhone)}}function ho(i,m){if(i&1){let e=C();o(0,"div"),_(1,go,5,4,"p",26)(2,_o,8,4,"p",26),o(3,"p")(4,"a",63),g("click",function(){p(e);let t=c(3);return u(t.pushToDataLayer("Clicks to View Full Outage Map","outages"))}),a(5,"VIEW OUTAGE MAP"),n()()()}if(i&2){let e=c(3);r(),d("ngIf",!e.gridData.length),r(),d("ngIf",e.noAddressReportable),r(2),d("href",V(e.outageMapURL),T)}}function fo(i,m){if(i&1){let e=C();o(0,"div",148)(1,"div",36)(2,"h2",40),h(3,"i",92),a(4," Search Results"),n()(),o(5,"div",42)(6,"form",149,21),g("ngSubmit",function(){p(e);let t=c(2);return u(t.submitOutage())}),_(8,uo,20,20,"div",26)(9,ho,6,4,"div",26),n()()()}if(i&2){let e=c(2);r(8),d("ngIf",e.gridData&&!e.noAddressReportable),r(),d("ngIf",!e.gridData.length||e.noAddressReportable)}}function vo(i,m){if(i&1){let e=C();o(0,"div")(1,"div",35)(2,"div",36)(3,"div",37),h(4,"i",112),n(),o(5,"div",39)(6,"h2",40),a(7,"Find Outage Location"),n()(),h(8,"div",41),n(),o(9,"div",42),_(10,Fn,7,2,"p",113),o(11,"form",114,13),g("ngSubmit",function(){p(e);let t=y(12),l=c();return t.valid&&l.search(),u(l.pushToDataLayer("Clicks to Search","reportoutage"))}),_(13,Bn,5,4,"p",67),o(14,"div",81)(15,"label"),a(16,"Choose what information you would like to use to find the outage location"),n(),o(17,"div",44)(18,"div",115)(19,"select",116),x("ngModelChange",function(t){p(e);let l=c();return f(l.form.lookupType,t)||(l.form.lookupType=t),u(t)}),g("ngModelChange",function(){p(e);let t=c();return t.resetLookupFields(),u(t.pushToDataLayer("Selected Lookup Criteria "+t.form.lookupType,"reportoutage"))}),_(20,Un,2,1,"option",117),n()(),o(21,"div",50)(22,"p",51),a(23,"\u2013 OR \u2013"),n()(),o(24,"div",118)(25,"p",119),_(26,qn,2,2,"a",120)(27,Hn,2,0,"a",121),n()()()(),o(28,"div",94)(29,"div",44)(30,"div",122),_(31,zn,6,1,"div",95)(32,Gn,6,1,"div",95)(33,Yn,6,2,"div",95)(34,jn,6,2,"div",95)(35,Kn,6,1,"div",95),n()(),_(36,Qn,42,7,"div",96),n(),o(37,"div",71)(38,"button",123),a(39,"Search"),n()()()()(),_(40,fo,10,2,"div",124),n()}if(i&2){let e=c();r(10),d("ngIf",!e.isLoggedIn),r(3),d("ngIf",e.addressNotListed),r(6),v("ngModel",e.form.lookupType),r(),d("ngForOf",e.lookupTypes),r(5),d("ngSwitch",e.opCo),r(),d("ngSwitchCase",e.OperatingCompany.GPC),r(2),d("ngSwitch",e.form.lookupType),r(3),d("ngSwitchCase","Phone Number"),r(),d("ngSwitchCase","Account Number"),r(),d("ngSwitchCase","SSN"),r(),d("ngSwitchCase","Tax ID"),r(),d("ngSwitchCase","Meter Number"),r(5),d("ngIf",e.showGridData)}}function xo(i,m){if(i&1&&(o(0,"strong"),a(1," We are aware of the outage at address:"),h(2,"br")(3,"span",30),n()),i&2){let e=c(2);r(3),d("innerHtml",e.selectedAddress,M)}}function Co(i,m){if(i&1&&(o(0,"strong"),a(1," We are aware of the outage at the address beginning with "),o(2,"span"),a(3),n()()),i&2){let e=c(2);r(3),S(e.selectedAddress)}}function So(i,m){if(i&1&&(o(0,"small"),a(1),n()),i&2){let e=c(2);r(),w("Last Updated: ",e.outageStatusAscend.lastUpdatedTime)}}function yo(i,m){if(i&1){let e=C();o(0,"div",35)(1,"div",36)(2,"div",37),h(3,"i",92),n(),o(4,"div",39)(5,"h3",40),a(6,"Aware of Outage"),n()(),h(7,"div",41),n(),o(8,"div",42)(9,"h3",177),_(10,xo,4,1,"strong",26)(11,Co,4,1,"strong",26),n(),o(12,"dl")(13,"dt"),a(14),n(),o(15,"dd")(16,"strong"),a(17
1),n()(),o(18,"dd"),_(19,So,2,1,"small",26),n()(),o(20,"p"),a(21),n(),o(22,"h3"),a(23,"What would you like to do next?"),n(),o(24,"ul",62)(25,"li")(26,"a",66),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Clicks to additional details on my outage","outages"))}),a(27,"Provide Additional Details on my Outage"),n()(),o(28,"li")(29,"a",63),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Clicks to View Full Outage Map","outages"))}),a(30,"View Outage Map"),n()(),o(31,"li")(32,"a",64),a(33,"Return to My Account Home"),n()()()()()}if(i&2){let e=c();r(10),d("ngIf",e.form.lookupType==="Address"),r(),d("ngIf",e.form.lookupType!=="Address"),r(3),w("Estimated ",e.opCo===e.OperatingCompany.APC?"Repair":"Restoration"," Time:"),r(3),S(e.outageStatusAscend.restoreTime),r(2),d("ngIf",e.outageStatusAscend.lastUpdatedTime),r(2),S(e.notes),r(8),d("href",V(e.outageMapURL),T)}}function wo(i,m){if(i&1&&(o(0,"div",27)(1,"div",55),h(2,"i",29),a(3," Our Outage Reporting system is currently down for maintenance. Please contact Customer Service at "),o(4,"strong")(5,"a",33),a(6),n()(),a(7," to report an outage. "),n()()),i&2){let e=c(2);r(5),d("href",I("tel:",e.apcOutageUnavailablePhoneNumber),T),r(),S(e.apcOutageUnavailablePhoneNumber)}}function Oo(i,m){if(i&1&&(o(0,"div",27)(1,"div",28),h(2,"i",29),a(3),n()()),i&2){let e=c(3);r(3),w(" ",e.bannerMessage," ")}}function bo(i,m){if(i&1&&(o(0,"div",89)(1,"div",90)(2,"p")(3,"strong"),a(4,"Outage not reported:"),n(),a(5," We are currently experiencing technical difficulties and are unable to report your outage at this time. Please try again or contact us at "),o(6,"a",33),a(7),n(),a(8,". "),n()()()),i&2){let e=c(3);r(6),d("href",I("tel:",e.reportOutagePhone),T),r(),S(e.reportOutagePhone)}}function To(i,m){if(i&1){let e=C();o(0,"div")(1,"h3",78)(2,"strong"),a(3,"Contact Information"),n()(),o(4,"p",79)(5,"small"),a(6,"* Required"),n()(),o(7,"div",44)(8,"div",80)(9,"div",81)(10,"label"),a(11,"Name *"),n(),o(12,"input",82,9),x("ngModelChange",function(t){p(e);let l=c(3);return f(l.form.name,t)||(l.form.name=t),u(t)}),g("blur",function(){p(e);let t=y(13);return u(t.control.markAsTouched())}),n()(),o(14,"div",81)(15,"label"),a(16,"Email *"),n(),o(17,"input",83,10),x("ngModelChange",function(t){p(e);let l=c(3);return f(l.form.email,t)||(l.form.email=t),u(t)}),g("blur",function(){p(e);let t=y(18);return u(t.control.markAsTouched())}),n()(),o(19,"div",44)(20,"div",84)(21,"div",81)(22,"label"),a(23,"Phone Number *"),n(),o(24,"input",179,11),x("ngModelChange",function(t){p(e);let l=c(3);return f(l.form.phone,t)||(l.form.phone=t),u(t)}),g("blur",function(){p(e);let t=y(25);return u(t.control.markAsTouched())}),n()()(),o(26,"div",86)(27,"div",81)(28,"label"),a(29,"Ext."),n(),o(30,"input",87),x("ngModelChange",function(t){p(e);let l=c(3);return f(l.form.phoneExt,t)||(l.form.phoneExt=t),u(t)}),n()()()()()()()}if(i&2){let e=c(3);r(12),v("ngModel",e.form.name),r(5),v("ngModel",e.form.email),r(7),v("ngModel",e.form.phone),r(6),v("ngModel",e.form.phoneExt)}}function Ao(i,m){if(i&1){let e=C();o(0,"div",35)(1,"div",36)(2,"div",37),h(3,"i",38),n(),_(4,Oo,4,1,"div",23),o(5,"div",39)(6,"h3",40),a(7,"Outage Information"),n()(),h(8,"div",41),n(),o(9,"div",42),_(10,bo,9,3,"div",77),o(11,"form",69,8),g("ngSubmit",function(){p(e);let t=y(12),l=c(2);return u(t.valid&&l.reportOutage())}),o(13,"occ-outage-details",76),x("formChange",function(t){p(e);let l=c(2);return f(l.form,t)||(l.form=t),u(t)}),n(),_(14,To,31,4,"div",26),o(15,"div",71)(16,"button",72),g("click",function(){p(e);let t=c(2);return u(t.submitMade=!0)}),a(17),n(),o(18,"a",73),a(19,"Cancel"),n(),h(20,"occ-cancel-modal",74),n()()()()}if(i&2){let e=c(2);r(4),d("ngIf",e.bannerMessage&&e.isTRACustomer),r(6),d("ngIf",e.reportOutageFailure),r(3),v("form",e.form),d("outageType",e.form.outageType)("isResidentialAcct",e.isResidentialAcct)("submitMade",e.submitMade),r(),d("ngIf",e.showContactFields),r(2),d("disabled",e.formSubmitted),r(),w(" ",e.formSubmitted?"Please wait...":"Submit"," "),r(3),d("redirect","/Outages/Overview")}}function Eo(i,m){if(i&1&&_(0,wo,8,3,"div",23)(1,Ao,21,10,"div",178),i&2){let e=c();d("ngIf",e.outagesDisabled),r(),d("ngIf",!e.outagesDisabled)}}function Ro(i,m){if(i&1){let e=C();o(0,"a",184),g("click",function(){p(e);let t=c(2);return u(t.pushToDataLayer("Learn How To Reset Your Breaker","reportoutage"))}),a(1,"Learn how to reset your breaker."),n()}}function Mo(i,m){if(i&1){let e=C();o(0,"div",35)(1,"div",36)(2,"div",37),h(3,"i",92),n(),o(4,"div",39)(5,"h2",40),a(6,"Partial Outage"),n()(),h(7,"div",41),n(),o(8,"div",42)(9,"form",180),g("ngSubmit",function(){p(e);let t=c();return u(t.submitPartialForm())}),o(10,"p"),a(11," You have indicated that your home has a partial power outage. This is often caused by a blown fuse or an open circuit breaker. "),n(),o(12,"p"),a(13,` Please check your main electrical panel. Open breakers are often difficult to spot, so you can switch all of your breakers "off" then back "on" to ensure they're in the proper position. If your home uses fuses for circuit protection, any blown or damaged fuses should be replaced. `),n(),o(14,"p"),_(15,Ro,2,0,"a",181),n(),o(16,"p"),a(17," If you are able to restore power to your entire home, click "),o(18,"em"),a(19,"CANCEL"),n(),a(20," to cancel this outage report; otherwise, click "),o(21,"em"),a(22,"SUBMIT"),n(),a(23,". "),n(),o(24,"div",71)(25,"button",182),a(26),n(),o(27,"a",183),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Partial Outage Go Back","reportoutage"))}),a(28,"Go Back"),n(),o(29,"a",73),a(30,"Cancel"),n(),h(31,"occ-cancel-modal",74),n()()()()}if(i&2){let e=c();r(15),d("ngIf",e.opCo===e.OperatingCompany.GPC),r(10),d("disabled",e.formSubmitted),r(),w(" ",e.formSubmitted?"Please wait...":"Submit"," "),r(5),d("redirect","/Outages/Overview")}}function ko(i,m){if(i&1){let e=C();o(0,"div",35)(1,"div",36)(2,"div",37),h(3,"i",92),n(),o(4,"div",39)(5,"h2",40),a(6,"Unable to Report Outage"),n()(),h(7,"div",41),n(),o(8,"div",42)(9,"p"),a(10,"We\u2019re sorry but outages cannot be reported at this address."),n(),o(11,"p"),a(12),o(13,"a",185),a(14,"try again"),n(),a(15,". "),n(),o(16,"p"),a(17," If you are unable to report your outage online, please call us at "),o(18,"a",33),a(19),n(),a(20,". "),n(),o(21,"h3"),a(22,"What would you like to do next?"),n(),o(23,"ul",62)(24,"li")(25,"a",63),g("click",function(){p(e);let t=c();return u(t.pushToDataLayer("Clicks to View Full Outage Map","outages"))}),a(26,"View Outage Map"),n()(),o(27,"li")(28,"a",64),a(29,"Return to My Account Home"),n()()()()()}if(i&2){let e=c();r(12),w(" If you would like to report an outage at a different location, please change your ",e.form.lookupType==="SSN"||e.form.lookupType==="Tax ID"?e.form.lookupType:e.form.lookupType.toLowerCase()," or use one of the other lookup options and "),r(6),d("href",I("tel:",e.reportOutagePhone),T),r(),S(e.reportOutagePhone),r(6),d("href",V(e.outageMapURL),T)}}var N=(()=>{let m=class m{constructor(){this.route=O(De),this.adobeAnalyticsService=O(K),this.featureFlagService=O(Pe),this.globalConstants=O(oe),this.location=O(Me),this.locationService=O(at),this.opcoDetailsService=O(Ie),this.outageService=O(xe),this.pathMatchService=O(Le),this.router=O(ie),this.userService=O(j),this.accountApiService=O(le),this.formatService=O(ce),this.AccountType=we,this.OperatingCompany=b,this.ServiceTypeText=P,this.constants=this.globalConstants.getConstants(),this.accountSummary=this.userService.accountSummary,this.accounts=this.userService.cap,this.apcOutageUnavailablePhoneNumber=this.constants.CustomerService.ContactUs.APC.Phone.ResidentialCustomerService.PhoneNumber,this.bannerMessage="",this.bannerMessageHidden=!0,this.confirmationEmail="",this.confirmationNum="",this.doesPathInclude=this.pathMatchService.doesPathInclude,this.electricSA=!0,this.enrolledOutageAlerts=!1,this.form={outageType:"",lookupType:"Address",streetNum:"",streetName:"",zipCode:"",unit2:"",streetNum2:"",state:"",unit:"",city:"",zipCode2:"",meterNum:"",phoneNum:"",accountNumber:"",ssnId:"",taxId:"",email:"",name:"",allPowerOut:"",othersWithPower:"",wiresDown:"",loudNoise:"",Comments:"",Directions:"",phone:"",ph
1oneExt:"",blinkingLight:"",onAllDay:"",tooBrightDim:"",lightOut:"",outageCity:"",outageAddress:""},this.formSubmitted=!1,this.gridData=[],this.isLoading=!1,this.isLoggedIn=this.userService.isLoggedIn,this.isResidentialAcct=!0,this.isRowSelected=!1,this.isRouteActive=this.pathMatchService.isRouteActive,this.isStatusAvailable=!0,this.isTRACustomer=!1,this.lightingSA=!1,this.loggedin={user:{fullDisplayName:null,activeMail:null,activeAccount:null,NewEmail:null,NewEmail2:null,AddNewEmailAndAllEmails:[]}},this.lookupTypes=["Address","Phone Number","Account Number","SSN","Tax ID","Meter Number"],this.mpcStreetlightFeatureFlag=!0,this.namedStorm="",this.noAccount=!this.userService.cap.length,this.noAddressReportable=!1,this.notes="",this.opCo=this.userService.operatingCompany,this.opCoContent=this.constants.CustomerService.ContactUs[this.opCo],this.outageReportPageHeader="Report an Outage",this.outageStatus={ErrorType:"",NamedStorm:"",RestoreTime:"",CaseNotes:"",WsoFlExistOutage:"",AreaMessages:"",IsPowerOn:!1,LastUpdatedTime:""},this.outageStatusAscend={areaMessages:"",opco:b.Unknown,errorType:0,restoreTime:A.Unknown,caseNotes:"",wsoFlExistOutage:"",wsoCdCaseNotes:"",timeZone:"",lastUpdatedTime:"",namedStorm:"",isPowerOn:!1,serviceAgreements:[],outageMessage:"",isStatusAvailable:!1,restoreTimeText:"",showPayNow:!1},this.outagesDisabled=!1,this.powerStatusOn=!1,this.pushToDataLayer=this.adobeAnalyticsService.pushToDataLayer,this.reportOutagePhone=this.constants.CustomerService.ContactUs[this.opCo].Phone.ReportPowerOutage.PhoneNumber,this.reportOutageStreetlightGPCUrl=this.constants.URL.ReportOutageStreetlightGPC,this.selectedAddress="",this.selectedAddressForEmail="",this.selectedAddressOpCo="",this.selectedRowAccountType="",this.selectedRowAddress="",this.showContactFields=!1,this.showGridData=!1,this.submitMade=!1,this.isMultipleServiceAgreementsAvailable=!1,this.filteredServiceAgreements=[],this.selectedServiceAgreement=this.userService.selectedServiceAgreement,this.noServiceAgreements=!1,this.serviceStatus=[Y.Active,Y.PendingStop],this.checkPageSize()}onWindowResize(s){this.checkPageSize()}ngOnInit(){if(this.rootOpco=this.userService.operatingCompany,sessionStorage.getItem("bannerDisplay")&&(sessionStorage.bannerDisplay||(this.bannerMessageHidden=!0)),this.location.path()=="/Outages/Report/Information"&&(this.opCo===b.GPC&&this.router.navigate(["Outages/Overview"]),this.outageReportPageHeader="Report an Outdoor/Security Light Outage",this.form.outageType="Streetlight"),this.router.events.subscribe(s=>{if(s instanceof Ve){let t=s.url,l=s.urlAfterRedirects;this.formSubmitted=!1,this.submitMade=!1,this.isLoggedIn||(this.showContactFields=!0),t=="/Outages/Report"&&l.startsWith("/Outages/Report")&&(this.selectedAddressOpCo=""),t=="/Outages/Report/Confirmation"&&!l&&this.router.navigate(["Outages/Report"]),t=="/Outages/Report/Information"&&(this.outageReportPageHeader="Report an Outdoor/Security Light Outage",this.form.outageType="Streetlight"),this.checkOutagesDisabled()}}),this.outageService.unit2Subject.subscribe(s=>{s!==this.form.unit2&&this.applyFilter("Unit","contains",s)}),this.outageService.street2Subject.subscribe(s=>{s!==this.form.streetNum2&&this.applyFilter("StreetNum","contains",s)}),this.isLoggedIn=this.userService.isLoggedIn,this.form.state=this.getOpCoState(this.opCo),this.outageMapURL=this.constants.Outages[this.opCo].OutageMap,this.checkOutagesDisabled(),this.isLoggedIn&&!this.noAccount){let s=this.accounts.find(t=>t.accountId===this.userService.accountSummary.accountId);s&&(this.loggedin.user.activeAccount=s),this.populateOutageData()}}resetForm(){this.form={outageType:"",lookupType:"Address",streetNum:"",streetName:"",zipCode:"",unit2:"",streetNum2:"",state:"",unit:"",city:"",zipCode2:"",meterNum:"",phoneNum:"",accountNumber:"",ssnId:"",taxId:"",email:"",name:"",allPowerOut:"",othersWithPower:"",wiresDown:"",loudNoise:"",Comments:"",Directions:"",phone:"",ph
1oneExt:"",blinkingLight:"",onAllDay:"",tooBrightDim:"",lightOut:"",outageCity:"",outageAddress:""}}applyFilter(s,t,l){this.gridFilter.field=s,this.gridFilter.operator=t,this.gridFilter.value=l}checkOutagesDisabled(){this.selectedAddressOpCo===b.APC||this.rootOpco===b.APC?this.featureFlagService.isFeatureFlagEnabled("APC_OUTAGE_REPORTING",b.APC).subscribe(s=>{this.outagesDisabled=!s}):this.outagesDisabled=!1}clearSearchResults(){this.showGridData=!1,this.addressNotListed=!0}getConfirmationContactInfo(){let s={email:"",custName:""};return this.showContactFields?s={email:this.form.email,custName:this.form.name}:(s.email=this.accountSummary.email,s.custName=this.accountSummary.customerName),s}getGridDataSource(){let s;switch(this.form.lookupType){case"Meter Number":{s={badgeNumber:this.form.meterNum};break}case"Phone Number":s={phoneNumber:this.form.phoneNum};break;case"Account Number":s={accountId:this.form.accountNumber.replace(/\D/g,"")};break;case"SSN":s={identifierTypeCode:"SSN",identifierValue:this.formatService.formatPiiIdentifier(this.form.ssnId,"SSN")};break;case"Tax ID":{s={identifierTypeCode:"TIN",identifierValue:this.formatService.formatPiiIdentifier(this.form.taxId,"TIN")};break}default:{s={streetNumber:this.form.streetNum2||this.form.streetNum,streetName:this.form.streetName,unitNumber:this.form.unit2||this.form.unit,city:this.form.city,state:this.form.state,postal:this.form.zipCode};break}}this.accountApiService.searchAccountsReportOutage(s).subscribe({next:t=>{this.gridData=t.data?.output,this.showGridData=!0}})}getOpCoState(s){switch(s){case b.APC:return"AL";case b.MPC:return"MS";default:return"GA"}}mapAddress(){this.selectedRowAddress!==""?this.locationService.openDirections(this.selectedRowAddress):alert("Please select a row from the results.")}populateOutageData(){this.selectedPremiseAddress=null,this.powerStatusOn=!1,this.isStatusAvailable=!0,this.notes="",this.accountApiService.getAccountSummary(this.loggedin.user.activeAccount.accountId).subscribe({next:s=>{this.serviceAgreementsOfSelectedAccountId=s.data.serviceAgreements,this.processServiceAgreements(),this.opCo=this.loggedin.user.activeAccount.company,this.opCoContent=this.constants.CustomerService.ContactUs[this.opCo],this.checkOutagesDisabled(),this.opCoDisplayName=this.opcoDetailsService.getOpCoDisplayName(this.opCo),this.isResidentialAcct=this.loggedin.user.activeAccount.accountType===we.Residential,this.URL=this.constants.URL,this.reportOutagePhone=this.constants.CustomerService.ContactUs[this.opCo].Phone.ReportPowerOutage.PhoneNumber,this.outageMapURL=this.constants.Outages[this.opCo].OutageMap,this.route.snapshot.queryParamMap.has("outageType")&&(this.form.outageType=this.route.snapshot.queryParamMap.get("outageType"))}})}onServiceAgreementChange(s){this.resetForm(),this.formSubmitted=!1,this.notes="",this.selectedServiceAgreement=s.serviceAgreement,this.selectedPremiseAddress=this.formatService.getAddressObject(this.selectedServiceAgreement.premiseAddress),this.get
1Status(this.selectedServiceAgreement.serviceAgreementId)}reportElectricOutage(){this.formSubmitted=!0,this.submitMade=!1;let s="";s=this.form.allPowerOut==="1"?"1":"",s=this.form.othersWithPower==="2"?"2":"",s=s.length===0?"1":s,s+=this.form.wiresDown==="1"?"1":"0",s+="7",s+=this.form.loudNoise==="1"?"3":"0";let t="";t=this.form.allPowerOut==="1"?"1":this.form.allPowerOut==="2"?"2":"3",t+=this.form.othersWithPower==="1"?"1":this.form.othersWithPower==="2"?"2":"3",t+=this.form.wiresDown==="1"?"1":this.form.wiresDown==="2"?"2":"3",t+=this.form.loudNoise==="1"?"1":this.form.loudNoise==="2"?"2":"3";let l={servicePointId:this.locationSelected?.servicePointId?this.locationSelected.servicePointId:this.selectedServiceAgreement.servicePoints[0].servicePointId,callingApplication:"OCC",comments:this.form.Comments?this.form.Comments.trim():"",directions:this.form.Directions?this.form.Directions.trim():"",outageInfo:s,address:this.locationSelected?.servicePointId?this.selectedRowAddress:this.selectedServiceAgreement.premiseAddress,email:this.form.email?this.form.email:this.accountSummary.email,contactName:this.showContactFields?this.form.name:"",additionalQuestionResponses:t,phoneNumber:this.form.phone};this.outageService.reportOutage(l,P.Electric).subscribe({next:W=>{this.confirmationNum=W.data,this.confirmationNum?(this.reportOutageFailure=!1,this.router.navigate(["Outages/Report/Confirmation"])):this.reportOutageFailure=!0},error:()=>{this.reportOutageFailure=!0,this.formSubmitted=!1,this.submitMade=!1}}),this.form.Directions&&this.pushToDataLayer("Directions To Outage Added","reportoutage"),this.form.Comments&&this.pushToDataLayer("Comments To Outage Added","reportoutage"),this.pushToDataLayer("Report Outage Submit","reportoutage")}reportLightingOutage(){this.formSubmitted=!0,this.submitMade=!1;let s="";s=this.form.blinkingLight==="1"?"1":this.form.blinkingLight==="2"?"2":"3",s+=this.form.onAllDay==="1"?"1":this.form.onAllDay==="2"?"2":"3",s+=this.form.tooBrightDim==="1"?"1":this.form.tooBrightDim==="2"?"2":"3",s+=this.form.lightOut==="1"?"1":this.form.lightOut==="2"?"2":"3";let t={servicePointId:this.locationSelected?.servicePointId?this.locationSelected.servicePointId:this.selectedServiceAgreement.servicePoints[0].servicePointId,callingApplication:"OCC",comments:this.form.Comments?this.form.Comments.trim():"",directions:this.form.Directions?this.form.Directions.trim():"",address:this.locationSelected?.servicePointId?this.selectedRowAddress:this.selectedServiceAgreement.premiseAddress,email:this.form.email?this.form.email:this.accountSummary.email,contactName:this.showContactFields?this.form.name:"",additionalQuestionResponses:s,phoneNumber:this.form.phone};this.outageService.reportOutage(t,P.Lighting).subscribe({next:l=>{this.confirmationNum=l.data,this.confirmationNum?(this.reportOutageFailure=!1,this.router.navigate(["Outages/Report/Confirmation"])):this.reportOutageFailure=!0},error:()=>{this.reportOutageFailure=!0,this.formSubmitted=!1,this.submitMade=!1}}),this.form.Directions&&this.pushToDataLayer("Directions To Outage Added","reportoutage"),this.form.Comments&&this.pushToDataLayer("Comments To Outage Added","reportoutage"),this.pushToDataLayer("Report Outage Submit","reportoutage")}reportOutage(){this.form.outageType?this.form.outageType==="Electric"?this.submitElectricOutage():this.form.outageType==="Lighting"&&this.reportLightingOutage():this.electricSA?this.submitElectricOutage():this.lightingSA&&this.reportLightingOutage()}reportStreetLightOutage(){this.formSubmitted=!0,this.submitMade=!1,this.showContactFields=!0,this.featureFlagService.isFeatureFlagEnabled("MPC_CONFIRM_STREETLIGHT_OUTAGE_VIA_OCC",this.opCo).subscribe(l=>{this.mpcStreetlightFeatureFlag=l});let s={contactName:this.form.name,contactPhoneNumber:this.form.phone,contactPhoneExt:this.form.phoneExt,email:this.form.email,outageCity:this.form.outageCity,outageAddress:this.form.outageAddress,q1Answers:this.form.blinkingLight==="1"?"Yes":this.form.blinkingLight==="2"?"No":"Don't Know",q2Answers:this.form.onAllDay==="1"?"Yes":this.form.onAllDay==="2"?"No":"Don't Know",q3Answers:this.form.tooBrightDim==="1"?"Yes":this.form.tooBrightDim==="2"?"No":"Don't Know",q4Answers:this.form.lightOut==="1"?"Yes":this.form.lightOut==="2"?"No":"Don't Know",directions:this.form.Directions,comments:this.form.Comments||"N/A",opco:this.opCo},t=this.getConfirmationContactInfo();this.confirmationEmail=t.email,this.confirmationEmail?(s.email=this.confirmationEmail,s.contactName=t.custName,this.outageService.reportStreetLightOutage(s).subscribe({next:l=>{this.pushToDataLayer("Submit ODL Outage","report_odl_outage"),this.reportOutageFailure=!1,this.router.navigate(["Outages/Report/Confirmation"]),this.showContactFields=!1},error:()=>{this.reportOutageFailure=!0,this.formSubmitted=!1,this.submitMade=!1}})):alert("Email is required."),this.form.Directions&&this.pushToDataLayer("Directions To Outage Added","reportoutage"),this.form.Comments&&this.pushToDataLayer("Comments To Outage Added","reportoutage")}
1resetLookupFields(){this.showGridData=!1,this.form.phoneNum="",this.form.accountNumber="",this.form.ssnId="",this.form.taxId="",this.form.meterNum="",this.form.streetNum="",this.form.streetName="",this.form.unit="",this.form.city="",this.form.state=this.getOpCoState(this.opCo),this.form.zipCode=""}search(){this.form.lookupType==="Address"?(this.outageService.changeStreet2(this.form.streetNum),this.form.streetNum2=this.form.streetNum,this.outageService.changeUnit2(this.form.unit),this.form.unit2=this.form.unit):(this.outageService.changeStreet2(""),this.form.streetNum2="",this.outageService.changeUnit2(""),this.form.unit2=""),this.selectedRowAddress="",this.isRowSelected=!1,this.getGridDataSource()}selectRow(s){if(s.selectedRows.length>0){let t=s.selectedRows[0].dataItem;this.locationSelected=t;let l={addressLine1:t.premiseAddress1,addressLine2:t.premiseAddress2,city:t.premiseCity,state:t.premiseState,zipCode:t.premisePostal};this.selectedRowAddress=this.formatService.getAddressString(l),this.isRowSelected=!0}else this.isRowSelected=!1;return!0}setOutageBannerDisplay(){this.bannerMessageHidden=!0,sessionStorage.bannerDisplay=!1}submitElectricOutage(){this.form.allPowerOut==="2"?this.router.navigate(["Outages/Report/Partial"]):this.reportElectricOutage()}submitPartialForm(){this.reportElectricOutage()}submitOutage(){this.showContactFields=!0;let s=this.locationSelected.divisionCode;!this.userService.isLoggedIn&&this.rootOpco!==s&&this.userService.setOperatingCompany(s),this.locationSelected.serviceTypeCode===F.Electric&&[L.Electric,L.Lighting].includes(this.locationSelected.serviceSubTypeCode)?this.outageService.getOutageStatusAscend(this.locationSelected.accountId,this.locationSelected.serviceAgreementId).subscribe({next:t=>{this.outageStatusAscend=t.data;let l=(this.outageStatusAscend.caseNotes||"").trim();this.selectedAddress=this.form.lookupType!=="Address"?this.locationSelected.premiseAddress1.split(" ")[0]:this.locationSelected.premiseAddress1+"<br>"+this.locationSelected.premiseCity+", "+this.locationSelected.premiseState+" "+this.locationSelected.premisePostal,this.selectedAddressForEmail=this.selectedAddress,this.selectedAddressOpCo=s,this.isResidentialAcct=this.locationSelected.collectionClassCode==="RES",this.locationSelected.serviceSubTypeCode===L.Electric?(this.form.outageType=P.Electric,this.electricSA=!0,this.lightingSA=!1,this.outageStatusAscend.errorType===this.constants.enumOutageErrorType.NotSet?this.locationSelected.divisionCode===b.APC&&this.outageStatusAscend.wsoFlExistOutage==="B"?(this.notes=this.outageStatusAscend.areaMessages,this.router.navigate(["Outages/Report/Aware"])):this.outageStatusAscend.caseNotes.trim()&&!(this.outageStatusAscend.wsoFlExistOutage==="N"&&this.locationSelected.divisionCode===b.APC)?(this.outageStatusAscend.restoreTime=this.outageStatusAscend.restoreTime||A.Assessing,l&&!(this.outageStatusAscend.wsoFlExistOutage==="N"&&this.opCo===b.APC)&&(this.notes=l,this.getBannerStatement(!0),this.pushToDataLayer("Casenote Alert Banner Displayed","reportoutage")),this.locationSelected.divisionCode===b.APC&&(this.outageStatusAscend.restoreTime=this.outageStatusAscend.wsoFlExistOutage==="B"||this.outageStatusAscend.wsoFlExistOutage==="A"?this.outageStatusAscend.restoreTime:this.outageStatusAscend.wsoFlExistOutage),this.router.navigate(["Outages/Report/Aware"])):this.router.navigate(["Outages/Report/AdditionalDetails"]):(this.pushToDataLayer("Unable to Report Message","reportoutage"),this.router.navigate(["Outages/Report/Unable"]))):this.locationSelected.serviceSubTypeCode===L.Lighting&&(this.form.outageType=P.Lighting,this.electricSA=!1,this.lightingSA=!0,this.outageStatusAscend.errorType===this.constants.enumOutageErrorType.LightingAccount?this.router.navigate(["Outages/Report/AdditionalDetails"]):(this.notes=this.outageService.getReportStatusMessage(this.outageStatusAscend.errorType,this.opCo),this.router.navigate(["Outages/Report/Unable"])))}}):this.router.navigate(["Outages/Report/Unable"])}checkPageSize(){let s=window.innerWidth;this.isMobileView=s<=767}getOutageStatusAscend(s){if(this.outageStatusAscend=s,this.electricSA)if(this.outageStatusAscend.errorType===this.constants.enumOutageErrorType.NotSet){let t=(this.outageStatusAscend.caseNotes||"").trim();this.isStatusAvailable=!0,this.namedStorm=this.outageStatusAscend.namedStorm,this.powerStatusOn=!(t&&!(this.outageStatusAscend.wsoFlExistOutage==="N"&&this.opCo===b.APC)),this.outageStatusAscend.restoreTime=this.outageStatusAscend.restoreTime||A.Assessing;let l={WideSpread:"We are experiencing widespread outages in your area."};t&&!(this.outageStatusAscend.wsoFlExistOutage==="N"&&this.opCo===b.APC)&&(this.notes=t,this.getBannerStatement
1(),this.pushToDataLayer("Casenote Alert Banner Displayed","reportoutage"),this.pushToDataLayer("Status Update Casenote Displayed","reportoutage")),this.opCo===b.APC&&(this.outageStatusAscend.restoreTime=this.outageStatusAscend.wsoFlExistOutage==="B"||this.outageStatusAscend.wsoFlExistOutage==="A"?this.outageStatusAscend.restoreTime:this.outageStatusAscend.wsoFlExistOutage),this.outageStatusAscend.areaMessages&&(!this.notes&&this.opCo!==b.APC||this.opCo===b.APC)&&(this.bannerMessage=l.WideSpread,this.pushToDataLayer("Area Message Displayed","reportoutage"),sessionStorage.bannerDisplay===void 0&&(this.bannerMessageHidden=!1,sessionStorage.bannerDisplay=!0),this.opCo===b.APC&&(this.powerStatusOn=this.outageStatusAscend.isPowerOn)),this.opCo===b.GPC&&this.namedStorm&&(this.bannerMessage=this.namedStorm+' is causing widespread outages in your area. Please visit our <a class="alert-link" href="https://www.georgiapower.com/company/safety/outages-and-stormcenter.html" target="_blank">Storm Center</a> for more information.'),this.userService.accountSummary.accountStatus!==re.Inactive&&this.outageStatusAscend.errorType!==this.constants.enumOutageErrorType.CutOutForNonPay&&this.getOutageAlerts()}else this.powerStatusOn=!1,this.bannerMessage="",this.bannerMessageHidden=!0,this.isStatusAvailable=!1,sessionStorage.bannerDisplay=!1,this.notes=this.outageService.getReportStatusMessage(s.errorType,this.opCo);else this.lightingSA&&(this.isStatusAvailable=!1,this.powerStatusOn=!1,this.outageStatusAscend.errorType!==this.constants.enumOutageErrorType.NotSet&&(this.notes=this.outageService.getReportStatusMessage(s.errorType,this.opCo)))}getBannerStatement(s){let t=this.opCo===b.APC?"repair":"restoration",l={Assessing:`Our systems indicate your power is OFF. We are currently assessing your estimated ${t} time.`,Reevaluating:`Our systems indicate your power is OFF. We are currently reevaluating your estimated ${t} time.`,UnderReview:`Our system indicates your power is off. Currently the estimated ${t} time is under review.`,Processing:"Your reported outage is being processed. We will provide updates as more information becomes available.",Default:`Our systems indicate your power is OFF. Estimated ${t} time is: ${this.outageStatusAscend.restoreTime}.`};switch(this.outageStatusAscend.restoreTime){case A.Assessing:this.bannerMessage=l.Assessing,this.getBannerDisplayStatus(s);break;case A.Reevaluating:this.bannerMessage=l.Reevaluating,this.getBannerDisplayStatus(s);break;case A.UnderReview:this.bannerMessage=l.UnderReview,this.getBannerDisplayStatus(s);break;case A.Processing:this.bannerMessage=l.Processing,this.getBannerDisplayStatus(s);break;case A.TRA:this.bannerMessage=this.notes,this.isTRACustomer=!0,this.getBannerDisplayStatus(s),s?this.router.navigate(["Outages/Report/AdditionalDetails"]):this.powerStatus=!0;break;default:this.bannerMessage=l.Default,this.pushToDataLayer("Estimated Restore Time Message Displayed","reportoutages"),sessionStorage.bannerDisplay===void 0&&(this.bannerMessageHidden=!1,sessionStorage.bannerDisplay=!0,this.opCo===b.APC&&(this.outageStatusAscend.areaMessages=""));break}}getBannerDisplayStatus(s){s?this.bannerMessageHidden=!1:sessionStorage.bannerDisplay===void 0?(this.bannerMessageHidden=!1,sessionStorage.bannerDisplay=!0):sessionStorage.bannerDisplay?this.bannerMessageHidden=!1:this.bannerMessageHidden=!0}setServiceAgreementType(s){let t=this.serviceAgreementsOfSelectedAccountId.find(l=>l.serviceAgreementId===s);t&&(t.serviceTypeCode===F.Electric&&t.serviceSubTypeCode===L.Lighting?(this.lightingSA=!0,this.electricSA=!1,this.form.outageType=P.Lighting):t.serviceTypeCode===F.Electric&&t.serviceSubTypeCode===L.Electric?(this.lightingSA=!1,this.electricSA=!0,this.form.outageType=P.Electric):(this.lightingSA=!1,this.electricSA=!1))}processServiceAgreements(){switch(this.filteredServiceAgreements=this.userService.filterServiceAgreements({serviceType:[F.Electric],serviceSubType:[L.Electric,L.Lighting],serviceStatus:this.serviceStatus},!0,this.serviceAgreementsOfSelectedAccountId),this.filteredServiceAgreements.length){case 0:this.noServiceAgreements=!0,this.selectedPremiseAddress=null,this.notes=this.outageService.getReportStatusMessage(0,this.opCo);break;case 1:this.handleSingleAgreement(this.filteredServiceAgreements[0]);break;default:this.handleMultipleAgreements();break}}handleSingleAgreement(s){this.isMultipleServiceAgreementsAvailable=!1,this.noServiceAgreements=!1,this.notes="",this.selectedServiceAgreement=s,this.selectedPremiseAddress=this.formatService.getAddressObject(s.premiseAddress),this.get
1Status(s.serviceAgreementId),this.location.path()==="/Outages/Report/Information"&&(this.form.outageType=P.Streetlight)}handleMultipleAgreements(){this.isMultipleServiceAgreementsAvailable=!0,this.noServiceAgreements=!1,this.notes="",this.selectedServiceAgreement=null,this.selectedPremiseAddress=null,this.electricSA=!1,this.lightingSA=!1}getStatus(s){this.isLoading=!0,this.outageService.getOutageStatusAscend(this.loggedin.user.activeAccount.accountId,s).subscribe({next:t=>{switch(this.setServiceAgreementType(s),t.data.errorType){case 54:this.getOutageStatusAscend(t.data);break;case 2:case 5:case 8:case 51:this.notes=this.outageService.getReportStatusMessage(t.data.errorType,this.opCo),this.isStatusAvailable=!1,this.powerStatusOn=!1;break;case 1:case 7:case 10:case 33:this.getOutageStatusAscend(t.data);break;default:this.notes=this.outageService.getReportStatusMessage(t.data.errorType,this.opCo),this.powerStatusOn=!1;break}this.isLoading=!1},error:()=>{this.isLoading=!1}})}getOutageAlerts(){this.isLoggedIn&&this.userService.accountSummary.accountId&&this.accountApiService.getReminders(this.userService.accountSummary.accountId,this.accountSummary.mainPersonId,ae.Outage).subscribe({next:s=>{let t=s.data?.notificationTypes[0]?.notificationPreferences.filter(l=>l.keepPreference);t&&(this.enrolledOutageAlerts=t.length>0)}})}};m.\u0275fac=function(t){return new(t||m)},m.\u0275cmp=B({type:m,selectors:[["occ-report-outage"]],hostBindings:function(t,l){t&1&&g("resize",function(R){return l.onWindowResize(R)},Ae)},decls:29,vars:11,consts:[["ReportIndex",""],["ReportInformation",""],["ReportConfirmation",""],["ReportLocation",""],["ReportAware",""],["ReportAdditionalDetails",""],["ReportPartial",""],["ReportUnable",""],["reportOutageForm","ngForm"],["fullName","ngModel"],["emailAddress","ngModel"],["phoneNumber","ngModel"],["elseBlock",""],["outageLocationForm","ngForm"],["accountNumber","ngModel"],["ssnId","ngModel"],["taxId","ngModel"],["meterNum","ngModel"],["streetNum","ngModel"],["streetName","ngModel"],["zipCode","ngModel"],["locationResultsForm","ngForm"],["id","ReportOutage",1,"container-md"],["class","alert-wrapper",4,"ngIf"],["class","outages-message mb-5",4,"ngIf"],[1,"page-header"],[4,"ngIf"],[1,"alert-wrapper"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-exclamation-triangle","fa-lg","icon-spacing-right"],[3,"innerHtml"],[1,"outages-message","mb-5"],[1,"fa","fa-phone","icon-spacing-right"],[1,"phone-click",3,"href"],[4,"ngTemplateOutlet"],[1,"panel","panel-card"],[1,"panel-heading"],[1,"icon-block"],[1,"fa","fa-exclamation-circle"],[1,"headline-block"],[1,"panel-title"],[1,"clearfix"],[1,"panel-body"],[1,"form-group","mb-4"],[1,"row"],[1,"col-md-4"],["name","ActiveAccount","required","",1,"form-control","mb-3",3,"ngModelChange","disabled","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],["class","mb-3",4,"ngIf"],["class","list-unstyled mb-2",4,"ngIf"],[1,"col-md-2","col-lg-1"],[1,"form-control-plaintext","text-center"],[1,"col-md-6","col-lg-7"],[1,"form-control-plaintext","text-center","text-md-start"],["routerLink","/Outages/Report/Location",3,"click"],["role","alert",1,"alert","alert-warning"],[3,"ngValue"],[1,"mb-3"],["defaultValue","Select a Service Location",3,"selectOption","options","selectedItem","showCount","filterStatusTypes"],[1,"list-unstyled","mb-2"],[1,"mb-5"],["routerLink","/Outages/Overview",4,"ngIf"],[1,"list-unstyled","list-links"],["target","_blank",3,"click","href"],["routerLink","/Billing/Home"],["routerLink","/Outages/Overview"],["routerLink","/Outages/Report/AdditionalDetails",3,"click"],["class","mb-5",4,"ngIf"],[1,"panel-divider"],["name","reportOutageForm","novalidate","",3,"ngSubmit"],[3,"formChange","outageTypeChange","isResidentialAcctChange","form","outageType","isResidentialAcct","submitMade"],[1,"form-actions"],["type","submit",1,"btn","btn-primary","btn-lg",3,"click","disabled"],["name","cancel-btn",1,"btn","btn-link","btn-lg"],[3,"redirect"],[1,"text-success"],[3,"formChange","form","outageType","isResidentialAcct","submitMade"],["class","alert alert-server-error",4,"ngIf"],[1,"mt-5"],[1,"text-muted"],[1,"col-md-6","col-lg-5","col-xl-4"],[1,"form-group"],["type","text","name","fullName","placeholder","","tooltip","Please enter a name.","triggers","manual","placement","bottom","container","body","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],["type","text","name","emailAddress","placeholder","[email protected]","tooltip","Please enter a valid email address.","triggers","manual","placement","bottom","container","body","occEmailAddressValidator","","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],[1,"col-8"],["type","text","name","phoneNumber","placeholder","","tooltip","Please enter a valid phone number.","triggers","manual","placement","bottom","container","body","occPhoneNumberValidator","","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],[1,"col-4"],["type","text","name","PhoneExt","maxlength","4",1,"form-control",3,"ngModelChange","ngModel"],["name","cancel-btn","class","btn btn-link btn-lg",4,"ngIf"],[1,"alert","alert-server-error"],[1,"message-icon"],["type","button","onclick","window.print()",1,"btn","btn-link","btn-print"],[1,"fa","fa-star"],[1,"subheading"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngSwitch",4,"ngIf"],[1,"subheading","mt-5"],[1,"mb-5",3,"ngSwitch"],["class","dl-inline",4,"ngSwitchCase"],["class","dl-horizontal row-spacing",4,"ngSwitchCase"],["class","dl-horizontal row-spacing",4,"ngSwitchDefault"],["routerLink","/Outages/Report",3,"click"],["routerLink","/Billing/Home",4,"ngIf"],[4,"ngIf","ngIfElse"],["routerLink","/MyProfile/Alerts",3,"click"],["routerLink","/MyProfile/Alerts"],[3,"routerLink"],["routerLink","/Register"],[1,"dl-inline"],[1,"dl-horizontal","row-spacing"],[1,"fa","fa-search"],["class","alert alert-warning",4,"ngIf"],["name","outageLocationForm","novalidate","",3,"ngSubmit"],[1,"col-md-5","col-lg-4","col-xl-3"],["name","lookupType",1,"form-control",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[1,"col-md-5","col-lg-7"],[1,"form-control-plaintext","text-center","text-md-start",3,"ngSwitch"],["target","_blank",3,"href","click",4,"ngSwitchCase"],["routerLink","/Outages/Report/Information",3,"click",4,"ngSwitchDefault"],[1,"col-md-4","col-lg-3"],["type","submit",1,"btn","btn-primary","btn-lg"],["id","LocationResults","class","panel panel-card",4,"ngIf"],[1,"alert","alert-warning"],[3,"click","routerLink"],[1,"hidden-xs"],[1,"visible-xs-inline"],["routerLink","/Outages/Report/Information",3,"click"],["type","text","name","phoneNumber","placeholder","","tooltip","Please enter a valid phone number.","triggers","manual","placement","bottom","container","body","occPhoneNumberValidatorAscend","","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],["type","text","name","accountNumber","placeholder","","tooltip","Please enter a valid account number.","triggers","manual","placement","bottom","container","body","occAccountNumberValidator","","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],["type","text","name","ssnId","placeholder","SSN","tooltip","Please enter a valid social security number.","triggers","manual","placement","bottom","container","body","occMaskSsnTaxIdField","","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel","identifierType"],["type","text","name","taxId","placeholder","Tax ID","tooltip","Please enter a valid tax ID.","triggers","manual","placement","bottom","container","body","occMaskSsnTaxIdField","","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel","identifierType"],["type","text","name","meterNum","placeholder","","tooltip","Please enter a meter number.","triggers","manual","placement","bottom","container","body","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],[1,"col-md-2"],["type","text","maxlength","50","name","streetNum","pattern","[0-9]+","placeholder","","tooltip","Numeric only","triggers","manual","placement","bottom","container","body","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],["type","text","maxlength","50","name","streetName","placeholder","","tooltip","Required","triggers","manual","placement","bottom","container","body","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],[1,"col-md-3","col-lg-2"],["type","text","name","Unit","maxlength","50",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-md-5","col-lg-4"],["type","text","name","City","maxlength","25",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-md-2","col-xl-1"],["name","State",1,"form-control",3,"ngModelChange","ngModel"],["value","AL"],["value","GA"],["value","MS"],["type","text","maxlength","5","name","zipCode","pattern","[0-9]{5}","placeholder","","tooltip","Numeric only","triggers","manual","placement","bottom","container","body","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],["id","LocationResults",1,"panel","panel-card"],["name","locationResultsForm","novalidate","",3,"ngSubmit"],["class","mb-5",4,"ngSwitchDefault"],["scrollable","false","pageSizes","true",3,"selectionChange","filterChange","kendoGridBinding","selectable","pageable","pageSize","filter"],["width","50px"],["field","Address","title","Address",4,"ngIf"],["class","hidden-xs","field","premiseAddress2","title","Unit #",4,"ngIf"],["class","hidden-xs","field","premiseCity","title","City",4,"ngIf"],["class","hidden-xs","field","premisePostal","title","Zip Code",4,"ngIf"],["field","premiseAddress1","title","Street #",4,"ngIf"],["field","serviceSubTypeDescription","title","Account Type",4,"ngIf"],[1,"col-md-6"],[3,"click"],["class","form-actions",4,"ngIf"],["type","text","name","StreetNum2","maxlength","50","pattern","/^[0-9]+$/",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","Unit2","maxlength","50",1,"form-control",3,"ngModelChange","ngModel"],["type","checkbox","value","dataItem.accountId",3,"ngModelChange","ngModel"],["field","Address","title","Address"],["kendoGridCellTemplate",""],[1,"radio"],["class","hidden-xs",4,"ngIf"],["class","visible-xs",4,"ngIf"],[1,"visible-xs"],["field","premiseAddress2","title","Unit #",1,"hidden-xs"],["field","premiseCity","title","City",1,"hidden-xs"],["field","premisePostal","title","Zip Code",1,"hidden-xs"],["field","premiseAddress1","title","Street #"],["field","serviceSubTypeDescription","title","Account Type"],["name","cancel-btn",1,"btn","btn-link","btn-lg",3,"click"],[1,"subheading","mb-5"],["class","panel panel-card",4,"ngIf"],["type","text","name","phoneNumber","placeholder","[email protected]","tooltip","Please enter a valid phone number.","triggers","manual","placement","bottom","container","body","occPhoneNumberValidator","","formFieldValidator","","required","",1,"form-control",3,"ngModelChange","blur","ngModel"],["novalidate","",3,"ngSubmit"],["href","http://bcove.me/gnu2i97y","target","_blank",3,"click",4,"ngIf"],["type","submit",1,"btn","btn-primary","btn-lg",3,"disabled"],["routerLink","/Outages/Report",1,"btn","btn-link","btn-lg",3,"click"],["href","http://bcove.me/gnu2i97y","target","_blank",3,"click"],["routerLink","/Outages/Report/Location"]],template:function(t,l){t&1&&(o(0,"main",22),_(1,Ci,4,1,"div",23)(2,Si,7,3,"div",24),o(3,"h1",25),a(4),n(),_(5,wi,2,1,"div",26)(6,bi,2,1,"div",26)(7,Ai,2,1,"div",26)(8,Ri,2,1,"div",26)(9,ki,2,1,"div",26)(10,Di,2,1,"div",26)(11,Li,2,1,"div",26)(12,Ni,2,1,"div",26),n(),_(13,dn,29,9,"ng-template",null,0,D)(15,un,48,13,"ng-template",null,1,D)(17,Wn,54,20,"ng-template",null,2,D)(19,vo,41,13,"ng-template",null,3,D)(21,yo,34,8,"ng-template",null,4,D)(23,Eo,2,2,"ng-template",null,5,D)(25,Mo,32,4,"ng-template",null,6,D)(27,ko,30,6,"ng-template",null,7,D)),t&2&&(r(),d("ngIf",l.bannerMessage&&l.doesPathInclude("/Outages/Report")),r(),d("ngIf",!(l.isRouteActive("/Outages/Report/Confirmation")||l.isRouteActive("/Outages/Report/Partial")||l.isRouteActive("/Outages/Report/Aware")||l.isRouteActive("/Outages/Report/Unable")||l.isRouteActive("/Outages/Report/AdditionalDetails")||l.isRouteActive("/Outages/Report/Information"))),r(2),S(l.outageReportPageHeader),r(),d("ngIf",l.isRouteActive("/Outages/Report")),r(),d("ngIf",l.isRouteActive("/Outages/Report/Information")),r(),d("ngIf",l.isRouteActive("/Outages/Report/Confirmation")),r(),d("ngIf",l.doesPathInclude("/Outages/Report/Location")),r(),d("ngIf",l.isRouteActive("/Outages/Report/Aware")),r(),d("ngIf",l.isRouteActive("/Outages/Report/AdditionalDetails")),r(),d("ngIf",l.isRouteActive("/Outages/Report/Partial")),r(),d("ngIf",l.isRouteActive("/Outages/Report/Unable")))},dependencies:[G,ee,U,te,q,H,z,_e,Be,He,ze,de,Ne,qe,me,Fe,ue,ge,Ge,Q,pe,Ce,ne,mt,Xe,he,fe,ve,it,ot,rt,tt,nt,Qe,Ze,Ke,je,Ye],encapsulation:2});let i=m;return i})();var ia=[{path:"Overview",component:ct,data:{requireLogin:!1,showNoAccountModal:!1,title:"Overview",showChat:!0},canActivate:[Oe]},{path:"Report",component:N,data:{requireLogin:!1,title:"Report",outageType:null,showChat:!0},canActivate:[st]},{path:"Report/Index",redirectTo:"Report",pathMatch:"full"},{path:"Report/AdditionalDetails",component:N,data:{requireLogin:!1,showNoAccountModal:!1,title:"AdditionalDetails",showChat:!0}},{path:"Report/Partial",component:N,data:{requireLogin:!1,showNoAccountModal:!1,title:"Partial",showChat:!0}},{path:"Report/Confirmation",component:N,data:{requireLogin:!1,showNoAccountModal:!1,title:"Confirmation",showChat:!0}},{path:"Report/Location",component:N,data:{requireLogin:!1,showNoAccountModal:!1,title:"Location",showChat:!0},canActivate:[Oe]},{path:"Report/Information",component:N,data:{requireLogin:!1,showNoAccountModal:!1,title:"Information",showChat:!0}},{path:"Report/Aware",component:N,data:{requireLogin:!1,showNoAccountModal:!1,title:"Aware",showChat:!0}},{path:"Report/Unable",component:N,data:{requireLogin:!1,showNoAccountModal:!1,title:"Unable",showChat:!0}}];export{ia as OUTAGES_ROUTES};
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.