PageSourceSearch

https://vix.com/assets/web/_next/static/chunks/pages/[lang]/suscripcion/att/validar-codigo-d1e6feef5d851dfe.js

js vix.com collected 2026-09-24 08:40:59 UTC 17,242 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9905],{4717:e=>{e.exports={title:"AlertContent_title__af33R",subtitle:"AlertContent_subtitle__6eatR",sanitizedSubtitle:"AlertContent_sanitizedSubtitle__7MViv",footer:"AlertContent_footer__miRz_",userIdentifier:"AlertContent_userIdentifier__ohCge"}},8717:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,Ge:()=>c});var i=n(6029),a=n(55729),r=n(30925);let s=a.memo(function({children:e,sponsorAttributes:t}){let{sponsor:n,isSubscribed:a,isVixClickable:s}=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{className:"fixed w-full px-6 py-8 sm:px-10 xl:px-[92px]",sponsor:n,isSubscribed:a,isVixClickable:s}),e]})}),o={isSubscribed:!0,isVixClickable:!1},l={isExistingCustomer:null,phoneNumber:"",subscriptionId:""},d=(0,a.createContext)(null);function c(){let e=(0,a.useContext)(d);if(null===e)throw Error("useAttSubscriptionValues must be a child of AttSubscriptionContext.Provider");return e}let u=function({children:e}){let[t,n]=(0,a.useState)(l),r=(0,a.useMemo)(()=>({...t,setAttValues:n}),[t.isExistingCustomer,t.phoneNumber,t.subscriptionId]);return(0,i.jsx)(d.Provider,{value:r,children:(0,i.jsx)(s,{sponsorAttributes:o,children:e})})}},10352:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ValidatePartnerPin"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PartnerPinValidationInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validatePartnerPin"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subscriptionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorReason"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorCode"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:171}};t.loc.source={body:"mutation ValidatePartnerPin($input: PartnerPinValidationInput!) {\n  validatePartnerPin(input: $input) {\n    success\n    subscriptionId\n    errorReason\n    errorCode\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.ValidatePartnerPin=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=n[t]||new Set,s=new Set,o=new Set;for(r.forEach(function(e){o.add(e)});o.size>0;){var l=o;o=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return s.forEach(function(t){var n=i(e,t);n&&a.definitions.push(n)}),a}(t,"ValidatePartnerPin")},12837:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var i=n(6029);n(55729);var a=n(50212),r=n(53721),s=n(84262),o=n(59668),l=n(54487),d=n(35192),c=n(69729),u=n(4717),m=n.n(u);let p=function({primaryButtonProps:e,secondaryButtonProps:t,tertiaryButtonProps:n,subtitle:u,title:p,titleWordsCount:f,titleLineBreak:x=!0,titleTextParts:v,hideIcon:h,disclaimer:b,sanitizeSubtitle:k,titleClassname:_,subtitleClassname:A,footer:N,userIdentifier:P}){return(0,i.jsxs)("div",{role:"dialog",children:[(0,i.jsx)("div",{className:"flex mb-8 xs:mb-10 sm:mb-8 tv:mb-10",children:!h&&(0,i.jsx)(s.A,{className:"w-16 sm:w-[86px] tv:w-32 tv:mx-auto",color:r.Q1.White,name:"Vix",viewBox:"0 0 256 100"})}),v&&(0,i.jsx)(c.A,{className:(0,a.A)(m().title,"tv:text-center",_),title:v}),p&&(0,i.jsx)(d.A,{className:(0,a.A)(m().title,"tv:text-center",_),title:p,firstColorWordsCount:f||0,isHeadingFont:!0,isLineBreak:x,withGradient:!0}),P&&(0,i.jsx)("p",{className:(0,a.A)("mt-2 text-manatee",m().userIdentifier),children:P}),u&&(0,i.jsx)("p",{className:(0,a.A)("flex flex-col mx-0 mt-6 text-primary tv:text-center tv:text-primary",k?m().sanitizedSubtitle:m().subtitle,A),children:k&&"string"==typeof u?(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:u}}):(0,i.jsx)(i.Fragment,{children:u})}),b&&(0,i.jsx)("p",{className:(0,a.A)("flex flex-col mx-0 mt-6 text-primary"),children:b}),(0,i.jsxs)("div",{className:"flex flex-col items-center",children:[e&&(0,i.jsx)(o.A,{type:e.type||l.V.Primary,onClick:e.onClick,disabled:e.isDisabled,className:(0,a.A)("justify-center h-12 w-full mt-8 tv:h-20 tv:w-7/12 tv:mt-14",e?.className),children:e?.children}),t&&(0,i.jsx)(o.A,{type:t.type||l.V.Secondary,onClick:t.onClick,disabled:t.isDisabled,className:(0,a.A)("justify-center h-12 w-full mt-6 tv:h-20 tv:w-7/12 tv:mt-14",t?.className),children:t?.children}),n&&(0,i.jsx)(o.A,{type:n.type||l.V.TextButton,onClick:n.onClick,disabled:n.isDisabled,className:(0,a.A)("justify-center h-12 w-full mt-6 tv:h-20 tv:w-7/12 tv:mt-14 [&]:bg-inherit",n?.className),children:n?.children}),N&&(0,i.jsx)("p",{className:(0,a.A)("flex flex-col mx-0 mt-6 text-primary tv:text-start tv:text-primary tv:mt-12",m().footer),children:N})]})]})}},20257:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(6029),a=n(55729),r=n(50212),s=n(98601),o=n(41619),l=n(41905),d=n.n(l);
1let c=(0,a.memo)(function({title:e,firstColorWordsCount:t,revertColor:n,className:a,disableDefaultTypography:l=!1,isLineBreak:c=!1,withGradient:u=!1,isHeadingFont:m}){let[p,f]=(0,o.A)(e,t),x=u?d().gradientText:d().gradientColor,v=e=>(0,i.jsx)("span",{className:x,children:e});return(0,i.jsxs)(s.A,{className:(0,r.A)("text-concrete",!l&&{[d().heading]:!!m,[d().text]:!m},a),children:[n?p:v(p),c&&(0,i.jsx)("br",{}),n?v(` ${f}`):` ${f}`]})})},26007:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ResendPartnerPin"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PartnerResendPinInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"resendPartnerPin"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subscriptionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorReason"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorCode"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:163}};t.loc.source={body:"mutation ResendPartnerPin($input: PartnerResendPinInput!) {\n  resendPartnerPin(input: $input) {\n    success\n    subscriptionId\n    errorReason\n    errorCode\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.ResendPartnerPin=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=n[t]||new Set,s=new Set,o=new Set;for(r.forEach(function(e){o.add(e)});o.size>0;){var l=o;o=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return s.forEach(function(t){var n=i(e,t);n&&a.definitions.push(n)}),a}(t,"ResendPartnerPin")},30925:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var i=n(6029),a=n(55729),r=n(82203),s=n.n(r),o=n(50212),l=n(61809),d=n(16744),c=n(61944);let u={[c.f.Oxxo]:"/assets/externals/payment-methods/oxxo.svg",[c.f.Att]:"/att-unefon.png",[c.f.SpinPremia]:"/spin-premia.png",[c.f.Spectrum]:"/spectrum.png"},m=a.memo(function({className:e,sponsor:t,isSubscribed:n=!1,isVixClickable:a,vixLogoSrc:r="/assets/externals/logo-white.svg",sponsorLogoSrc:c}){let m=n?d.N.SvodHome:d.N.Home,p=t&&u[t],f=c||p;return(0,i.jsxs)("div",{className:(0,o.A)("flex items-center",e),children:[(0,i.jsx)(s(),{className:(0,o.A)("flex h-6 sm:h-8 opacity-100 w-16 sm:w-[5.375rem]",{"cursor-default pointer-events-none":!a}),href:m,children:(0,i.jsx)(l.A,{priority:!0,src:r||"/assets/externals/logo-white.svg",alt:"Vix Logo",width:86,height:32})}),f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"border-l border-manatee h-6 mx-4 md:h-8 md:mx-6"}),(0,i.jsx)("div",{className:"w-[5.625rem] h-6 sm:h-8 flex items-center",children:(0,i.jsx)(l.A,{className:"block w-auto",src:f,alt:`${t} Logo`,width:90,height:36})})]})]})})},39819:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/suscripcion/att/validar-codigo",function(){return n(43405)}])},41905:e=>{e.exports={heading:"MultiColorTitle_heading__XRXhJ",text:"MultiColorTitle_text__dFgrx",gradientColor:"MultiColorTitle_gradientColor__ToxsC",gradientText:"MultiColorTitle_gradientText___BrBy"}},43405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var i=n(6029),a=n(55729),r=n(81278),s=n(23061),o=n(27177),l=n(8717),d=n(50212),c=n(4675),u=n(85386),m=n(45212),p=n(54487),f=n(20257),x=n(60459),v=n(98601),h=n(78071),b=n(63459),k=n(53721),_=n(16744),A=n(7234),N=n(10352),P=n.n(N),g=n(51138);let y=function(){let[e,{data:t,loading:n,error:i,reset:r}]=(0,A.n)(P(),{onError:e=>(0,g.A)(e,{error:"[useValidatePartnerPinMutation] error validating partner pin"})});return{validatePartnerPinHandler:(0,a.useCallback)(async({pin:t,
1subscriptionId:n,options:i})=>{await e({...i,variables:{input:{pin:t,subscriptionId:n}}})},[]),data:t,loading:n,error:i,reset:r}};var C=n(26007),w=n.n(C);let j=function(){let[e,{data:t,loading:n,error:i}]=(0,A.n)(w(),{onError:e=>(0,g.A)(e,{error:"[useResendPartnerPinMutation] error resending partner pin"})});return{resendPartnerPinHandler:(0,a.useCallback)(async({subscriptionId:t,options:n})=>{await e({...n,variables:{input:{subscriptionId:t}}})},[]),data:t,loading:n,error:i}};var S=n(17960),V=n(23723),E=n(81751),T=n(96104),B=n(49165),R=n(68361),D=n(91055),F=n.n(D);let I=function(){let e=(0,r.useRouter)(),{segmentTrackEvent:t}=(0,S.A)(),{phoneNumber:n,subscriptionId:s,setAttValues:o}=(0,l.Ge)(),{onCancelBrowserBack:A,browserBackTriggered:N}=(0,B.A)(),{localization:P}=(0,b.A)(),{resendPartnerPinHandler:g,error:C}=j(),{validatePartnerPinHandler:w,data:D,error:I,reset:M}=y(),O=D?.validatePartnerPin.success===!1,L=P("title_att_verification_code"),H=P("subtitle_att_verification_code"),$=P("labels_no_received_code"),q=P("actions_resend"),z=P("actions_edit"),G=(0,a.useCallback)(()=>{e.back()},[]),J=(0,a.useCallback)(t=>{w({pin:t,subscriptionId:s||"",options:{onCompleted:function({router:e,setAttValues:t}){return async({validatePartnerPin:{success:n,subscriptionId:i}})=>{n&&(t(e=>({...e,subscriptionId:i})),await e.replace(_.N.AttReviewPlan))}}({router:e,setAttValues:o})}})},[s]),X=(0,a.useCallback)(()=>{g({subscriptionId:s||"",options:{onCompleted:function({setAttValues:e}){return({resendPartnerPin:{success:t,subscriptionId:n}})=>{t&&e(e=>({...e,subscriptionId:n}))}}({setAttValues:o})}})},[s]),W=(0,a.useCallback)(async()=>{await t(V.A.TRACK,E.MH)},[t]),Q=I||C;return Q?(0,i.jsx)(R.A,{error:Q}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.A,{className:"font-bold",elementType:k.JE.H1,hidden:!0,children:"ATT Verification Code Validation Step"}),(0,i.jsx)(h.A,{className:"!mt-[116px] xs:!mt-[146px] sm:!mt-[200px] sm:!w-[512px] md:!mt-[160px] md:!w-[464px] lg:!mt-[192px] lg:!w-[620px]",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.A,{step:2,totalSteps:3,className:"mb-4"}),(0,i.jsx)(f.A,{title:L,firstColorWordsCount:1,revertColor:!0}),(0,i.jsx)("p",{className:(0,d.A)(F().description,"mt-4 mb-8"),children:H}),(0,i.jsxs)("div",{className:"mb-4 flex justify-between",children:[(0,i.jsxs)("p",{className:(0,d.A)(F().phoneNumber,"m-0"),children:["+52 ",n]}),(0,i.jsx)(u.A,{className:(0,d.A)(F().editLink,"[&&]:p-0 text-primary"),type:p.V.TextButton,href:`${_.N.AttPhoneNumber}?edit=true`,children:z})]}),(0,i.jsx)(c.A,{onSubmit:J,isCodeInvalid:O,reset:M,trackInvalidCode:W}),(0,i.jsxs)("div",{className:(0,d.A)(F().question,"my-9 text-center text-secondary xs:my-11 sm:my-[60px]"),children:[$,(0,i.jsx)(m.A,{className:(0,d.A)(F().resend,"[&&]:inline-block p-0 pl-[6px]"),type:p.V.TextButton,onClick:X,children:q})]})]})}),(0,i.jsx)(T.A,{isOpen:N,onAbandon:G,onBackButton:A})]})};function M(){let e=(0,r.useRouter)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I,{}),(0,i.jsx)(s.A,{path:e.asPath,segmentData:o.u1B})]})}M.getLayout=e=>(0,i.jsx)(l.Ay,{children:e}),M.getInitialProps=()=>({isFullViewMode:!0});let O=M},49165:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(55729),a=n(81278),r=n(16744),s=n(57422),o=n(11049);function l({dismiss:e}={}){let[t,n]=(0,i.useState)(!1),[d,c]=(0,i.useState)(!!e),u=(0,a.useRouter)(),m=(0,o.A)(e=>e.previousRoute),[p]=(0,i.useState)(m),f=()=>{n(!1)};return(0,i.useEffect)(()=>(u.beforePopState(({as:e})=>!window||e===u.asPath||!!t||!!d||(window.history.pushState("/",""),u.push(u.asPath),n(!0),!1)),()=>{u.beforePopState(()=>!0)}),[u,t]),(0,i.useEffect)(()=>{m!==p&&(0,s.A)("previousRoute",p)},[m,p]),{browserBackTriggered:t,isDismissBrowserBack:d,onConfirmBrowserBack:()=>{u.push(r.N.SubscriptionPlans)},onCancelBrowserBack:f,onDismissBrowserBack:()=>{f(),c(!0)},setBrowserBackTriggered:n}}},51421:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(6029);n(55729);var a=n(75828),r=n.n(a),s=n(23061),o=n(10393),l=n(12837),d=n(52777),c=n.n(d);let u=function({hideCloseButton:e,isOpen:t,onClose:n,trackingProps:a,className:d,...u}){return(0,i.jsxs)(o.A,{isOpen:!!t,onClose:n,hideCloseButton:e,className:r()(c().wrapper,d),children:[(0,i.jsx)(l.A,{...u}),t&&a&&(0,i.jsx)(s.A,{...a})]})}},52777:e=>{e.exports={wrapper:"AlertModal_wrapper__X5PUZ",wrapperTv:"AlertModal_wrapperTv__NZHGb"}},60459:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(6029);n(55729);var a=n(50212),r=n(63459);let s=function({className:e,step:t,totalSteps:n=2}){let{localization:s}
1=(0,r.A)(),o=s("labels_steps",{step:t,steps:n});return t>n?null:(0,i.jsx)("p",{"aria-live":"polite",className:(0,a.A)("text-neutral-grey text-sm font-bold sm:text-base xxl:font-normal",e),children:o})}},61944:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var i,a=((i={}).Oxxo="Oxxo",i.Att="AT&T",i.SpinPremia="Spin Premia",i.Spectrum="Spectrum",i)},69183:e=>{e.exports={abandonModal:"AbandonModal_abandonModal__D1vMB"}},91055:e=>{e.exports={description:"VerificationCodeValidation_description__NNJqs",phoneNumber:"VerificationCodeValidation_phoneNumber__uR6qY",editLink:"VerificationCodeValidation_editLink__gLjIi",question:"VerificationCodeValidation_question__JBwUv",resend:"VerificationCodeValidation_resend__Smb8g"}},96104:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var i=n(6029),a=n(55729),r=n(51421),s=n(17960),o=n(93645),l=n(23723),d=n(81751),c=n(27177),u=n(11641);let m={title:"title_abandon_subscription",subtitle:"subtitle_abandon_subscription",primaryButton:"actions_complete_subscription",secondaryButton:"actions_abandon_subscription"},p=function({abandonModalCopies:e,abandonModalPageSchema:t=c.SB$,abandonModalTrackSchema:n=d.lJ,onAbandon:i,onBackButton:r,translationKeys:p}){let{segmentTrackEvent:f}=(0,s.A)(),{title:x,subtitle:v,primaryButton:h,secondaryButton:b}=p||m,k=(0,o.A)([x,v,h,b]),_=e?.secondaryButtonLabel||k[b],A=(0,a.useCallback)(async()=>{await f(l.A.TRACK,(0,u.C)(_,n)),i?.()},[i,f,n,_]),N={onClick:r,children:e?.primaryButtonLabel||k[h]},P=(0,a.useMemo)(()=>k&&Object.keys(k).length>0,[k]);return{primaryButton:N,secondaryButton:{onClick:A,children:_},trackingProps:{path:"/abandon-subscription",segmentData:t},title:e?.title||k[x],subtitle:e?.subtitle||k[v],translations:k,isTranslationsReady:P}};var f=n(69183),x=n.n(f);let v=function({abandonModalCopies:e,abandonModalPageSchema:t,abandonModalTrackSchema:n,isOpen:a,onAbandon:s,onBackButton:o}){let{primaryButton:l,secondaryButton:d,trackingProps:c,title:u,subtitle:m}=p({abandonModalCopies:e,abandonModalTrackSchema:n,abandonModalPageSchema:t,onAbandon:s,onBackButton:o});return(0,i.jsx)(r.A,{hideCloseButton:!0,isOpen:a,primaryButtonProps:l,secondaryButtonProps:d,trackingProps:c,subtitle:m,title:u,titleWordsCount:4,className:x().abandonModal})}}},e=>{e.O(0,[6593,636,8792],()=>e(e.s=39819)),_N_E=e.O()}]);

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.