PageSourceSearch

https://ici.tou.tv/_next/static/chunks/9218-c5ae83ff67ce1ec5.js

js tou.tv collected 2026-10-02 03:11:17 UTC 8,308 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9218],{47620:function(e,r,t){"use strict";t.d(r,{Z:function(){return o}});var i=t(24246),n=t(5685);function o(e){let{children:r,predicate:t,fallback:o,loadingText:s}=e,c=t?s.onLoad:s.onLoaded;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.ZP,{"aria-live":"polite",children:c}),t?(0,i.jsx)(i.Fragment,{children:o}):r]})}},39964:function(e,r,t){"use strict";t.d(r,{Z:function(){return m}});var i=t(86677),n=t(82856),o=t(15224),s=t(8630),c=t(51357),u=t(25007),d=t(17668),a=t(97953),l=t(24241),p=t(96148),_=t(97787);function m(){let e=(0,i.useRouter)(),{data:r,error:t,isLoading:m}=function(){var e,r;let{auth:t}=(0,o.a)(),i=(0,a.Wq)(),c=(0,a.Al)(),{data:u,error:d,isLoading:_}=(0,n.ZP)((null==t?void 0:t.accessToken)&&i?["validatePromoCode",null==t?void 0:t.accessToken,i,c]:null,()=>(0,s.am)(null==t?void 0:t.accessToken,i,c));return(0,l.cM)(new p.EX({code:i,referenceName:c,planId:null!==(r=null==u?void 0:null===(e=u.plan)||void 0===e?void 0:e.productPlanId)&&void 0!==r?r:"",isValid:null==u?void 0:u.valid})),{data:u,error:d,isLoading:_}}(),v=(0,a.Al)(),h=(0,a.E_)(),f=h===u.eF.VipWithAds||h===u.eF.VipWithoutAds||((0,_.Vf)()?[c.Hj.TTV_EXTRA_WITH_ADS_VIP_MONTHLY,c.Hj.TTV_EXTRA_WITHOUT_ADS_VIP_MONTHLY,c.Hj.TTV_RDI_WITH_ADS_VIP_MONTHLY,c.Hj.TTV_BUNDLE_EXTRA_RDI_WITH_ADS_VIP_MONTHLY,c.Hj.TTV_BUNDLE_EXTRA_RDI_VIP_MONTHLY].includes(v):v===c.Hj.GEM_PREMIUM_VIP_MONTHLY);return{cmuPromoCode:(0,a.Wq)(),handleCmuRedirection:()=>{if((0,a.bu)(),!e.isReady)return;let{[d.ry]:r,[d.dC]:t,[d.dU]:i,...n}=e.query;(0,a.OW)(null!=r?r:u.eF.CreditCardMonthly),(0,a.tV)(null!=t?t:(0,a.wZ)(r)),i?((0,a.yB)(i),(0,a.Hj)("true"),e.replace({pathname:d.HQ.subscription.base,query:{...n,cmu:"true"}},{pathname:d.HQ.subscription.base,query:n})):e.replace("/")},promoValidationData:r,promoValidationError:t,promoValidationIsLoading:m,isPromoValid:r&&(null==r?void 0:r.valid),isPromoVip:f}}},55575:function(e,r,t){"use strict";t.d(r,{Z:function(){return m}});var i=t(82856),n=t(15224),o=t(97701),s=t(8630),c=t(52045),u=t(93722);function d(e,r){return e&&r?(0,u.o)("modify_invoice","renewal_description_with_price",[e,r]):(0,u.o)("modify_invoice","renewal_description")}async function a(e,r,t,i,n){return(0,s.f4)(e,r,t,i,n)}async function l(e,r,t,i,n,o,a){return function(e){var r,t;let{invoicePreviewDto:i,is7DaysFreeTrialActive:n,discountDescription:o}=e,{recurrence:s,modifyMode:a,futureRecurringTotal:l}=i,p=i.todayPayment&&!i.nextPayment,_=l==(p?null===(r=i.todayPayment)||void 0===r?void 0:r.total:null===(t=i.nextPayment)||void 0===t?void 0:t.total)?void 0:l;return{...i,todayPayment:function(e,r,t){if(!r)return;if(t)return r;let i=("Upgrade"===e||"Crossgrade"===e)&&"Charge"===r.chargeType;return{...r,total:i?r.total:void 0,isTaxesLabelShown:i,scheduleDescription:function(e,r){if("Upgrade"===e||"Crossgrade"===e){if("Credit"===r)return(0,u.o)("modify_invoice","upgrade_crossgrade_credit_description");if("Charge"===r)return(0,u.o)("modify_invoice","upgrade_crossgrade_charge_description")}return null}(e,r.chargeType)}}(a,i.todayPayment,p),renewalDisclaimer:_?d(_,s===c.Vy.Yearly?"an":"mois"):d(),alert:i.willLoseActivePromotion?function(e,r){let t={errorTitle:(0,u.o)("entitlements_subscription_summary","will_lose_promotion_warning_title"),errorDescription:(0,u.o)("entitlements_subscription_summary","will_lose_promotion_warning_description"),showAlertIcon:!0,alertLevel:"warning"};return e?(t.errorTitle=(0,u.o)("entitlements_subscription_summary","will_lose_free_trial_warning_title"),t.errorDescription=(0,u.o)("entitlements_subscription_summary","will_lose_free_trial_warning_description")):r&&(t.errorTitle=(0,u.o)("entitlements_subscription_summary","will_lose_discount_warning_title",[r])),t}(n,o):void 0}}({invoicePreviewDto:await (0,s.IT)(e,r,t,i,n),is7DaysFreeTrialActive:o,discountDescription:a})}var p=t(97953),_=t(39964);function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"V2",{auth:r}=(0,n.a)(),t=(0,p.hZ)(),s=(0,p.Al)(),c=(0,p.rc)(),{cmuPromoCode:u}=(0,_.Z)(),{currentSubscriptionDetails:d}=(0,o.n2)(),m=async()=>{var i;return"V2"===e?a(null==r?void 0:r.accessToken,s,u,t,c):l(null==r?void 0:r.accessToken,s,u,t,c,null==d?void 0:d.is7DaysFreeTrialActive,null==d?void 0:null===(i=d.discount)||void 0===i?void 0:i.description)},{data:v,error:h,isLoading:f,mutate:y}=(0,i.ZP)((null==r?void 0:r.accessToken)&&s?["getInvoicePreview",e,s,u,t,c]:null,m);return{invoicePreviewData:v,invoicePreviewError:h,invoicePreviewIsLoading:f,mutateInvoicePreviewData:y}}},5823:function(e,r,t){"use strict";t.d(r,{c:function(){return c},l:function(){return s}});var i=t(73936),n=t(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,r,t,n,s;return{errorCode:(0,i.ar)(null===(r=this.error.errors)||void 0===r?void 0:null===(e=r[0])||void 0===e?void 0:e.code),message:null!==(s=null===(n=this.error.errors)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.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,r,t){if(super(e),(null==r?void 0:r.conflictingSubscriptionData)&&(this.rc.context={...this.rc.context,activeConflictingSubscription:{...r.conflictingSubscriptionData},conflictingSubscriptionData:{...r.conflictingSubscriptionData}}),!t){this.isSuccess=!0,this.rc.response={isSuccess:!0,httpCode:200};return}this.isSuccess=!1,this.error=t,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 c extends s{constructor(e,r,t){super(e,r,t)}}},96148:function(e,r,t){"use strict";t.d(r,{EX:function(){return _},H6:function(){return c},Nf:function(){return p},U5:function(){return l},UP:function(){return a},ad:function(){return s},eT:function(){return m},mC:function(){return u},pb:function(){return d}});var i=t(73936),n=t(5823);class o extends n.l{constructor(e,r,t){super(e,r,t)}}class s extends o{constructor(e,r){super("subscription.internal.subscribe",e,r),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 c extends o{constructor(e,r){super("subscription.unsubscribe",{},r),this.rc={...this.rc,product:{id:null==e?void 0:e.subscriptionId}}}}class u extends o{constructor(e,r){super("subscription.modify",e,r),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,r){super("subscription.creditCard.validate.internal",{},r),this.rc={...this.rc,creditCard:{paymentMethodId:null==e?void 0:e.paymentMethodId}}}}class a extends o{constructor(e,r){super("subscription.creditCard.update",{},r),this.rc={...this.rc,creditCard:{paymentMethodId:null==e?void 0:e.paymentMethodId}}}}class l extends o{constructor(e,r,t,n){let o,s;super("subscription.creditCard.validate.thirdParty",{},n);let{tenantId:c="",signature:u="",key:d="",token:a=""}=r,l={action:e,tenantId:c,signature:u,key:d,token:a,id:"8a129068859491740185a14d32e839d1"};if(!t&&!n){this.rc={...this.rc,zuora:{...l,success:!0,error:void 0},exception:void 0};return}t?(o={errorCode:(0,i.ar)(t.code),message:t.message},s=t):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:{...l,success:!1,error:s},exception:o}}}class p extends o{constructor(e,r){super("subscription.promoCode.apply",{},r),this.rc={...this.rc,product:{plan:{discount:{id:null==e?void 0:e.promoCode},promo:{code:null==e?void 0:e.discountproductplanid}}}}}}class _ extends o{constructor(e,r){super("subscription.promoCode.validate",e,r),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 m extends n.c{constructor(e,r){super("subscription.conflict",e,r)}}},88038:function(e,r,t){e.exports=t(38762)}}]);

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.