PageSourceSearch

https://fitshaker.sk/_next/static/chunks/pages/subscription/donwgrade-subscription-95de8a9726c1fb7d.js

js fitshaker.sk collected 2026-09-24 10:22:53 UTC 12,102 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4900],{14465:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/subscription/donwgrade-subscription",function(){return e(19117)}])},49690:function(n,t,e){"use strict";e.d(t,{Z:function(){return Image_Image}});var i=e(24043),o=e(85893),r=e(67294),a=e(94589),c=e(64871),l=e(82729),u=e(38044);function _templateObject(){var n=(0,l._)(["\n			min-width: 100%;\n			height: 100%;\n			min-height: 100%;\n		"]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,l._)(["\n		display: block;\n		position: relative;\n		width: 100%;\n		object-fit: ",";\n		object-position: ",";\n\n		","\n	"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,l._)(["\n	","\n"]);return _templateObject2=function(){return n},n}function _templateObject3(){var n=(0,l._)(["\n		position: absolute;\n		opacity: 0.15;\n		width: ",'; /* NOTE: workaround: "width: auto" doesn\'t work for print devices, 100% is ok if only SVGs will be used */\n		min-width: ',";\n		max-width: 110px;\n		height: ",";\n		min-height: ",";\n		max-height: 110px;\n		aspect-ratio: 1;\n\n		> svg {\n			width: 100%;\n			height: 100%;\n\n			> * {\n				stroke: ",";\n			}\n		}\n	"]);return _templateObject3=function(){return n},n}function _templateObject4(){var n=(0,l._)(["\n	","\n"]);return _templateObject4=function(){return n},n}function _templateObject5(){var n=(0,l._)(["\n		display: inline-flex;\n		position: absolute;\n		align-items: center;\n		justify-content: center;\n		width: ",";\n		min-width: ",";\n		max-width: 50px;\n		height: ",";\n		min-height: ",";\n		max-height: 50px;\n		animation: "," ","s infinite linear;\n\n		> svg {\n			width: 100%;\n			height: 100%;\n\n			* {\n				fill: "," !important;\n				stroke-width: 0;\n			}\n		}\n	"]);return _templateObject5=function(){return n},n}function _templateObject6(){var n=(0,l._)(["\n	","\n"]);return _templateObject6=function(){return n},n}function _templateObject7(){var n=(0,l._)(["\n				align-items: flex-start;\n				justify-content: flex-start;\n				aspect-ratio: initial;\n				transition: none;\n			"]);return _templateObject7=function(){return n},n}function _templateObject8(){var n=(0,l._)(["\n				align-items: center;\n				justify-content: ",";\n				aspect-ratio: ",";\n				transition: background-color 200ms ease-in-out;\n			"]);return _templateObject8=function(){return n},n}function _templateObject9(){var n=(0,l._)(["\n					animation: "," ","s infinite;\n				"]);return _templateObject9=function(){return n},n}function _templateObject10(){var n=(0,l._)(["\n					animation: none;\n				"]);return _templateObject10=function(){return n},n}function _templateObject11(){var n=(0,l._)(["\n		display: inline-flex;\n		position: relative; /* NOTE: position must be relative */\n		flex-shrink: 0;\n		","\n		background-color: ",";\n		width: 100%; /* NOTE: should set in extended styled-component */\n		overflow: hidden;\n\n		","\n\n		"," {\n			transition: ",";\n			opacity: ",";\n		}\n	"]);return _templateObject11=function(){return n},n}function _templateObject12(){var n=(0,l._)(["\n	","\n"]);return _templateObject12=function(){return n},n}var s="20px",fitNoneStyle=function(n,t,e){var i=n.$fit,o=n.$isLoading,r=n.$isError;return i!==c.gN.NONE||o||r?e:t},d=a.ZP.img.withConfig({componentId:"sc-44004ded-0"})(_templateObject2(),function(n){var t=n.$fit;return(0,a.iv)(_templateObject1(),fitNoneStyle({$fit:t},c.gN.FILL,t),fitNoneStyle({$fit:t},"0 0","center"),t!==c.gN.NONE&&(0,a.iv)(_templateObject()))}),p=a.ZP.div.withConfig({componentId:"sc-44004ded-1"})(_templateObject4(),function(n){var t=n.$aspectRatio,e=n.$iconColor;return(0,a.iv)(_templateObject3(),t>=1?"100%":"70%",s,t>=1?"70%":"auto",s,e)}),f=a.ZP.div.withConfig({componentId:"sc-44004ded-2"})(_templateObject6(),function(n){var t=n.$aspectRatio,e=n.$iconColor,i=n.$speed;return(0,a.iv)(_templateObject5(),t>=1?"auto":"70%",s,t<1?"auto":"70%",s,u.PE,i,e)}),v=a.ZP.div.withConfig({componentId:"sc-44004ded-3"})(_templateObject12(),function(n){var t=n.$aspectRatio,e=n.$fit,i=n.$isLoading,o=n.$isError,r=n.$color,c=n.$centerIcon,l=n.$loader,s=n.$speed,p=n.$loadingAnimation,f=n.$displayAnimation;
1return(0,a.iv)(_templateObject11(),fitNoneStyle({$fit:e,$isLoading:i,$isError:o},(0,a.iv)(_templateObject7()),(0,a.iv)(_templateObject8(),!c&&(i||o)?"flex-start":"center",t)),!l&&(i||o)?r:"transparent",!l&&p&&i?(0,a.iv)(_templateObject9(),u.UP,1.8*s):(0,a.iv)(_templateObject10()),d,f?"opacity 300ms ease-in-out":"none",i||o?0:1)}),m=e(48886),_=e(70379),Image_Image=function(n){var t,e=(0,a.Fg)(),l=n.src,u=n.alt,s=n.title,b=n.aspectRatio,h=void 0===b?1:b,j=n.fit,g=void 0===j?c.gN.FILL:j,O=n.loading,x=void 0===O?c.br.LAZY:O,y=n.onLoad,$=n.onError,w=n.onClick,N=n.onEnterPress,E=n.errorIcon,I=void 0===E?(0,o.jsx)(m.Z,{}):E,C=n.color,R=void 0===C?e["color-true-gray-100"]:C,D=n.iconColor,S=void 0===D?e["color-true-gray-500"]:D,k=n.centerIcon,T=n.loader,P=void 0!==T&&T,A=n.speed,L=void 0===A?1:A,U=n.loadingAnimation,Z=n.displayAnimation,G=n.animation,W=n.className,z=n.style,M=(0,r.useRef)(null),B=(0,i._)((0,r.useState)(!(null===(t=M.current)||void 0===t?void 0:t.complete)),2),F=B[0],q=B[1],Y=(0,i._)((0,r.useState)(!l),2),H=Y[0],K=Y[1];return(0,r.useEffect)(function(){var n;q(!(null===(n=M.current)||void 0===n?void 0:n.complete)),K(!l)},[l]),(0,o.jsxs)(v,{$aspectRatio:h,$fit:g,$isLoading:F,$isError:H,$color:R,$centerIcon:void 0===k||k,$loader:P,$speed:L,$loadingAnimation:void 0===G?void 0===U||U:G,$displayAnimation:void 0===G?void 0===Z||Z:G,tabIndex:N?0:-1,onKeyDown:N?function(n){"Enter"===n.key&&N&&N(n)}:void 0,className:W,style:z,children:[F&&P?(0,o.jsx)(f,{$aspectRatio:h,$iconColor:S,$speed:L,children:(0,o.jsx)(_.Z,{})}):H&&(0,o.jsx)(p,{$aspectRatio:h,$iconColor:S,children:I}),(0,o.jsx)(d,{ref:M,src:null!=l?l:void 0,alt:null!=u?u:void 0,title:s,$fit:g,onLoad:function(n){q(!1),K(!1),y&&y(n)},onError:function(n){q(!1),K(!0),$&&$(n)},onClick:w,loading:x})]})}},20336:function(n,t,e){"use strict";e.d(t,{Z:function(){return Tooltip_Tooltip}});var i=e(85893),o=e(94055),r=e(64871),a=e(82729),c=e(94589),l=e(58654);function _templateObject(){var n=(0,a._)(["\n					.ant-tooltip-inner {\n						border: "," solid ",";\n						background-color: ",";\n						color: ",";\n					}\n				"]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,a._)(["\n					.ant-tooltip-inner {\n						background-color: ",";\n						color: ",";\n					}\n				"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,a._)(["\n		display: flex;\n		align-items: center;\n		width: ",";\n		line-height: 0;\n\n		.ant-tooltip {\n			.ant-tooltip-arrow {\n				&::before {\n					background-color: ",";\n				}\n			}\n\n			.ant-tooltip-content {\n				.ant-tooltip-inner {\n					border-radius: ",";\n					box-shadow: ",";\n					padding: "," ",";\n					",";\n				}\n\n				","\n\n				","\n			}\n		}\n	"]);return _templateObject2=function(){return n},n}function _templateObject3(){var n=(0,a._)(["\n	","\n"]);return _templateObject3=function(){return n},n}var u=c.ZP.div.withConfig({componentId:"sc-da823f39-0"})(_templateObject3(),function(n){var t=n.theme,e=n.currentTheme,i=n.fullWidth;return(0,c.iv)(_templateObject2(),i?"100%":"fit-content",e===r.C6.DARK?t["color-base-surface-secondary"]:t["color-base-surface-primary"],t.borderRadius[8],t["drop-shadow-md"],t.spacing[8],t.spacing[12],l.uL,e===r.C6.LIGHT&&(0,c.iv)(_templateObject(),t.borderWidth.xs,t["color-base-surface-primary"],t["color-base-surface-primary"],t["color-base-content-secondary"]),e===r.C6.DARK&&(0,c.iv)(_templateObject1(),t["color-base-surface-secondary"],t["color-inverse-content-secondary"]))}),s=e(50945),Tooltip_Tooltip=function(n){var t=n.className,e=n.fullWidth,a=n.children,c=n.getPopupContainer,l=n.mouseEnterDelay,d=n.isOpen,p=n.placement,f=n.title,v=n.trigger,m=void 0===v?r.Ve.HOVER:v,_=n.zIndex,b=void 0===_?r.kg.TOOLTIP:_;return(0,i.jsx)(u,{className:t,currentTheme:s.q.name,fullWidth:void 0!==e&&e,children:(0,i.jsx)(o.default,{getPopupContainer:void 0===c?function(n){return null==n?void 0:n.parentNode}:c,mouseEnterDelay:l,open:d,placement:void 0===p?"top":p,title:f,trigger:m,zIndex:b,children:a})})}},19117:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSG:function(){return R},default:function(){return D}});var i=e(72253),o=e(14932),r=e(85893),a=e(47254),c=e(1980),l=e(67294),u=e(27484),s=e.n(u),d=e(13311),p=e.n(d),f=e(14416),v=e(11163),m=e(37303),_=e(73863),b=e(64871),h=e(28841),j=e(51698),g=e(70653),O=e(55672),x=e(67117),y=e(96962),$=e(36454),w=e(38161),N=e(79421),E=e.n(N),I=e(83011),DowngradeSubscription_DowngradeSubscription=function(n){var t,e,i=n.priceList,o=(0,m.$G)().t,a=(0,f.I0)(),c=(0,v.useRouter)(),u=(0,x.XG)(),d=u.startLoading,N=u.finishLoading,C=(0,f.v9)(function(n){var t;return null===(t=n.user)||void 0===t?void 0:t.profile}),R=(0,f.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}
1),D=null==c?void 0:null===(t=c.query)||void 0===t?void 0:t.tier,S=(0,g.XZ)(D),k=(0,g.uF)(null==R?void 0:R.currency),T=p()(i,function(n){return(null==n?void 0:n.currency)===(null==k?void 0:k.code)}),P=null==D?void 0:D.toLowerCase(),A=(null==T?void 0:null===(e=T[P])||void 0===e?void 0:e[(null==R?void 0:R.type)===b.I$.RECURRING_QUARTER?"quarter":(null==R?void 0:R.type)===b.I$.RECURRING_YEAR?"year":"month"])||0,L=(0,g._9)(A,null==k?void 0:k.countryCode,null==k?void 0:k.code),U=(0,g.ok)(null==R?void 0:R.type),Z=U.period,G=U.periodGenitive;return(0,y.y)({event:h.kM.BEGIN_CHECKOUT,ecommerce:{currency:k.code,value:A,coupon:void 0,items:[{item_id:(0,O.UA)(h.$5.SUBSCRIPTION_DOWNGRADE),item_name:(0,O.O9)(h.$5.SUBSCRIPTION_DOWNGRADE),affiliation:void 0,coupon:void 0,discount:void 0,index:0,item_brand:void 0,item_category:(0,O.O9)(j.$1.SUBSCRIPTION.DOWNGRADE),item_list_id:(0,O.UA)(j.$1.SUBSCRIPTION.DOWNGRADE),item_list_name:(0,O.O9)(j.$1.SUBSCRIPTION.DOWNGRADE),item_variant:"".concat(b.V$.DOWNGRADE," - ").concat(D," - ").concat(null==R?void 0:R.type),location_id:void 0,price:A,quantity:1}]}},h.H_.ECOMMERCE),(0,l.useEffect)(function(){(0,g.DE)(R,C)||c.push(o("paths:profileMembership|path"))},[a]),(0,r.jsxs)(w.yK,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},children:[(0,r.jsxs)($.Uq,{children:[(0,r.jsx)(w.__,{$noMargin:!0,children:o("Zmena členstva")}),(0,r.jsx)($.Br,{variant:b.HU.INFO,icon:(0,r.jsx)(I.sz,{}),content:o("Zmena členstva sa prejav\xed po term\xedne najbližšej {{period}} platby",{period:G})})]}),(0,r.jsx)(w.iz,{}),(0,r.jsxs)($.Uq,{children:[(0,r.jsx)(w.__,{$noMargin:!0,children:o("Rekapitul\xe1cia")}),(0,r.jsxs)($.rm,{children:[(0,r.jsxs)($.wD,{children:[(0,r.jsx)($.y8,{children:o("D\xe1tum zmeny členstva")}),(0,r.jsx)($.y8,{children:s()(null==R?void 0:R.cancelSubscriptionActiveTo).format("D.M.YYYY")})]}),(0,r.jsxs)($.wD,{children:[(0,r.jsx)($.y8,{children:o("V\xfdška platieb za {{tier}}",{tier:S})}),(0,r.jsx)($.y8,{children:"".concat(L," / ").concat(Z)})]})]})]}),(0,r.jsx)(w.iz,{}),(0,r.jsxs)(w.kE,{children:[(0,r.jsx)(w.Mm,{type:b.JB.BUTTON,label:o("Prejsť na {{tier}}",{tier:S}),onClick:function(){d(),a((0,_._r)({tier:D},function(){c.push(o("paths:subscriptionDowngradeSuccessful|path")),N()},function(){c.push(o("paths:subscriptionDowngradeFailed|path")),N()}))},size:b.NO.XL,$hasMargin:!0,fullWidth:!0}
1),(0,r.jsx)(w.M9,{children:(0,r.jsx)(w.fv,{children:o("Platby s\xfa šifrovan\xe9 a zabezpečen\xe9")})}),(0,r.jsx)(w.k2,{src:E(),alt:"Finby logo",fit:b.gN.CONTAIN})]})]})},C=e(39897),DowngradeSubscriptionPage=function(n){var t;return(0,r.jsx)(DowngradeSubscription_DowngradeSubscription,{priceList:null==n?void 0:null===(t=n.settingsData)||void 0===t?void 0:t.pricelist})};DowngradeSubscriptionPage.getLayout=function(n,t){return(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(C.Z,{shareTags:{}}),(0,r.jsx)(c.Z,(0,o._)((0,i._)({},t),{showCurrencySwitcher:!1,children:n}))]})};var R=!0,D=DowngradeSubscriptionPage}},function(n){n.O(0,[2655,1350,8618,8427,655,397,9774,2888,179],function(){return n(n.s=14465)}),_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.