1"use strict";(self.webpackChunkweb_frontend=self.webpackChunkweb_frontend||[]).push([[304],{17304:(e,t,i)=>{i.r(t),i.d(t,{ZeroModifySubscriptionContainer:()=>b});var n=i(44781),s=i(47313),o=i(45123),r=i(87993),a=i(84068),l=i(15837),d=i(85554),c=i(7985),p=i(22641),x=i(70816),h=i.n(x),m=i(81434),f=i(58467),g=i(7318),y=i(15823),u=i(94644),w=i(46417);function b(e){const t=(0,s.useContext)(c.Z),i=(0,d.I0)(),n=(0,f.s0)(),r=(0,d.v9)(u.dy),[x,b]=(0,s.useState)(void 0),[T,M]=(0,s.useState)(!1),[Z,I]=(0,s.useState)(void 0),[L,N]=(0,s.useState)(!1),[E,P]=(0,s.useState)(!1);(0,s.useEffect)((()=>{!async function(){try{const e=await p.y.getNexPaymentDueDateIfSubscriptionChanged();e&&b(e.data.dueDate)}catch(e){console.error("load zero info error",e)}}()}),[]);return(0,s.useEffect)((()=>{"YEARLY"===e.zeroInfo.subscriptionType?I("MONTHLY"):I("YEARLY")}),[e.zeroInfo.subscriptionType]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(o.Z,{children:(0,w.jsxs)(C,{children:[(0,w.jsx)(k,{children:"Biztosan m\xf3dos\xedtani szeretn\xe9d az el\u0151fizet\xe9sed?"}),(0,w.jsxs)("div",{className:"formContainer",style:{flexDirection:t.isMobileView?"MONTHLY"===e.zeroInfo.subscriptionType?"column-reverse":"column":"MONTHLY"===e.zeroInfo.subscriptionType?"row":"row-reverse"},children:[(0,w.jsx)(v,{paymentMethod:!1,active:"YEARLY"===e.zeroInfo.subscriptionType,onClick:()=>{I("YEARLY")},style:{marginRight:"10px"},children:(0,w.jsx)("div",{style:{display:"flex",width:"100%"},children:(0,w.jsxs)("div",{style:{flex:1},children:[(0,w.jsx)("span",{className:"details-text",children:"MONTHLY"===e.zeroInfo.subscriptionType?"Jelenlegi":"\xdaj"}),(0,w.jsx)("br",{}),(0,w.jsx)("span",{className:"package-type",children:(0,w.jsx)("b",{children:"Havi"})}),(0,w.jsx)("br",{}),(0,w.jsxs)("div",{style:{marginTop:"5px"},children:[(0,w.jsx)("b",{children:"499 Ft"})," / h\xf3nap"]})]})})}),(0,w.jsx)(v,{paymentMethod:!1,active:"MONTHLY"===e.zeroInfo.subscriptionType,onClick:()=>{I("MONTHLY")},children:(0,w.jsx)("div",{className:"flex-parent",children:(0,w.jsxs)("div",{style:{flex:1},children:[(0,w.jsx)("span",{className:"details-text",children:"YEARLY"===e.zeroInfo.subscriptionType?"Jelenlegi":"\xdaj"}),(0,w.jsx)("br",{}),(0,w.jsx)("span",{className:"package-type",children:(0,w.jsx)("b",{children:"\xc9ves"})}),(0,w.jsx)("br",{}),(0,w.jsxs)("div",{style:{marginTop:"5px"},children:[(0,w.jsx)("b",{children:"5489 Ft"})," / h\xf3nap"]})]})})})]}),(0,w.jsxs)("div",{style:{display:"flex",width:"100%"},children:[(0,w.jsx)("div",{style:{flex:t.isMobileView?2:4},children:(0,w.jsx)("span",{children:"K\xf6vetkez\u0151 fizet\xe9s esed\xe9kess\xe9ge:"})}),(0,w.jsx)("div",{style:{flex:1,marginLeft:"auto"},children:!!x&&(0,w.jsx)("span",{children:h()(x).format("YYYY.MM.DD")})})]}),(0,w.jsxs)(j,{children:[(0,w.jsx)(m.Z,{isChecked:T,onClick:()=>M(!T),id:"privacyPolicyAccept"}),(0,w.jsxs)("span",{children:["Elfogadom az"," ",(0,w.jsxs)("a",{href:"https://tv2play.hu/assets/ASZF/ASZF.html",target:"_blank",rel:"noreferrer",children:[" ","\xc1ltal\xe1nos szerz\u0151d\xe9si felt\xe9teleket"]})]})]}),(0,w.jsx)(z,{children:(0,w.jsx)(a.Z,{margin:"auto",coloredBackground:!0,dynamicWidth:!0,disabled:!T||L,smallFont:!!t.isMobileView||void 0,onClick:()=>{(()=>{N(!0);const t="YEARLY"===e.zeroInfo.subscriptionType?"MONTHLY":"YEARLY";i(l.Nw.sendOwnZeroEvent({type:"subscription_change_"+t,premium:!!r&&r.isPremium,provider:r?r.provider:"guest",adFree:!!r&&r.isZero})),gtag("event","zero_subscription",{event_category:"zero",event_label:"subscription_change_"+t,provider:r?r.provider:"guest",premium:!!r&&r.isPremium,adFree:!!r&&r.isZero}),async function(e){try{const t=await p.y.start(e);t&&t.data.success?"MONTHLY"===e&&h()(new Date).isBefore("2023-05-16")?(P(!0),setTimeout((()=>{window.location.href=t.data.redirectUrl}),1e4)):window.location.href=t.data.redirectUrl:console.error(t.data.errorMessage)}catch(t){console.error(t),n("/profil")}finally{N(!1)}}(t)})()},children:L?(0,w.jsx)(g.Z,{}):"El\u0151fizet\xe9s m\xf3dos\xedt\xe1sa"})}),(0,w.jsx)(z,{children:(0,w.jsx)(Y,{onClick:()=>{e.onCancelClicked()},children:"M\xe9gse"})})]})}),E&&(0,w.jsx)(y.Z,{})]})}const j=n.ZP.div.withConfig({componentId:"sc-1iy4tqf-0"})(["width:100%;margin:30px 0;display:flex;justify-content:flex-start;font-weight:400;font-size:16px;a{text-decoration:none;color:",";}"],(e=>e.theme.primaryTextColor)),v=n.ZP.div.withConfig({componentId:"sc-1iy4tqf-1"}
1)(["height:",";border:",";background-color:#1a1b38;border-radius:8px;border:",";padding:",";margin-bottom:30px;.package-type{color:",";}.details-text{font-size:10px;margin-bottom:5px;}@media screen and (max-width:","px){width:100%;margin-bottom:10px;}@media screen and (min-width:","px) and (max-width:","px){width:100%;margin-bottom:10px;}@media screen and (min-width:","px){flex:1;}"],(e=>e.paymentMethod?"78px":"108px"),(e=>e.active?"1px solid white":"none"),(e=>e.active?"1px solid white":"none"),(e=>e.paymentMethod?"6px":"10px 18px"),(e=>e.active?e.theme.primaryTextColor:"white"),r.J.small-1,r.J.small,r.J.medium-1,r.J.large),z=n.ZP.div.withConfig({componentId:"sc-1iy4tqf-2"})(["margin-left:auto;margin-right:auto;margin-bottom:0;width:100%;button{padding:10px;width:100%;}"]),Y=n.ZP.div.withConfig({componentId:"sc-1iy4tqf-3"})(["font-weight:500;font-size:18px;line-height:24px;margin-top:20px;text-align:center;cursor:pointer;color:#e3c455;"]),C=n.ZP.div.withConfig({componentId:"sc-1iy4tqf-4"})(["width:506px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:15px 30px 50px 30px;background:#333552;border-radius:10px;color:white;position:relative;@media screen and (max-width:767px){width:90%;padding:0px 25px 20px 25px;}.formContainer{display:flex;width:100%;margin-top:30px;align-items:stretch;}"]),k=n.ZP.h1.withConfig({componentId:"sc-1iy4tqf-5"})(["font-family:Quicksand;font-size:24px;font-style:normal;font-weight:700;line-height:30px;letter-spacing:0em;text-align:center;margin-bottom:25px;margin-top:30px;span{font-family:Montserrat;font-size:20px;font-style:normal;font-weight:500;line-height:24px;letter-spacing:0.05em;text-align:left;color:",";}"],(e=>e.theme.goldLight));n.ZP.span.withConfig({componentId:"sc-1iy4tqf-6"})(["font-family:Quicksand;font-style:normal;font-weight:300;font-size:16px;line-height:24px;text-align:center;margin-bottom:32px;"])}}]);
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.