PageSourceSearch

https://ici.tou.tv/_next/static/chunks/7961-a7821a5daec8ab72.js

js tou.tv collected 2026-10-02 03:11:11 UTC 22,580 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7961],{11325:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var i=r(24246),n=r(57851),o=r(3257),s=r(39964),a=r(39043),c=r(93722),d=r(9194),l=r.n(d);function u(e){let{isHidden:t}=e,{cmuPromoCode:r}=(0,s.Z)();return t||r?null:(0,i.jsxs)("div",{className:l().root,children:[(0,i.jsx)(n.Z,{id:a.j.CodePromoOutline,size:20}),(0,i.jsx)(o.hh,{children:(0,c.o)("promo_code","instructions")})]})}},1108:function(e,t,r){"use strict";r.d(t,{Z:function(){return V}});var i=r(24246),n=r(27378),o=r(88039),s=r(86677),a=r(43647),c=r(28228),d=r(78436),l=r(15224),u=r(63765),p=r(8630),m=r(17668),h=r(97953),f=r(93722),g=r(24241),v=r(96148),F=r(97787),C=r(60473),b=r(42625),x=r(14015),y=r(18461),w=r(30504),_=r(40209),I=r(85301),T=r(90093),A=r(55072),E=r(1585),Z=r(50416),D=r(67338),P=r(3257);function S(e){let{onLoaded:t,onLoadError:r,onSuccess:o,onError:s,prepopulateEnabled:a}=e,{auth:d}=(0,l.a)(),{creditCard:p}=(0,u.Z)(),{colors:m}=(0,c.useTheme)();return(0,n.useEffect)(()=>{if(null==d?void 0:d.accessToken){let e=new AbortController;return x.Z.renderForm(d.accessToken,{abortController:e,prepopulateEnabled:a,creditCardInfo:p.info||void 0,onError:s,onSuccess:o,onLoaded:t,onLoadError:r}),()=>{e.abort()}}},[null==d?void 0:d.accessToken,a,p.info,s,r,o,t]),(0,i.jsx)(j,{id:"zuora_payment",$_css:m.gray1,$_css2:"transparent !important"})}var j=(0,c.default)("div").withConfig({componentId:"sc-4f5d8075-0"})(e=>({backgroundColor:e.$_css,"& > iframe":{width:"100%",margin:"0 -1px !important",backgroundColor:e.$_css2,colorScheme:"auto"}})),k=r(11325),M=r(31379),H=r.n(M);function V(e){let{isModifyPaymentMethod:t,isNotSubscriptionFlow:r,onModifyPayment:I}=e,{platform:A,spacing:D}=(0,c.useTheme)(),{auth:P}=(0,l.a)(),{creditCard:j,mutate:M}=(0,u.Z)(),V=(0,s.useRouter)(),[B,G]=(0,n.useState)(null),[Y,Q]=(0,n.useState)(!1),[X,K]=(0,n.useState)(!1),[J,ee]=(0,n.use
1State)(!1),[et,er]=(0,n.useState)(!1),ei=(0,n.useRef)(null),en=(0,n.useRef)(null),eo=(0,n.useMemo)(()=>({text:(0,f.o)("general","help_center"),title:"".concat((0,f.o)("general","help_center")," (").concat((0,f.o)("general","new_window"),")"),href:m.HQ.external.helpCenter}),[]),es=(0,d.Zn)(),{getValues:ea,setValue:ec,register:ed,handleSubmit:el,formState:{errors:eu,dirtyFields:ep,isSubmitSuccessful:em}}=(0,o.cI)({mode:"onSubmit",resolver:(0,a.X)(y.c)}),eh=()=>{if(el(()=>{})(),!en.current){let e=x.Z.getClient();er(!0),null==e||e.submit()}},ef=(0,n.useCallback)(()=>{Q(!0)},[Q]),eg=(0,n.useCallback)(()=>{Q(!0),K(!0),G({level:"warning",title:(0,C.t)("An error occurred"),description:(0,C.t)("We are currently experiencing issues with our credit card processing system. Please try again later.")})},[Q,K,G]),ev=(0,n.useCallback)(async e=>{er(!1),en.current=e;let r=ea("postalCode");if(null==P?void 0:P.accessToken)try{let i=await (0,p.W1)(P.accessToken,e);if((0,g.cM)(new v.pb({paymentMethodId:e})),i.isValid){if(t)try{await (0,p.vm)(P.accessToken,e,r),await M(),(0,g.cM)(new v.UP({paymentMethodId:e}))}catch(t){(0,g.cM)(new v.UP({paymentMethodId:e},t)),G({level:"warning",title:(0,C.t)("Error"),description:(0,C.t)("An error occurred while submitting the form. Please try again.")})}ee(!0)}else G({level:"warning",title:(0,C.t)("Credit card error"),description:(0,C.t)("The provided credit card is not valid.")+!i.isCanadianCard?" ".concat((0,C.t)("Only Canadian credit cards are accepted.")):""})}catch(t){G({level:"warning",title:(0,C.t)("Error"),description:(0,C.t)("An error occurred while submitting the form. Please try again.")}),(0,g.cM)(new v.pb({paymentMethodId:e},t))}},[null==P?void 0:P.accessToken,t,M,ee,ea]),eF=(0,n.useCallback)((e,t)=>{er(!1),e===b.iv.ClientSideFormValidation||e===b.iv.ClientSideValidation?G({level:"warning",title:(0,C.t)("Credit card form error"),description:(null==t?void 0:t.message)?(0,C.t)(t.message):void 0}):e===b.iv.ServerSideValidation?G({level:"warning",title:(0,C.t)("Error"),description:(null==t?void 0:t.message)?(0,C.t)(t.message):void 0,button:(null==t?void 0:t.referToHelpCenter)?eo:void 0}):G({level:"warning",title:(0,C.t)("Error"),description:(0,C.t)("An error occurred while submitting the form. Please try again.")})},[eo]),eC=(0,n.useCallback)(()=>{(0,h.Ks)(en.current),(0,h.Yd)(ea("postalCode")),V.push(m.HQ.subscription.summary)},[ea,V]);return(0,n.useEffect)(()=>{if(B&&["warning","error"].includes(B.level)){var e,t;window.scrollTo({top:null===(e=ei.current)||void 0===e?void 0:e.getBoundingClientRect().top,behavior:"smooth"}),null===(t=ei.current)||void 0===t||t.focus()}},[B]),(0,n.useEffect)(()=>{em&&J&&(r?(null==I||I(),es({data:{zone:"My Account",elementName:"Modify Payment"}})):eC())},[es,em,r,J,eC,I]),(0,n.useEffect)(()=>{if(t&&(null==j?void 0:j.info)){var e,r;ec("postalCode",null!==(r=null===(e=j.info)||void 0===e?void 0:e.postalCode)&&void 0!==r?r:"")}},[null==j?void 0:j.info,t,ec]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.SH,{alert:B,ref:ei}),!X&&Y&&(0,i.jsx)(z,{children:(0,i.jsx)(L,{asNode:"h2",$_css:D[24],children:t?(0,f.o)("entitlements_payment","title_update"):(0,f.o)("entitlements_payment","title_add")})}),(0,i.jsx)(S,{onLoaded:ef,onLoadError:eg,onSuccess:ev,onError:eF,prepopulateEnabled:t}),!Y&&(0,i.jsx)(O,{children:(0,i.jsx)(E.Z,{})}),Y&&X&&(0,i.jsx)($,{$_css2:D[16],children:(0,i.jsx)(_.Z,{type:"button",backgroundColor:"gray4",onClick:()=>{V.back()},metricsData:{elementName:"Cancel modify payment"},children:(0,f.o)("general","back_return")})}),Y&&!X&&(0,i.jsxs)(T.ZP,{onSubmit:e=>{e.preventDefault(),eh()},children:[(0,i.jsx)(q,{$_css3:D[16],$_css4:D[8],children:(0,i.jsx)(U,{htmlFor:"postalCode",text:(0,C.t)("Postal Code"),children:(0,i.jsx)(T.ZP.TextInput,{...ed("postalCode"),isDirty:ep.postalCode,error:eu.postalCode,maxLength:7,validationMessage:(0,C.t)("Six alternating letters and digits starting with a letter.")})})}),(0,i.jsx)("div",{className:H().generalInfoContainer,children:(0,i.jsx)(k.Z,{isHidden:r})}),(0,i.jsxs)(W,{$_css5:D[16],children:[(0,i.jsx)(_.Z,{type:"button",backgroundColor:"gray4",onClick:()=>{r?null==I||I():V.push(m.HQ.subscription.selectPlan)},metricsData:{zone:"My Account",elementName:"Cancel modify payment"},children:(0,f.o)("general","back_return")}),(0,i.jsx)(Z.Z,{isLoading:et,type:"button",backgroundColor:"gem"===A?"brand":"brandDarker",onClick:eh,children:(0,C.t)("Continue")}),(0,i.jsx)(R,{lang:"en-CA",weight:"light",children:(0,F.s1)()?(0,i.jsxs)(i.Fragment,{children:["This site is protected by reCAPTCHA and the Google"," ",(0,i.jsx)(N,{href:"https://policies.google.com/privacy",screenReaderMessage:"Privacy Policy",children:"Privacy Policy"})," ","and"," ",(0,i.jsx)(N,{href:"https://policies.google.com/terms",screenReaderMessage:"Terms of Service",children:"Terms of Service"})," ","apply."]}):(0,i.jsxs)(i.Fragment,{children:["Ce site est prot\xe9g\xe9 par reCAPTCHA, et"," ",(0,i.jsx)(N,{href:"https://policies.google.com/privacy?hl=fr-CA",screenReaderMessage:"Privacy Policy",children:"la politique de confidentialit\xe9"})," ","et"," ",(0,i.jsx)(N,{href:"https://policies.google.com/terms?hl=fr-CA",screenReaderMessage:"Terms of Service",children:"les conditions d'utilisation de Google"})," ","s'appliquent."]})})]})]})]})}let N=(0,c.default)(I.Z).withConfig({componentId:"sc-373f6681-0"})(e=>{let{theme:t}=e;return{svg:{marginLeft:t.spacing[4]},[t.mediaQueries.md]:{fontSize:t.fontSizes[13]}}});var z=(0,c.default)(D.Z).withConfig({componentId:"sc-373f6681-1"})({textAlign:"left",alignItems:"start"}),R=(0,c.default)(P.hh).withConfig({componentId:"sc-373f6681-2"})({width:"100%",textAlign:"center"}),L=(0,c.default)(D.Z.Title).withConfig({componentId:"sc-373f6681-3"})(e=>({marginBottom:e.$_css})),O=(0,c.default)("div").withConfig({componentId:"sc-373f6681-4"})({display:"flex",justifyContent:"center"}),$=(0,c.default)("div").withConfig({componentId:"sc-373f6681-5"})(e=>({display:"flex",justifyContent:"center",rowGap:e.$_css2})),U=(0,c.default)(A.ZP.LabelZuora).withConfig({componentId:"sc-373f6681-6"})({"> span":{whiteSpace:"nowrap"}}
1),q=(0,c.default)(T.ZP.Content).withConfig({componentId:"sc-373f6681-7"})(e=>({display:"grid",gap:e.$_css3,gridTemplateColumns:"repeat(3, minmax(0, 1fr))",marginTop:e.$_css4})),W=(0,c.default)(T.ZP.Buttons).withConfig({componentId:"sc-373f6681-8"})(e=>({flexFlow:"wrap",rowGap:e.$_css5}))},50416:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var i=r(24246),n=r(28228);r(27378);var o=r(50220),s=r(60473),a=r(40209),c=r(85022),d=r(7811);function l(e){let{isLoading:t,children:r,...n}=e;return(0,i.jsx)(p,{disabled:t,isLoading:t,"data-cy":o.$n.loadingBtn,...n,children:(0,i.jsx)(u,{isLoading:t,children:r})})}function u(e){let{isLoading:t,loadingAriaLabel:r,children:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m,{"aria-hidden":t,$_css:t?0:1,children:n}),t&&(0,i.jsx)(d.Z,{"aria-label":null!=r?r:(0,s.t)("Loading")})]})}var p=(0,n.default)(function(e){let{isLoading:t,buttonComponent:r="Primary",children:n,...o}=e,s={Primary:a.Z,Secondary:c.Z}[r];return(0,i.jsx)(s,{...o,children:n})}).withConfig({componentId:"sc-6e3d265d-0"})({position:"relative"}),m=(0,n.default)("span").withConfig({componentId:"sc-6e3d265d-1"})(e=>({opacity:e.$_css}))},71180:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var i=r(24246),n=r(43218),o=r.n(n),s=r(36590),a=r(14015);function c(){return(0,i.jsx)(o(),{id:"zuora-hosted-page-script",strategy:"lazyOnload",src:"https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js?cachebuster=".concat(new Date().getTime()),onLoad:()=>a.Z.dispatch({type:"ZUORA_INITIALIZED"}),onError:e=>a.Z.dispatch((0,s.Z)(e))})}},39964:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var i=r(86677),n=r(82856),o=r(15224),s=r(8630),a=r(51357),c=r(25007),d=r(17668),l=r(97953),u=r(24241),p=r(96148),m=r(97787);function h(){let e=(0,i.useRouter)(),{data:t,error:r,isLoading:h}=function(){var e,t;let{auth:r}=(0,o.a)(),i=(0,l.Wq)(),a=(0,l.Al)(),{data:c,error:d,isLoading:m}=(0,n.ZP)((null==r?void 0:r.accessToken)&&i?["validatePromoCode",null==r?void 0:r.accessToken,i,a]:null,()=>(0,s.am)(null==r?void 0:r.accessToken,i,a));return(0,u.cM)(new p.EX({code:i,referenceName:a,planId:null!==(t=null==c?void 0:null===(e=c.plan)||void 0===e?void 0:e.productPlanId)&&void 0!==t?t:"",isValid:null==c?void 0:c.valid})),{data:c,error:d,isLoading:m}}(),f=(0,l.Al)(),g=(0,l.E_)(),v=g===c.eF.VipWithAds||g===c.eF.VipWithoutAds||((0,m.Vf)()?[a.Hj.TTV_EXTRA_WITH_ADS_VIP_MONTHLY,a.Hj.TTV_EXTRA_WITHOUT_ADS_VIP_MONTHLY,a.Hj.TTV_RDI_WITH_ADS_VIP_MONTHLY,a.Hj.TTV_BUNDLE_EXTRA_RDI_WITH_ADS_VIP_MONTHLY,a.Hj.TTV_BUNDLE_EXTRA_RDI_VIP_MONTHLY].includes(f):f===a.Hj.GEM_PREMIUM_VIP_MONTHLY);return{cmuPromoCode:(0,l.Wq)(),handleCmuRedirection:()=>{if((0,l.bu)(),!e.isReady)return;let{[d.ry]:t,[d.dC]:r,[d.dU]:i,...n}=e.query;(0,l.OW)(null!=t?t:c.eF.CreditCardMonthly),(0,l.tV)(null!=r?r:(0,l.wZ)(t)),i?((0,l.yB)(i),(0,l.Hj)("true"),e.replace({pathname:d.HQ.subscription.base,query:{...n,cmu:"true"}},{pathname:d.HQ.subscription.base,query:n})):e.replace("/")},promoValidationData:t,promoValidationError:r,promoValidationIsLoading:h,isPromoValid:t&&(null==t?void 0:t.valid),isPromoVip:v}}},63765:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var i=r(82856),n=r(15224),o=r(8630),s=r(33220),a=r(20777);function c(){var e;let{auth:t}=(0,n.a)(),{subscriberProfileData:r}=(0,a.H)(),c=null==r?void 0:r.subscription,d=(null==r?void 0:null===(e=r.subscription)||void 0===e?void 0:e.sourceSystem)===s.Px.Web,{data:l,isLoading:u,mutate:p}=(0,i.ZP)((null==t?void 0:t.accessToken)&&c&&d?["getCreditCardInformation",t.accessToken]:null,()=>(0,o.Ib)(null==t?void 0:t.accessToken));return{creditCard:{info:l||null},isLoading:u,mutate:p}}},5823:function(e,t,r){"use strict";r.d(t,{c:function(){return a},l:function(){return s}});var i=r(73936),n=r(59279);function o(e){return"object"==typeof e&&null!==e&&("status"in e&&"number"==typeof e.status||"errors"in e||"detail"in e)}class s extends n.Z{getException(){if(o(this.error)){var e,t,r,n,s;return{errorCode:(0,i.ar)(null===(t=this.error.errors)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.code),message:null!==(s=null===(n=this.error.errors)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.message)&&void 0!==s?s:this.error.detail}}return this.error instanceof Error?{message:this.error.message}
1:"string"==typeof this.error?{message:this.error}:void 0}constructor(e,t,r){if(super(e),(null==t?void 0:t.conflictingSubscriptionData)&&(this.rc.context={...this.rc.context,activeConflictingSubscription:{...t.conflictingSubscriptionData},conflictingSubscriptionData:{...t.conflictingSubscriptionData}}),!r){this.isSuccess=!0,this.rc.response={isSuccess:!0,httpCode:200};return}this.isSuccess=!1,this.error=r,this.exception=this.getException(),this.rc.exception=this.exception&&{errorCode:this.exception.errorCode,message:this.exception.message},this.rc.response={isSuccess:!1,...o(this.error)&&{httpCode:this.error.status}}}}class a extends s{constructor(e,t,r){super(e,t,r)}}},96148:function(e,t,r){"use strict";r.d(t,{EX:function(){return m},H6:function(){return a},Nf:function(){return p},U5:function(){return u},UP:function(){return l},ad:function(){return s},eT:function(){return h},mC:function(){return c},pb:function(){return d}});var i=r(73936),n=r(5823);class o extends n.l{constructor(e,t,r){super(e,t,r)}}class s extends o{constructor(e,t){super("subscription.internal.subscribe",e,t),this.rc={...this.rc,creditCard:{paymentMethodId:e.paymentMethodId},product:{plan:{partner:null==e?void 0:e.partner,paymentType:e.productPlan,promo:{code:e.promoCode}}}}}}class a extends o{constructor(e,t){super("subscription.unsubscribe",{},t),this.rc={...this.rc,product:{id:null==e?void 0:e.subscriptionId}}}}class c extends o{constructor(e,t){super("subscription.modify",e,t),this.rc={...this.rc,creditCard:{paymentMethodId:e.paymentMethodId},product:{id:null==e?void 0:e.subscriptionId,plan:{partner:null==e?void 0:e.partner,paymentType:null==e?void 0:e.referenceName}}}}}class d extends o{constructor(e,t){super("subscription.creditCard.validate.internal",{},t),this.rc={...this.rc,creditCard:{paymentMethodId:null==e?void 0:e.paymentMethodId}}}}class l extends o{constructor(e,t){super("subscription.creditCard.update",{},t),this.rc={...this.rc,creditCard:{paymentMethodId:null==e?void 0:e.paymentMethodId}}}}class u extends o{constructor(e,t,r,n){let o,s;super("subscription.creditCard.validate.thirdParty",{},n);let{tenantId:a="",signature:c="",key:d="",token:l=""}=t,u={action:e,tenantId:a,signature:c,key:d,token:l,id:"8a129068859491740185a14d32e839d1"};if(!r&&!n){this.rc={...this.rc,zuora:{...u,success:!0,error:void 0},exception:void 0};return}r?(o={errorCode:(0,i.ar)(r.code),message:r.message},s=r):n&&(o={errorCode:(0,i.ar)(n.code),message:n.message},s={key:"",code:"".concat(n.code),message:n.message}),this.rc={...this.rc,zuora:{...u,success:!1,error:s},exception:o}}}class p extends o{constructor(e,t){super("subscription.promoCode.apply",{},t),this.rc={...this.rc,product:{plan:{discount:{id:null==e?void 0:e.promoCode},promo:{code:null==e?void 0:e.discountproductplanid}}}}}}class m extends o{constructor(e,t){super("subscription.promoCode.validate",e,t),this.rc={...this.rc,product:{plan:{id:null==e?void 0:e.planId,paymentType:null==e?void 0:e.referenceName,promo:{code:e.code,isValid:!!e.isValid}}}}}}class h extends n.c{constructor(e,t){super("subscription.conflict",e,t)}}},42625:function(e,t,r){"use strict";var i,n,o,s;r.d(t,{g5:function(){return n},iv:function(){return i},mg:function(){return c},qv:function(){return a}}),(o=i||(i={})).ClientSideValidation="01 - Client-side validation",o.ClientSideFormValidation="02 - Client-side form validation",o.ServerSideValidation="03 - Server-side validation",o.Unknown="03 - Unknown",(s=n||(n={})).RequiredFieldNotCompleted="001",s.InvalidCardNumber="002",s.InvalidCardType="003",s.InvalidCvvNumber="004";let a={"Expiration date must be a future date":{field:"creditCardExpirationMonth",message:"Expiration date must be a future date"},"creditCardNumber:ExceededMaxLength":{field:"creditCardNumber",message:"Value entered exceeds allowed length."}},c={Attempt_Exceed_Limitation:{code:17700,message:"An error occurred while submitting the form. Please try again."},BusinessValidationError:{code:17701,message:"An error occurred while submitting the form. Please revise it and try again."},Decryption_Error:{code:17702,message:"An error occurred while submitting the form. For more information, please contact our help center.",referToHelpCenter:!0},ExceededMaxLength:{code:17703,message:"An error occurred while submitting the form. Please revise it and try again."},GatewayTransactionError:{code:17704,message:"Your payment was declined. Please contact your bank for more details."},GeneralSystemError:{code:17705,message:"An error occurred while submitting the form. For more information, please contact our help center.",referToHelpCenter:!0},HostedPageFieldValidationError:{code:17706,message:"An error occurred while submitting the form. Please revise it and try again."},Invalid_PaymentGateway:{code:17707,message:"An error occurred while submitting the form. For more information, please contact our help center.",referToHelpCenter:!0},Invalid_Request_Method:{code:17708,message:"An error occurred while submitting the form. For more information, please contact our help center.",referToHelpCenter:!0},Invalid_Security:{code:17709,message:"An error occurred while submitting the form. Please try again."},InvalidFormat:{code:17710,message:"An error occurred while submitting the form. Please revise it and try again."},NullValue:{code:17711,message:"An error occurred while submitting the form. Please revise it and try again."},ReCaptcha_Validation_Failed:{code:17712,message:"An error occurred while submitting the form. For more information, please contact our help center.",referToHelpCenter:!0},Submit_Too_Quick:{code:17713,message:"An error occurred while submitting the form. Please try again in 30 seconds."},Validate_Dynamic_Params_Failed:{code:17714,message:"An error occurred while submitting the form. For more information, please contact our help center.",referToHelpCenter:!0}}},36590:function(e,t,r){"use strict";function i(e){return{type:"ZUORA_INITIALIZATION_FAILED",error:e}}r.d(t,{Z:function(){return i}})},14015:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var i=r(8630),n=r(53007);class o extends n.Z{dispatch(e){let t=this.reduce(this.state,e);this.update(t)}}var s=r(24241),a=r(96148),c=r(97787),d=r(60473),l=r(42625),u=r(36590);let p=(0,c.Vf)()?"fr_CA":"en_CA";class m extends o{reduce(e,t){switch(t.type){case"ZUORA_INITIALIZED":return{...e,isInitialized:!0,error:void 0};case"ZUORA_INITIALIZATION_FAILED":let{error:r}=t;return{...e,isInitialized:!1,error:{text:r instanceof Error?r.message:"Failed to load script"}};default:return e}}getClient(){let{isInitialized:e,error:t}=this.state;if(e&&!t){if(!("Z"in window&&"object"==typeof window.Z&&window.Z)){let e=Error("Service was set as initialized, but the Zuora client isn't available in the window.");throw this.dispatch((0,u.Z)(e)),e}return window.Z}}async waitForZuoraClient(){let{isInitialized:e,error:t}=this.state;return e&&!t?this.getClient():await new Promise((e,t)=>
1{let r=this.subscribe((i,n)=>{i.isInitialized&&!n.isInitialized?(this.unsubscribe(r),e(this.getClient())):i.error&&!n.error&&(this.unsubscribe(r),t(i.error))})})}async renderForm(e,t){let{abortController:r,prepopulateEnabled:n,creditCardInfo:o,onError:c,onLoaded:u,onLoadError:m,onSuccess:h}=t;try{if(this.state.error)throw Error(this.state.error.text);let t=await this.waitForZuoraClient();if(r.signal.aborted)return;u&&t.setEventHandler("onloadCallback",()=>u());let m=await (0,i.s0)(e);if(r.signal.aborted)return;let g={};if(n&&o){var f;g.creditCardHolderName=null!==(f=o.nameOnCard)&&void 0!==f?f:""}t.renderWithErrorHandler({id:"8a129068859491740185a14d32e839d1",host:"https://ici.tou.tv",style:"inline",submitEnabled:!0,locale:p,url:"https://www.zuora.com/apps/PublicHostedPageLite.do",param_gwOptions_theme:"dark",tenantId:m.tenantId,token:m.token,signature:m.signature,key:m.key},g,e=>{e.success?(h(e.refId),(0,s.cM)(new a.U5("callback - response success",m))):(c(l.iv.Unknown),(0,s.cM)(new a.U5("callback - response failed",m,void 0,{message:"An error occurred while submitting the form. Please try again."})))},(e,r,i)=>{let n,o=l.iv.Unknown;if(Object.values(l.g5).includes(r))o=l.iv.ClientSideValidation,t.sendErrorMessageToHpm(e,i);else if(Object.keys(l.qv).some(e=>i.includes(e))){let e=l.qv[Object.keys(l.qv).find(e=>i.includes(e))||""];o=l.iv.ClientSideFormValidation,n={message:e.message},t.sendErrorMessageToHpm(e.field,(0,d.t)(e.message))}else if("error"===e){var u,p;o=l.iv.ClientSideValidation;let e=null==i?void 0:null===(p=i.match(RegExp("\\[(?<msgKey>.*?)]")))||void 0===p?void 0:null===(u=p.groups)||void 0===u?void 0:u.msgKey;n=e?l.mg[e]:void 0}c(o,n),(0,s.cM)(new a.U5("errorCallback #".concat(l.iv.ServerSideValidation),m,{key:e,code:r,message:i},n))})}catch(e){null==m||m()}}constructor(){super({isInitialized:!1})}}var h=new m},18461:function(e,t,r){"use strict";r.d(t,{H:function(){return o},c:function(){return s}});var i=r(55484);function n(e,t){if("string"!=typeof t||""!==t)return e}let o=i.Ry().shape({email:i.Z_().required().transform(n).matches(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-||_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+([a-z]+|\d|-|\.{0,1}|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])?([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/),password:i.Z_().required().min(8).matches(/^[^\s].+[^\s]$/)}),s=i.Ry().shape({postalCode:i.Z_().required().transform(n).matches(/^[A-Z]\d[A-Z][ -]?\d[A-Z]\d$/i)})},9194:function(e){e.exports={root:"promoCode_root__zBPfz"}},31379:function(e){e.exports={generalInfoContainer:"subscriptionFlow_generalInfoContainer__7ydTc"}}}]);

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.