1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3696],{65136:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/subscription/cancel-subscription",function(){return e(48876)}])},60280:function(n,t,e){"use strict";var r=e(85893),c=e(1469),i=e.n(c),a=e(35161),o=e.n(a),l=e(64871),u=e(38044),p=e(75165);t.Z=function(n){var t=n.alignItems,e=n.alwaysRounded,c=n.buttons,a=n.buttonsFullWidthOnMobile,s=void 0!==a&&a,m=n.className,f=n.variant,b=void 0===f?l.HU.INFO:f,d=n.content,_=n.icon,j=n.mobileBreakpoint,v=void 0===j?u.AV.sm:j,O=n.style,h=n.tabletBreakpoint,x=void 0===h?u.AV.md:h,g=n.title,w=i()(c)?c:[c];return(0,r.jsxs)(p.im,{$variant:b,$mobileBreakpoint:v,$alignItems:t,$alwaysRounded:void 0!==e&&e,className:m,style:O,children:[(0,r.jsxs)(p.Mv,{children:[_&&(0,r.jsx)(p.a1,{children:_}),(0,r.jsxs)(p.bI,{children:[g&&(0,r.jsx)(p.Dx,{children:g}),d?"string"==typeof d?(0,r.jsx)(p.OP,{dangerouslySetInnerHTML:{__html:d}}):(0,r.jsx)(p.OP,{children:d}):null]})]}),(0,r.jsx)(p.EK,{$mobileBreakpoint:v,$tabletBreakpoint:x,buttonsFullWidthOnMobile:s,children:c&&o()(w,function(n,t){return n&&(0,r.jsx)(p.Sn,{asHTML:(null==n?void 0:n.href)?l.vf.ANCHOR:l.vf.BUTTON,type:l.JB.BUTTON,variant:(null==n?void 0:n.variant)||l.RN.SECONDARY,label:n.text,href:null==n?void 0:n.href,target:(null==n?void 0:n.href)&&(null==n?void 0:n.target)?null==n?void 0:n.target:void 0,onClick:null==n?void 0:n.onClick,size:l.NO.MD,isLoading:null==n?void 0:n.isLoading,$mobileBreakpoint:v,buttonsFullWidthOnMobile:s},"info-box-button-".concat(t))})})]})}},75165:function(n,t,e){"use strict";e.d(t,{Dx:function(){return s},EK:function(){return b},Mv:function(){return l},OP:function(){return m},Sn:function(){return d},a1:function(){return u},bI:function(){return p},im:function(){return f}});var r=e(82729),c=e(94589),i=e(64871),a=e(32403),o=e(58654);function _templateObject(){var n=(0,r._)(["\n display: flex;\n flex-direction: row;\n gap: ",";\n align-items: center;\n width: 100%;\n "]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,r._)(["\n ","\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,r._)(["\n display: flex;\n position: relative;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n\n svg {\n width: 100%;\n height: 100%;\n\n path {\n stroke: ",";\n }\n }\n "]);return _templateObject2=function(){return n},n}function _templateObject3(){var n=(0,r._)(["\n ","\n"]);return _templateObject3=function(){return n},n}function _templateObject4(){var n=(0,r._)(["\n width: 100%;\n"]);return _templateObject4=function(){return n},n}function _templateObject5(){var n=(0,r._)(["\n margin: 0;\n ",";\n color: ",";\n "]);return _templateObject5=function(){return n},n}function _templateObject6(){var n=(0,r._)(["\n ","\n"]);return _templateObject6=function(){return n},n}function _templateObject7(){var n=(0,r._)(["\n margin: 0;\n ",";\n color: ",";\n\n a {\n text-decoration: underline;\n color: ",";\n }\n "]);return _templateObject7=function(){return n},n}function _templateObject8(){var n=(0,r._)(["\n ","\n"]);return _templateObject8=function(){return n},n}function _templateObject9(){var n=(0,r._)(["\n "," {\n flex-direction: column;\n align-items: start;\n\n @media (min-width: ","px) {\n flex-direction: row;
1\n align-items: ",";\n }\n }\n "]);return _templateObject9=function(){return n},n}function _templateObject10(){var n=(0,r._)(["\n background-color: ",";\n "]);return _templateObject10=function(){return n},n}function _templateObject11(){var n=(0,r._)(["\n background-color: ",";\n "]);return _templateObject11=function(){return n},n}function _templateObject12(){var n=(0,r._)(["\n background-color: ",";\n "]);return _templateObject12=function(){return n},n}function _templateObject13(){var n=(0,r._)(["\n background-color: ",";\n "]);return _templateObject13=function(){return n},n}function _templateObject14(){var n=(0,r._)(["\n background-color: ",";\n "]);return _templateObject14=function(){return n},n}function _templateObject15(){var n=(0,r._)(["\n background-color: ",";\n "]);return _templateObject15=function(){return n},n}function _templateObject16(){var n=(0,r._)(["\n background-color: ",";\n\n "," {\n svg {\n path {\n stroke: ",";\n }\n }\n }\n\n "," {\n color: ",";\n }\n\n "," {\n color: ",";\n }\n "]);return _templateObject16=function(){return n},n}function _templateObject17(){var n=(0,r._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n border-radius: ",";\n padding: ",";\n\n @media (min-width: ","px) {\n flex-direction: row;\n align-items: center;\n border-radius: ",";\n }\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n \n ","\n \n ","\n "]);return _templateObject17=function(){return n},n}function _templateObject18(){var n=(0,r._)(["\n ","\n"]);return _templateObject18=function(){return n},n}function _templateObject19(){var n=(0,r._)(["\n display: flex;\n flex-flow: "," wrap;\n gap: ",";\n\n &:empty {\n display: none;\n }\n\n @media (min-width: ","px) {\n flex-wrap: nowrap;\n }\n\n @media (min-width: ","px) {\n flex-direction: row;\n }\n "]);return _templateObject19=function(){return n},n}function _templateObject20(){var n=(0,r._)(["\n ","\n"]);return _templateObject20=function(){return n},n}function _templateObject21(){var n=(0,r._)(["\n flex-shrink: 0;\n width: ",";\n height: fit-content;\n\n @media (min-width: ","px) {\n width: fit-content;\n }\n "]);return _templateObject21=function(){return n},n}function _templateObject22(){var n=(0,r._)(["\n ","\n"]);return _templateObject22=function(){return n},n}var l=c.ZP.div.withConfig({componentId:"sc-ca7fb326-0"})(_templateObject1(),function(n){var t=n.theme;return(0,c.iv)(_templateObject(),t.spacing[16])}),u=c.ZP.div.withConfig({componentId:"sc-ca7fb326-1"})(_templateObject3(),function(n){var t=n.theme;return(0,c.iv)(_templateObject2(),t["color-base-content-secondary"])}),p=c.ZP.div.withConfig({componentId:"sc-ca7fb326-2"})(_templateObject4()),s=c.ZP.span.withConfig({componentId:"sc-ca7fb326-3"})(_templateObject6(),function(n){var t=n.theme;return(0,c.iv)(_templateObject5(),o.Bv,t["color-base-content-secondary"])}),m=c.ZP.div.withConfig({componentId:"sc-ca7fb326-4"})(_templateObject8(),function(n){var t=n.theme;return(0,c.iv)(_templateObject7(),o.lT,t["color-base-content-secondary"],t["color-base-content-secondary"])}),f=c.ZP.div.withConfig({componentId:"sc-ca7fb326-5"})(_templateObject18(),function(n){var t=n.theme,e=n.$variant,r=n.$mobileBreakpoint,a=n.$alignItems,o=void 0===a?i.xy.CENTER:a,p=n.$alwaysRounded;return(0,c.iv)(_templateObject17(),t.spacing[16],p?t.borderRadius[24]:0,t.spacing[16],r,t.borderRadius[24],!p&&(0,c.iv)(_templateObject9(),l,r,o),e&&(0,c.iv)(_templateObject10(),e),e===i.HU.SUCCESS&&(0,c.iv)(_templateObject11(),t["color-base-state-success-bg"]),e===i.HU.ERROR&&(0,c.iv)(_templateObject12(),t["color-base-state-error-bg"]),e===i.HU.WARNING&&(0,c.iv)(_templateObject13(),t["color-base-ascent-summer-bg"]),e===i.HU.HELP&&(0,c.iv)(_templateObject14(),t["color-base-state-help-bg"]),e===i.HU.INFO&&(0,c.iv)(_templateObject15(),t["color-base-surface-quaternary"]),e===i.HU.IMPORTANT&&(0,c.iv)(_templateObject16(),t["color-inverse-surface-primary"],u,t["color-inverse-content-secondary"],s,t["color-inverse-content-secondary"],m,t["color-inverse-content-secondary"]))}),b=c.ZP.div.withConfig({componentId:"sc-ca7fb326-6"}
1)(_templateObject20(),function(n){var t=n.theme,e=n.$mobileBreakpoint,r=n.$tabletBreakpoint,i=n.buttonsFullWidthOnMobile;return(0,c.iv)(_templateObject19(),i?"column":"row",t.spacing[8],e,r)}),d=(0,c.ZP)(a.Z).withConfig({componentId:"sc-ca7fb326-7"})(_templateObject22(),function(n){var t=n.$mobileBreakpoint,e=n.buttonsFullWidthOnMobile;return(0,c.iv)(_templateObject21(),e?"100%":"fit-content",t)})},48876:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSG:function(){return Y},default:function(){return G}});var r=e(72253),c=e(14932),i=e(85893),a=e(51698),o=e(50494),l=e(39897),u=e(47254),p=e(24043),s=e(67294),m=e(41664),f=e.n(m),b=e(27484),d=e.n(b),_=e(14416),j=e(11163),v=e(37303),O=e(73863),h=e(70653),x=e(64871),g=e(82729),w=e(94589),C=e(58654),k=e(38044),I=e(49690),y=e(63714),N=e(64136);function _templateObject(){var n=(0,g._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n align-items: center;\n margin-top: ",";\n margin-bottom: ",";\n\n > div {\n width: 100%;\n max-width: 464px;\n }\n "]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,g._)(["\n ","\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,g._)(["\n display: flex;\n align-items: start;\n padding: "," 0;\n width: 100%;\n "]);return _templateObject2=function(){return n},n}function _templateObject3(){var n=(0,g._)(["\n ","\n"]);return _templateObject3=function(){return n},n}function _templateObject4(){var n=(0,g._)(["\n aspect-ratio: 0;\n height: 16px;\n"]);return _templateObject4=function(){return n},n}function _templateObject5(){var n=(0,g._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n "]);return _templateObject5=function(){return n},n}function _templateObject6(){var n=(0,g._)(["\n ","\n"]);return _templateObject6=function(){return n},n}function _templateObject7(){var n=(0,g._)(["\n margin: 0;\n ",";\n white-space: break-spaces;\n color: ",";\n "]);return _templateObject7=function(){return n},n}function _templateObject8(){var n=(0,g._)(["\n ","\n"]);return _templateObject8=function(){return n},n}function _templateObject9(){var n=(0,g._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n margin: 0;\n padding: 0;\n "]);return _templateObject9=function(){return n},n}function _templateObject10(){var n=(0,g._)(["\n ","\n"]);return _templateObject10=function(){return n},n}function _templateObject11(){var n=(0,g._)(["\n display: inline-flex;\n gap: ",";\n align-items: center;\n\n svg {\n width: 16px;\n height: 16px;\n\n path {\n stroke: ",";\n }\n }\n\n span {\n ",";\n color: ",";\n }\n "]);return _templateObject11=function(){return n},n}function _templateObject12(){var n=(0,g._)(["\n ","\n"]);return _templateObject12=function(){return n},n}function _templateObject13(){var n=(0,g._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n border-radius: ",";\n background-color: ",";\n padding: ",";\n width: 100%;\n "]);return _templateObject13=function(){return n},n}function _templateObject14(){var n=(0,g._)(["\n ","\n"]);return _templateObject14=function(){return n},n}function _templateObject15(){var n=(0,g._)(["\n margin-bottom: ",";\n ",";\n color: ",";\n "]);return _templateObject15=function(){return n},n}function _templateObject16(){var n=(0,g._)(["\n ","\n"]);return _templateObject16=function(){return n},n}function _templateObject17(){var n=(0,g._)(["\n margin: 0;\n ",";\n color: ",";\n "]);return _templateObject17=function(){return n},n}function _templateObject18(){var n=(0,g._)(["\n ","\n"]);return _templateObject18=function(){return n},n}function _templateObject19(){var n=(0,g._)(["\n display: inline-flex;\n gap: ",";\n width: 100%;\n\n > :nth-child(2) {\n flex: 1;\n }\n "]);return _templateObject19=function(){return n},n}function _templateObject20(){var n=(0,g._)(["\n ","\n"]);return _templateObject20=function(){return n},n}function _templateObject21(){var n=(0,g._)(["\n .ant-modal-footer {\n flex-wrap: wrap;\n\n @media (min-width: ","px) {\n > :nth-child(1) {\n order: 2;\n }\n\n > :nth-child(2) {\n order: 1;\n }\n }\n }\n"]);
1return _templateObject21=function(){return n},n}function _templateObject22(){var n=(0,g._)(["\n margin: 0;\n ",";\n color: ",";\n "]);return _templateObject22=function(){return n},n}function _templateObject23(){var n=(0,g._)(["\n ","\n"]);return _templateObject23=function(){return n},n}var P=(0,w.ZP)(N.Z).withConfig({componentId:"sc-5c176828-0"})(_templateObject1(),function(n){var t=n.theme;return(0,w.iv)(_templateObject(),t.spacing[24],t.spacing[48],t.spacing[48])}),Z=w.ZP.div.withConfig({componentId:"sc-5c176828-1"})(_templateObject3(),function(n){var t=n.theme;return(0,w.iv)(_templateObject2(),t.spacing[12])}),S=(0,w.ZP)(I.Z).withConfig({componentId:"sc-5c176828-2"})(_templateObject4()),T=w.ZP.div.withConfig({componentId:"sc-5c176828-3"})(_templateObject6(),function(n){var t=n.theme;return(0,w.iv)(_templateObject5(),t.spacing[32])}),R=w.ZP.p.withConfig({componentId:"sc-5c176828-4"})(_templateObject8(),function(n){var t=n.theme;return(0,w.iv)(_templateObject7(),C.q6,t["color-base-content-secondary"])}),A=w.ZP.ul.withConfig({componentId:"sc-5c176828-5"})(_templateObject10(),function(n){var t=n.theme;return(0,w.iv)(_templateObject9(),t.spacing[8])}),E=w.ZP.li.withConfig({componentId:"sc-5c176828-6"})(_templateObject12(),function(n){var t=n.theme;return(0,w.iv)(_templateObject11(),t.spacing[16],t["color-base-ascent-orange-fg"],C.lT,t["color-base-content-secondary"])}),M=w.ZP.div.withConfig({componentId:"sc-5c176828-7"})(_templateObject14(),function(n){var t=n.theme;return(0,w.iv)(_templateObject13(),t.spacing[16],t.borderRadius[16],t["color-base-surface-summer"],t.spacing[24])}),B=w.ZP.span.withConfig({componentId:"sc-5c176828-8"})(_templateObject16(),function(n){var t=n.theme;return(0,w.iv)(_templateObject15(),t.spacing[4],C.pu,t["color-base-content-tertiary"])}),L=w.ZP.h2.withConfig({componentId:"sc-5c176828-9"})(_templateObject18(),function(n){var t=n.theme;return(0,w.iv)(_templateObject17(),C.lC,t["color-base-content-primary"])}),$=w.ZP.div.withConfig({componentId:"sc-5c176828-10"})(_templateObject20(),function(n){var t=n.theme;return(0,w.iv)(_templateObject19(),t.spacing[16])}),U=(0,w.ZP)(y.Z).withConfig({componentId:"sc-5c176828-11"})(_templateObject21(),k.AV.sm),H=w.ZP.p.withConfig({componentId:"sc-5c176828-12"})(_templateObject23(),function(n){var t=n.theme;return(0,w.iv)(_templateObject22(),C.lT,t["color-base-content-primary"])}),D=e(36454),F=e(90198),z=e(32403),V=e(34716),X=e.n(V),W=e(83011),CancelSubscription_CancelSubscription=function(){var n,t=(0,v.$G)().t,e=(0,_.I0)(),r=(0,j.useRouter)(),c=(0,_.v9)(function(n){var t,e;return null===(e=n.user)||void 0===e?void 0:null===(t=e.profile)||void 0===t?void 0:t.subscription}),o=(0,p._)((0,s.useState)(!1),2),l=o[0],u=o[1],m=d()(null==c?void 0:c.cancelSubscriptionActiveTo).format("D. M. YYYY"),b=[t("Viac ako 1 500 cviÄebn\xfdch vide\xed"),t("Å tatistiky cviÄenia a prehľadn\xfd kalend\xe1r"),t("Nov\xfd bonus na stiahnutie každ\xfd mesiac zadarmo")],g=[t("Pln\xfd obsah PREMIUM Älenstva"),t("Každ\xfd mesiac nov\xfd jed\xe1lniÄek na chudnutie s porciami na mieru"),t("Zodpovedanie ot\xe1zok o zdravej strave e-mailom")];(0,s.useEffect)(function(){(null==c?void 0:c.paymentType)!==x.V_.MANUAL&&(0,h.o0)(c)&&((null==c?void 0:c.state)===x.U2.ACTIVE||(null==c?void 0:c.state)===x.U2.DOWNGRADED)||r.push(t("paths:profileMembership|path"))},[]);var w=function(){switch(null==c?void 0:c.tier){case x.hX.PREMIUM:return{checkList:b,keepButtonLabel:t("PonechaÅ¥ Premium")};case x.hX.VIP:return{checkList:g,keepButtonLabel:t("PonechaÅ¥ VIP")};default:return{hideBanner:!0}}}();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(F.E,{}),(0,i.jsxs)(D.X2,{children:[(0,i.jsx)(D.HF,{children:(0,i.jsxs)(P,{children:[(0,i.jsx)(Z,{children:(0,i.jsx)(f(),{href:t("paths:calendar|path"),children:(0,i.jsx)(S,{src:(0,k.mm)(x.w$.BLACK),alt:"Fitshaker",fit:x.gN.CONTAIN})})}),(0,i.jsxs)(T,{children:[(0,i.jsx)(R,{children:t("Je n\xe1m ľuto že odch\xe1dzaÅ¡ Tvoje Älenstvo bude platn\xe9 do {{cancelSubscriptionActiveTo}} Potom pr\xeddeÅ¡ o pr\xedstup k vÅ¡etk\xfdm {{subscriptionTier}} funkci\xe1m",{cancelSubscriptionActiveTo:m,subscriptionTier:(0,h.XZ)(null==c?void 0:c.tier)})}),!(null==w?void 0:w.hideBanner)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A,{children:null==w?void 0:null===(n=w.checkList)||void 0===n?void 0:n.map(function(n,t){return(0,i.jsxs)(E,{children:[(0,i.jsx)(W.nQ,{}),(0,i.jsx)("span",{children:n})]},"item-".concat(t))})}),(0,i.jsxs)(M,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(B,{children:t("OstaÅ s nami")}),(0,i.jsx)(L,{children:t("Z\xedskaj 5-dÅov\xfd jed\xe1lniÄek ZADARMO")})]}),(0,i.jsx)(z.Z,{asHTML:x.vf.ANCHOR,href:a._I.CANCEL_SUBSCRIPTION_SMART_EMAILING,label:w.keepButtonLabel||"",size:x.NO.XL,fullWidth:!0})]})]}),(0,i.jsxs)($,{children:[(0,i.jsx)(z.Z,{asHTML:x.vf.ANCHOR,href:t("paths:profileMembership|path"),variant:x.RN.SECONDARY,label:t("Sp\xe4Å¥"),size:x.NO.XL}),(0,i.jsx)(z.Z,{label:t("ZruÅ¡iÅ¥ Älenstvo"),onClick:function(){return u(!0)},size:x.NO.XL})]})]})]})}),(0,i.jsx)(D.z$,{children:(0,i.jsx)(D.Xd,{src:X(),alt:t("Fitshaker ženy"),fit:x.gN.COVER})})]}),(0,i.jsx)(U,{isOpen:l,width:464,title:t("Naozaj chceÅ¡ zastaviÅ¥ opakuj\xface platby a stratiÅ¥ v\xfdhody?"),onCancel:function(){return u(!1)},footer:[(0,i.jsx)(z.Z,{variant:x.RN.DESTRUCTIVE,label:t("ZruÅ¡iÅ¥ opakuj\xface platby"),onClick:function(){e((0,O.X$)(null,function(){e((0,O.et)()),r.push(t("paths:subscriptionCancelSuccessful|path"))}))},fullWidthOnMobile:!0},"confirm-button"),(0,i.jsx)(z.Z,{variant:x.RN.SECONDARY,label:t("Sp\xe4Å¥"),onClick:function(){return u(!1)},fullWidthOnMobile:!0}
1,"cancel-button")],children:(0,i.jsx)(H,{children:t("V pr\xedpade ukonÄenia Älenstva, bude tvoje Älenstvo naÄalej platn\xe9 až do {{cancelSubscriptionActiveTo}}",{cancelSubscriptionActiveTo:m})})})]})},CancelSubscriptionPage=function(n){return(0,i.jsx)(CancelSubscription_CancelSubscription,(0,r._)({},n))};CancelSubscriptionPage.getLayout=function(n,t){return(0,i.jsxs)(u.Z,{children:[(0,i.jsx)(l.Z,{shareTags:{}}),(0,i.jsx)(o.Z,(0,c._)((0,r._)({},t),{pageID:a.$1.SUBSCRIPTION.CANCEL,children:n}))]})};var Y=!0,G=CancelSubscriptionPage},34716:function(n){n.exports="/_next/static/images/fitshaker-sitting-women-2911d3b957c397249675721f0d079912.png"}},function(n){n.O(0,[2655,7048,6845,8427,8672,7980,35,494,397,9774,2888,179],function(){return n(n.s=65136)}),_N_E=n.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.