1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5699,7397],{37397:function(e,n,t){"use strict";t.r(n);var a=t(1984),i=t(8014),r=function(e){var n=e.url,t=e.alt;return(0,i.jsxs)(a.default,{children:[(0,i.jsx)("meta",{property:"og:image",content:n}),(0,i.jsx)("meta",{property:"og:image:alt",content:t}),(0,i.jsx)("meta",{property:"twitter:image",content:n})]})};r.defaultProps={url:"".concat("https://www.mytvsuper.com","/seo_logo_1200x630.png"),alt:"myTV SUPER"},n.default=r},72631:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return z},default:function(){return $}});var a=t(23109),i=t(5866),r=t(95301),o=t.n(r),s=t(56168),c=t(75332),l=t(95494),d=t(52936),m=t(62044),_=t(63024),p=t.n(_),u=t(7),g=t(65546),h=t(12248),f=t(69629),b=t(24212),v=t(4905),j=(t(37397),t(33842)),x=t.n(j),w=t(55357),y=t.n(w),k=(t(2283),t(48941)),N=t(90833),F=t(89975),S=(t(1984),t(51728)),C=t(8014);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,i.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var I=function(e){var n,t,a=e.offerCampaignsGroup,i=e.onCampaignSelect,r=e.androidTVOnly,o=e.isHorseRacingTips,d=(0,c.useRouter)(),_=(d.query.channel,(0,m.Z)("registration")),p=_.t,h=_.lang,f=(0,s.useState)(!1),b=(f[0],f[1],(0,s.useState)(null)),v=b[0],j=b[1],x=(0,s.useRef)(null),w=(0,l.I0)(),O=(0,l.v9)((function(e){return e.tracking.purchase})),I={smart_tv:{campaign_title:p("lbl_landing_smart_box.campaign_title"),campaign_anchor:"smart_box",campaign_item:[{img_class:"smart_box",name:p("lbl_landing_smart_box.campaign_title"),remarks:p("lbl_landing_smart_box.campaign_item_1_remarks"),remarks_with_box:!0},{img_class:"two_device",name:p("lbl_landing_stb.campaign_item_2_name"),remarks:p("lbl_landing_stb.campaign_item_2_remarks")}],period_after:p("lbl_landing_stb.period_after"),period:p("lbl_landing_stb.period"),remarks:p("lbl_landing_stb.remarks"),campaign_remarks:"",two_br_at_the_end:!0},set_top_box:{campaign_title:p("lbl_landing_stb.campaign_title"),campaign_anchor:"stb",campaign_item:[{img_class:"stb",name:p("lbl_landing_stb.campaign_item_1_name"),remarks:p("lbl_landing_stb.campaign_item_1_remarks")},{img_class:"two_device",name:p("lbl_landing_stb.campaign_item_2_name"),remarks:p("lbl_landing_stb.campaign_item_2_remarks")}],period_after:p("lbl_landing_stb.period_after"),period:p("lbl_landing_stb.period"),remarks:p("lbl_landing_stb.remarks"),campaign_remarks:""},android_tv:{campaign_title:p("lbl_landing_android_tv.campaign_title"),campaign_anchor:"android_tv",campaign_item:[{img_class:"android_tv",name:p("lbl_landing_android_tv.campaign_item_1_name"),remarks:p("lbl_landing_android_tv.campaign_item_1_remarks")},{img_class:"android_tv_two_device",name:p("lbl_landing_android_tv.campaign_item_2_name"),remarks:p("lbl_landing_android_tv.campaign_item_2_remarks")}],period_after:p("lbl_landing_android_tv.period_after"),period:p("lbl_landing_android_tv.period"),remarks:p("lbl_landing_android_tv.remarks"),campaign_remarks:""},apps:{campaign_title:p("lbl_landing_apps.campaign_title"),campaign_anchor:"apps",campaign_item:[{img_class:"three_device",name:p("lbl_landing_apps.campaign_item_1_name"),remarks:p("lbl_landing_apps.campaign_item_1_remarks")}],campaign_item_CAASMTGF0000057:[{img_class:"three_device",name:p("lbl_landing_apps.campaign_item_1_name_CAASMTGF0000057"),remarks:p("lbl_landing_apps.campaign_item_1_remarks_CAASMTGF0000057")}],period_after:p("lbl_landing_apps.period_after"),period:p("lbl_landing_apps.period"),remarks:p("lbl_landing_apps.remarks"),campaign_remarks:""}};function D(e,n){return(0,C.jsx)(C.Fragment,{children:n.map((function(t,a){var r,s,c,l;return(0,C.jsxs)(C.Fragment,{children:[o?(0,C.jsx)("hr",{}):(0,C.jsx)(C.Fragment,{}),(0,C.jsxs)("div",{className:"",children:[(0,C.jsx)("div",{className:"".concat(y().campaign_item_list," ").concat(y()["count_"+((null===(r=I[e])||void 0===r||null===(s=r.campaign_item)||void 0===s?void 0:s.length)||0)]),children:o?(0,C.jsx)("h2",{style:{padding:"100px",fontSize:"32px"},children:t["title"+(0,g.getBossLang)(h)]}):function(){var n,a="CAASMTGF0000057"==t.code?"campaign_item_CAASMTGF0000057":"campaign_item";return((null===(n=I[e])||void 0===n?void 0:n[a])||[]).map((function(n,t){var a,i;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"".concat(y().campaign_item," ").concat(" "!=n.remarks?y().with_remarks:""),children:[(0,C.jsx)("div",{className:"".concat(y().img),children:(0,C.jsx)("img",{src:"".concat("https://storage.googleapis.com/mytvsuper-web-assets/img","/reg/").concat(n.img_class,".png"),alt:n.name})}),(0,C.jsxs)("div",{className:y().item_title,children:[(0,C.jsx)("div",{children:n.name}),(0,C.jsx)("div",{className:"".concat(y().remarks," ").concat(n.remarks_with_box?y().remarks_with_box:""),children:(0,C.jsx)("p",{children:"".concat(n.remarks)})})]})]}),t<((null===(a=I[e])||void 0===a||null===(i=a.campaign_item)||void 0===i?void 0:i.length)||0)-1?(0,C.jsx)("div",{className:"".concat(y().add_icon," ").
1concat(n.desktop_only_add_sign?"desktop-only":""),children:(0,C.jsx)(S.Z,{fontSize:"large"})}):(0,C.jsx)(C.Fragment,{})]})}))}()}),(0,C.jsx)("div",{className:"".concat(y().btn_col," ").concat(null!==(c=I[e])&&void 0!==c&&c.two_br_at_the_end?y().more_padding_top:""),children:(0,C.jsxs)("div",{className:"",children:[t["extra_title"+(0,g.getBossLang)(h)]?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"",children:(0,C.jsx)("p",{children:t["extra_title"+(0,g.getBossLang)(h)]})}),(0,C.jsx)("div",{className:"".concat(y().remarks),children:(0,C.jsxs)("p",{children:[t["long_description"+(0,g.getBossLang)(h)].split("\n")[0],(0,C.jsx)("br",{}),t["long_description"+(0,g.getBossLang)(h)].split("\n")[1]]})})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"",children:(0,C.jsx)("p",{children:t["long_description"+(0,g.getBossLang)(h)].split("\n")[0]})}),(0,C.jsx)("div",{className:"".concat(y().remarks),children:(0,C.jsx)("p",{children:t["long_description"+(0,g.getBossLang)(h)].split("\n")[1]})})]}),(0,C.jsxs)("div",{className:"",children:[(0,C.jsx)(F.Z,{className:"btn_yellow",onClick:function(){i(t)},children:p("lbl_landing.buy_now")}),t["long_description"+(0,g.getBossLang)(h)]||t["terms_and_conditions"+(0,g.getBossLang)(h)]?(0,C.jsx)(F.Z,{className:"btn_boxed ".concat(y().btn_more),onClick:function(){j(t.code)},children:p("lbl_landing.more")}):(0,C.jsx)(C.Fragment,{})]})]})})]}),v==t.code&&(t["long_description"+(0,g.getBossLang)(h)]||t["terms_and_conditions"+(0,g.getBossLang)(h)])?(0,C.jsxs)("div",{className:"".concat(y().more_content," ").concat(null!==(l=I[e])&&void 0!==l&&l.two_br_at_the_end?y().more_content_padding:""),children:[t["long_description"+(0,g.getBossLang)(h)]?(0,C.jsx)("p",{children:t["long_description"+(0,g.getBossLang)(h)]}):(0,C.jsx)(C.Fragment,{}),t["terms_and_conditions"+(0,g.getBossLang)(h)]?(0,C.jsxs)("p",{children:[p("lbl_landing.campaign_tnc"),(0,C.jsx)("br",{}),t["terms_and_conditions"+(0,g.getBossLang)(h)]]}):(0,C.jsx)(C.Fragment,{})]}):(0,C.jsx)(C.Fragment,{}),t.campaign_remarks?(0,C.jsx)("div",{className:y().campaign_remarks,children:t.campaign_remarks}):(0,C.jsx)(C.Fragment,{}),a==n.length-1||o?(0,C.jsx)(C.Fragment,{}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("br",{}),(0,C.jsx)("br",{})]})]})}))})}return(0,s.useEffect)((function(){w((0,k.Uy)({nav_overlay_on_main:!0}))})),(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("div",{className:"".concat(y().banner," ").concat(y().div_28ai),style:o?{}:{backgroundImage:"url(".concat((0,g.getPromoImageUrl)("reg_home",h,"m"),")")},role:"img",children:(0,C.jsxs)("div",{className:y().overlay_section,children:[o?(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("div",{className:y().banner,style:{textAlign:"center"},children:(0,C.jsx)("img",{src:"".concat("https://storage.googleapis.com/mytvsuper-web-assets/img","/reg/race_analysis_promo_banner.jpg"),width:"100%",alt:p("lbl_landing.28ai_title"),style:{maxWidth:"800px"}})})}):(0,C.jsx)("div",{className:"".concat(y().promo),children:(0,C.jsxs)("div",{className:"",children:[(0,C.jsx)("div",{className:"".concat(y().img),children:(0,C.jsx)("img",{src:"".concat("https://storage.googleapis.com/mytvsuper-web-assets/img","/reg/logo_mytv_gold.png"),alt:"myTV Gold"})}),!r&&a.acquisition_info&&(null===(n=a.acquisition_info["description"+(0,g.getBossLang)(h)+"_01"])||void 0===n?void 0:n.length)>0&&(0,C.jsxs)(C.Fragment,{children:[/(\$\s*\d+)/.test(a.acquisition_info["description"+(0,g.getBossLang)(h)+"_01"])?(0,C.jsxs)("div",{className:"".concat(y().fee),children:[a.acquisition_info["description"+(0,g.getBossLang)(h)+"_01"].split(/(?<=\$)\s*(\d+)/)[0],(0,C.jsx)("span",{className:y().price,children:Math.trunc(a.acquisition_info["description"+(0,g.getBossLang)(h)+"_01"].split(/(?<=\$)\s*(\d+)/)[1])}),a.acquisition_info["description"+(0,g.getBossLang)(h)+"_01"].split(/(?<=\$)\s*(\d+)/)[2]]}):(0,C.jsx)("div",{className:"".concat(y().fee),children:a.acquisition_info["description"+(0,g.getBossLang)(h)+"_01"]}),(0,C.jsx)("div",{className:"".concat(y().btn),children:(0,C.jsx)(F.Z,{className:"btn_yellow",onClick:function(){!function(e){if(e){var n="undefined"!==typeof document?document.getElementById(e):null;if(n){var t=n.getBoundingClientRect().top+window.pageYOffset-65;window.scrollTo({top:t,behavior:"smooth"})}else d.push("#"+e)}}(a.acquisition_info.default_campaign_code)},children:p("lbl_landing.more_details")})})]})]})}),(null===(t=a.acquisition_info)||void 0===t?void 0:t["description"+(0,g.getBossLang)(h)+"_02"])&&(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("div",{className:y().title,children:a.acquisition_info["description"+(0,g.getBossLang)(h)+"_02"]})}),a.acquisition_info["description"+(0,g.getBossLang)(h)+"_03"]&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("br",{}),(0,C.jsx)("div",{className:y().title,children:(0,C.jsx)("u",{children:a.acquisition_info["description"+(0,g.getBossLang)(h)+"_03"]})}),(0,C.jsx)("br",{})]}),a.acquisition_info["description"+(0,g.getBossLang)(h)+"_04"]&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("br",{}),(0,C.jsx)("div",{className:y().title,children:(0,C.jsx)("u",{children:a.acquisition_info["description"+(0,g.getBossLang)(h)+"_04"]})}),(0,C.jsx)("br",{})]}),(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("br",{})}),a.acquisition_info["background_image"+(0,g.getBossLang)(h)]&&(0,C.jsx)("div",{style:{textAlign:"center"},children:(0,C.jsx)("img",{src:"".concat(a.acquisition_info["background_image"+(0,g.getBossLang)(h)]),alt:"myTV Gold",style:{maxWidth:"100vw",width:"100%",height:"auto"}})}),a.campaign_groups.map((function(e,n){return(0,C.jsxs)("div",{children:[(0,C.jsx)("h1",{className:y().title,children:(0,C.jsx)("p",{children:e["campaign_group_title"+(0,g.getBossLang)(h)]})}),e.campaigns.map((function(e,n){var t;if(r&&"android_tv"!==e.viewing_platform&&"smart_tv"!==e.viewing_platform)return null;var a=e.viewing_platform;return(0,C.jsxs)("div",{children:[(0,C.jsx)("a",{className:y().anchor,id:"".concat(e.code)}),!o&&(0,C.jsx)("hr",{}
1),(0,C.jsxs)("div",{className:y().campaign,children:[!o&&(0,C.jsx)("div",{className:y().campaign_title,children:e["display_service_mean"+(0,g.getBossLang)(h)]||""}),D(a,[e]),null!==(t=I[a])&&void 0!==t&&t.two_br_at_the_end?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("br",{}),(0,C.jsx)("br",{})]}):null]})]},e.code||n)}))]},n)})),o?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)("hr",{}),r||o?(0,C.jsx)(C.Fragment,{}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:y().campaign,children:(0,C.jsx)("div",{className:y().campaign_title,children:p("lbl_landing_promo_code_title")})}),(0,C.jsxs)("div",{className:y().promo_code,children:[(0,C.jsx)("span",{children:p("lbl_enter_promo_code")}),(0,C.jsxs)("div",{children:[(0,C.jsx)("input",{type:"text",ref:x,style:{color:"fieldtext"}}),(0,C.jsx)(F.Z,{className:"btn_yellow",onClick:function(){var e=(0,u.generateRandomPurchaseId)(null,"_promotionCode");w((0,N.KW)({key:"purchase",data:P(P({},O),{},{randomPurchaseID:e})})),w((0,N.VF)({event:"subscriptionFlow",resID:"Start",type:"promotionCode",ID:"",randomPurchaseID:e,promotionCode:x.current.value})),window.location.href=window.location.href.split("?")[0].split("#")[0]+"?promo_code="+x.current.value},children:p("common:btn_confirm")})]})]})]})]})})})};I.defaultProps={campaigns:[],onCampaignSelect:function(){},isHorseRacingTips:!1};var D=I,E=t(12725),L=t(73262),B=t(78447);function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){(0,i.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n=e.corporation,t=e.setCorpMemberID,a=e.promoCode,i=(0,l.I0)(),r=(0,s.useState)(null),o=(r[0],r[1],(0,m.Z)("registration")),c=o.t,d=o.lang,_=(0,l.v9)((function(e){return e.tracking.purchase})),p=(0,s.useState)(null),g=(p[0],p[1],(0,B.cI)()),h=g.register,b=g.handleSubmit,v=(g.setValue,g.formState.errors),j=(g.clearErrors,(0,s.useState)(!1)),x=j[0],w=(j[1],(0,s.useState)(!1)),k=w[0],S=(w[1],(0,s.useRef)(),(0,s.useRef)());return k?(0,C.jsx)(f.Z,{}):(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("form",{ref:S,action:"#",className:"form",method:"post",onSubmit:b((function(e){var n=e.corp_member_id,r=(0,u.generateRandomPurchaseId)(null,"_corpSales");i((0,N.KW)({key:"purchase",data:M(M({},_),{},{type:"campaign/purchase/new",ID:"",randomPurchaseID:r})})),i((0,N.VF)([{event:"subscriptionFlow",resID:"Start",type:"corpSales",ID:"",randomPurchaseID:r,promotionCode:a},{event:"btnClick",resID:"submit",type:"campaign/purchase/corplogin",ID:"",redirect:_?_.redirect:"",randomPurchaseID:r,promotionCode:a}])),t(n.trim())})),children:[(0,C.jsxs)("label",{className:"form-row ".concat(y().read_only),children:[(0,C.jsx)("div",{className:"desc",children:c("corp_sales.corp_name")}),(0,C.jsx)("input",{readOnly:!0,type:"text",value:n[d]})]}),(0,C.jsxs)("label",{className:"form-row",children:[(0,C.jsx)("div",{className:"desc",children:(0,C.jsx)("p",{children:c("corp_sales.please_enter_corp_member_id")})}),(0,C.jsx)("input",M({maxLength:100,type:"text"},h("corp_member_id",{required:c("corp_sales.please_enter_corp_member_id"),pattern:{value:/(?!^\s+$)^.+$/,message:c("corp_sales.please_enter_corp_member_id")}}))),v.corp_member_id?(0,C.jsx)("div",{className:"inline-error",children:v.corp_member_id.message}):(0,C.jsx)(C.Fragment,{})]}),(0,C.jsx)("div",{className:"form-row",children:(0,C.jsx)("div",{className:y().action_buttons,children:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(F.Z,{type:"submit",className:"btn-yellow",loading:x,children:c("btn_free_gift_submit")})})})})]})})};Z.defaultProps={corporation:{},setCorpMemberID:null,promoCode:""};var R=Z,T=t(7556),K=t(73859),U=t(9979),W=t(73041),A=t(76032);t(84248);function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?G(Object(t),!0).forEach((function(n){(0,i.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z=!0;function $(e){var n,t,i,r,_,f,j=e.campaigns,w=e.offerCampaignsGroup,S=e.device,O=e.status,P=e.get_promo_code,I=e.post_pin,B=e.boss_id,q=e.pin_error_code,M=e.pairing_code_error,Z=e.error,G=e.template,z=e.tracking,$=e.completed_url,H=e.pcode,Q=e.is_paired,X=e.is_upsell,J=e.agent,Y=(e.for_corp_sales,e.corporation),ee=e.mgm_referrer_code,ne=e.preselected_campaign_code,te=e.country_code,ae=e.is_horse_racing_tips,ie=e.pairing_code,re=e.programme_ids,oe=e.episode_ids,se=e.is_add_event_id,ce=e.event_upsell_type,le=(e.eventPackType,e.eventCampaign),de=e.eventCampaignForSelf,me=e.emoji_pack,_e=e.defaultQuantity,pe=(0,c.useRouter)(),ue=(pe.query.channel,(0,m.Z)("registration")),ge=ue.t,he=ue.lang,fe=(0,l.v9)((function(e){return e.user.info})),be=(0,l.I0)(),ve=(0,l.v9)((function(e){return e.tracking.purchase})),je=(0,s.useState)(O),xe=je[0],we=je[1],ye=(0,s.useState)(null),ke=ye[0],Ne=ye[1],Fe=(0,s.useState)(null),Se=Fe[0],Ce=Fe[1],Oe=(0,s.useState)(null),Pe=Oe[0],Ie=Oe[1],De=(0,s.useState)(null),Ee=De[0],Le=De[1],Be=(0,s.useState)(null),qe=Be[0],Me=Be[1],Ze=(0,s.useState)(null),Re=Ze[0],Te=Ze[1],Ke=(0,s.useState)(null),Ue=Ke[0],We=Ke[1],Ae=(0,s.useState)(null),Ge=Ae[0],Ve=Ae[1],ze=(0,s.useState)(!1),$e=ze[0],He=ze[1],Qe=(0,s.useState)(!1),Xe=Qe[0],Je=Qe[1],Ye=(0,s.useState)(null),en=Ye[0],nn=Ye[1],tn=(0,s.useState)(!1),an=tn[0],rn=tn[1],on=(0,s.useState)(null),sn=on[0],cn=on[1],ln=(0,s.useState)(!1),dn=ln[0],mn=ln[1],_n=(0,s.useState)(null),pn=_n[0],un=_n[1],gn=(0,s.useState)(ce?"":"lbl_registration"),hn=gn[0],fn=gn[1],bn=(0,s.useState)(I),vn=bn[0],jn=bn[1],xn=(0,s.useState)(P),wn=xn[0],yn=xn[1],kn=(0,s.useState)(!1),Nn=kn[0],Fn=kn[1],Sn=(0,s.useState)(null),Cn=Sn[0],On=Sn[1],Pn=(0,s.useState)(null),In=Pn[0],Dn=Pn[1],En=(0,l.v9)((function(e){return e.remote.data})),Ln=(0,s.useState)(null),Bn=Ln[0],qn=Ln[1],Mn=(0,s.useState)(_e||1),Zn=Mn[0],Rn=Mn[1],Tn=(0,s.useState)(0),Kn=Tn[0],Un=Tn[1],Wn=(0,s.useState)(!1),An=Wn[0],Gn=Wn[1],Vn=(0,g.getBossLang)(he);(0,s.useEffect)((function(){me&&se&&me.emoji_pack.upsell_info.event_id&&pe.push({pathname:"".concat(pe.pathname,"/").concat(me.emoji_pack.upsell_info.event_id,"/"),query:pe.query},void 0,{shallow:!0})}),[me,se,pe]),(0,s.useEffect)((function(){An&&(pe.push({pathname:pe.pathname,query:V(V({},pe.query),{},{q:Zn,epiid:Bn})},void 0,{shallow:!0}),be((0,k.Fu)({component:"login"})),Gn(!1))}),[An,be]),(0,s.useEffect)((function(){be((0,d.rQ)())}),[be]),(0,s.useEffect)((function(){(0,g.checkObjectKeyExist)(fe,"country_code")&&"CN"==fe.country_code&&(window.location.href="/"+he+"/home")}),[fe]);var zn=function(e){for(var n in e)if("string"===typeof e[n])e[n]=e[n].trim();else if("object"===typeof e[n])for(var t in e[n])"string"===typeof e[n][t]&&(e[n][t]=e[n][t].trim());Ne(e)},$n=function(){(0,g.removeWebsiteCookies)("completed_url"),window.location.replace($.data.replace(window.location.protocol+"//"+window.location.host+"/en/",window.location.protocol+"//"+window.location.host+"/"+he+"/"))},Hn=function(){Ie(ke),Ne(null),Le(null),We(null),Ve(null),we("new_subscription"),fn("lbl_registration")},Qn=(0,s.useCallback)((function(e){We(!!e&&{payment_method:e})}),[]),Xn=function(){var e=(0,a.default)(o().mark((function e(n){var t,a=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:{},Me(ce?(0,u.extractCampaignInfoForPurchase)(n):n),Te(!n||"event_home"!=O&&"event_details"!=O?t:n),e.next=5,be((0,N.KW)({key:"purchase",data:V(V({},ve),{},{ID:n.code})}));case 5:"set_top_box"==n.service_mean?(0,g.getObjectKeyOrNull)(n,"with_stb")?(nn("stb"),He(!0)):nn("android_tv"):nn(n.service_mean),we("new_subscription"),be((0,k.Uy)({webview:!0})),be((0,k.Uy)({nav_overlay_on_main:!1})),window.scrollTo(0,0),pe.push("new-subscription",void 0,{shallow:!0});case 11:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Jn=(0,s.useCallback)((function(){var e={campaign_id:null===qe||void 0===qe?void 0:qe.id,verification_code:Ge,locale:he,customer:ke};"MO"==te&&(e.customer.area_code="853",e.customer.id_type="macid_short",e.region="MO"),e.callback_action="pin",e.pin=ee||vn||wn,J&&(e.agent=J),p().post("/api/registration/confirmActivation",e).then((function(e){if((0,g.removeStorage)("post_value"),H){var n={code:H,selected:e.data.customer.id,temp_token:e.data.customer.temporary_token};p().post("/api/auth/pairing",n).then((function(e){window.location.href=window.location.href.split("/")[0]+"/"+he+"/subscribe/new-subscription/completed?paired&device="+en+(ee?"&referrer="+ee:"")}))}else{var t=window.location.protocol+"//"+window.location.host+"/"+he+"/home/";ae&&(t+="?login=1&destUrl="+window.location.protocol+"//"+window.location.host+"/tc/28ai/"),(0,g.setWebsiteCookies)("completed_url",{data:t},0,{}),window.location.href=window.location.protocol+"//"+window.location.host+"/"+he+"/subscribe/new-subscription/completed?device="+en+(ee?"&referrer="+ee:"")}}))}),[qe,Ge,he,ke,en,vn,ee]);(0,s.useEffect)((function(){if(ke)if(an){var e=ke;e.captchaCode=Se,p().post("/api/registration/submitISP/",{data:e}).then((function(e){window.location.href=window.location.protocol+"//"+window.location.host+"/"+he+"/subscribe/new-subscription/completed?device=isp"}))}else if(Ee)if("short"==G)Jn();else{we("payment_selection"),fn("lbl_purchase");var n={success_url:window.location.protocol+"//"+window.location.host+"/"+he+"/subscribe/new-subscription/completed?device="+(null!==ce?"event":en)+(ee?"&referrer="+ee:""),failed_url:window.location.protocol+"//"+window.location.host+"/"+he+"/subscribe/new-subscription?device="+(null!==ce?"event":en)+"&failed",pcode:(0,g.getWebsiteCookies)("pcode")};if((0,g.setWebsiteCookies)("p2",{data:n},0,{}),ae?(0,g.setWebsiteCookies)("completed_url",{data:window.location.protocol+"//"+window.location.host+"/"+he+"/home/?login=1&destUrl="+window.location.protocol+"//"+window.location.host+"/tc/28ai/"},0,{}):null!==ce&&(0,g.setWebsiteCookies)("completed_url",{data:window.location.protocol+"//"+window.location.host+"/"+he+"/account/subscription/web/event/home/?upsell_type=".concat(ce)},0,{}),"failed"!=xe){var t={callback_action:vn?"pin":"register",campaign_id:qe.id,campaign_for_android_tv:Xe,verification_code:Ge,locale:he,customer:ke,agent:"",web_data:V(V({},n),{},{pcode:(0,g.getWebsiteCookies)("pcode")}),selectedCampaign:qe,region:te};wn?t.promo_code=wn:vn&&(t.pin=vn),ee&&(t.mgm_referrer_code=ee),J&&(t.agent=J),Cn&&(t.pin_redeem_info=Cn),"MO"==te&&(t.customer.area_code="853",t.customer.id_type="macid_short"),(0,g.setStorage)("post_value",t)}}
1else we("verify_sms"),fn("memberzone:sms_verification")}),[ke,Ee,qe,en,Xe,an,he,vn,wn,xe,G,Ge,Se,ge,Jn]),(0,s.useEffect)((function(){if("failed"==xe){var e=(0,g.getStorage)("post_value");e?(Je(e.campaign_for_android_tv),Ve(e.verification_code),Ne(e.customer),Me(e.selectedCampaign),nn(S),Le(!0),rn(!1),(0,g.checkObjectKeyExist)(e,"pin")&&jn(e.pin),(0,g.checkObjectKeyExist)(e,"promo_code")&&yn(e.promo_code),(0,g.checkObjectKeyExist)(e,"customer","address")&&0!==Object.keys(e.customer.address).length&&He(!0)):fn(null),Z&&cn(Z)}else"completed"==xe?fn(null):"corp_info_form"==xe?(fn("corp_sales.title"),Cn&&(we("campaign_list"),fn("lbl_registration"),Dn(ge("corp_sales.subtitle",{corp_name:Y[he]})))):"campaign_list"==xe&&ee&&Dn(ge("memberzone:mgm_referrer.subtitle",{mgm_referrer_code:ee}))}),[xe,Z,S,Cn]),(0,s.useEffect)((function(){be((0,k.Uy)({nav_overlay_on_main:!0}));var e=(0,g.getStorage)("tk_purchase");(0,g.checkObjectKeyExist)(z,"purchase")&&(e=e?V(V({},e),z.purchase):z.purchase),be((0,N.KW)({key:"purchase",data:e}))}),[be,z]),(0,s.useEffect)((function(){var e=(0,g.getStorage)("tk_purchase");(0,g.setStorage)("tk_purchase",V(V({},e),ve),0)}),[ve]),(0,s.useEffect)((function(){Fn(window.location.hash&&H&&"#android_tv"==window.location.hash)}),[H]),(0,s.useEffect)((function(){if(ve){var e=!0,n="campaign/purchase/new/";switch(xe){case"new_subscription":n+="reg",null==qe&&(e=!1);break;case"verify_sms":n+="sms";break;case"payment_selection":n+="payment";break;case"completed":n+="success";break;case"campaign_list":if(n+="details",null!=qe)e=!1;else if(ve.randomPurchaseID);else{var t=(0,u.generateRandomPurchaseId)(null,ee?"_7AMGMNew":"_link");mn(!0),be((0,N.KW)({key:"purchase",data:V(V({},ve),{},{type:"campaign/purchase/new",randomPurchaseID:t})}))}break;case"corp_info_form":n="campaign/purchase/corplogin";break;default:n+="listing"}e&&(dn?(be((0,N.VF)([{event:"subscriptionFlow",resID:"Start",type:ee?"7AMGMNew":"link",ID:"",randomPurchaseID:ve.randomPurchaseID||"",promotionCode:P||""},{event:"scnOpen",scnLabel:n,redirect:ve.redirect,randomPurchaseID:ve.randomPurchaseID||"",ID:"corp_info_form"!=xe&&ve.ID?ve.ID:""}])),mn(!1)):be((0,N.pv)({event:"scnOpen",scnLabel:n,redirect:ve.redirect,randomPurchaseID:ve.randomPurchaseID||"",ID:"corp_info_form"!=xe&&ve.ID?ve.ID:""})))}}),[xe,be,ve]),(0,s.useEffect)((function(){O&&(we(O),"event_home"!==O&&"event_details"!==O&&be((0,k.Uy)({webview:!0})),be((0,k.Uy)({nav_overlay_on_main:!1}))),"failed"!=O&&(0,g.removeStorage)("post_value")}),[O,be]),(0,s.useEffect)((function(){null==wn&&null==vn||qe||"corp_info_form"==O||(we("campaign_list"),be((0,k.Uy)({webview:!0})),be((0,k.Uy)({nav_overlay_on_main:!1})))}),[O,wn,vn,be]),(0,s.useEffect)((function(){pe.asPath.match(/subscribe\/(offer|28ai-offer)/)&&null==wn&&null==vn&&(we(O),Ne(null),Ce(null),Ie(null),Le(null),Me(null),We(null),Ve(null),He(!1),Je(!1),nn(null),rn(!1),cn(null),be((0,k.Uy)({webview:!!ne||M})),be((0,k.Uy)({nav_overlay_on_main:!ne&&!M})))}),[pe]),(0,s.useEffect)((function(){pe.beforePopState((function(e){e.url;var n=e.as;e.options;return!n.match(/subscribe\/offer\/#/)||(pe.replace(n),!1)}))}),[]);var Yn=function(){window.location.href=window.location.protocol+"//"+window.location.host+"/"+he+"/subscribe/"},et=function(){window.location.href=window.location.protocol+"//"+window.location.host+"/"+he+"/mz/pairing/"+J+"/"+H},nt=(0,s.useCallback)((function(e,n){p()({url:"/api/memberzone/submitPurchase/",method:"post",data:{campaign:n,payment:e,token:null,lang:he,hkid:null,post_value:(0,u.registerDataConvert)({customer:ke,campaign_id:qe.id,locale:he,verification_code:Ge,campaign_for_android_tv:Xe,promo_code:wn,agent:J,region:te,pin_redeem_info:Cn}),agent:J,pin_code:vn||wn,referrer_code:ee,region:fe.country_code,programme_ids:re,episode_ids:oe,subdomain:window.location.hostname.includes("qr.mytvsuper.com")?"qr":null,is_emoji_pack_item:!!me,emoji_pack_info_id:Bn,for_self:de,quantity:Zn}}).then((function(n){switch(console.log("Submit Purchase Response:",JSON.stringify(n)),n.data.status){case"success":we("completed");break;case"payment_gateway":var t={success_url:window.location.protocol+"//"+window.location.host+"/"+he+"/subscribe/new-subscription/completed/?device="+en,failed_url:window.location.protocol+"//"+window.location.host+"/"+he+"/subscribe/new-subscription/?device="+en+"&failed"};(0,g.setWebsiteCookies)("p2",{data:t},0,{}),"credit_card"!==e.method&&(location.href=n.data.url);break;case"failed":cn(n.data.errors),Me(null),We(null)}})).catch((function(){}))}),[he,en,ke,qe,Ge,Xe]);(0,s.useEffect)((function(){if(Ue){var e={method:Ue.payment_method,type:vn?"registration":"registration_sp"};nt(e,qe)}}),[Ue,qe,nt,vn]);var tt=function(){window.location.href="/"+he+"/subscribe/event/home/?upsell_type="+ce}
1,at=function(e,n){return n?(0,g.displayErrorMsg)(ge,e):(0,g.displayErrorMsg)(ge,"specialCode")+"[SC"+e+"]"};return(0,s.useEffect)((function(){var e=function(e){un(!0)};return"payment_selection"==xe&&window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}}),[xe]),(0,s.useEffect)((function(){ie&&("event_home"!==O&&"event_details"!==O&&be((0,k.Uy)({webview:!0})),be((0,k.Uy)({nav_overlay_on_main:!1})))}),[be,ie]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(b.default,{title:null!==(n=null===me||void 0===me||null===(t=me.emoji_pack)||void 0===t||null===(i=t.upsell_info)||void 0===i?void 0:i["page_title"+Vn])&&void 0!==n?n:ge(ae?"lbl_landing.28ai_page_title":ee?"lbl_landing.mgm_page_title":ce?"lbl_landing.fan_pass_page_title":"lbl_landing.page_title")}),(0,C.jsx)(v.default,{content:null!==(r=null===me||void 0===me||null===(_=me.emoji_pack)||void 0===_||null===(f=_.upsell_info)||void 0===f?void 0:f["page_title"+Vn])&&void 0!==r?r:ge(ae?"lbl_landing.28ai_meta_desc":ee?"lbl_landing.mgm_page_title":ce?"lbl_landing.fan_pass_page_title":"lbl_landing.page_title")}),(0,C.jsx)(h.Z,{footer:!xe,containerClassName:xe?x().container:"no-pad",defaultMeta:["image"],children:xe?(0,C.jsxs)(C.Fragment,{children:[hn?(0,C.jsx)("h2",{className:"center",children:ge(hn)}):(0,C.jsx)(C.Fragment,{}),(0,C.jsxs)("div",{className:x().main,children:[In?(0,C.jsx)("h3",{className:ee?"center":"left",children:In}):(0,C.jsx)(C.Fragment,{}),function(){var e,n;switch(xe){case"event_home":return(0,C.jsx)(W.Z,{data:me,onEventPurchaseButtonClick:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t="";ie&&(t="&p="+ie),window.location.href=window.location.protocol+"//"+window.location.host+"/"+he+"/subscribe/event/details/".concat(me.emoji_pack.upsell_info.event_id,"/?upsell_type=")+ce+"&pt="+e.pack_type+"&s="+n+t},emojiPins:null,remoteString:En});case"event_details":return(0,C.jsx)(A.Z,{data:me,eventCampaign:le,eventCampaignForSelf:de,isLoggedIn:!1,onCampaignSelect:Xn,selectedEmojiPackInfoId:Bn,setSelectedEmojiPackInfoId:qn,quantity:Zn,setQuantity:Rn,ticketPrice:Kn,setTicketPrice:Un,imageSrc:me.emoji_pack.upsell_info["promo_page_image"+Vn],setShowLoginPrompt:Gn,onBack:tt,remoteString:En});case"failed":return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("div",{className:y().thankyou_msg,children:(0,C.jsx)(C.Fragment,{children:(0,g.displayErrorMsg)(ge,"unknown")})})});case"corp_info_form":return(0,C.jsx)(C.Fragment,{children:q?(0,C.jsxs)(C.Fragment,{children:[at(q,vn),(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),(0,C.jsx)("p",{className:"center",children:(0,C.jsx)(F.Z,{className:"btn-yellow",onClick:Yn,children:ge("common:btn_confirm")})})]}):(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(R,{corporation:Y,setCorpMemberID:On,promoCode:P})})});case"campaign_list":return(0,C.jsx)(C.Fragment,{children:q||M?(0,C.jsx)(C.Fragment,{children:q?(0,C.jsxs)(C.Fragment,{children:[at(q,vn),(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),(0,C.jsx)("p",{className:"center",children:(0,C.jsx)(F.Z,{className:"btn-yellow",onClick:H?et:Yn,children:ge("common:btn_confirm")})})]}):(0,C.jsxs)(C.Fragment,{children:[ge("auth:pairing.error_expiredCode_"+J),(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),(0,C.jsx)("p",{className:"center",children:(0,C.jsx)(F.Z,{className:"btn-yellow",onClick:function(){window.location.href="/"+he+"/home"},children:ge("common:btn_confirm")})})]})}):(0,C.jsx)(C.Fragment,{children:j.length>0?(0,C.jsxs)(C.Fragment,{children:[j.map((function(e,n){return(0,C.jsx)(K.Z,{data:e,onCampaignSelect:Xn,pinRedeem:null!==vn,forRegister:!0,autoSelect:ee&&1===j.length&&!X},"campaign_".concat(n))})),X&&(0,C.jsx)(F.Z,{className:"btn-yellow ".concat(x().btn_to_purchase),onClick:function(){window.location.href="/"+he+"/mz/upsell/pairing/"+J+"/"+ie+"/?upsell=1"},children:null!==(e=null===En||void 0===En||null===(n=En.login_existing_account)||void 0===n?void 0:n[he])&&void 0!==e?e:""})]}):(0,C.jsxs)(C.Fragment,{children:[at("pin_redeem_without_account",vn),(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),(0,C.jsx)("p",{className:"center",children:(0,C.jsx)(F.Z,{className:"btn-yellow",onClick:Yn,children:ge("common:btn_confirm")})})]})})});case"new_subscription":return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(E.Z,{state:an?"isp":null,setCustomerFilledInfo:zn,customerFilledInfo:Pe,withDelivery:$e,setCaptchaCode:Ce,country_code:te,selectedCampaignForDisplay:Re,withHKID:!ee,isMgmReferrerCode:!!ee,quantity:Zn})});case"verify_sms":return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(L.Z,{area_code:null!==ke&&void 0!==ke&&ke.area_code?ke.area_code:"MO"==te?"853":"852",mobile_number:ke?ke.mobile_number:null,setIsVerifiedMobile:Le,setVerificationCode:Ve,onBackButtonClick:Hn,withPrefix:!0,isNewCustomer:!0})});case"payment_selection":return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(T.Z,{methods:null===qe||void 0===qe?void 0:qe.payment_methods,bypassDebitMethod:null===qe||void 0===qe?void 0:qe.bypass_debit_method,onPaymentSelection:Qn,onCancelPayment:Hn,amount:Bn?Zn*Kn:null===qe||void 0===qe?void 0:qe.amount,dryRun:function(){},dryRunPassed:!0,paymentGatewayType:(0,g.getObjectKeyOrNull)(qe,"skip_payment_method")?"registration":"registration_sp",forRegister:!0,selectedCampaign:qe,selectedEmojiPackInfoId:Bn,quantity:Zn,ticketPrice:Kn,eventCampaignForSelf:de,skippable:(0,g.getObjectKeyOrNull)(qe,"skip_payment_method"),onSkip:J
1n,programme_ids:re||null,episode_ids:oe||null,pay_per_view_amount:null===qe||void 0===qe?void 0:qe.amount}),sn?(0,C.jsx)(U.default,{closeAction:function(){cn(null)},children:"pg"===sn.code?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"right",children:sn.pg_error_code}),0===sn.pg_error_code.indexOf("-8")?(0,C.jsx)(C.Fragment,{children:(0,g.displayErrorMsg)(ge,"pg_"+sn.pg_error_code)}):(0,C.jsx)(C.Fragment,{children:(0,g.displayErrorMsg)(ge,"pg")})]}):(0,C.jsx)(C.Fragment,{children:(0,g.displayErrorMsg)(ge,sn.code)})}):(0,C.jsx)(C.Fragment,{}),pn?(0,C.jsx)(U.default,{closeAction:function(){window.location.reload()},children:(0,C.jsx)(C.Fragment,{children:(0,g.displayErrorMsg)(ge,"unknown")})}):(0,C.jsx)(C.Fragment,{})]});case"completed":return(0,C.jsx)(C.Fragment,{children:function(){var e,n,t,a;switch(S){case"isp":return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("div",{className:y().thankyou_msg,children:[(0,C.jsx)("span",{children:ge("lbl_isp_thankyou")}),(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),(0,C.jsx)("p",{className:"center",children:(0,C.jsx)(F.Z,{className:"btn-yellow",onClick:Yn,children:ge("common:btn_confirm")})})]})});case"stb":return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("div",{className:y().thankyou_msg,children:[(0,C.jsx)("span",{children:ge("lbl_mytvsuper_thankyou")}),(0,C.jsxs)("div",{children:[(0,C.jsx)("br",{}),ge("lbl_processing_msg")]}),ee?(0,C.jsxs)("div",{children:[(0,C.jsx)("br",{}),ge("memberzone:mgm_referrer.subtitle",{mgm_referrer_code:ee})]}):(0,C.jsx)(C.Fragment,{}),(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),ee?(0,C.jsx)("div",{className:"".concat(y().staff_referral_program_container," ").concat(y().end),children:(0,C.jsx)("img",{src:null!==(e=null===En||void 0===En||null===(n=En.staff_referral_program_reg_promo_page_end)||void 0===n?void 0:n[he])&&void 0!==e?e:""})}):(0,C.jsx)("p",{className:"center",children:(0,C.jsx)(F.Z,{className:"btn-yellow",onClick:Yn,children:ge("common:btn_confirm")})})]})});case"pin":case"android_tv":case"apps":case"web":case"event":return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("div",{className:y().thankyou_msg,children:[(0,C.jsxs)("span",{children:[ge("lbl_mytvsuper_thankyou"),(0,C.jsx)("br",{}),ge("lbl_confirm_email_sent")]}),(0,C.jsxs)("div",{children:[(0,C.jsx)("br",{})," ",ge("lbl_your_cid")," ",(0,C.jsx)("br",{})," ",B]}),(0,C.jsxs)("div",{children:[(0,C.jsx)("br",{})," ",ge("lbl_your_password"),(0,C.jsx)("br",{}),ge("lbl_default_password")]}),ee?(0,C.jsxs)("div",{children:[(0,C.jsx)("br",{}),ge("memberzone:mgm_referrer.subtitle",{mgm_referrer_code:ee})]}):(0,C.jsx)(C.Fragment,{}),(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),Q?(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("span",{children:ge("memberzone:lbl_Success_android_tv")})}):(0,C.jsx)(C.Fragment,{children:ee?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("p",{className:"center",children:(0,C.jsx)(F.Z,{className:"btn-yellow",onClick:$n,children:ge("common:btn_confirm")})})})}),ee?(0,C.jsx)("div",{className:"".concat(y().staff_referral_program_container," ").concat(y().end),children:(0,C.jsx)("img",{src:null!==(t=null===En||void 0===En||null===(a=En.staff_referral_program_reg_promo_page_end)||void 0===a?void 0:a[he])&&void 0!==t?t:""})}):(0,C.jsx)(C.Fragment,{})]})})}}()})}}()]})]}):(0,C.jsx)(D,{offerCampaignsGroup:w,onCampaignSelect:function(e){var n="",t=e.code;Me((0,u.extractCampaignInfoForPurchase)(e)),"android_tv"==e.viewing_platform?(nn("android_tv"),Je(!0)):"set_top_box"==e.viewing_platform||"smart_box"==e.viewing_platform?nn("stb"):nn(e.viewing_platform),(0,g.getObjectKeyOrNull)(e,"with_stb")&&He(!0);var a=(0,g.getStorage)("tk_purchase");(0,g.checkObjectKeyExist)(a,"randomPurchaseID")&&a.randomPurchaseID.endsWith("_newReg")?(n=a.randomPurchaseID,be((0,N.KW)({key:"purchase",data:V(V({},ve),{},{type:"campaign/purchase/new",ID:t})})),be((0,N.VF)([{event:"btnClick",resID:"buy",type:"campaign/purchase/new/listing",ID:t,redirect:ve?ve.redirect:"",randomPurchaseID:n}]))):(n=(0,u.generateRandomPurchaseId)(null,"_subscribe"),be((0,N.KW)({key:"purchase",data:V(V({},ve),{},{type:"campaign/purchase/new",ID:t,randomPurchaseID:n})})),be((0,N.VF)([{event:"btnClick",resID:"buy",type:"campaign/purchase/new/listing",ID:t,redirect:ve?ve.redirect:"",randomPurchaseID:n},{event:"subscriptionFlow",resID:"Start",type:"subscribe",ID:t,randomPurchaseID:n}]))),we("new_subscription"),be((0,k.Uy)({webview:!0})),be((0,k.Uy)({nav_overlay_on_main:!1})),window.scrollTo(0,0),pe.push("new-subscription",void 0,{shallow:!0})},trackingObj:ve,androidTVOnly:Nn,isHorseRacingTips:ae})})]})}},82226:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/subscribe/[[...type]]",function(){return t(72631)}])}},function(e){e.O(0,[9774,296,6702,6090,2334,261,8756,6500,241,180,2241,9538,6407,4743,2248,2725,7556,150,2888,179],(function(){return n=82226,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.