PageSourceSearch

https://fitshaker.sk/_next/static/chunks/pages/programs-5c284ced32c7fc14.js

js fitshaker.sk collected 2026-10-01 13:06:20 UTC 70,985 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6274,392],{57406:function(e,n,t){var r=t(71811),i=t(10928),o=t(40292),a=t(40327),l=Object.prototype.hasOwnProperty;e.exports=function(e,n){n=r(n,e);var t=-1,c=n.length;if(!c)return!0;for(;++t<c;){var u=a(n[t]);if("__proto__"===u&&!l.call(e,"__proto__")||("constructor"===u||"prototype"===u)&&t<c-1)return!1}var s=o(e,n);return null==s||delete s[a(i(n))]}},40292:function(e,n,t){var r=t(97786),i=t(14259);e.exports=function(e,n){return n.length<2?e:r(e,i(n,0,-1))}},10928:function(e){e.exports=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0}},439:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/programs",function(){return t(97625)}])},39897:function(e,n,t){"use strict";var r=t(85893),i=t(67294),o=t(9008),a=t.n(o),l=t(27361),c=t.n(l),u=t(64721),s=t.n(u),d=t(35161),p=t.n(d),m=t(79833),f=t.n(m),v=t(11163),g=t(37303),_=t(96583),h=t(64871),b=t(3766),x=t.n(b),capitalizeFirstLetter=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""};n.Z=function(e){var n,t=e.shareTags,o=e.canonicalTags,l=void 0===o?null:o,u=(0,g.$G)(),d=u.i18n,m=u.t,b=(0,v.useRouter)(),j=b.locale,O=b.asPath,seoImage=function(){var e=["",void 0,null];return s()(e,null==t?void 0:t["og:image"])&&s()(e,null==t?void 0:t.ogImage)&&s()(e,null==t?void 0:t.image)?x():(null==t?void 0:t["og:image"])||(null==t?void 0:t.ogImage)||(null==t?void 0:t.image)},y=j===h.RH.SK.CODE?"https://fitshaker.sk":"https://fitshaker.cz",C="".concat(y).concat(O),P=(null==t?void 0:t["og:type"])||(null==t?void 0:t.ogType)||(null==t?void 0:t.type)||"website";return(0,r.jsxs)(a(),{children:[null===l?(0,r.jsx)("link",{rel:"canonical",href:(null==t?void 0:t.url)||(null==t?void 0:t["og:url"])||C}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:(null==l?void 0:l.main)||C}),c()(l,"prev")&&(0,r.jsx)("link",{rel:"prev",href:c()(l,"prev")}),c()(l,"next")&&(0,r.jsx)("link",{rel:"next",href:c()(l,"next")})]}),(0,r.jsx)("title",{children:capitalizeFirstLetter(c()(t,"title","Fitshaker"))}),(0,r.jsx)("meta",{name:"title",content:capitalizeFirstLetter(c()(t,"title","Fitshaker"))}),(0,r.jsx)("meta",{name:"description",content:capitalizeFirstLetter(c()(t,"description",m("default-header-description")))}),(0,r.jsx)("meta",{name:"keywords",content:c()(t,"keywords",m("default-header-keywords"))}),(0,r.jsx)("meta",{property:"fb:app_id",content:_.xb.FB_API}),(0,r.jsx)("meta",{property:"og:site_name",content:(null==t?void 0:t["og:site_name"])||(null==t?void 0:t.ogSiteName)||"Fitshaker"}),(0,r.jsx)("meta",{property:"og:title",content:capitalizeFirstLetter((null==t?void 0:t.ogTitle)||(null==t?void 0:t.title)||"Fitshaker")}),(0,r.jsx)("meta",{property:"og:description",content:capitalizeFirstLetter((null==t?void 0:t["og:description"])||(null==t?void 0:t.ogDescription)||(null==t?void 0:t.description)||"")}),(0,r.jsx)("meta",{property:"og:image",content:seoImage()}),(0,r.jsx)("meta",{property:"og:image:alt",content:(null==t?void 0:t["og:image:alt"])||(null==t?void 0:t.ogImageAlt)||(null==t?void 0:t.imageAlt)||"fitshaker.".concat(d.language)}),(0,r.jsx)("meta",{property:"og:locale",content:(null==t?void 0:t["og:locale"])||(null==t?void 0:t.ogLocale)||("cz"===d.language?"cz-CZ":"sk_SK")}),(0,r.jsx)("meta",{property:"og:type",content:P}),"website"===P&&(0,r.jsx)("meta",{property:"og:url",content:(null==t?void 0:t.ogUrl)||(null==t?void 0:t["og:url"])||C||"https://fitshaker.".concat(d.language,"/")}),(!!(null==t?void 0:t["og:secured_image"])||!!(null==t?void 0:t.ogSecuredImage))&&(0,r.jsx)("meta",{property:"og:secured_image",content:(null==t?void 0:t["og:secured_image"])||(null==t?void 0:t.ogSecuredImage)}),(!!(null==t?void 0:t["og:updated_time"])||!!(null==t?void 0:t.ogUpdatedTime))&&(0,r.jsx)("meta",{property:"og:updated_time",content:(null==t?void 0:t["og:updated_time"])||(null==t?void 0:t.ogUpdatedTime)}),(!!(null==t?void 0:t["og:article_publisher"])||!!(null==t?void 0:t.ogArticlePublisher))&&(0,r.jsx)("meta",{property:"og:article_publisher",content:(null==t?void 0:t["og:article_publisher"])||(null==t?void 0:t.ogArticlePublisher)}),(0,r.jsx)("meta",{property:"twitter:url",content:(null==t?void 0:t["og:url"])||"https://fitshaker.".concat(d.language,"/")}),(0,r.jsx)("meta",{property:"twitter:title",content:capitalizeFirstLetter((null==t?void 0:t.ogTitle)||(null==t?void 0:t.t
1itle)||"Fitshaker")}),(0,r.jsx)("meta",{property:"twitter:description",content:capitalizeFirstLetter((null==t?void 0:t["og:description"])||(null==t?void 0:t.description)||"")}),(0,r.jsx)("meta",{property:"twitter:image",content:seoImage()}),!!(null==t?void 0:t.articlePublishedTime)&&(0,r.jsx)("meta",{property:"article:published_time",content:t.articlePublishedTime}),!!(null==t?void 0:t.articleModifiedTime)&&(0,r.jsx)("meta",{property:"article:modified_time",content:t.articleModifiedTime}),!!(null==t?void 0:t.articleSection)&&(0,r.jsx)("meta",{property:"article:section",content:t.articleSection}),!!(null==t?void 0:t.articleTags)&&(0,r.jsx)("meta",{property:"article:tags",content:f()(t.articleTags)}),p()(null==t?void 0:null===(n=t.article)||void 0===n?void 0:n.authors,function(e,n){return(0,r.jsxs)(i.Fragment,{children:[!!e.firstName&&(0,r.jsx)("meta",{property:"profile:first_name",content:e.firstName}),!!e.lastName&&(0,r.jsx)("meta",{property:"profile:last_name",content:e.lastName})]},"author_".concat(n))})]})}},58237:function(e,n,t){"use strict";var r=t(85893);n.Z=function(e){return(0,r.jsx)("div",{style:{position:"relative"},children:null==e?void 0:e.children})}},48311:function(e,n,t){"use strict";t.d(n,{Z:function(){return BannerUpsellProducts_BannerUpsellProducts}});var r=t(85893),i=t(37303),o=t(14416),a=t(16318),l=t(93345),c=t(64871),u=t(70653),s=t(58654),d=t(82729),p=t(94589),m=t(38044),f=t(59603),v=t(83428),g=t(49690);function _templateObject(){var e=(0,d._)(["\n					position: relative;\n					padding: "," 0;\n					width: 100%;\n\n					&::before {\n						position: absolute;\n						top: 0;\n						bottom: 0;\n						left: 50%;\n						margin-left: -50vw;\n						background-color: ",";\n						width: 100vw;\n						content: '';\n					}\n\n					> * {\n						position: relative;\n					}\n\n					@media (min-width: ","px) {\n						padding: "," 0;\n					}\n				"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,d._)(["\n					margin: 0 -",";\n					background-color: ",";\n					padding: ",";\n\n					@media (min-width: ","px) {\n						margin: 0 auto;\n						border-bottom-left-radius: ",";\n						border-bottom-right-radius: ",";\n						padding: ",";\n						width: 100%;\n					}\n\n					@media (min-width: ","px) {\n						padding: "," ",";\n					}\n				"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,d._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		","\n	"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,d._)(["\n	","\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,d._)(["\n		display: flex;\n		gap: ",";\n		align-items: center;\n		justify-content: space-between;\n	"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,d._)(["\n	","\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,d._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,d._)(["\n	","\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){var e=(0,d._)(["\n							& > * {\n								max-width: 400px;\n							}\n						"]);return _templateObject8=function(){return e},e}function _templateObject9(){var e=(0,d._)(["\n					@media (min-width: ","px) {\n						grid-template-columns: repeat(",", minmax(0, 1fr));\n						gap: ",";\n						justify-items: ",";\n\n						","\n					}\n				"]);return _templateObject9=function(){return e},e}function _templateObject10(){var e=(0,d._)(["\n					@media (min-width: ","px) {\n						grid-template-columns: repeat(",", minmax(0, 1fr));\n						gap: ",";\n					}\n				"]);return _templateObject10=function(){return e},e}function _templateObject11(){var e=(0,d._)(["\n		display: grid;\n		grid-template-columns: 1fr;\n		gap: ",";\n\n		","\n	"]);return _templateObject11=function(){return e},e}function _templateObject12(){var e=(0,d._)(["\n	","\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){var e=(0,d._)(["\n		display: flex;\n		gap: ",";\n		align-items: center;\n		transition: background-color 200ms ease-in-out;\n		border-radius: ",";\n		padding: ",";\n		width: 100%;\n\n		&:hover,\n		&:focus-visible {\n			background-color: rgba(",", 0.5);\n		}\n	"]);
1return _templateObject13=function(){return e},e}function _templateObject14(){var e=(0,d._)(["\n	","\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){var e=(0,d._)(["\n		flex-shrink: 0;\n		border-radius: ",";\n		background-color: ",";\n		width: 96px;\n\n		@media (min-width: ","px) {\n			width: 120px;\n		}\n	"]);return _templateObject15=function(){return e},e}function _templateObject16(){var e=(0,d._)(["\n	","\n"]);return _templateObject16=function(){return e},e}function _templateObject17(){var e=(0,d._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		min-width: 0;\n	"]);return _templateObject17=function(){return e},e}function _templateObject18(){var e=(0,d._)(["\n	","\n"]);return _templateObject18=function(){return e},e}function _templateObject19(){var e=(0,d._)(["\n		display: -webkit-box;\n		overflow: hidden;\n		",";\n		-webkit-line-clamp: 3;\n		-webkit-box-orient: vertical;\n		color: ",";\n	"]);return _templateObject19=function(){return e},e}function _templateObject20(){var e=(0,d._)(["\n	","\n"]);return _templateObject20=function(){return e},e}function _templateObject21(){var e=(0,d._)(["\n		flex-shrink: 0;\n\n		&:hover ",", &:focus-visible "," {\n			transform: translateX(",") scale(1.12);\n		}\n\n		"," {\n			transition: transform 200ms ease-in-out;\n		}\n	"]);return _templateObject21=function(){return e},e}function _templateObject22(){var e=(0,d._)(["\n	","\n"]);return _templateObject22=function(){return e},e}function _templateObject23(){var e=(0,d._)(["\n	display: grid;\n	grid-template-rows: ",";\n	transition: grid-template-rows 300ms ease-in-out;\n	overflow: hidden;\n\n	> div {\n		min-height: 0;\n	}\n"]);return _templateObject23=function(){return e},e}function _templateObject24(){var e=(0,d._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		border: 1px dashed ",";\n		border-radius: ",";\n		background-color: ",";\n		padding: ",";\n		width: 100%;\n		max-width: 336px;\n	"]);return _templateObject24=function(){return e},e}function _templateObject25(){var e=(0,d._)(["\n	","\n"]);return _templateObject25=function(){return e},e}function _templateObject26(){var e=(0,d._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return _templateObject26=function(){return e},e}function _templateObject27(){var e=(0,d._)(["\n	","\n"]);return _templateObject27=function(){return e},e}function _templateObject28(){var e=(0,d._)(["\n		display: flex;\n		gap: ",";\n		align-items: center;\n	"]);return _templateObject28=function(){return e},e}function _templateObject29(){var e=(0,d._)(["\n	","\n"]);return _templateObject29=function(){return e},e}function _templateObject30(){var e=(0,d._)(["\n	",";\n	word-break: break-all;\n"]);return _templateObject30=function(){return e},e}function _templateObject31(){var e=(0,d._)(["\n		display: inline-flex;\n		flex-shrink: 0;\n		align-items: center;\n		justify-content: center;\n		transition: background-color 200ms ease-in-out;\n		border: none;\n		border-radius: ",";\n		background-color: transparent;\n		cursor: pointer;\n		padding: ",";\n		width: 2rem;\n		height: 2rem;\n\n		&:hover {\n			background-color: ",";\n		}\n\n		&:focus-visible {\n			box-shadow: ",";\n			outline: none;\n		}\n	"]);return _templateObject31=function(){return e},e}function _templateObject32(){var e=(0,d._)(["\n	","\n"]);return _templateObject32=function(){return e},e}var _=p.ZP.div.withConfig({componentId:"sc-5a308776-0"})(_templateObject3(),function(e){var n=e.theme,t=e.$fullBleed,r=e.$backgroundColor;return(0,p.iv)(_templateObject2(),n.spacing[16],t?(0,p.iv)(_templateObject(),n.spacing[16],r,m.AV.md,n.spacing[24]):(0,p.iv)(_templateObject1(),n.spacing[16],r,n.spacing[16],m.AV.sm,n.borderRadius[24],n.borderRadius[24],n.spacing[24],m.AV.md,n.spacing[24],n.spacing[32]))}),h=p.ZP.div.withConfig({componentId:"sc-5a308776-1"})(_templateObject5(),function(e){var n=e.theme;return(0,p.iv)(_templateObject4(),n.spacing[16])}),b=p.ZP.h3.withConfig({componentId:"sc-5a308776-2"})(_templateObject7(),function(e){var n=e.theme;return(0,p.iv)(_templateObject6(),s.gY,n["color-base-content-primary"])}),x=p.ZP.div.withConfig({componentId:"sc-5a308776-3"}
1)(_templateObject12(),function(e){var n=e.theme,t=e.$productCount;return(0,p.iv)(_templateObject11(),n.spacing[16],t<3?(0,p.iv)(_templateObject9(),m.AV.sm,t,n.spacing[24],1===t?"center":"stretch",1===t&&(0,p.iv)(_templateObject8())):(0,p.iv)(_templateObject10(),m.AV.lg,3,n.spacing[24]))}),j=p.ZP.a.withConfig({componentId:"sc-5a308776-4"})(_templateObject14(),function(e){var n=e.theme;return(0,p.iv)(_templateObject13(),n.spacing[16],n.borderRadius[16],n.spacing[8],(0,m.co)("#FFFFFF"))}),O=(0,p.ZP)(g.Z).withConfig({componentId:"sc-5a308776-5"})(_templateObject16(),function(e){var n=e.theme;return(0,p.iv)(_templateObject15(),n.borderRadius[16],n["color-base-surface-secondary"],m.AV.md)}),y=p.ZP.div.withConfig({componentId:"sc-5a308776-6"})(_templateObject18(),function(e){var n=e.theme;return(0,p.iv)(_templateObject17(),n.spacing[4])}),C=p.ZP.span.withConfig({componentId:"sc-5a308776-7"})(_templateObject20(),function(e){var n=e.theme;return(0,p.iv)(_templateObject19(),s.pu,n["color-base-content-primary"])}),P=(0,p.ZP)(v.Z).withConfig({componentId:"sc-5a308776-8"})(_templateObject22(),function(e){var n=e.theme;return(0,p.iv)(_templateObject21(),f.xP,f.xP,n.spacing[4],f.xP)}),w=p.ZP.div.withConfig({componentId:"sc-5a308776-9"})(_templateObject23(),function(e){return e.$isVisible?"1fr":"0fr"}),S=p.ZP.div.withConfig({componentId:"sc-5a308776-10"})(_templateObject25(),function(e){var n=e.theme,t=e.$borderColor;return(0,p.iv)(_templateObject24(),n.spacing[4],t||n["color-base-content-tertiary"],n.borderRadius[8],n["color-base-surface-primary"],n.spacing[8])}),k=p.ZP.p.withConfig({componentId:"sc-5a308776-11"})(_templateObject27(),function(e){var n=e.theme;return(0,p.iv)(_templateObject26(),s.Gf,n["color-base-content-primary"])}),I=p.ZP.div.withConfig({componentId:"sc-5a308776-12"})(_templateObject29(),function(e){var n=e.theme;return(0,p.iv)(_templateObject28(),n.spacing[4])}),Z=p.ZP.span.withConfig({componentId:"sc-5a308776-13"})(_templateObject30(),s.Cp),A=p.ZP.button.withConfig({componentId:"sc-5a308776-14"})(_templateObject32(),function(e){var n=e.theme;return(0,p.iv)(_templateObject31(),n.borderRadius[8],n.spacing[4],n["color-base-action-primary-bg10"],n["ring-primary-xs"])}),R=t(83011),E=t(50945),BannerUpsellProducts_BannerUpsellProducts=function(e){var n,t=e.upsellProducts,d=e.primaryColor,p=e.secondaryColor,m=void 0===p?E.q.theme["color-base-surface-violet"]:p,f=e.fullBleed,v=(0,i.$G)().t,g=(0,o.v9)(function(e){var n,t,r;return null===(r=e.user)||void 0===r?void 0:null===(t=r.challenges)||void 0===t?void 0:null===(n=t.currentChallenge)||void 0===n?void 0:n.data}),N=null==g?void 0:null===(n=g.eshopCoupon)||void 0===n?void 0:n.code,M=(0,u.Kd)()===c.MV.CZ?l.Z.eshopUrlCz:l.Z.eshopUrlSk,T=(null==g?void 0:g.id)?"".concat(M,"/obchod?challengeId=").concat(g.id):void 0,L=t.slice(0,3);return(0,r.jsxs)(_,{$fullBleed:f,$backgroundColor:m,children:[(0,r.jsxs)(h,{children:[(0,r.jsx)(b,{children:v("Produkty ktor\xe9 podporia tvoju snahu a v\xfdsledky")}),T&&(0,r.jsx)(P,{asHTML:c.vf.ANCHOR,href:T,target:c.hI.BLANK,rel:"noreferrer",iconAfter:(0,r.jsx)(R.LZ,{}),typography:s.kk,children:v("Zobraziť všetky")})]}),(0,r.jsx)(w,{$isVisible:!!N,children:(0,r.jsx)("div",{children:N&&(0,r.jsxs)(S,{$borderColor:d,children:[(0,r.jsx)(k,{children:v("Objednaj dnes s 10 % zľavou! plat\xed len do polnoci")}),(0,r.jsxs)(I,{children:[(0,r.jsxs)(Z,{children:[v("V koš\xedku zadaj k\xf3d"),": ",N]}),(0,r.jsx)(A,{type:"button",onClick:function(){N&&navigator.clipboard.writeText(N).then(function(){a.ZP.success({icon:(0,r.jsx)(R.gI,{}),message:v("K\xf3d bol skop\xedrovan\xfd")})})},"aria-label":v("Skop\xedrovať k\xf3d"),children:(0,r.jsx)(R.TI,{})})]})]})})}),(0,r.jsx)(x,{$productCount:L.length,children:L.map(function(e){return(0,r.jsxs)(j,{href:"".concat(M,"/").concat(e.slug),target:c.hI.BLANK,rel:"noreferrer",children:[(0,r.jsx)(O,{src:e.image,alt:e.name,fit:c.gN.COVER}),(0,r.jsx)(y,{children:(0,r.jsx)(C,{children:e.name})})]},e.id)})})]})}},49903:function(e,n,t){"use strict";t.d(n,{Z:function(){return ChallengeBanner_ChallengeBanner}});var r=t(85893),i=t(14416),o=t(37303),a=t(64871),l=t(82729),c=t(94589),u=t(58654),s=t(38044),d=t(32403),p=t(49690);
1function _templateObject(){var e=(0,l._)(["\n	display: flex;\n	flex-direction: column;\n	width: 100%;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,l._)(["\n				border-bottom-right-radius: 0;\n				border-bottom-left-radius: 0;\n			"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,l._)(["\n		display: flex;\n		margin: 0 -",";\n		background-color: ",";\n		overflow: hidden;\n\n		@media (min-width: ","px) {\n			margin: 0 auto;\n			border-radius: ",";\n			width: 100%;\n\n			","\n		}\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n		}\n	"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,l._)(["\n	","\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,l._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		padding: ",";\n		width: 100%;\n\n		@media (min-width: ","px) {\n			gap: ",";\n			padding: ",";\n		}\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			gap: ",";\n			align-items: center;\n			padding: "," ",";\n		}\n\n		@media (min-width: ","px) {\n			gap: ",";\n			padding: ",";\n		}\n	"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,l._)(["\n	","\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,l._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		align-items: flex-start;\n\n		@media (min-width: ","px) {\n			gap: ",";\n			align-items: center;\n		}\n\n		@media (min-width: ","px) {\n			gap: ",";\n			align-items: flex-start;\n		}\n	"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,l._)(["\n	","\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){var e=(0,l._)(["\n		display: inline-flex;\n		gap: ",";\n		align-items: center;\n		justify-content: center;\n\n		@media (min-width: ","px) {\n			gap: 0;\n			justify-content: flex-start;\n		}\n	"]);return _templateObject8=function(){return e},e}function _templateObject9(){var e=(0,l._)(["\n	","\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){var e=(0,l._)(["\n	display: none;\n\n	@media (min-width: ","px) {\n		display: block;\n		width: 240px;\n	}\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){var e=(0,l._)(["\n	display: none;\n\n	@media (min-width: ","px) {\n		display: block;\n		width: 120px;\n		height: 120px;\n	}\n\n	@media (min-width: ","px) {\n		width: 172px;\n		height: 172px;\n	}\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){var e=(0,l._)(["\n	width: 80px;\n	height: 80px;\n\n	@media (min-width: ","px) {\n		width: 94px;\n		height: 94px;\n	}\n\n	@media (min-width: ","px) {\n		display: none;\n	}\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){var e=(0,l._)(["\n		margin: 0;\n		",";\n		color: ",";\n\n		@media (min-width: ","px) {\n			",";\n			color: ",";\n		}\n	"]);return _templateObject13=function(){return e},e}function _templateObject14(){var e=(0,l._)(["\n	","\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){var e=(0,l._)(["\n	width: 100%;\n\n	@media (min-width: ","px) {\n		align-self: center;\n		width: fit-content;\n	}\n\n	@media (min-width: ","px) {\n		margin-left: auto;\n	}\n"]);return _templateObject15=function(){return e},e}var m=c.ZP.div.withConfig({componentId:"sc-a5845ef4-0"})(_templateObject()),f=c.ZP.div.withConfig({componentId:"sc-a5845ef4-1"})(_templateObject3(),function(e){var n=e.theme,t=e.backgroundColor,r=e.$hasUpsellProducts;return(0,c.iv)(_templateObject2(),n.spacing[16],t,s.AV.sm,n.borderRadius[24],r&&(0,c.iv)(_templateObject1()),s.AV.xl)}),v=c.ZP.div.withConfig({componentId:"sc-a5845ef4-2"})(_templateObject5(),function(e){var n=e.theme;return(0,c.iv)(_templateObject4(),n.spacing[16],n.spacing[16],s.AV.sm,n.spacing[24],n.spacing[24],s.AV.md,n.spacing[32],n.spacing[40],n.spacing[32],s.AV.xl,n.spacing[40],n.spacing[40])}),g=c.ZP.div.withConfig({componentId:"sc-a5845ef4-3"}
1)(_templateObject7(),function(e){var n=e.theme;return(0,c.iv)(_templateObject6(),n.spacing[16],s.AV.sm,n.spacing[24],s.AV.md,n.spacing[12])}),_=c.ZP.div.withConfig({componentId:"sc-a5845ef4-4"})(_templateObject9(),function(e){var n=e.theme;return(0,c.iv)(_templateObject8(),n.spacing[16],s.AV.md)}),h=(0,c.ZP)(p.Z).withConfig({componentId:"sc-a5845ef4-5"})(_templateObject10(),s.AV.xl),b=(0,c.ZP)(p.Z).withConfig({componentId:"sc-a5845ef4-6"})(_templateObject11(),s.AV.md,s.AV.xl),x=(0,c.ZP)(p.Z).withConfig({componentId:"sc-a5845ef4-7"})(_templateObject12(),s.AV.sm,s.AV.md),j=c.ZP.h2.withConfig({componentId:"sc-a5845ef4-8"})(_templateObject14(),function(e){var n=e.theme;return(0,c.iv)(_templateObject13(),u.lC,n["color-base-content-primary"],s.AV.xl,u.ui,n["color-base-content-primary"])}),O=(0,c.ZP)(d.Z).withConfig({componentId:"sc-a5845ef4-9"})(_templateObject15(),s.AV.sm,s.AV.md),y=t(50945),C=t(48311),P=t(81021),ChallengeBanner_ChallengeBanner=function(e){var n=e.primaryColor,t=void 0===n?y.q.theme["color-base-surface-violet"]:n,l=e.secondaryColor,c=e.challengeTitle,u=e.challengeBadgeLogo,s=e.challengeLargeBannerImage,d=e.countdownDate,p=e.ctaButton,w=e.countdownTitle,S=e.upsellProducts,k=(0,o.$G)().t,I=(0,i.v9)(function(e){var n,t,r;return null===(r=e.user)||void 0===r?void 0:null===(t=r.challenges)||void 0===t?void 0:null===(n=t.currentChallenge)||void 0===n?void 0:n.data}),Z=(null==I?void 0:I.alreadyLoggedIn)&&!!(null==S?void 0:S.length);return(0,r.jsxs)(m,{children:[(0,r.jsxs)(f,{backgroundColor:t,$hasUpsellProducts:Z,children:[s&&(0,r.jsx)(h,{src:s,alt:k("{{challengeTitle}} large banner image",{challengeTitle:c}),fit:a.gN.COVER}),(0,r.jsxs)(v,{children:[(0,r.jsx)(b,{src:u,alt:k("{{challengeTitle}} banner",{challengeTitle:c})}),(0,r.jsxs)(g,{children:[(0,r.jsxs)(_,{children:[(0,r.jsx)(x,{src:u,alt:k("{{challengeTitle}} banner",{challengeTitle:c})}),(0,r.jsx)(j,{children:c})]}),d&&(0,r.jsx)(P.Z,{date:d,label:w,size:a.NO.XS,timerOrientation:a.eh.HORIZONTAL,timerBackgroundColor:l})]}),p&&(0,r.jsx)(O,{variant:a.RN.PRIMARY,label:p.label,onClick:p.action,size:a.NO.LG})]})]}),Z&&S&&(0,r.jsx)(C.Z,{upsellProducts:S,primaryColor:t,secondaryColor:l})]})}},89448:function(e,n,t){"use strict";t.d(n,{Z:function(){return FinishNonCompetitiveChallengeModal_FinishNonCompetitiveChallengeModal}});
1var r,i,o,a,l=t(11010),c=t(97582),u=t(85893),s=t(37303),d=t(14416),p=t(67294),m=(i=(r=t(83920).Z).deepEqual,o=r.empty,a=r.getIn,function(e,n){return function(t){for(var r=(n||function(e){return a(e,"form")})(t),l=arguments.length,c=Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];if(c&&c.length)return c.every(function(n){return i(a(r,e+".initial."+n),a(r,e+".values."+n))});var s=a(r,e+".initial")||o,d=a(r,e+".values")||s;return i(s,d)}}),f=t(72772),v=t(27484),g=t.n(v),_=t(63105),h=t.n(_),b=t(91175),x=t.n(b),j=t(11163),O=t(63714),y=t(32403),C=t(64871),P=t(72351),w=t(32562),S=t(73863),k=t(78400),FinishNonCompetitiveChallengeModal_FinishNonCompetitiveChallengeModal=function(e){var n,t=e.isOpen,r=e.onCancel,i=e.currentChallenge,o=e.isHomePage,a=e.isDetailPage,v=e.isProgramsPage,_=(0,s.$G)().t,b=(0,d.I0)(),I=(0,j.useRouter)(),Z=(0,d.v9)(function(e){return m(C.n5.CHALLENGE_NON_COMPETITIVE_END_END)(e)}),A=(0,d.v9)(function(e){return x()(h()(null==e?void 0:e.calendar.items,function(e){return e.selected}))}),R=(0,d.v9)(function(e){var n;return null==e?void 0:null===(n=e.calendar)||void 0===n?void 0:n.calendarView});(0,p.useEffect)(function(){t&&b((0,f.j2)(C.n5.CHALLENGE_NON_COMPETITIVE_END_END,{}))},[t]);var E=(n=(0,l._)(function(e){var n;return(0,c.Jh)(this,function(t){switch(t.label){case 0:return n={answersAfter:(0,w.B)(null==i?void 0:i.questions,e)},[4,b((0,S.s2)(null==i?void 0:i.id,n))];case 1:return t.sent(),[4,b((0,S.IM)(null==i?void 0:i.id))];case 2:return t.sent(),[4,b((0,S.fU)(null==i?void 0:i.id,void 0,void 0,void 0,!1))];case 3:if(t.sent(),!o)return[3,8];return[4,b((0,S.MY)())];case 4:return t.sent(),[4,b((0,S.et)())];case 5:return t.sent(),[4,b((0,k.eJ)(R===C.XN.WEEKLY?{activeDay:g()(null==A?void 0:A.timestamp).valueOf().toString()}:{year:g()(null==A?void 0:A.timestamp).year(),month:g()(null==A?void 0:A.timestamp).month()+1}))];case 6:return t.sent(),[4,b((0,k.J0)(null==A?void 0:A.timestamp))];case 7:t.sent(),t.label=8;case 8:if(!a)return[3,11];return[4,b((0,S._z)({limit:C.dJ,page:1}))];case 9:return t.sent(),[4,b((0,S.MY)())];case 10:t.sent(),I.reload(),t.label=11;case 11:if(!v)return[3,13];return[4,b((0,S.MY)())];case 12:t.sent(),I.reload(),t.label=13;case 13:return r(),[2]}})}),function(e){return n.apply(this,arguments)});return(0,u.jsx)(O.Z,{isOpen:t,onCancel:function(){return r()},title:_("Ukončiť v\xfdzvu"),width:700,footer:(0,u.jsx)(y.Z,{label:_("Odoslať"),disabled:Z,onClick:function(){return b((0,f.Ps)(C.n5.CHALLENGE_NON_COMPETITIVE_END_END))},size:C.NO.LG}),children:(0,u.jsx)(P.u,{onSubmit:E,questions:null==i?void 0:i.questions,primaryColor:null==i?void 0:i.primaryColor,secondaryColor:null==i?void 0:i.secondaryColor})})}},5210:function(e,n,t){"use strict";t.d(n,{Z:function(){return LoadingSpinner_LoadingSpinner}});var r=t(85893),i=t(82729),o=t(94589),a=t(89552);function _templateObject(){var e=(0,i._)(["\n	position: absolute;\n	top: 50%;\n	left: 50%;\n	transform: translate(-50%, -50%);\n"]);return _templateObject=function(){return e},e}var l=(0,o.ZP)(a.Z).withConfig({componentId:"sc-313e084-0"})(_templateObject()),c=t(90573),LoadingSpinner_LoadingSpinner=function(){return(0,r.jsx)(l,{indicator:(0,r.jsx)(c.Z,{})})}},70392:function(e,n,t){"use strict";t.d(n,{Z:function(){return UpsellBanners_UpsellBanners}});var r=t(11010),i=t(97582),o=t(85893),a=t(27484),l=t.n(a),c=t(13311),u=t.n(c),s=t(35161),d=t.n(s),p=t(11163),m=t(37303),f=t(14841),v=t.n(f),g=t(93345),_=t(64871),h=t(70653),b=t(82729),x=t(94589),j=t(58654),O=t(38044),y=t(32403),C=t(51614),P=t(49690);function _templateObject(){var e=(0,b._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,b._)(["\n	","\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,b._)(["\n		display: flex;\n		position: relative;\n		flex-direction: column;\n		gap: ",";\n		border-radius: ",";\n		background-color: ",";\n		cursor: pointer;\n		padding: ",";\n		width: 100%;\n		overflow: hidden;\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			gap: 0;\n			border-radius: ",";\n			background-color: ",";\n			padding: 0;\n			min-height: 128px;\n		}\n	"]);
1return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,b._)(["\n	","\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,b._)(["\n		border-radius: ",";\n		min-width: 150px;\n\n		@media (min-width: ","px) {\n			flex: 0 0 20%;\n			border-radius: 0;\n		}\n	"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,b._)(["\n	","\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,b._)(["\n		display: flex;\n		flex: 1;\n		flex-direction: column;\n		gap: ",";\n		justify-content: space-between;\n		border-radius: ",";\n		background-color: ",";\n		padding: ",";\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			border-radius: 0;\n			background-color: transparent;\n			padding: 0;\n		}\n	"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,b._)(["\n	","\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){var e=(0,b._)(["\n		display: flex;\n		flex-direction: column;\n\n		@media (min-width: ","px) {\n			gap: ",";\n			background-color: transparent;\n			padding: ",";\n		}\n	"]);return _templateObject8=function(){return e},e}function _templateObject9(){var e=(0,b._)(["\n	","\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){var e=(0,b._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return _templateObject10=function(){return e},e}function _templateObject11(){var e=(0,b._)(["\n	","\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){var e=(0,b._)(["\n		display: none;\n\n		p {\n			display: -webkit-box;\n			margin-bottom: 0;\n			overflow: hidden;\n			",";\n			text-overflow: ellipsis;\n			-webkit-line-clamp: 4;\n			-webkit-box-orient: vertical;\n			color: ",";\n		}\n\n		b,\n		strong {\n			",";\n			color: ",";\n		}\n\n		@media (min-width: ","px) {\n			display: block;\n		}\n	"]);return _templateObject12=function(){return e},e}function _templateObject13(){var e=(0,b._)(["\n	","\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){var e=(0,b._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			gap: 0;\n			align-items: center;\n			justify-content: center;\n			padding: ",";\n		}\n	"]);return _templateObject14=function(){return e},e}function _templateObject15(){var e=(0,b._)(["\n	","\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){var e=(0,b._)(["\n	display: flex;\n	flex-direction: row;\n	align-items: center;\n	justify-content: space-between;\n\n	@media (min-width: ","px) {\n		flex-direction: column;\n		gap: 0;\n		justify-content: center;\n	}\n"]);return _templateObject16=function(){return e},e}function _templateObject17(){var e=(0,b._)(["\n		display: flex;\n		flex-direction: row;\n		gap: ",";\n		align-items: center;\n\n		@media (min-width: ","px) {\n			flex-direction: column;\n			gap: 0;\n			align-items: center;\n		}\n	"]);return _templateObject17=function(){return e},e}function _templateObject18(){var e=(0,b._)(["\n	","\n"]);return _templateObject18=function(){return e},e}function _templateObject19(){var e=(0,b._)(["\n		order: 1 ",";\n		color: ",";\n\n		@media (min-width: ","px) {\n			order: 2;\n		}\n	"]);return _templateObject19=function(){return e},e}function _templateObject20(){var e=(0,b._)(["\n	","\n"]);return _templateObject20=function(){return e},e}function _templateObject21(){var e=(0,b._)(["\n		order: 2;\n		",";\n		text-decoration: line-through;\n		color: ",";\n\n		@media (min-width: ","px) {\n			order: 1;\n		}\n	"]);return _templateObject21=function(){return e},e}function _templateObject22(){var e=(0,b._)(["\n	","\n"]);return _templateObject22=function(){return e},e}function _templateObject23(){var e=(0,b._)(["\n		display: none;\n\n		@media (min-width: ","px) {\n			display: flex;\n			margin-top: ",";\n		}\n	"]);return _templateObject23=function(){return e},e}function _templateObject24(){var e=(0,b._)(["\n	","\n"]);return _templateObject24=function(){return e},e}
1function _templateObject25(){var e=(0,b._)(["\n	display: flex;\n\n	@media (min-width: ","px) {\n		display: none;\n	}\n"]);return _templateObject25=function(){return e},e}var w=x.ZP.div.withConfig({componentId:"sc-bbd3c4da-0"})(_templateObject1(),function(e){var n=e.theme;return(0,x.iv)(_templateObject(),n.spacing[8])}),S=x.ZP.a.withConfig({componentId:"sc-bbd3c4da-1"})(_templateObject3(),function(e){var n=e.theme;return(0,x.iv)(_templateObject2(),n.spacing[4],n.borderRadius[24],n["color-base-surface-primary"],n.spacing[8],O.AV.sm,n.borderRadius[16],n["color-base-surface-secondary"])}),k=(0,x.ZP)(P.Z).withConfig({componentId:"sc-bbd3c4da-2"})(_templateObject5(),function(e){var n=e.theme;return(0,x.iv)(_templateObject4(),n.borderRadius[24],O.AV.sm)}),I=x.ZP.div.withConfig({componentId:"sc-bbd3c4da-3"})(_templateObject7(),function(e){var n=e.theme;return(0,x.iv)(_templateObject6(),n.spacing[16],n.borderRadius[16],n["color-base-surface-secondary"],n.spacing[16],O.AV.sm)}),Z=x.ZP.div.withConfig({componentId:"sc-bbd3c4da-4"})(_templateObject9(),function(e){var n=e.theme;return(0,x.iv)(_templateObject8(),O.AV.sm,n.spacing[8],n.spacing[16])}),A=x.ZP.h3.withConfig({componentId:"sc-bbd3c4da-5"})(_templateObject11(),function(e){var n=e.theme;return(0,x.iv)(_templateObject10(),j.gY,n["color-base-content-primary"])}),R=x.ZP.div.withConfig({componentId:"sc-bbd3c4da-6"})(_templateObject13(),function(e){var n=e.theme;return(0,x.iv)(_templateObject12(),j.lT,n["color-base-content-secondary"],j.Bv,n["color-base-content-secondary"],O.AV.md)}),E=x.ZP.div.withConfig({componentId:"sc-bbd3c4da-7"})(_templateObject15(),function(e){var n=e.theme;return(0,x.iv)(_templateObject14(),n.spacing[8],O.AV.sm,n.spacing[24])}),N=x.ZP.div.withConfig({componentId:"sc-bbd3c4da-8"})(_templateObject16(),O.AV.sm),M=x.ZP.div.withConfig({componentId:"sc-bbd3c4da-9"})(_templateObject18(),function(e){var n=e.theme;return(0,x.iv)(_templateObject17(),n.spacing[8],O.AV.sm)}),T=x.ZP.span.withConfig({componentId:"sc-bbd3c4da-10"})(_templateObject20(),function(e){var n=e.theme;return(0,x.iv)(_templateObject19(),j.zN,n["color-base-content-secondary"],O.AV.sm)}),L=x.ZP.span.withConfig({componentId:"sc-bbd3c4da-11"})(_templateObject22(),function(e){var n=e.theme;return(0,x.iv)(_templateObject21(),j.Gf,n["color-base-content-quaternary"],O.AV.sm)}),V=(0,x.ZP)(y.Z).withConfig({componentId:"sc-bbd3c4da-12"})(_templateObject24(),function(e){var n=e.theme;return(0,x.iv)(_templateObject23(),O.AV.sm,n.spacing[12])}),D=(0,x.ZP)(C.Z).withConfig({componentId:"sc-bbd3c4da-13"})(_templateObject25(),O.AV.sm);function ProductStateStyles_templateObject(){var e=(0,b._)(["\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		border-radius: ",";\n		padding: ",";\n		width: 20px;\n		height: 20px;\n\n		svg {\n			width: 16px;\n			height: 16px;\n		}\n	"]);return ProductStateStyles_templateObject=function(){return e},e}function ProductStateStyles_templateObject1(){var e=(0,b._)(["\n	","\n"]);return ProductStateStyles_templateObject1=function(){return e},e}function ProductStateStyles_templateObject2(){var e=(0,b._)(["\n	margin: 0;\n	",";\n	white-space: nowrap;\n"]);return ProductStateStyles_templateObject2=function(){return e},e}function ProductStateStyles_templateObject3(){var e=(0,b._)(["\n			"," {\n				background-color: ",";\n\n				svg {\n					path {\n						stroke: ",";\n					}\n				}\n			}\n\n			"," {\n				color: ",";\n			}\n		"]);return ProductStateStyles_templateObject3=function(){return e},e}function ProductStateStyles_templateObject4(){var e=(0,b._)(["\n			"," {\n				background-color: ",";\n\n				svg {\n					path {\n						stroke: ",";\n					}\n				}\n			}\n\n			"," {\n				color: ",";\n			}\n		"]);return ProductStateStyles_templateObject4=function(){return e},e}function ProductStateStyles_templateObject5(){var e=(0,b._)(["\n			"," {\n				background-color: ",";\n\n				svg {\n					path {\n						stroke: ",";\n					}\n				}\n			}\n\n			"," {\n				color: ",";\n			}\n		"]);return ProductStateStyles_templateObject5=function(){return e},e}function ProductStateStyles_templateObject6(){var e=(0,b._)(["\n		display: inline-flex;\n		gap: ",";\n		align-items: center;\n\n		","\n\n		","\n\n    ","\n	"]);
1return ProductStateStyles_templateObject6=function(){return e},e}function ProductStateStyles_templateObject7(){var e=(0,b._)(["\n	","\n"]);return ProductStateStyles_templateObject7=function(){return e},e}function ProductStateStyles_templateObject8(){var e=(0,b._)(["\n	transition: transform 200ms ease-in-out;\n\n	&:hover {\n		transform: scale(1.05);\n	}\n"]);return ProductStateStyles_templateObject8=function(){return e},e}var B=x.ZP.div.withConfig({componentId:"sc-636c9038-0"})(ProductStateStyles_templateObject1(),function(e){var n=e.theme;return(0,x.iv)(ProductStateStyles_templateObject(),n.borderRadius.circle,n.spacing[2])}),F=x.ZP.span.withConfig({componentId:"sc-636c9038-1"})(ProductStateStyles_templateObject2(),j.pu),z=x.ZP.div.withConfig({componentId:"sc-636c9038-2"})(ProductStateStyles_templateObject7(),function(e){var n=e.theme,t=e.state;return(0,x.iv)(ProductStateStyles_templateObject6(),n.spacing[8],t===_.B_.IN_STOCK&&(0,x.iv)(ProductStateStyles_templateObject3(),B,n["color-base-state-success-bg"],n["color-base-state-success-fg"],F,n["color-base-state-success-fg"]),t===_.B_.TO_ORDER&&(0,x.iv)(ProductStateStyles_templateObject4(),B,n["color-base-ascent-summer-bg"],n["color-base-state-warning-fg"],F,n["color-base-state-warning-fg"]),t===_.B_.OUT_OF_STOCK&&(0,x.iv)(ProductStateStyles_templateObject5(),B,n["color-base-state-error-bg"],n["color-base-state-error-fg"],F,n["color-base-state-error-fg"]))});(0,x.ZP)(C.Z).withConfig({componentId:"sc-636c9038-3"})(ProductStateStyles_templateObject8());var U=t(83011),components_ProductState_ProductState=function(e){var n=e.product,t=(0,m.$G)().t;switch(!0){case null==n?void 0:n.inStock:return(0,o.jsxs)(z,{state:_.B_.IN_STOCK,children:[(0,o.jsx)(B,{children:(0,o.jsx)(U.nQ,{})}),(0,o.jsx)(F,{children:t("Dostupn\xe9 skladom")})]});case!(null==n?void 0:n.inStock):return(null==n?void 0:n.backorderAllowed)&&v()(null==n?void 0:n.restockDate)>=l()().unix()?(0,o.jsxs)(z,{state:_.B_.TO_ORDER,children:[(0,o.jsx)(B,{children:(0,o.jsx)(U.zM,{})}),(0,o.jsx)(F,{children:t("Na objedn\xe1vku")})]}):(0,o.jsxs)(z,{state:_.B_.OUT_OF_STOCK,children:[(0,o.jsx)(B,{children:(0,o.jsx)(U.aM,{})}),(0,o.jsx)(F,{children:t("Nedostupn\xe9")})]});default:return null}},UpsellBanners_UpsellBanners=function(e){var n,t=e.products,a=void 0===t?[]:t,c=(0,m.$G)().t,s=(0,p.useRouter)(),f=(0,h.QZ)(),b=(0,h.Kd)()===_.MV.CZ?g.Z.eshopUrlCz:g.Z.eshopUrlSk,x=(n=(0,r._)(function(e,n){var t;return(0,i.Jh)(this,function(r){return e.preventDefault(),e.stopPropagation(),t="".concat(b,"/?add-to-cart=").concat(null==n?void 0:n.remoteID),window.open(t,"_blank"),[2]})}),function(e,t){return n.apply(this,arguments)}),subscriptionRedirect=function(e){e.preventDefault(),e.stopPropagation(),s.push(c("paths:donation|path"))},renderMobileButton=function(e){var n=!!u()(null==e?void 0:e.categories,["slug","clenstvo"]);switch(!0){case 0!==((null==e?void 0:e.variations)||[]).length:case 0!==((null==e?void 0:e.bundleProducts)||[]).length:return null;case n:return(0,o.jsx)(D,{type:_.JB.BUTTON,variant:_.RN.PRIMARY,ariaLabel:c("Darovať členstvo"),onClick:function(e){return subscriptionRedirect(e)},icon:(0,o.jsx)(U.Og,{}),size:_.NO.MD});case null==e?void 0:e.inStock:return(0,o.jsx)(D,{ariaLabel:c("Pridať do koš\xedka"),onClick:function(n){return x(n,e)},icon:(0,o.jsx)(U.w7,{}),size:_.NO.MD});case!(null==e?void 0:e.inStock):if(!(null==e?void 0:e.backorderAllowed)&&v()(null==e?void 0:e.restockDate)>=l()().unix())return(0,o.jsx)(D,{ariaLabel:c("Pridať do koš\xedka"),onClick:function(n){return x(n,e)},icon:(0,o.jsx)(U.w7,{}),size:_.NO.MD});return null;default:return null}},renderTabletButton=function(e){var n=!!u()(null==e?void 0:e.categories,["slug","clenstvo"]);switch(!0){case 0!==((null==e?void 0:e.variations)||[]).length:case 0!==((null==e?void 0:e.bundleProducts)||[]).length:return null;case n:return(0,o.jsx)(V,{type:_.JB.BUTTON,variant:_.RN.PRIMARY,label:c("Darovať"),onClick:function(e){return subscriptionRedirect(e)},icon:(0,o.jsx)(U.Og,{}),size:_.NO.LG});case null==e?void 0:e.inStock:return(0,o.jsx)(V,{label:c("Do koš\xedka"),onClick:function(n){return x(n,e)},icon:(0,o.jsx)(U.w7,{}),size:_.NO.LG});case!(null==e?void 0:e.inStock):if(!(null==e?void 0:e.backorderAllowed)&&v()(null==e?void 0:e.restockDate)>=l()().unix())return(0,o.jsx)(V,{label:c("Do koš\xedka"),onClick:function(n){return x(n,e)},icon:(0,o.jsx)(U.w7,{}),size:_.NO.LG});return null;default:return null}};return(0,o.jsx)(w,{children:d()(a,function(e){var n=u()(null==e?void 0:e.prices,["currency",null==f?void 0:f.code]);return(0,o.jsxs)(S,{href:"".concat(b,"/").concat(null==e?void 0:e.slug),children:[(0,o.jsx)(k,{src:null==e?void 0:e.image,alt:null==e?void 0:e.name,fit:_.gN.COVER}),(0,o.jsxs)(I,{children:[(0,o.jsxs)(Z,{children:[(0,o.jsx)(A,{children:(0,h.El)(null==e?void 0:e.name,70)}
1),(null==e?void 0:e.shortDescription)&&(0,o.jsx)(R,{dangerouslySetInnerHTML:{__html:e.shortDescription.replace(/<img[^>]*>/g,"")}})]}),(0,o.jsxs)(E,{children:[(0,o.jsxs)(N,{children:[(0,o.jsxs)(M,{children:[(0,o.jsx)(T,{children:(0,h.T4)((null==n?void 0:n.salePrice)||(null==n?void 0:n.price)||0,null==f?void 0:f.symbol)}),(null==n?void 0:n.salePrice)&&(null==n?void 0:n.regularPrice)&&(0,o.jsx)(L,{children:(0,h.T4)(null==n?void 0:n.regularPrice,null==f?void 0:f.symbol)})]}),renderMobileButton(e)]}),(0,o.jsx)(components_ProductState_ProductState,{product:e}),renderTabletButton(e)]})]})]},null==e?void 0:e.id)})})}},97625:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return eL},default:function(){return eV}});var r=t(72253),i=t(14932),o=t(85893),a=t(37303),l=t(51698),c=t(50494),u=t(58237),s=t(75766),d=t(24043),p=t(248),m=t(67294),f=t(72772),v=t(23279),g=t.n(v),_=t(64721),h=t.n(_),b=t(92742),x=t.n(b),j=t(14416),O=t(18357),y=t(11163),C=t(93345),P=t(4632),w=t(73863),S=t(99953),k=t(1884),I=t(28841),Z=t(64871),A=t(35470),R=t(70653),E=t(55672),N=t(25910),M=t(67117),T=t(96962),L=t(35651),V=t(32562),D=t(94891),B=t(49903),F=t(89448),z=t(11010),U=t(97582),$=t(89552),G=t(82729),q=t(94589),H=t(63714),K=t(58654),Y=t(38044);function _templateObject(){var e=(0,G._)(["\n		&.ant-modal {\n			width: unset !important;\n		}\n\n		.ant-modal-container {\n			max-width: calc(100vw - 40px);\n		}\n\n		.ant-modal-header {\n			margin: 0;\n			padding: 32px 32px 16px;\n		}\n\n		.ant-modal-body {\n			padding: 16px 32px !important;\n			",";\n			",";\n		}\n\n		.ant-modal-footer {\n			margin: 0;\n			padding: 16px 32px 32px;\n		}\n	"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,G._)(["\n	","\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,G._)(["\n	display: flex;\n	flex-direction: column;\n	gap: 24px;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,G._)(["\n		margin-bottom: 0;\n		color: ",";\n\n		strong {\n			font-weight: 500;\n		}\n\n		@media (min-width: ","px) {\n			max-width: 60%;\n		}\n	"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,G._)(["\n	",";\n	","\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,G._)(["\n	display: flex;\n	gap: 16px;\n	align-items: center;\n	justify-content: space-between;\n	width: 100%;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,G._)(["\n	flex-shrink: 0;\n	max-width: 30%;\n\n	@media (min-width: ","px) {\n		flex-basis: 0;\n		flex-grow: 1;\n		margin-left: auto;\n		max-width: 100px;\n	}\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,G._)(["\n	flex-basis: 70%;\n	flex-shrink: 0;\n\n	@media (min-width: ","px) {\n		flex-basis: 0;\n		flex-grow: 1;\n		margin-right: auto;\n		max-width: 300px;\n	}\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){var e=(0,G._)(["\n	display: flex;\n	align-items: center;\n	justify-content: center;\n	width: 100%;\n	height: 100%;\n"]);return _templateObject8=function(){return e},e}var J=(0,q.ZP)(H.Z).withConfig({componentId:"sc-7508d4d3-0"})(_templateObject1(),function(e){var n=e.theme,t=e.$isOpenProgramDetail;return(0,q.iv)(_templateObject(),t&&"background: ".concat(n["color-base-surface-secondary"],";"),t&&"border-radius: 0 0 24px 24px;")}),X=q.ZP.div.withConfig({componentId:"sc-7508d4d3-1"})(_templateObject2()),Q=q.ZP.p.withConfig({componentId:"sc-7508d4d3-2"})(_templateObject4(),K.lT,function(e){var n=e.theme;return(0,q.iv)(_templateObject3(),n["color-base-content-secondary"],Y.AV.lg)});q.ZP.div.withConfig({componentId:"sc-7508d4d3-3"})(_templateObject5()),q.ZP.div.withConfig({componentId:"sc-7508d4d3-4"})(_templateObject6(),Y.AV.md),q.ZP.div.withConfig({componentId:"sc-7508d4d3-5"})(_templateObject7(),Y.AV.md);var W=q.ZP.div.withConfig({componentId:"sc-7508d4d3-6"})(_templateObject8()),ee=t(21616),StartProgramModal_StartProgramModalContent=function(e){var n=e.onUnlock,t=e.onDetail,r=(0,a.$G)().t;return(0,o.jsxs)(X,{children:[(0,o.jsxs)(Q,{children:[r("S\xfačasťou tvojho Štart členstva je aj jeden program podľa tvojho v\xfdberu Vybrať program m\xf4žeš kedykoľvek, ale iba jeden kr\xe1t"),(0,o.jsxs)("strong",{children:[" ",r("Voľba je permanentn\xe1 Vyberaj preto uv\xe1žene")]})]}),(0,o.jsx)(ee.Z,{isStartProgramSearch:!0,onCardClick:function(){},startProgramActions:{onDetailButtonClick:function(e){t(e)},onUnlockButtonClick:function(e){n(e)}}})]})},en=t(80467),et=t(87432),er=t(79118),ei=t(90573),StartProgramModal_StartProgramModal=function(e){var n,t,r,i=e.isOpen,c=e.onCancel,u=(0,a.$G)().t,s=(0,j.I0)(),p=(0,d._)((0,m.useState)(null),2),f=p[0],v=p[1],g=(0,d._)((0,m.useState)(null),2),_=g[0],h=g[1],b=(0,d._)((0,m.useState)(!0),2),x=b[0],O=b[1],y=(n=(0,z._)(function(e){return(0,U.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,et.ZL)(l.bV.GET_PROGRAM(e),void 0)];case 1:return h(n.sent().data),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}})}),function(e){return n.apply(this,arguments)}),C=(t=(0,z._)(function(){var e;return(0,U.Jh)(this,function(n){switch(n.label){case 0:if(!f)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,et.qu)(l.bV.UNLOCK_PROGRAM((null==f?void 0:null===(e=f.data)||void 0===e?void 0:e.id)||0),void 0,void 0)];case 2:return n.sent(),c(),[3,4];case 3:return n.sent(),[3,4];case 4:return[2]}})}),function(){return t.apply(this,arguments)}),P=(r=(0,z._)(function(){return(0,U.Jh)(this,function(e){switch(e.label){case 0:return[4,s((0,S.CV)((0,D.q5)({startPrograms:!0})))];case 1:return e.sent(),O(!1),[2]}})}),function(){return r.apply(this,arguments)});return(0,m.useEffect)(function(){P()},[]),(0,o.jsxs)(J,{hasSmallTitle:!0,hideFooter:!0,isOpen:i,title:u("V\xfdber vlastn\xe9ho Štart programu"),onCancel:c,maskClosable:!1,destroyOnClose:!0,$isOpenProgramDetail:!!_,children:[x?(0,o.jsx)(W,{children:(0,o.jsx)($.Z,{indicator:(0,o.jsx)(ei.Z,{})})}):_?(0,o.jsx)(er.Z,{data:_,closeProgramDetail:function(){return h(null)}}):(0,o.jsx)(StartProgramModal_StartProgramModalContent,{onUnlock:function(e){v({data:e})},onDetail:y}),(0,o.jsx)(en.Z,{isOpen:!!f,setIsOpen:function(e){e||v(null)},onConfirm:function(){return C()},programName:(null==f?void 0:f.data.name)||""})]})},eo=t(39722),ea=t(53342),el=t(22854),ec=t(31023),eu=t(49530),es=t(32403),ed=t(83011),ep=t(70428),em=t(41664),ef=t.n(em);
1function CustomProgramCardStyles_templateObject(){var e=(0,G._)(["\n	box-shadow:\n		0 8px 16px 0 #0000000a,\n		0 4px 8px 0 #0000000a,\n		0 2px 4px 0 #0000000a,\n		0 1px 2px 0 #0000000a,\n		inset 0 4px 5px 0 #ffffff08,\n		inset 0 1.5px 1.5px 0 #ffffff08,\n		inset 0 0.75px 0.75px 0 #ffffff0a,\n		inset 0 0.25px 0.25px 0 #ffffff0f;\n"]);return CustomProgramCardStyles_templateObject=function(){return e},e}function CustomProgramCardStyles_templateObject1(){var e=(0,G._)(["\n	box-shadow:\n		0 10px 18px 0 #0003,\n		0 4px 8px 0 #0000000a,\n		0 2px 4px 0 #0000000a,\n		0 1px 2px 0 #0000000a,\n		inset 0 4px 5px 0 #ffffff08,\n		inset 0 1.5px 1.5px 0 #ffffff08,\n		inset 0 0.75px 0.75px 0 #ffffff0a,\n		inset 0 0.25px 0.25px 0 #ffffff0f;\n"]);return CustomProgramCardStyles_templateObject1=function(){return e},e}function CustomProgramCardStyles_templateObject2(){var e=(0,G._)(["\n	box-shadow:\n		0 5px 5px -2px #ffffff08,\n		0 1.5px 1.5px 0 #ffffff08,\n		0 0.75px 0.75px 0 #ffffff0f,\n		0 0.25px 0.25px 0 #ffffff14,\n		inset 0 3px 3px 0 #0000000f,\n		inset 0 0.25px 0.25px 0 #00000029;\n"]);return CustomProgramCardStyles_templateObject2=function(){return e},e}function CustomProgramCardStyles_templateObject3(){var e=(0,G._)(["\n	box-shadow:\n		0 5px 5px -2px #ffffff08,\n		0 1.5px 1.5px 0 #ffffff08,\n		0 0.75px 0.75px 0 #ffffff0f,\n		0 0.25px 0.25px 0 #ffffff14,\n		inset 0 3px 3px 0 #0000000f,\n		inset 0 0.25px 0.25px 0 #00000029;\n"]);return CustomProgramCardStyles_templateObject3=function(){return e},e}function CustomProgramCardStyles_templateObject4(){var e=(0,G._)(["\n	box-shadow:\n		0 5px 5px -2px #ffffff08,\n		0 1.5px 1.5px 0 #ffffff08,\n		0 0.75px 0.75px 0 #ffffff0f,\n		0 0.25px 0.25px 0 #ffffff14,\n		inset 0 3px 3px 0 #0000000f,\n		inset 0 0.25px 0.25px 0 #00000029;\n"]);return CustomProgramCardStyles_templateObject4=function(){return e},e}function CustomProgramCardStyles_templateObject5(){var e=(0,G._)(["\n	box-shadow:\n		0 5px 5px -2px #ffffff08,\n		0 1.5px 1.5px 0 #ffffff08,\n		0 0.75px 0.75px 0 #ffffff0f,\n		0 0.25px 0.25px 0 #ffffff14,\n		inset 0 3px 3px 0 #0000000f,\n		inset 0 0.25px 0.25px 0 #00000029;\n"]);return CustomProgramCardStyles_templateObject5=function(){return e},e}function CustomProgramCardStyles_templateObject6(){var e=(0,G._)(["\n	box-shadow:\n		0 10px 18px 0 #0000001f,\n		0 4px 8px 0 #0000000a,\n		0 2px 4px 0 #0000000a,\n		0 1px 2px 0 #0000000a,\n		inset 0 4px 5px 0 #ffffff08,\n		inset 0 1.5px 1.5px 0 #ffffff08,\n		inset 0 0.75px 0.75px 0 #ffffff0a,\n		inset 0 0.25px 0.25px 0 #ffffff0f;\n"]);return CustomProgramCardStyles_templateObject6=function(){return e},e}function CustomProgramCardStyles_templateObject7(){var e=(0,G._)(["\n	box-shadow:\n		0 5px 5px -2px #ffffff08,\n		0 1.5px 1.5px 0 #ffffff08,\n		0 0.75px 0.75px 0 #ffffff0f,\n		0 0.25px 0.25px 0 #ffffff14,\n		inset 0 8px 8px 0 #00000014,\n		inset 0 3px 3px 0 #0000000f,\n		inset 0 1.5px 1.5px 0 #0000000f;\n"]);return CustomProgramCardStyles_templateObject7=function(){return e},e}function CustomProgramCardStyles_templateObject8(){var e=(0,G._)(["\n		display: flex;\n		flex-direction: column;\n		flex-grow: 1;\n		gap: 16px;\n		align-items: center;\n		justify-content: center;\n		transition: all 0.25s ease-in-out;\n		border: 2px solid transparent;\n		border-radius: 24px;\n		background: ",";\n		",";\n		padding: 16px;\n		width: 100%;\n		text-align: center;\n	"]);return CustomProgramCardStyles_templateObject8=function(){return e},e}function _templateObject9(){var e=(0,G._)(["\n	","\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){var e=(0,G._)(["\n	margin-top: -4px;\n	width: 40px;\n	height: 24px;\n\n	span {\n		display: none;\n	}\n\n	@media (min-width: ","px) {\n		display: none;\n	}\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){var e=(0,G._)(["\n	display: flex;\n	transition: box-shadow 0.25s ease-in-out;\n	border-radius: 28px;\n	border-color: transparent;\n	background: #00000005;\n	cursor: pointer;\n	padding: 4px;\n	width: 100%;\n	min-height: 100px;\n	",";\n\n	&:hover {\n		",";\n		"," {\n			display: block;\n		}\n	}\n\n	&:hover "," {\n		",";\n	}\n\n	&:focus-visible "," {\n		outline: none;\n		border: 2px solid #00000029;\n		",";\n		"," {\n			display: block;\n		}\n	}\n"]);
1return _templateObject11=function(){return e},e}function _templateObject12(){var e=(0,G._)(["\n	display: flex;\n	flex-direction: row;\n	gap: 10px;\n	align-items: center;\n	width: 100%;\n	text-align: left;\n\n	p {\n		",";\n		margin: 0;\n		margin-top: 1px;\n	}\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){var e=(0,G._)(["\n	display: flex;\n	flex-direction: row;\n	gap: 8px;\n	width: 100%;\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){var e=(0,G._)(["\n	display: flex;\n	flex-direction: row;\n	justify-content: space-between;\n	width: 100%;\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){var e=(0,G._)(["\n	display: flex;\n	flex-direction: column;\n	flex-grow: 1;\n	gap: 8px;\n	align-items: center;\n	justify-content: center;\n	transition: box-shadow 0.25s ease-in-out;\n	border-radius: 24px;\n	background: white;\n	padding: 16px;\n	width: 100%;\n	text-align: center;\n	",";\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){var e=(0,G._)(["\n	display: none;\n	transition: box-shadow 0.25s ease-in-out;\n	border-radius: 28px;\n	",";\n	background: #00000005;\n	padding: 4px;\n	width: 100%;\n	min-height: 100px;\n\n	&:hover,\n	&:focus-visible {\n		",";\n		outline: none;\n	}\n\n	&:hover ",", &:focus-visible "," {\n		",";\n	}\n\n	@media (min-width: ","px) {\n		display: flex;\n	}\n"]);return _templateObject16=function(){return e},e}function _templateObject17(){var e=(0,G._)(["\n		",";\n		color: ",";\n	"]);return _templateObject17=function(){return e},e}function _templateObject18(){var e=(0,G._)(["\n	","\n"]);return _templateObject18=function(){return e},e}function _templateObject19(){var e=(0,G._)(["\n	display: flex;\n	align-items: center;\n	justify-content: center;\n	width: 100%;\n	min-height: 100px;\n"]);return _templateObject19=function(){return e},e}var ev=(0,q.iv)(CustomProgramCardStyles_templateObject()),eg=(0,q.iv)(CustomProgramCardStyles_templateObject1()),e_=(0,q.iv)(CustomProgramCardStyles_templateObject2()),eh=(0,q.iv)(CustomProgramCardStyles_templateObject3()),eb=(0,q.iv)(CustomProgramCardStyles_templateObject4()),ex=(0,q.iv)(CustomProgramCardStyles_templateObject5()),ej=(0,q.iv)(CustomProgramCardStyles_templateObject6()),eO=(0,q.iv)(CustomProgramCardStyles_templateObject7()),ey=q.ZP.div.withConfig({componentId:"sc-51897a73-0"})(_templateObject9(),function(e){var n=e.$color;return(0,q.iv)(CustomProgramCardStyles_templateObject8(),n,ev)}),eC=(0,q.ZP)(es.Z).withConfig({componentId:"sc-51897a73-1"})(_templateObject10(),Y.AV.lg),eP=q.ZP.a.withConfig({componentId:"sc-51897a73-2"})(_templateObject11(),e_,eh,eC,ey,eg,ey,eO,eC),ew=q.ZP.div.withConfig({componentId:"sc-51897a73-3"})(_templateObject12(),K.kk),eS=q.ZP.div.withConfig({componentId:"sc-51897a73-4"})(_templateObject13()),ek=q.ZP.div.withConfig({componentId:"sc-51897a73-5"})(_templateObject14()),eI=q.ZP.div.withConfig({componentId:"sc-51897a73-6"})(_templateObject15(),ev),eZ=(0,q.ZP)(ef()).withConfig({componentId:"sc-51897a73-7"})(_templateObject16(),eb,ex,eI,eI,ej,Y.AV.lg),eA=q.ZP.span.withConfig({componentId:"sc-51897a73-8"})(_templateObject18(),function(e){var n=e.theme;return(0,q.iv)(_templateObject17(),K.pu,n["color-base-content-tertiary"])}),eR=q.ZP.div.withConfig({componentId:"sc-51897a73-9"})(_templateObject19()),eE=t(50035),eN=t(5210),components_CustomProgramCard_CustomProgramCard=function(e){var n=e.data,t=e.isLoading,r=(0,a.$G)().t;return t?(0,o.jsx)(eR,{children:(0,o.jsx)($.Z,{indicator:(0,o.jsx)(eN.Z,{})})}):n?(0,o.jsx)(eP,{href:"".concat(r("paths:createCustomProgram|path"),"/").concat(null==n?void 0:n.urlSlug),children:(0,o.jsxs)(ey,{$color:null==n?void 0:n.color,children:[(0,o.jsxs)(ew,{children:[(0,o.jsx)("img",{src:null==n?void 0:n.icon,alt:null==n?void 0:n.name}),(0,o.jsx)("p",{children:null==n?void 0:n.name})]}),(0,o.jsx)(ek,{children:(0,o.jsxs)(eS,{children:[(0,o.jsx)(eE.Z,{type:Z.K_.BASIC,size:Z.NO.SM,children:"".concat(null==n?void 0:n.videosCount," ").concat(r("vide\xed"))}),(0,o.jsx)(eE.Z,{type:Z.K_.BASIC,size:Z.NO.SM,children:(0,R.Dq)({durationSecondsMin:null==n?void 0:n.durationSecondsMin,durationSecondsMax:null==n?void 0:n.durationSecondsMax})}),(null==n?void 0:n.isActive)&&(0,o.jsx)(eE.Z,{type:Z.K_.PRIMARY,size:Z.NO.SM,children:r("Akt\xedvny")})]})})]})}):(0,o.jsx)(eZ,{href:r("paths:createCustomProgram|path"),children:(0,o.jsxs)(eI,{children:[(0,o.jsx)(ed.pO,{}),(0,o.jsx)(eA,{children:r("Tu bude tvoj vlastn\xfd program")})]})})},eM=t(96330),CustomPrograms_CustomPrograms=function(e){var n,t,c,u,s=e.activeProgramId,p=(0,a.$G)().t,f=(0,d._)((0,m.useState)(!1),2),v=f[0],g=f[1],_=(0,d._)((0,m.useState)(null),2),h=_[0],b=_[1],x=(0,d._)((0,m.useState)(void 0),2),j=x[0],O=x[1],y=(n=(0,z._)(function(){var e;return(0,U.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,et.ZL)(l.bV.GET_PERSONAL_PROGRAMS)];case 1:return O(null==(e=n.sent())?void 0:e.data),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}})}),function(){return n.apply(this,arguments)});(0,m.useEffect)(function(){g(!0),y(),g(!1)},[]);var C=(t=(0,z._)(function(e){var n,t,r,i,o,a,c;return(0,U.Jh)(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,(0,et.ZL)(l.bV.GET_PERSONAL_PROGRAM(e))];case 1:return a=u.sent().data,c=null==j?void 0:null===(t=j.iconOptions)||void 0===t?void 0:null===(n=t.find(function(e){var n;return(null==e?void 0:e.path)===(null==a?void 0:null===(n=a.personalProgramInfo)||void 0===n?void 0:n.icon)}))||void 0===n?void 0:n.id,b({id:null==a?void 0:a.id,color:null==a?void 0:null===(i=a.personalProgramInfo)||void 0===i?void 0:null===(r=i.colorScheme)||void 0===r?void 0:r.value,workoutDays:null==a?void 0:null===(o=a.personalProgramInfo)||void 0===o?void 0:o.workoutDays,icon:c,name:null==a?void 0:a.name,isActive:(null==a?void 0:a.id)===s}),[3,3];case 2:return u.sent(),[3,3];case 3:return[2]}})}),function(e){return t.apply(this,arguments)});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(eu.l1,{children:[(0,o.jsxs)(eu._N,{children:[(0,o.jsx)(eu.Dx,{children:p("Moje tr\xe9ningov\xe9 programy beta verzia")}),3>((null==j?void 0:null===(c=j.personalPrograms)||void 0===c?void 0:c.length)||0)&&(0,o.jsx)(es.Z,{asHTML:Z.vf.ANCHOR,href:p("paths:createCustomProgram|path"),variant:Z.RN.SECONDARY,icon:(0,o.jsx)(ed.pO,{}),size:Z.NO.MD,label:p("Namiešajte mi program na mieru")})]}),3>((null==j?void 0:null===(u=j.personalPrograms)||void 0===u?void 0:u.length)||0)&&(0,o.jsxs)(eu.dk,{children:[p("Vyplň v dotazn\xedku svoje preferencie a my ti namiešame tr\xe9ningov\xfd program na mieru S\xfačasne")," ",(0,o.jsx)("strong",{children:p("m\xf4žeš mať vytvoren\xe9 až 3 programy")})]}),(0,o.jsx)(eu.kx,{children:Array.from({length:3}).map(function(e,n){var t,a=null==j?void 0:null===(t=j.personalPrograms)||void 0===t?void 0:t[n];return(0,o.jsx)(components_CustomProgramCard_CustomProgramCard,{isLoading:v,data:a?(0,i._)((0,r._)({},a),{openEditModal:function(){return C(a.urlSlug)},isActive:s===a.id}):void 0},(null==a?void 0:a.id)||"empty-card-".concat(n))})})]}),!!h&&(0,o.jsx)(eM.Z,{isOpen:!!h,onCancel:function(){return b(null)},onReloadCancel:function(){b(null),y()},colorOptions:(null==j?void 0:j.colorOptions)?(0,ep.pH)(j.colorOptions):void 0,iconOptions:(null==j?void 0:j.iconOptions)?(0,ep.gh)(j.iconOptions):void 0,program:h})]})},programs_Programs=function(){var e,n,t,l,c,u,v,_,b,z,U,$=(0,a.$G)().t,G=(0,j.I0)(),q=(0,y.useRouter)(),H=(0,M.XG)(),K=H.isLoading,Y=H.startLoading,J=H.finishLoading,X=(0,m.useRef)(q);X.current=q;var Q=(0,d._)((0,O.YD)({threshold:0,triggerOnce:!0}),2),W=Q[0],ee=Q[1],en=(0,j.v9)(P.QM),et=(0,j.v9)(P.Qp),er=(0,j.v9)(function(e){var n,t,r;return null==e?void 0:null===(r=e.user)||void 0===r?void 0:null===(t=r.challenges)||void 0===t?void 0:null===(n=t.currentChallenge)||void 0===n?void 0:n.challengeState}),ei=(0,j.v9)(k.at),eu=(null==et?void 0:null===(t=et.subscription)||void 0===t?void 0:t.t
1ier)===Z.hX.PREMIUM||(null==et?void 0:null===(l=et.subscription)||void 0===l?void 0:l.tier)===Z.hX.VIP,es=(0,d._)((0,m.useState)(function(){var e;switch(null===(e=q.query)||void 0===e?void 0:e.variant){case Z.sO.CHALLENGES:return Z.sO.CHALLENGES;case Z.sO.EDUCATION:return Z.sO.EDUCATION;default:return Z.sO.PROGRAMS}}()),2),ed=es[0],ep=es[1],em=(0,d._)((0,m.useState)({orderBy:h()(Z.He,null===(e=q.query)||void 0===e?void 0:e.orderBy)?q.query.orderBy:void 0,orderDirection:h()(Z.OC,null===(n=q.query)||void 0===n?void 0:n.orderDirection)?q.query.orderDirection:void 0}),2),ef=em[0],ev=em[1],eg=(0,d._)((0,m.useState)((0,D.wk)(void 0,ed,$)),2),e_=eg[0],eh=eg[1],eb=(0,d._)((0,m.useState)(!1),2),ex=eb[0],ej=eb[1],eO=(0,d._)((0,m.useState)(!1),2),ey=eO[0],eC=eO[1],eP=(0,V.Bx)(en,er,q,$,!0,ej),ew=!!(eP&&(0,R._Q)()),eS={url:(0,R.Kd)()===Z.MV.CZ?"".concat(C.Z.publicSiteUrlCz).concat(q.asPath):"".concat(C.Z.publicSiteUrlSk).concat(q.asPath),visit_type:A.T.OTHER,attributes:[]},ek=ed===Z.sO.PROGRAMS?(0,E.UA)(I.$5.PROGRAMS):(0,E.UA)(I.$5.CHALLENGES),eI=(0,E.O9)(ek);(0,L.u)(A.I.VISIT,eS);var updateUI=function(e){var n=null==e?void 0:e.variant,t="string"==typeof(null==e?void 0:e.orderBy)?e.orderBy:void 0,r="string"==typeof(null==e?void 0:e.orderDirection)?e.orderDirection:void 0;ep(n||Z.sO.PROGRAMS),ev({orderBy:t,orderDirection:r}),(0,D.wj)(e,G)};(0,T.y)((null===(c=q.query)||void 0===c?void 0:c.search)&&{event:I.kM.SEARCH,search_term:null===(u=q.query)||void 0===u?void 0:u.search,search_category:$("Programy a v\xfdzvy"),search_filter:$("Programy a v\xfdzvy"),count_of_search_results:(null==ei?void 0:null===(v=ei.context)||void 0===v?void 0:v.totalCount)||0},void 0,[null===(_=q.query)||void 0===_?void 0:_.search]),(0,T.y)(!(0,R._i)(et)&&ee&&!K&&{event:I.kM.VIEW_ITEM_LIST,ecommerce:{item_list_id:ek,item_list_name:eI,items:null==e_?void 0:null===(b=e_.list)||void 0===b?void 0:b.map(function(e,n){return{item_id:null==e?void 0:e.id,item_name:null==e?void 0:e.name,affiliation:void 0,coupon:void 0,discount:void 0,index:n,item_brand:void 0,item_category:eI,item_list_id:ek,item_list_name:eI,item_variant:void 0,location_id:void 0,price:void 0,quantity:1}})}},I.H_.ECOMMERCE,[ee,e_.list]);var reloadData=function(){Y({showLoader:!0});var e=(0,r._)({},q.query),n=e.goals,t=e.preferences;if(n||t){var i=(0,p._)(Array.isArray(n)?n:n?[n]:[]).concat((0,p._)(Array.isArray(t)?t:t?[t]:[]));i.length>0?e.preferences=i:delete e.preferences,delete e.goals}G((0,S.CV)((0,D.q5)(e),J,J)),updateUI(q.query)};(0,m.useEffect)(function(){q.isReady&&reloadData()},[q.asPath,q.isReady]),(0,m.useEffect)(function(){(0,N.jl)()&&((null==et?void 0:et.id)||G((0,w.et)()),G((0,w.MY)()))},[]),(0,m.useEffect)(function(){if(!ei.isLoading){Y({showLoader:!1});var e=ei.isFailure?void 0:(0,i._)((0,r._)({},ei),{programs:ei.list,startPrograms:null==ei?void 0:ei.startPrograms});eh((0,D.wk)(e,ed,$)),J()}},[ei,ed]);var applySearch=function(e){if(x()(e).length>2||0===e.length){var n=X.current.query;if(e!==(n.search||"")){var t=(0,r._)({},n);e?t.search=e:delete t.search,q.replace({pathname:q.pathname,query:t},void 0,{scroll:!1})}}},eZ=(0,m.useCallback)(g()(applySearch,600),[]),handleFilterChange=function(e,n){if(n===Z.Oq.DURATIONS){var t=(0,R.Bz)(null!=e[0]?String(e[0]):void 0);(0,E.y_)({event:I.kM.FILTER_ACTION,filter_type:I.PM.DURATIONS,filter_value:t})}q.replace({pathname:q.route,query:(0,i._)((0,r._)({},q.query),(0,s._)({},n,e))},void 0,{scroll:!1})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(ec.PQ,{$isSelection:!1,children:[ew&&(0,o.jsx)(B.Z,(0,r._)({},eP)),(0,o.jsxs)(ec.tS,{$isShowingChallengeBanner:ew,children:[(0,o.jsx)(ec.ff,{children:e_.pageName}),(0,o.jsx)(ec.S3,{tabsType:Z.yR.BUTTON_WHITE,tabBarStyle:(0,el.$t)(),items:[{key:Z.sO.PROGRAMS,label:$("Programy")},{key:Z.sO.CHALLENGES,label:$("V\xfdzvy")},{key:Z.sO.EDUCATION,label:$("Vzdel\xe1vanie")}],activeKey:ed,onChange:function(e){q.replace({pathname:q.pathname,query:(0,i._)((0,r._)({},q.query),{variant:e})},void 0,{shallow:!0})}})]}),eu&&(0,o.jsx)(CustomPrograms_CustomPrograms,{activeProgramId:null==et?void 0:null===(z=et.program)||void 0===z?void 0:z.id}),(0,o.jsx)(ec.hZ,{handleSearch:function(e){eZ.cancel(),eZ(e.target.value)},handleSearchClear:function(){eZ.cancel(),G((0,f.m)(Z.n5.PROGRAM_FILTER_FORM,Z.Oq.SEARCH,"")),applySearch("")},handleOrderChange:function(e){var n=(0,D.fn)(e,$);q.replace({pathname:q.pathname,query:(0,r._)({},q.query,n)},void 0,{scroll:!1})},orderSelectedOption:(0,D.B3)(ef.orderBy,ef.orderDirection),orderOptions:(0,D.Pn)($),resultsSum:(null==e_?void 0:null===(U=e_.context)||void 0===U?void 0:U.totalCount)||0,searchPlaceholder:$("Hľadať podľa n\xe1zvu"),children:(0,o.jsx)(eo.Z,{filterOptions:e_.filterOptions,handleRemoveFullFilter:function(e){var n=(0,r._)({},q.query);delete n[e],q.replace({pathname:$("paths:programs|path"),query:n},void 0,{scroll:!1})},handleSelectDuration:function(e){return handleFilterChange(e,Z.Oq.DURATIONS)},handleSelectTrainers:function(e){return handleFilterChange(e,Z.Oq.TRAINERS)},handleSelectAccessories:function(e){return handleFilterChange(e,Z.Oq.ACCESSORIES)},handleSelectPreferences:function(e){return handleFilterChange(e,Z.Oq.PREFERENCES)},handleSelectGoals:function(e){return handleFilterChange(e,Z.Oq.GOALS)}})}),(0,o.jsx)("div",{ref:W,children:(0,o.jsx)(ea.Z,{listKey:q.asPath,list:e_.list,isFailure:e_.isFailure,refreshFilter:function(){return q.replace(q.asPath)},clearFilter:function(){var e;q.replace({pathname:q.pathname,query:{variant:null===(e=q.query)||void 0===e?void 0:e.variant}}
1)},openStartProgramModal:function(){return eC(!0)},startProgram:e_.startPrograms,isLoading:(null==ei?void 0:ei.isLoading)||K})})]}),(0,o.jsx)(F.Z,{isOpen:ex,onCancel:function(){return ej(!1)},currentChallenge:en,isProgramsPage:!0}),ey&&(0,o.jsx)(StartProgramModal_StartProgramModal,{isOpen:ey,onCancel:function(){reloadData(),eC(!1)}})]})},eT=t(39897),ProgramsPage=function(e){return(0,o.jsx)(programs_Programs,(0,r._)({},e))};ProgramsPage.getLayout=function(e,n){var t,s=(0,i._)((0,r._)({},null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.pageMetadata),{title:null===a.ag||void 0===a.ag?void 0:a.ag.t("metadataTitle_programs"),description:null===a.ag||void 0===a.ag?void 0:a.ag.t("metadataDescription_programs"),ogTitle:null===a.ag||void 0===a.ag?void 0:a.ag.t("metadataTitle_programs"),ogDescription:null===a.ag||void 0===a.ag?void 0:a.ag.t("metadataDescription_programs")});return(0,o.jsx)("div",{children:(0,o.jsxs)(u.Z,{children:[(0,o.jsx)(eT.Z,{shareTags:s}),(0,o.jsx)(c.Z,(0,i._)((0,r._)({},n),{pageID:l.$1.PROGRAMS,children:e}))]})})};var eL=!0,eV=ProgramsPage},9008:function(e,n,t){e.exports=t(79201)},3766:function(e){e.exports="/_next/static/images/fallback-seo-image-48963c5760d52db7232857efc8ebd972.png"},89508:function(e,n,t){"use strict";t.d(n,{M:function(){return AnimatePresence}});var r=t(85893),i=t(67294),o=t(25364),a=t(96681),l=t(75062),c=t(240),u=t(93243),s=t(16014);function setRef(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}let PopChildMeasure=class PopChildMeasure extends i.Component{getSnapshotBeforeUpdate(e){let n=this.props.childRef.current;if((0,u.R)(n)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=n.offsetParent,t=(0,u.R)(e)&&e.offsetWidth||0,r=(0,u.R)(e)&&e.offsetHeight||0,i=getComputedStyle(n),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=n.offsetTop,o.left=n.offsetLeft,o.right=t-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function PopChild({children:e,isPresent:n,anchorX:t,anchorY:o,root:a,pop:l}){let c=(0,i.useId)(),u=(0,i.useRef)(null),d=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:p}=(0,i.useContext)(s._),m=e.props?.ref??e?.ref,f=function(...e){return i.useCallback(function(...e){return n=>{let t=!1,r=e.map(e=>{let r=setRef(e,n);return t||"function"!=typeof r||(t=!0),r});if(t)return()=>{for(let n=0;n<r.length;n++){let t=r[n];"function"==typeof t?t():setRef(e[n],null)}}}}(...e),e)}(u,m);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:s,right:m,bottom:f,direction:v}=d.current;if(n||!1===l||!u.current||!e||!r)return;let g="rtl"===v,_="left"===t?g?`right: ${m}`:`left: ${s}`:g?`left: ${s}`:`right: ${m}`,h="bottom"===o?`bottom: ${f}`:`top: ${i}`;u.current.dataset.motionPopId=c;let b=document.createElement("style");p&&(b.nonce=p);let x=a??document.head;return x.appendChild(b),b.sheet&&b.sheet.insertRule(`
2          [data-motion-pop-id="${c}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${r}px !important;
6            ${_}px !important;
7            ${h}px !important;
8          }
9        `),()=>{u.current?.removeAttribute("data-motion-pop-id"),x.contains(b)&&x.removeChild(b)}},[n]),(0,r.jsx)(PopChildMeasure,{isPresent:n,childRef:u,sizeRef:d,pop:l,children:!1===l?e:i.cloneElement(e,{ref:f})})}let PresenceChild=({children:e,initial:n,isPresent:t,onExitComplete:o,custom:u,presenceAffectsLayout:s,mode:d,anchorX:p,anchorY:m,root:f})=>{let v=(0,a.h)(newChildrenMap),g=(0,i.useId)(),_=(0,i.useRef)(t),h=(0,i.useRef)(o);(0,l.L)(()=>{_.current=t,h.current=o});let b=!0,x=(0,i.useMemo)(()=>(b=!1,{id:g,initial:n,isPresent:t,custom:u,onExitComplete:e=>
9{for(let n of(v.set(e,!0),v.values()))if(!n)return;o&&o()},register:e=>(v.set(e,!1),()=>{v.delete(e),_.current||v.size||h.current?.()})}),[t,v,o]);return s&&b&&(x={...x}),(0,i.useMemo)(()=>{v.forEach((e,n)=>v.set(n,!1))},[t]),i.useEffect(()=>{t||v.size||!o||o()},[t]),e=(0,r.jsx)(PopChild,{pop:"popLayout"===d,isPresent:t,anchorX:p,anchorY:m,root:f,children:e}),(0,r.jsx)(c.O.Provider,{value:x,children:e})};function newChildrenMap(){return new Map}var d=t(15947);let getChildKey=e=>e.key||"";function onlyElements(e){let n=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&n.push(e)}),n}let AnimatePresence=({children:e,custom:n,initial:t=!0,onExitComplete:c,presenceAffectsLayout:u=!0,mode:s="sync",propagate:p=!1,anchorX:m="left",anchorY:f="top",root:v})=>{let[g,_]=(0,d.oO)(p),h=(0,i.useMemo)(()=>onlyElements(e),[e]),b=p&&!g?[]:h.map(getChildKey),x=(0,i.useRef)(!0),j=(0,i.useRef)(h),O=(0,a.h)(()=>new Map),y=(0,i.useRef)(new Set),[C,P]=(0,i.useState)(h),[w,S]=(0,i.useState)(h);(0,l.L)(()=>{x.current=!1,j.current=h;for(let e=0;e<w.length;e++){let n=getChildKey(w[e]);b.includes(n)?(O.delete(n),y.current.delete(n)):!0!==O.get(n)&&O.set(n,!1)}},[w,b.length,b.join("-")]);let k=[];if(h!==C){let e=[...h];for(let n=0;n<w.length;n++){let t=w[n],r=getChildKey(t);b.includes(r)||(e.splice(n,0,t),k.push(t))}return"wait"===s&&k.length&&(e=k),S(onlyElements(e)),P(h),null}let{forceRender:I}=(0,i.useContext)(o.p);return(0,r.jsx)(r.Fragment,{children:w.map(e=>{let i=getChildKey(e),o=(!p||!!g)&&(h===w||b.includes(i));return(0,r.jsx)(PresenceChild,{isPresent:o,initial:(!x.current||!!t)&&void 0,custom:n,presenceAffectsLayout:u,mode:s,root:v,onExitComplete:o?void 0:()=>{if(y.current.has(i)||!O.has(i))return;y.current.add(i),O.set(i,!0);let e=!0;O.forEach(n=>{n||(e=!1)}),e&&(I?.(),S(j.current),p&&_?.(),c&&c())},anchorX:m,anchorY:f,children:e},i)})})}}},function(e){e.O(0,[2655,7048,6845,5584,5704,1350,1035,4749,8618,5450,1805,6986,5673,8427,8672,7980,35,494,9020,2228,8723,2618,4984,1495,434,4105,2292,6399,7371,1616,9774,2888,179],function(){return e(e.s=439)}),_N_E=e.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.