1"use strict";(self["webpackChunkdigihome_ui"]=self["webpackChunkdigihome_ui"]||[]).push([[8593],{94904(t,e,i){i.r(e),i.d(e,{default:()=>E});var a=i(20641),n=i(90033),o={key:1,class:"loader-block"},r={key:2,class:"parent"},s={class:"textBox"},c={class:"p-float-label"},u={key:0,class:"inline-error redColor"},d={class:"needHelpFirst"},l={class:"buttonSection"},h=["disabled"];function m(t,e,i,m,f,p){var v=(0,a.g2)("EnrolmentFlowErrorMessage"),_=(0,a.g2)("ProgressSpinner"),y=(0,a.g2)("InputText"),L=(0,a.g2)("Button");return(0,a.uX)(),(0,a.CE)(a.FK,null,[f.errorMessage?((0,a.uX)(),(0,a.Wv)(v,{key:0,messages:f.messageList,"is-brightspeed-error":!1},null,8,["messages"])):(0,a.Q3)("",!0),f.spinner?((0,a.uX)(),(0,a.CE)("div",o,[(0,a.bF)(_),e[5]||(e[5]=(0,a.Lk)("div",{class:"loading-text"}," Please wait while we retrieve your account information. ",-1))])):((0,a.uX)(),(0,a.CE)("div",r,[e[7]||(e[7]=(0,a.Lk)("div",{class:"childOne"},[(0,a.Lk)("p",{class:"childFirst blackRussian"}," Add an account "),(0,a.Lk)("p",{class:"childSecond blackRussian"}," Security Verification "),(0,a.Lk)("p",{class:"childThird black"}," The privacy of your account information is important to us. Provide the information below so that we may verify you are the account holder. ")],-1)),(0,a.Lk)("div",s,[(0,a.Lk)("div",{class:(0,n.C4)(t.authErr?"text-field-error":"textFieldLable")},[(0,a.Lk)("span",c,[(0,a.bF)(y,{id:"text",modelValue:f.form.authenticationBox,"onUpdate:modelValue":e[0]||(e[0]=function(t){return f.form.authenticationBox=t}),maxlength:"20",type:"text",class:"bill-amount",autocomplete:"off",onInput:e[1]||(e[1]=function(e){return t.checkauthentication()})},null,8,["modelValue"]),e[6]||(e[6]=(0,a.Lk)("label",{for:"text",class:"placeholdersize"},"Authentication Security Code",-1))]),t.authErr?((0,a.uX)(),(0,a.CE)("p",u,(0,n.v_)(t.authErr),1)):(0,a.Q3)("",!0)],2)]),(0,a.Lk)("div",d,[(0,a.Lk)("a",{class:"needHelp cobolt",onClick:e[2]||(e[2]=function(t){return p.needHelp()})},"Click here to retrieve your code")]),(0,a.Lk)("div",l,[(0,a.Lk)("button",{type:"submit",class:"btn-save",disabled:f.v$.form.$invalid,onClick:e[3]||(e[3]=function(t){return p.submitNext()})}," Submit ",8,h),(0,a.bF)(L,{id:"btnTwo",class:"button btn-create",label:"Cancel",onClick:e[4]||(e[4]=function(t){return p.cancelButton()})})])]))],64)}var f=i(24765),p=(i(44114),i(27495),i(25440),i(10365)),v=i(94),_=i(85776),y=i(97819),L=i(98404),w=i(48360),A=i(4842);const b={name:"AddAccountAuthenticationFlow",components:{InputText:A.A,EnrolmentFlowErrorMessage:v.A,ProgressSpinner:p.A},data:function(){return{spinner:!1,errorData:_.A,errorMessage:!1,messageList:[],errorList:[],v$:(0,w.Ay)(),form:{authenticationBox:""}}},computed:{fetchAccountNumberAdd:function(){var t;return(null===(t=this.$store.getters)||void 0===t?void 0:t.accountNumberAdd).replace(/[^a-z0-9]/gi,"")},profiledata:function(){var t;return null===(t=this.$store.getters)||void 0===t?void 0:t.profiledata},loginId:function(){var t;return null===(t=this.$store.getters)||void 0===t?void 0:t.loginID}},mounted:function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"my_ctl_add_account | security_verification",page:{pageName:"add_account | security_verification"}})},validations:{form:{authenticationBox:{required:L.mw}}},beforeUnmount:function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({errorName:""})},methods:{submitNext:function(){var t=this;this.authErr="";try{var e={authorizationCode:this.form.authenticationBox,accountNumber:this.fetchAccountNumberAdd,loginName:this.loginId};this.spinner=!0,y.A.post("https://dh.centurylink.com/Orch/dssh/Orch/account/addAccountToProfileCPNI",e).then(function(e){t.processSubmitNextRes(e)})}catch(i){this.spinner=!1,window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"my_ctl_add_account | security_verification_Failure",flow:{name:"my ctl: add_account | security_verification"},buttonName:"Submit_Authentication"})}},processSubmitNextRes:function(t){var e;"0"===t.data.statusInfo.status?(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"my_ctl_add_account | security_verification_Sucess",flow:{name:"my ctl: add_account | security_verification"},buttonName:"Submit_Authentication"}),this.$store.commit("setGetProfileFromRequestCalled",!1),this.$store.dispatch("getProfileId"),this.$router.push("/AddAnAccountStep3")):(this.messageList=[],this.errorList=null===(e=t.data)||void 0===e?void 0:e.statusInfo.message.split(","),this.processSubmitNextError(),this.messageList&&(this.errorMessage=!0));this.spinner=!1},processSubmitNextError:function(){var t,e=(0,f.A)(this.errorList);try{for(e.s();!(t=e.n()).done;){var i=t.value;if(!(this.errorList.length>1)||"ACCOUNT_NOT_REGISTERABLE"!==i&&"NO_REGISTRATION_ENTITY"!==i&&"ACCOUNT_EMPTY_BILLING_SYSTEM"!==i&&"DVAR_ERROR"!==i&&"ERROR_ADD_ACCOUNT_TO_PROFILE"!==i){if("INVALID_AUTHORIZATION_CODE"===i&&(this.authErr="Please enter a valid authentication security code.",this.messageList.push("INVALID_AUTHORIZATION_CODE")),"ACCOUNT_ALREADY_REGISTERED"===i){this.messageList.push("ACCOUNT_ALREADY_REGISTERED_AUTHFLOW");break}var a,n=(0,f.A)(this.errorData);try{for(n.s();!(a=n.n()).done;){var o=a.value;if(o.id===i){this.messageList.push(o.id);break}}}catch(r){n.e(r)}finally{n.f()}}}}catch(r){e.e(r)}finally{e.f()}},cancelButton:function(){this.form.authenticationBox=""},needHelp:function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"my_ctl_add_account | security_verification",flow:{name:"my ctl: add_account | security_verification"},buttonName:"Need_Help_Authentication_Code"});var t="https://dh.centurylink.com/login/retrieveAuthCode";window.open(t,"_blank")}}};var g=i(64621);const k=(0,g.A)(b,[["render",m],["__scopeId","data-v-4f2d8770"]]),E=k}}]);
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.