PageSourceSearch

https://fitshaker.sk/_next/static/chunks/pages/challenges/[id]-98330239f11c131d.js

js fitshaker.sk collected 2026-09-24 10:21:54 UTC 188,238 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3813],{57406:function(e,t,n){var i=n(71811),r=n(10928),a=n(40292),l=n(40327),o=Object.prototype.hasOwnProperty;e.exports=function(e,t){t=i(t,e);var n=-1,c=t.length;if(!c)return!0;for(;++n<c;){var s=l(t[n]);if("__proto__"===s&&!o.call(e,"__proto__")||("constructor"===s||"prototype"===s)&&n<c-1)return!1}var u=a(e,t);return null==u||delete u[l(r(t))]}},40292:function(e,t,n){var i=n(97786),r=n(14259);e.exports=function(e,t){return t.length<2?e:i(e,r(t,0,-1))}},10928:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},12571:function(e,t,n){var i=n(14259),r=n(16612),a=n(40554);e.exports=function(e,t,n){var l=null==e?0:e.length;return l?(n&&"number"!=typeof n&&r(e,t,n)?(t=0,n=l):(t=null==t?0:a(t),n=void 0===n?l:a(n)),i(e,t,n)):[]}},27004:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/challenges/[id]",function(){return n(8161)}])},32193:function(e,t,n){"use strict";n.d(t,{Z:function(){return RadioBoxGroupField_RadioBoxGroupField}});var i=n(85893),r=n(41609),a=n.n(r),l=n(35161),o=n.n(l),c=n(64871),s=n(82729),u=n(94589),d=n(58654);function _templateObject(){var e=(0,s._)(["\n			gap: ",";\n		"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,s._)(["\n		display: flex;\n		flex-direction: column;\n\n		","\n	"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,s._)(["\n	","\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,s._)(["\n			color: ",";\n		"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,s._)(["\n		transition: color 200ms ease-in-out;\n		",";\n		white-space: nowrap;\n\n		","\n	"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,s._)(["\n	","\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,s._)(["\n		display: flex;\n		flex-direction: ",";\n		gap: ",";\n	"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,s._)(["\n	","\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){var e=(0,s._)(["\n	display: flex;\n	flex-direction: column;\n	width: 100%;\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){var e=(0,s._)(["\n		",";\n		color: ",";\n	"]);return _templateObject9=function(){return e},e}function _templateObject10(){var e=(0,s._)(["\n	","\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){var e=(0,s._)(["\n		",";\n		color: ",";\n	"]);return _templateObject11=function(){return e},e}function _templateObject12(){var e=(0,s._)(["\n	","\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){var e=(0,s._)(["\n				input[type='radio'] {\n					border: 1px solid ",";\n					background-color: ",";\n				}\n\n				input[type='radio']:checked {\n					border: 1px solid ",";\n					background-color: ",";\n				}\n			"]);return _templateObject13=function(){return e},e}function _templateObject14(){var e=(0,s._)(["\n				input[type='radio'] {\n					border: 1px solid ",";\n					box-shadow: ",";\n					background-color: ",";\n				}\n\n				input[type='radio']:checked {\n					border: 1px solid ",";\n					box-shadow: ",";\n					background-color: ",";\n				}\n			"]);return _templateObject14=function(){return e},e}function _templateObject15(){var e=(0,s._)(["\n			input[type='radio'] {\n				width: 16px;\n				height: 16px;\n			}\n\n			input[type='radio']:checked {\n				&::after {\n					border: 3px solid ",";\n				}\n			}\n\n			"," {\n				",";\n				color: ",";\n			}\n\n			"," {\n				",";\n				color: ",";\n			}\n		"]);return _templateObject15=function(){return e},e}function _templateObject16(){var e=(0,s._)(["\n			input[type='radio'] {\n				width: 20px;\n				height: 20px;\n			}\n\n			input[type='radio']:checked {\n				&::after {\n					border: 4px solid ",";\n				}\n			}\n\n			"," {\n				gap: 2px;\n			}\n\n			"," {\n				",";\n				color: ",";\n			}\n\n			"," {\n				",";\n				color: ",";\n			}\n		"]);
1return _templateObject16=function(){return e},e}function _templateObject17(){var e=(0,s._)(["\n			color: ",";\n		"]);return _templateObject17=function(){return e},e}function _templateObject18(){var e=(0,s._)(["\n			",", "," {\n				color: ",";\n			}\n		"]);return _templateObject18=function(){return e},e}function _templateObject19(){var e=(0,s._)(["\n			cursor: not-allowed;\n\n			input[type='radio'] {\n				opacity: 0.32;\n			}\n\n			input[type='radio']:checked {\n				opacity: 0.32;\n			}\n		"]);return _templateObject19=function(){return e},e}function _templateObject20(){var e=(0,s._)(["\n		display: flex;\n		flex-direction: row;\n		gap: ",";\n		align-items: flex-start;\n		cursor: pointer;\n		width: fit-content;\n\n		input[type='radio'] {\n			appearance: none;\n			flex-shrink: 0;\n			transition: background-color 200ms ease-in-out;\n			border: 1px solid ",";\n			border-radius: 50%;\n			background-color: ",";\n			cursor: pointer;\n		}\n\n		input[type='radio']:checked {\n			appearance: none;\n			position: relative;\n			border: 1px solid ",";\n			background-color: ",";\n\n			&::after {\n				position: absolute;\n				top: 50%;\n				left: 50%;\n				transform: translate(-50%, -50%);\n				opacity: 1;\n				border-radius: 50%;\n				content: '';\n			}\n		}\n\n		input[type='radio']:disabled {\n			cursor: not-allowed;\n		}\n\n		/* stylelint-disable-next-line */\n		&:hover {\n			","\n		}\n\n		&:focus {\n			","\n		}\n\n		","\n\n		","\n\n    ","\n\n\n    ","\n    \n    ","\n	"]);return _templateObject20=function(){return e},e}function _templateObject21(){var e=(0,s._)(["\n	","\n"]);return _templateObject21=function(){return e},e}function _templateObject22(){var e=(0,s._)(["\n	display: flex;\n	position: relative;\n	width: 16px;\n	height: 16px;\n"]);return _templateObject22=function(){return e},e}function _templateObject23(){var e=(0,s._)(["\n	width: 100%;\n	height: 100%;\n"]);return _templateObject23=function(){return e},e}var p=u.ZP.div.withConfig({componentId:"sc-33920746-0"})(_templateObject2(),function(e){var t=e.theme,n=e.size;return(0,u.iv)(_templateObject1(),n!==c.NO.SM&&(0,u.iv)(_templateObject(),t.spacing[4]))}),m=u.ZP.label.withConfig({componentId:"sc-33920746-1"})(_templateObject5(),function(e){var t=e.theme,n=e.$isError;return(0,u.iv)(_templateObject4(),d.pu,n&&(0,u.iv)(_templateObject3(),t["color-base-state-error-fg"]))}),f=u.ZP.div.withConfig({componentId:"sc-33920746-2"})(_templateObject7(),function(e){var t=e.$flexDirection,n=void 0===t?c.uM.COLUMN:t;return(0,u.iv)(_templateObject6(),n,n===c.uM.COLUMN?"8px":"0")}),h=u.ZP.div.withConfig({componentId:"sc-33920746-3"})(_templateObject8()),b=u.ZP.span.withConfig({componentId:"sc-33920746-4"})(_templateObject10(),function(e){var t=e.theme;return(0,u.iv)(_templateObject9(),d.pu,t["color-base-content-secondary"])}),v=u.ZP.span.withConfig({componentId:"sc-33920746-5"})(_templateObject12(),function(e){var t=e.theme;return(0,u.iv)(_templateObject11(),d.lT,t["color-base-content-tertiary"])}),g=u.ZP.label.withConfig({componentId:"sc-33920746-6"})(_templateObject21(),function(e){var t=e.theme,n=e.$isChecked,i=e.$isError,r=e.$isDisabled,a=e.size;return(0,u.iv)(_templateObject20(),t.spacing[8],t["color-base-content-quaternary"],t["color-base-surface-primary"],t["color-base-action-primary-default"],t["color-base-action-primary-bg"],!r&&(0,u.iv)(_templateObject13(),t["color-base-action-primary-hover"],t["color-base-action-primary-bg"],t["color-base-action-primary-hover"],t["color-base-action-primary-bg"]),!r&&(0,u.iv)(_templateObject14(),t["color-base-action-primary-active"],t["ring-primary-xs"],t["color-base-surface-primary"],t["color-base-action-primary-active"],t["ring-primary-xs"],t["color-base-action-primary-bg"]),a===c.NO.SM&&(0,u.iv)(_templateObject15(),t["color-base-action-primary-default"],b,d.pu,t["color-base-content-secondary"],v,d.lT,t["color-base-content-tertiary"]),a===c.NO.MD&&(0,u.iv)(_templateObject16(),t["color-base-action-primary-default"],h,b,d.kk,t["color-base-content-secondary"],v,d.q6,t["color-base-content-tertiary"]),n&&(0,u.iv)(_templateObject17(),t["color-inverse-content-secondary"]),i&&(0,u.iv)(_templateOb
1ject18(),b,v,t["color-base-state-error-fg"]),r&&(0,u.iv)(_templateObject19()))}),j=u.ZP.div.withConfig({componentId:"sc-33920746-7"})(_templateObject22()),_=u.ZP.img.withConfig({componentId:"sc-33920746-8"})(_templateObject23()),RadioBoxGroupField_RadioBoxGroupField=function(e){var t=e.additionalContent,n=e.className,r=e.flexDirection,l=e.input,s=e.label,u=e.meta,d=u.touched,y=u.error,x=e.name,O=e.options,S=e.required,C=e.showRequired,I=e.size,w=void 0===I?c.NO.MD:I,T=!!d&&!!y;return(0,i.jsxs)(p,{className:n,children:[s&&(0,i.jsxs)(m,{htmlFor:x,$isError:T,children:[s,void 0!==S&&S&&void 0!==C&&C&&"*"]}),(0,i.jsx)(f,{$flexDirection:r,children:o()(O,function(e,t){return(0,i.jsxs)(g,{onClick:e.onClick,$isChecked:e.value===l.value,$isError:T,$isDisabled:null==e?void 0:e.disabled,size:w,children:[e.icon&&(0,i.jsx)(j,{children:(0,i.jsx)(_,{src:e.icon,alt:""})}),(0,i.jsx)("input",{id:l.name,type:"radio",name:l.name,checked:e.value===l.value,onChange:function(){(null==e?void 0:e.disabled)||l.onChange(e.value)},disabled:null==e?void 0:e.disabled,hidden:!a()(null==e?void 0:e.icon)}),(0,i.jsxs)(h,{children:[(0,i.jsx)(b,{children:null==e?void 0:e.label}),(0,i.jsx)(v,{children:null==e?void 0:e.description})]})]},"option-".concat(t))})}),t]})}},58237:function(e,t,n){"use strict";var i=n(85893);t.Z=function(e){return(0,i.jsx)("div",{style:{position:"relative"},children:null==e?void 0:e.children})}},99084:function(e,t,n){"use strict";n.d(t,{Z:function(){return CheckList_CheckList}});var i=n(85893),r=n(35161),a=n.n(r),l=n(37303),o=n(82729),c=n(94589),s=n(58654);function _templateObject(){var e=(0,o._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		margin: 0;\n		padding: 0;\n	"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,o._)(["\n	","\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,o._)(["\n				path {\n					stroke: ",";\n				}\n			"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,o._)(["\n		display: flex;\n		flex-direction: row;\n		gap: ",";\n\n		svg {\n			flex-shrink: 0;\n			width: 24px;\n			height: 24px;\n\n			","\n		}\n	"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,o._)(["\n	","\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,o._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,o._)(["\n	","\n"]);return _templateObject6=function(){return e},e}var u=c.ZP.ul.withConfig({componentId:"sc-131181b2-0"})(_templateObject1(),function(e){var t=e.theme;return(0,c.iv)(_templateObject(),t.spacing[12])}),d=c.ZP.li.withConfig({componentId:"sc-131181b2-1"})(_templateObject4(),function(e){var t=e.theme,n=e.$checkIconColor;return(0,c.iv)(_templateObject3(),t.spacing[16],n&&(0,c.iv)(_templateObject2(),n))}),p=c.ZP.p.withConfig({componentId:"sc-131181b2-2"})(_templateObject6(),function(e){var t=e.theme;return(0,c.iv)(_templateObject5(),s.q6,t["color-base-content-primary"])}),m=n(83011),CheckList_CheckList=function(e){var t=e.className,n=e.checkList,r=e.checkIconColor,o=(0,l.$G)().t,c=[o("Pri k\xfape ročn\xe9ho členstva cvič\xedš <strong>2 mesiace zadarmo</strong> + dostaneš DARČEK"),o("Pr\xedstup k 30+ programom a viac než 1 000 cvičebn\xfdm vide\xe1m"),o("<strong>Nov\xfd darček</strong> každ\xfd mesiac v časti Na stiahnutie"),o("Zľavov\xe9 k\xf3dy do Fitshaker e-shopu")];return(0,i.jsx)(u,{className:t,children:a()(n||c,function(e,t){return(0,i.jsxs)(d,{$checkIconColor:r,children:[(0,i.jsx)(m.nQ,{}),(0,i.jsx)(p,{dangerouslySetInnerHTML:{__html:e}})]},t)})})}},3418:function(e,t,n){"use strict";var i=n(85893),r=n(64871),a=n(50179),l=n(18132),o=n.n(l),c=n(96888),s=n.n(c),u=n(56256),d=n.n(u),p=n(3389),m=n.n(p);t.Z=function(e){var t,n=e.type,l=void 0===n?r.tK.LIST:n,c=e.title,u=e.desc,p=e.className,f=e.action,h=e.style;switch(l){case r.tK.LIST:t=d();break;case r.tK.DAY:t=s();break;case r.tK.CERTIFICATE:t=o();break;case r.tK.CART:t=null;break;case r.tK.NEWSLETTER_REQUEST_INFO:t=m();break;default:t=d()}return(0,i.jsxs)(a.im,{className:p,style:h,children:[null!==t&&(0,i.jsx)(a.FU,{src:t,alt:c}),c&&(0,i.jsx)(a.Dx,{children:c}),u&&(0,i.jsx)(a.dk,{children:u}),f&&(0,i.jsx)(a.Sn,{type:r.JB.BUTTON,variant:(null==f?void 0:f.variant)||r.RN.SECONDARY,label:f.title,iconAfter:null==f?void 0:f.iconAfter,onClick:function(){return f.func()},size:(null==f?void 0:f.size)||r.NO.LG})]})}},50179:function(e,t,n){"use strict";n.d(t,{Dx:function(){return u},FU:function(){return s},Sn:function(){return p},dk:function(){return d},im:function(){return c}});var i=n(82729),r=n(94589),a=n(58654),l=n(32403),o=n(49690);
1function _templateObject(){var e=(0,i._)(["\n	display: flex;\n	position: relative;\n	flex-direction: column;\n	align-items: center;\n	justify-content: center;\n	width: 800px;\n	max-width: 100%;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,i._)(["\n		margin-bottom: ",";\n		width: 288px;\n	"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,i._)(["\n	","\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,i._)(["\n		margin-bottom: ",";\n		",";\n		text-align: center;\n		word-break: break-word;\n		color: ",";\n	"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,i._)(["\n	","\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,i._)(["\n		margin: 0;\n		",";\n		text-align: center;\n		word-break: break-word;\n		color: ",";\n	"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,i._)(["\n	","\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,i._)(["\n		margin-top: ",";\n		max-width: 100%;\n		overflow: hidden;\n		text-overflow: ellipsis;\n		white-space: nowrap;\n	"]);return _templateObject7=function(){return e},e}function _templateObject8(){var e=(0,i._)(["\n	","\n"]);return _templateObject8=function(){return e},e}var c=r.ZP.div.withConfig({componentId:"sc-802ef759-0"})(_templateObject()),s=(0,r.ZP)(o.Z).withConfig({componentId:"sc-802ef759-1"})(_templateObject2(),function(e){var t=e.theme;return(0,r.iv)(_templateObject1(),t.spacing[32])}),u=r.ZP.h3.withConfig({componentId:"sc-802ef759-2"})(_templateObject4(),function(e){var t=e.theme;return(0,r.iv)(_templateObject3(),t.spacing[12],a.lC,t["color-base-content-primary"])}),d=r.ZP.p.withConfig({componentId:"sc-802ef759-3"})(_templateObject6(),function(e){var t=e.theme;return(0,r.iv)(_templateObject5(),a.q6,t["color-base-content-secondary"])}),p=(0,r.ZP)(l.Z).withConfig({componentId:"sc-802ef759-4"})(_templateObject8(),function(e){var t=e.theme;return(0,r.iv)(_templateObject7(),t.spacing[32])})},55754:function(e,t,n){"use strict";var i=n(85893),r=n(64871),a=n(50179),l=n(71818),o=n.n(l);t.Z=function(e){var t=e.title,n=e.desc,l=e.className,c=e.action,s=e.style;return(0,i.jsxs)(a.im,{className:l,style:s,children:[(0,i.jsx)(a.FU,{src:o(),alt:t}),t&&(0,i.jsx)(a.Dx,{children:t}),n&&(0,i.jsx)(a.dk,{children:n}),c&&(0,i.jsx)(a.Sn,{type:r.JB.BUTTON,variant:(null==c?void 0:c.variant)||r.RN.SECONDARY,label:c.title,iconAfter:null==c?void 0:c.iconAfter,onClick:function(){return c.func()},size:(null==c?void 0:c.size)||r.NO.LG})]})}},8161:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return i2},default:function(){return i4}});var i=n(72253),r=n(14932),a=n(85893),l=n(51698),o=n(50494),c=n(58237),s=n(11010),u=n(24043),d=n(97582),p=n(16318),m=n(27484),f=n.n(m),h=n(14293),b=n.n(h),v=n(40554),g=n.n(v),j=n(37303),_=n(11163),y=n(67294),x=n(14416),O=n(30923),S=n(73863),C=n(64871),I=n(70653),w=n(15685),T=n(75766),P=n(59854),A=n.n(P),M=n(72772),k=n(32562),N=n(18135),R=n(71321),E=n(69065),Z=n(93345),D=n(71640),L=n.n(D),B=n(79833),z=n.n(B),F=n(14841),G=n.n(F),decimalCountValidator=function(e,t){return A()(e)===e||!(L()(z()(e),".")[1].length>t)},V=n(82729),H=n(94589),U=n(58654);function _templateObject(){var e=(0,V._)(["\n	display: flex;\n	flex-direction: row;\n	align-items: center;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,V._)(["\n		flex: 0 0 ",";\n		margin: 0;\n		height: 42px;\n		",";\n		color: ",";\n	"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,V._)(["\n	","\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,V._)(["\n		display: flex;\n		flex: 1;\n		flex-direction: ",";\n		gap: ",";\n		max-width: ",";\n	"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,V._)(["\n	","\n"]);return _templateObject4=function(){return e},e}var $="75px",X=H.ZP.div.withConfig({componentId:"sc-1374fa51-0"}
1)(_templateObject()),W=H.ZP.span.withConfig({componentId:"sc-1374fa51-1"})(_templateObject2(),function(e){var t=e.theme;return(0,H.iv)(_templateObject1(),$,U.pu,t["color-base-content-primary"])}),Y=H.ZP.div.withConfig({componentId:"sc-1374fa51-2"})(_templateObject4(),function(e){var t=e.theme,n=e.isStart;return(0,H.iv)(_templateObject3(),n?C.uM.COLUMN:C.uM.ROW,!n&&t.spacing[12],n&&"340px")}),q=n(38044),K=n(40737),J=n(60280),Q=n(49690),ee=n(96570);function ChallengeFormStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			gap: ",";\n			align-items: center;\n		}\n	"]);return ChallengeFormStyles_templateObject=function(){return e},e}function ChallengeFormStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return ChallengeFormStyles_templateObject1=function(){return e},e}function ChallengeFormStyles_templateObject2(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		margin: 0;\n		width: 100%;\n\n		@media (min-width: ","px) {\n			width: 50%;\n		}\n	"]);return ChallengeFormStyles_templateObject2=function(){return e},e}function ChallengeFormStyles_templateObject3(){var e=(0,V._)(["\n	","\n"]);return ChallengeFormStyles_templateObject3=function(){return e},e}function ChallengeFormStyles_templateObject4(){var e=(0,V._)(["\n	aspect-ratio: unset;\n	width: 100%;\n	height: 260px;\n\n	"," {\n		height: 260px;\n		object-position: center;\n	}\n\n	@media (min-width: ","px) {\n		height: 350px;\n\n		"," {\n			height: 350px;\n		}\n	}\n\n	@media (min-width: ","px) {\n		width: 50%;\n	}\n"]);return ChallengeFormStyles_templateObject4=function(){return e},e}function _templateObject5(){var e=(0,V._)(["\n	@media (min-width: ","px) {\n		display: none;\n	}\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,V._)(["\n	display: none;\n\n	@media (min-width: ","px) {\n		display: flex;\n	}\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,V._)(["\n	display: flex;\n	flex-direction: column;\n\n	@media (min-width: ","px) {\n		flex-direction: row;\n		align-items: center;\n	}\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){var e=(0,V._)(["\n		margin-bottom: ",";\n		",";\n		color: ",";\n\n		span {\n			transition: opacity 200ms ease-in-out;\n			text-decoration: underline;\n			color: ",";\n\n			&:hover {\n				opacity: 0.8;\n			}\n		}\n	"]);return _templateObject8=function(){return e},e}function _templateObject9(){var e=(0,V._)(["\n	","\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){var e=(0,V._)(["\n	display: inline-block;\n\n	@media (max-width: ","px) {\n		display: none;\n	}\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){var e=(0,V._)(["\n	display: none;\n\n	@media (max-width: ","px) {\n		display: inline-block;\n	}\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){var e=(0,V._)(["\n		margin: 0 0 0 ",";\n		padding: 0;\n		list-style: disc;\n	"]);return _templateObject12=function(){return e},e}function _templateObject13(){var e=(0,V._)(["\n	","\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){var e=(0,V._)(["\n		margin: 0;\n		padding: 0;\n		",";\n		color: ",";\n\n		&::marker {\n			font-size: 10px;\n		}\n	"]);return _templateObject14=function(){return e},e}function _templateObject15(){var e=(0,V._)(["\n	","\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){var e=(0,V._)(["\n		display: flex;\n		flex-flow: column wrap;\n		gap: ",";\n		margin-top: ",";\n\n		@media (min-width: ","px) {\n			flex-flow: row nowrap;\n		}\n\n		@media (min-width: ","px) {\n			margin-top: 0;\n			margin-left: ",";\n		}\n	"]);return _templateObject16=function(){return e},e}function _templateObject17(){var e=(0,V._)(["\n	","\n"]);return _templateObject17=function(){return e},e}function _templateObject18(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n		}\n	"]);
1return _templateObject18=function(){return e},e}function _templateObject19(){var e=(0,V._)(["\n	","\n"]);return _templateObject19=function(){return e},e}function _templateObject20(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		margin: 0;\n		width: 100%;\n\n		@media (min-width: ","px) {\n			width: 50%;\n		}\n	"]);return _templateObject20=function(){return e},e}function _templateObject21(){var e=(0,V._)(["\n	","\n"]);return _templateObject21=function(){return e},e}function _templateObject22(){var e=(0,V._)(["\n	display: none;\n\n	@media (min-width: ","px) {\n		display: flex;\n		justify-content: center;\n		width: 50%;\n	}\n"]);return _templateObject22=function(){return e},e}function _templateObject23(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return _templateObject23=function(){return e},e}function _templateObject24(){var e=(0,V._)(["\n	","\n"]);return _templateObject24=function(){return e},e}function _templateObject25(){var e=(0,V._)(["\n	display: inline-flex;\n	padding-left: ",";\n	width: 100%;\n"]);return _templateObject25=function(){return e},e}function _templateObject26(){var e=(0,V._)(["\n		margin: 0;\n		width: 50%;\n		",";\n		text-align: center;\n		color: ",";\n	"]);return _templateObject26=function(){return e},e}function _templateObject27(){var e=(0,V._)(["\n	","\n"]);return _templateObject27=function(){return e},e}function _templateObject28(){var e=(0,V._)(["\n	display: none;\n\n	@media (min-width: ","px) {\n		display: flex;\n		align-self: center;\n		max-height: 288px;\n	}\n\n	@media (min-width: ","px) {\n		max-height: 340px;\n	}\n"]);return _templateObject28=function(){return e},e}function _templateObject29(){var e=(0,V._)(["\n		margin: 0;\n		border-top: 0.5px solid ",";\n		width: 100%;\n	"]);return _templateObject29=function(){return e},e}function _templateObject30(){var e=(0,V._)(["\n	","\n"]);return _templateObject30=function(){return e},e}function _templateObject31(){var e=(0,V._)(["\n	margin: 0;\n	",";\n"]);return _templateObject31=function(){return e},e}var et=H.ZP.div.withConfig({componentId:"sc-846cc407-0"})(ChallengeFormStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(ChallengeFormStyles_templateObject(),t.spacing[12],q.AV.xl,t.spacing[32])}),en=H.ZP.div.withConfig({componentId:"sc-846cc407-1"})(ChallengeFormStyles_templateObject3(),function(e){var t=e.theme;return(0,H.iv)(ChallengeFormStyles_templateObject2(),t.spacing[12],q.AV.md)}),ei=(0,H.ZP)(ee.Z).withConfig({componentId:"sc-846cc407-2"})(ChallengeFormStyles_templateObject4(),K.Yo,q.AV.md,K.Yo,q.AV.xl),er=(0,H.ZP)(J.Z).withConfig({componentId:"sc-846cc407-3"})(_templateObject5(),q.AV.xl),ea=(0,H.ZP)(J.Z).withConfig({componentId:"sc-846cc407-4"})(_templateObject6(),q.AV.xl),el=H.ZP.div.withConfig({componentId:"sc-846cc407-5"})(_templateObject7(),q.AV.xl),eo=H.ZP.p.withConfig({componentId:"sc-846cc407-6"})(_templateObject9(),function(e){var t=e.theme,n=e.withMargin;return(0,H.iv)(_templateObject8(),n?t.spacing[12]:0,U.lT,t["color-base-content-tertiary"],t["color-base-content-tertiary"])}),ec=(0,H.ZP)(eo).withConfig({componentId:"sc-846cc407-7"})(_templateObject10(),q.AV.md),es=(0,H.ZP)(eo).withConfig({componentId:"sc-846cc407-8"})(_templateObject11(),q.AV.md),eu=H.ZP.ul.withConfig({componentId:"sc-846cc407-9"})(_templateObject13(),function(e){var t=e.theme;return(0,H.iv)(_templateObject12(),t.spacing[16])}),ed=H.ZP.li.withConfig({componentId:"sc-846cc407-10"})(_templateObject15(),function(e){var t=e.theme;return(0,H.iv)(_templateObject14(),U.lT,t["color-base-content-tertiary"])}),ep=H.ZP.div.withConfig({componentId:"sc-846cc407-11"})(_templateObject17(),function(e){var t=e.theme;return(0,H.iv)(_templateObject16(),t.spacing[16],t.spacing[16],q.AV.md,q.AV.xl,t.spacing[16])}),em=H.ZP.div.withConfig({componentId:"sc-846cc407-12"})(_templateObject19(),function(e){var t=e.theme;return(0,H.iv)(_templateObject18(),t.spacing[32],q.AV.md)}),ef=H.ZP.div.withConfig({componentId:"sc-846cc407-13"})(_templateObject21(),function(e){var t=e.theme;return(0,H.iv)(_templateObject20(),t.spacing[12],q.AV.md)}),eh=H.ZP.div.withConfig({componentId:"sc-846cc407-14"}
1)(_templateObject22(),q.AV.md),eb=H.ZP.div.withConfig({componentId:"sc-846cc407-15"})(_templateObject24(),function(e){var t=e.theme;return(0,H.iv)(_templateObject23(),t.spacing[12])}),ev=H.ZP.div.withConfig({componentId:"sc-846cc407-16"})(_templateObject25(),$),eg=H.ZP.span.withConfig({componentId:"sc-846cc407-17"})(_templateObject27(),function(e){var t=e.theme;return(0,H.iv)(_templateObject26(),U.pu,t["color-base-content-primary"])}),ej=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-846cc407-18"})(_templateObject28(),q.AV.md,q.AV.xl),e_=H.ZP.hr.withConfig({componentId:"sc-846cc407-19"})(_templateObject30(),function(e){var t=e.theme;return(0,H.iv)(_templateObject29(),t["color-base-content-quintarny"])}),ey=H.ZP.p.withConfig({componentId:"sc-846cc407-20"})(_templateObject31(),U.kk),layouts_LayoutCompetitive=function(e){var t=e.title,n=e.descriptionDesktop,i=e.descriptionMobile,r=e.countdownTitle,l=e.countdownDate,o=e.children;return(0,a.jsxs)(w.xu,{children:[(0,a.jsxs)(w.u2,{children:[(0,a.jsxs)(w.eL,{children:[(0,a.jsx)(w.$K,{children:t}),(0,a.jsx)(w.DH,{children:n}),(0,a.jsx)(w.RH,{children:i})]}),(0,a.jsx)(w.fe,{label:r,date:l})]}),o]})},ex=n(99084),eO=n(27980),MeasuremenstInputGroup=function(e){var t=e.name,n=e.placeholder,i=e.label,r=e.required,l=e.suffix,o=e.isStart,c=e.hasErrorTooltip,s=void 0===c||c;return(0,a.jsxs)(X,{isStart:o,children:[(0,a.jsxs)(W,{children:[i,r&&"*"]}),(0,a.jsxs)(Y,{isStart:o,children:[!o&&(0,a.jsx)(R.Z,{name:"".concat(t,"_start"),component:eO.Z,type:"number",suffix:l,onKeyPress:function(e){return(0,I.a_)(e)},step:.01,required:r,hasErrorTooltip:s,disabled:!0}),(0,a.jsx)(R.Z,{name:t,component:eO.Z,type:"number",placeholder:n,suffix:l,onKeyPress:function(e){return(0,I.a_)(e)},step:.01,required:r,hasErrorTooltip:s})]})]})},eS=n(32403),eC=n(32042),eI=n(83428),ew=n(35161),eT=n.n(ew);function RadioGroupFieldChallengeStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return RadioGroupFieldChallengeStyles_templateObject=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return RadioGroupFieldChallengeStyles_templateObject1=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject2(){var e=(0,V._)(["\n		padding: ",";\n		width: 100%;\n		min-height: auto;\n\n		@media (min-width: ","px) {\n			min-height: 72px;\n		}\n\n		@media (min-width: ","px) {\n			padding: ",";\n		}\n	"]);return RadioGroupFieldChallengeStyles_templateObject2=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject3(){var e=(0,V._)(["\n	","\n"]);return RadioGroupFieldChallengeStyles_templateObject3=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject4(){var e=(0,V._)(["\n		position: relative;\n		flex: 0 0 auto;\n		transition:\n			border-color 200ms ease-in-out,\n			background-color 200ms ease-in-out;\n		border: "," solid ",";\n		border-radius: ",";\n		background-color: ",";\n		width: 20px;\n		height: 20px;\n\n		&::after {\n			position: absolute;\n			top: 50%;\n			left: 50%;\n			transform: translate(-50%, -50%);\n			transition: opacity 200ms ease-in-out;\n			opacity: 0;\n			border: 5px solid ",";\n			border-radius: ",";
1\n			content: '';\n		}\n	"]);return RadioGroupFieldChallengeStyles_templateObject4=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject5(){var e=(0,V._)(["\n	","\n"]);return RadioGroupFieldChallengeStyles_templateObject5=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject6(){var e=(0,V._)(["\n	margin-bottom: 0;\n	",";\n	color: ",";\n"]);return RadioGroupFieldChallengeStyles_templateObject6=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject7(){var e=(0,V._)(["\n		display: inline-flex;\n		gap: ",";\n		align-items: center;\n	"]);return RadioGroupFieldChallengeStyles_templateObject7=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject8(){var e=(0,V._)(["\n	","\n"]);return RadioGroupFieldChallengeStyles_templateObject8=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject9(){var e=(0,V._)(["\n		margin-top: ",";\n	"]);return RadioGroupFieldChallengeStyles_templateObject9=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject10(){var e=(0,V._)(["\n	","\n"]);return RadioGroupFieldChallengeStyles_templateObject10=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject11(){var e=(0,V._)(["\n						"," {\n							&::after {\n								opacity: 1;\n							}\n						}\n					"]);return RadioGroupFieldChallengeStyles_templateObject11=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject12(){var e=(0,V._)(["\n					opacity: 0.32;\n					background-color: ",";\n					pointer-events: none;\n\n					input {\n						display: none;\n					}\n\n					"," {\n						color: ",";\n					}\n\n					"," {\n						* {\n							pointer-events: none;\n						}\n					}\n\n					","\n				"]);return RadioGroupFieldChallengeStyles_templateObject12=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject13(){var e=(0,V._)(["\n						&:hover,\n						&:focus {\n							border: "," solid ",";\n\n							"," {\n								border-color: ",";\n							}\n						}\n					"]);return RadioGroupFieldChallengeStyles_templateObject13=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject14(){var e=(0,V._)(["\n						border: "," solid ",";\n\n						"," {\n							border-color: ",";\n							background: ",";\n\n							&::after {\n								opacity: 1;\n							}\n						}\n					"]);return RadioGroupFieldChallengeStyles_templateObject14=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject15(){var e=(0,V._)(["\n					cursor: ",";\n\n					","\n\n					","\n				"]);return RadioGroupFieldChallengeStyles_templateObject15=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject16(){var e=(0,V._)(["\n		position: relative;\n		transition: border-color 200ms ease-in-out;\n		user-select: ",";\n		border: "," solid ",";\n		border-radius: ",";\n		background: ",";\n		height: auto;\n\n		","\n	"]);return RadioGroupFieldChallengeStyles_templateObject16=function(){return e},e}function RadioGroupFieldChallengeStyles_templateObject17(){var e=(0,V._)(["\n	",";\n\n	input {\n		position: absolute;\n		inset: 0;\n		opacity: 0;\n\n		&:not(:disabled) {\n			cursor: pointer;\n		}\n	}\n"]);return RadioGroupFieldChallengeStyles_templateObject17=function(){return e},e}var eP=H.ZP.div.withConfig({componentId:"sc-31872046-0"})(RadioGroupFieldChallengeStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject(),t.spacing[16])}),eA=H.ZP.div.withConfig({componentId:"sc-31872046-1"})(RadioGroupFieldChallengeStyles_templateObject3(),function(e){var t=e.theme;return(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject2(),t.spacing[24],q.AV.sm,q.AV.md,t.spacing[48])}),eM=H.ZP.span.withConfig({componentId:"sc-31872046-2"})(RadioGroupFieldChallengeStyles_templateObject5(),function(e){var t=e.theme;return(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject4(),t.borderWidth.xs,t["color-base-content-quaternary"],t.borderRadius.circle,t["color-base-surface-primary"],t["color-base-action-primary-default"],t.borderRadius.circle)}),ek=H.ZP.h4.withConfig({componentId:"sc-31872046-3"}
1)(RadioGroupFieldChallengeStyles_templateObject6(),U.kk,"color-base-content-secondary"),eN=H.ZP.div.withConfig({componentId:"sc-31872046-4"})(RadioGroupFieldChallengeStyles_templateObject8(),function(e){var t=e.theme;return(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject7(),t.spacing[12])}),eR=H.ZP.div.withConfig({componentId:"sc-31872046-5"})(RadioGroupFieldChallengeStyles_templateObject10(),function(e){var t=e.theme;return(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject9(),t.spacing[16])}),eE=H.ZP.label.withConfig({componentId:"sc-31872046-6"})(RadioGroupFieldChallengeStyles_templateObject17(),function(e){var t=e.disabled,n=e.isSelected,i=e.theme,r=e.readOnly;return(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject16(),!r&&"none",i.borderWidth.md,i["color-base-content-quintarny"],i.borderRadius[16],i["color-base-surface-primary"],t?(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject12(),i["color-base-surface-tertiary"],ek,i["color-base-content-secondary"],eR,n&&(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject11(),eM)):(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject15(),r?"default":"pointer",!r&&(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject13(),i.borderWidth.md,i["color-base-content-primary"],eM,i["color-base-action-primary-default"]),n&&(0,H.iv)(RadioGroupFieldChallengeStyles_templateObject14(),i.borderWidth.md,i["color-base-content-primary"],eM,i["color-base-content-primary"],i["color-base-action-primary-bg"])))}),RadioGroupFieldChallenge_RadioGroupFieldChallenge=function(e){var t=e.input,n=e.options,i=e.className,r=e.disabled,l=e.readOnly;return(0,a.jsx)(eP,{className:i,children:eT()(n,function(e){return(0,a.jsxs)(eE,{onClick:null==e?void 0:e.onClick,isSelected:e.id===parseInt(t.value,10),disabled:r||e.disabled,readOnly:l,children:[(0,a.jsx)("input",{type:"radio",name:t.name,checked:e.id===parseInt(t.value,10),onChange:function(){return t.onChange(e.id)},disabled:l||r||e.disabled}),(0,a.jsxs)(eA,{children:[(0,a.jsxs)(eN,{children:[(0,a.jsx)(eM,{}),(0,a.jsx)(ek,{children:e.title})]}),e.description&&(0,a.jsx)(eR,{children:e.description})]})]},"option ".concat(e.id))})})},eZ=n(19219),eD=n.n(eZ),eL=n(83011),ChallengeCompetitionForm=function(e){var t=e.handleSubmit,n=e.challengeDetail,l=e.setPricesChallengeModalVisible,o=e.formName,c=(0,j.$G)().t,s=n||{},d=s.measurementsBefore,p=s.primaryColor,m=s.startMeasurementsDeadline,h=s.finishMeasurementsDeadline,b=s.conditionsUrl,v=s.allowCompetition,g=(0,x.v9)(function(e){var t;return null===(t=e.user)||void 0===t?void 0:t.challenges.isLoading}),_=(0,x.v9)(function(e){var t;return null===(t=e.settings)||void 0===t?void 0:t.isImageUploading}),O=((0,x.v9)(function(e){return(0,N.Z)(o)(e)})||{}).isCompetition,S=(0,u._)((0,y.useState)(!1),2),T=S[0],P=S[1],A=(0,I.Kd)()===C.MV.CZ?Z.Z.eshopUrlCz:Z.Z.eshopUrlSk,M=!!O,E=o===C.n5.CHALLENGE_COMPETITION_START,D=(0,k.UX)(c),L=f()(m).format("D. M. YYYY"),B=[{id:D.IS_COMPETITION.ID,title:D.IS_COMPETITION.TITLE,description:(0,a.jsxs)(el,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(es,{withMargin:!0,children:c("Ak sa chceš zapojiť do s\xfaťaže o skvel\xe9 ceny, mus\xedš splniť nasledovn\xe9 podmienky")}),(0,a.jsx)(ec,{withMargin:!0,children:c("Podmienky s\xfaťažn\xe9ho zapojenia")}),(0,a.jsxs)(eu,{children:[(0,a.jsx)(ed,{children:c("Zak\xfapiť si aktu\xe1lny Fitness Di\xe1r \xae a odfotiť sa s n\xedm pred a po v\xfdzve, pričom di\xe1r m\xe1š otvoren\xfd na str\xe1nke s akt\xfaalnym mesiacom")}),(0,a.jsx)(ed,{children:c("Vyplniť si všetky miery pred a po v\xfdzve")})]})]}),(0,a.jsxs)(ep,{children:[(0,a.jsx)("a",{href:A,"data-title":c("Zak\xfapiť di\xe1r"),children:(0,a.jsx)(eS.Z,{asHTML:C.vf.SPAN,label:c("Zak\xfapiť di\xe1r"),size:C.NO.LG,fullWidthOnMobile:!0})}),(0,a.jsx)(eS.Z,{variant:C.RN.SECONDARY,label:c("Čo m\xf4žem vyhrať?"),onClick:function(){return l()},size:C.NO.LG,fullWidthOnMobile:!0})]})]})},{id:D.NOT_COMPETITION.ID,title:D.NOT_COMPETITION.TITLE,description:(0,a.jsx)(eo,{children:c("Ulož si \xfadaje iba pre seba a sleduj svoj pokrok vo v\xfdzve, pr\xeddeš však o možnosť hrať o skvel\xe9 ceny Tvoje miery a fotografie nebudeme bez tvojho s\xfahlasu nikde zverejňovať")})}];return(0,a.jsxs)(layouts_LayoutCompetitive,(0,r._)((0,i._)({}
1,function(){if(E)return{title:c("Vyplň si \xfadaje pred v\xfdzvou"),descriptionDesktop:v?c("Vyplň si svoje miery pred v\xfdzvou, nahraj fotku svojej postavy a zapoj sa do s\xfaťaže o skvel\xe9 ceny Ak sa do s\xfaťaže zapojiť nechceš, tvoje \xfadaje nebud\xfa nikde zverejňovan\xe9 a sl\xfažia iba na vygenerovanie v\xfdzvov\xe9ho diplomu"):c("Vyplň si svoje miery pred v\xfdzvou, nahraj fotku svojej postavy a sleduj svoj pokrok pri cvičen\xed Tvoje \xfadaje nebud\xfa nikde zverejňovan\xe9 a sl\xfažia iba na vygenerovanie v\xfdzvov\xe9ho diplomu"),descriptionMobile:c("Vyplňte svoje \xfadaje, nahrajte vaše fotky a zapojte sa do s\xfaťaže o skvel\xe9 ceny"),countdownDate:f()(m).toISOString(),countdownTitle:c("Pre vyplnenie \xfadajov ti ost\xe1va")};var e=c("V\xfdzva skončila! Vyplň svoje \xfadaje, nahraj aktu\xe1lne fotky a vyhodnoť svoj pokrok");return{title:c("Vyplň si \xfadaje po v\xfdzve"),descriptionDesktop:e,descriptionMobile:e,countdownDate:f()(h).toISOString(),countdownTitle:c("Pre vyplnenie \xfadajov ti ost\xe1va")}}()),{children:[E&&(0,a.jsx)(J.Z,{variant:C.HU.IMPORTANT,icon:(0,a.jsx)(eL.sz,{}),content:c("Svoje \xfadaje si m\xf4žeš zap\xedsať do {{formattedStartMeasurementsDeadline}}",{formattedStartMeasurementsDeadline:L}),alwaysRounded:!0}),(0,a.jsx)("form",{onSubmit:t,children:(0,a.jsxs)(w.tv,{children:[v&&(0,a.jsxs)(w.LV,{children:[(0,a.jsxs)(w.zz,{children:[(0,a.jsxs)(w.oq,{children:[(0,a.jsx)(w.vD,{}),(0,a.jsx)(w.RX,{children:c("Sp\xf4sob zapojenia")})]}),!E&&!T&&(0,k.hm)(d)&&(0,a.jsx)(eI.Z,{asHTML:C.vf.BUTTON,onClick:function(){return P(!0)},children:c("Zmeniť sp\xf4sob zapojenia")})]}),o===C.n5.CHALLENGE_COMPETITION_START||T?(0,a.jsx)(R.Z,{name:"isCompetition",component:RadioGroupFieldChallenge_RadioGroupFieldChallenge,options:B,primaryColor:p}):(0,a.jsx)(R.Z,{name:"isCompetition",input:{value:M?D.IS_COMPETITION.ID:D.NOT_COMPETITION.ID},component:RadioGroupFieldChallenge_RadioGroupFieldChallenge,options:M?[{id:D.IS_COMPETITION.ID,title:D.IS_COMPETITION.TITLE}]:[{id:D.NOT_COMPETITION.ID,title:D.NOT_COMPETITION.TITLE}],readOnly:!0})]}),(0,a.jsx)(w.LV,{children:(0,a.jsxs)(et,{children:[(0,a.jsxs)(en,{children:[(0,a.jsx)(w.zz,{children:(0,a.jsxs)(w.oq,{children:[(0,a.jsx)(w.vD,{}),(0,a.jsx)(w.RX,{children:c(E?"Nahraj svoju fotku pred v\xfdzvou":"Nahraj svoju fotku po v\xfdzve")})]})}),(0,a.jsx)(ex.Z,{checkList:M?[c("Tvoja tv\xe1r mus\xed byť viditeľn\xe1"),c("Na fotke mus\xed byť di\xe1r otvoren\xfd na str\xe1nke s akt\xfaalnym mesiacom"),c("Form\xe1t JPG alebo PNG s maxim\xe1lnou veľkosťou 15MB")]:[c("Nahraj svoju fotku a porovnaj si v\xfdsledky pred a po v\xfdzve"),c("Form\xe1t JPG alebo PNG s maxim\xe1lnou veľkosťou 15MB")],checkIconColor:p}),(0,a.jsx)(ea,{variant:C.HU.INFO,icon:(0,a.jsx)(eL.sz,{}),content:M?c("Tvoja fotografia nebude bez tvojho s\xfahlasu nikde zverejnen\xe1 S\xfahlas so zverejnen\xedm fotografie v\xe1m pošleme na mail"):c("Nahrat\xe9 fotky bud\xfa sl\xfažiť len pre tvoje vlastn\xe9 porovnanie pokroku a nikde nebude zverejnen\xe1")})]}),(0,a.jsx)(R.Z,{name:"image",s3directory:C.j8.PROFILE,uploadButton:(0,a.jsx)(eS.Z,{label:c("Nahrať fotku"),icon:(0,a.jsx)(eL.XB,{}),size:C.NO.XL}),component:ei}),(0,a.jsx)(er,{variant:C.HU.INFO,icon:(0,a.jsx)(eL.sz,{}),content:M?c("Tvoja fotografia nebude bez tvojho s\xfahlasu nikde zverejnen\xe1 S\xfahlas so zverejnen\xedm fotografie v\xe1m pošleme na mail"):c("Nahrat\xe9 fotky bud\xfa sl\xfažiť len pre tvoje vlastn\xe9 porovnanie pokroku a nikde nebude zverejnen\xe1"),alwaysRounded:!0})]})}),(0,a.jsx)(w.LV,{children:(0,a.jsxs)(em,{children:[(0,a.jsxs)(ef,{children:[(0,a.jsx)(w.zz,{children:(0,a.jsxs)(w.oq,{children:[(0,a.jsx)(w.vD,{}),(0,a.jsx)(w.RX,{children:c(E?"Vyplň svoje \xfadaje pred v\xfdzvou":"Vyplň svoje \xfadaje po v\xfdzve")})]})}),(0,a.jsxs)(eb,{children:[!E&&(0,a.jsxs)(ev,{children:[(0,a.jsx)(eg,{children:c("Pred v\xfdzvou")}),(0,a.jsx)(eg,{children:c("Po v\xfdzve")})]}),(0,a.jsx)(MeasuremenstInputGroup,{isStart:E,name:C.dG.WEIGHT,label:c("forms_V\xe1ha"),suffix:"kg",required:M}),(0,a.jsx)(MeasuremenstInputGroup,{isStart:E,name:C.dG.HIPS,label:c("forms_Boky"),suffix:"cm",required:M}),(0,a.jsx)(MeasuremenstInputGroup,{isStart:E,name:C.dG.WAIST,label:c("forms_P\xe1s"),suffix:"cm",required:M}),(0,a.jsx)(MeasuremenstInputGroup,{isStart:E,name:C.dG.THIGH,label:c("forms_Stehno"),suffix:"cm",required:M})]})]}),(0,a.jsx)(eh,{children:(0,a.jsx)(ej,{src:eD(),alt:c("Meranie")})})]})}),(0,a.jsx)(e_,{}),(0,a.jsxs)(w.sx,{isCompetition:M,children:[M?(0,a.jsx)(R.Z,{name:"agreement",component:eC.Z,activeContent:!1,bottomMargin:!1,content:(0,a.jsxs)(ey,{children:["".concat(c("forms_S\xfahlas\xedm s")," "),(0,a.jsx)(eI.Z,{href:b||"",target:"_blank",typography:U.kk,underline:!0,children:c("forms_podmienkami s\xfaťaže")})]})}):null,(0,a.jsx)(eS.Z,{type:C.JB.SUBMIT,label:E?c("Uložit \xfadaje"):c("Vyhodnotiť m\xf4j pokrok"),disabled:o===C.n5.CHALLENGE_COMPETITION_START&&(!!g||!!_)||o===C.n5.CHALLENGE_COMPETITION_END&&(!!g||!!_),size:C.NO.XL,fullWidthOnMobile:!0})]})]})})]}))},eB={destroyOnUnmount:!0,forceUnregisterOnUnmount:!0,touchOnChange:!0,validate:function(e){var t={};return e.hips&&!(parseInt(e.hips,10)>=10&&200>=parseInt(e.hips,10))&&(t.hips=null===j.ag||void 0===j.ag?void 0:j.ag.t("Boky mimo rozsah")),e.hips&&!decimalCountValidator(G()(e.hips),2)&&(t.hips=null===j.ag||void 0===j.ag?void 0:j.ag.t("Pr\xedliš vela desatin\xfdch miest")),e.thigh&&!(parseInt(e.thigh,10)>=10&&200>=parseInt(e.thigh,10))&&(t.thigh=null===j.ag||void 0===j.ag?void 0:j.ag.t("Stehno mimo rozsah")),e.thigh&&!decimalCountValidator(G()(e.thigh),2)&&(t.thigh=null===j.ag||void 0===j.ag?void 0:j.ag.t("Pr\xedliš vela desatin\xfdch miest")),e.waist&&!(parseInt(e.waist,10)>=10&&200>=parseInt(e.waist,10))&&(t.waist=null===j.ag||void 0===j.ag?void 0:j.ag.t("P\xe1s mimo rozsah")),e.
1waist&&!decimalCountValidator(G()(e.waist),2)&&(t.waist=null===j.ag||void 0===j.ag?void 0:j.ag.t("Pr\xedliš vela desatin\xfdch miest")),e.weight&&!(parseInt(e.weight,10)>=30&&300>=parseInt(e.weight,10))&&(t.weight=null===j.ag||void 0===j.ag?void 0:j.ag.t("V\xe1ha mimo rozsah")),e.weight&&!decimalCountValidator(G()(e.weight),2)&&(t.weight=null===j.ag||void 0===j.ag?void 0:j.ag.t("Pr\xedliš vela desatin\xfdch miest")),(null==e?void 0:e.isCompetition)&&(e.hips||(t.hips=null===j.ag||void 0===j.ag?void 0:j.ag.t("Pole je povinn\xe9")),e.thigh||(t.thigh=null===j.ag||void 0===j.ag?void 0:j.ag.t("Pole je povinn\xe9")),e.waist||(t.waist=null===j.ag||void 0===j.ag?void 0:j.ag.t("Pole je povinn\xe9")),e.weight||(t.weight=null===j.ag||void 0===j.ag?void 0:j.ag.t("Pole je povinn\xe9")),e.image||(t.image=null===j.ag||void 0===j.ag?void 0:j.ag.t("Obr\xe1zok je povinn\xfd")),e.agreement||(t.agreement=null===j.ag||void 0===j.ag?void 0:j.ag.t("Mus\xedš s\xfahlasiť s podmienkami"))),t},onSubmitFail:function(e){return(0,I.rD)(e)}},ez=(0,E.Z)((0,r._)((0,i._)({},eB),{form:C.n5.CHALLENGE_COMPETITION_START}))(ChallengeCompetitionForm),eF=(0,E.Z)((0,r._)((0,i._)({},eB),{form:C.n5.CHALLENGE_COMPETITION_END}))(ChallengeCompetitionForm),eG=n(13311),eV=n.n(eG),eH=n(75472),eU=n.n(eH),layouts_LayoutHarmonic=function(e){var t=e.title,n=e.descriptionDesktop,i=e.descriptionMobile,r=e.countdownTitle,l=e.countdownDate,o=e.subtitle,c=e.secondDescription,s=e.children;return(0,a.jsxs)(w.xu,{children:[(0,a.jsxs)(w.u2,{children:[(0,a.jsxs)(w.eL,{children:[(0,a.jsx)(w.$K,{children:t}),n&&(0,a.jsx)(w.DH,{children:n}),i&&(0,a.jsx)(w.RH,{children:i})]}),(0,a.jsx)(w.fe,{label:r,date:l})]}),(0,a.jsx)(e_,{}),(0,a.jsxs)(w.MX,{children:[(0,a.jsx)(w.RX,{children:o}),c&&(0,a.jsx)(w.F6,{children:c})]}),s]})},e$=n(94966),eX=n(86877),eW=n(36366),eY=n.n(eW),eq=n(88101),eK=n.n(eq),eJ=n(70339),eQ=n.n(eJ),e0=n(1049),e1=n.n(e0),e2=n(53532),e4=n.n(e2),e3=n(52805),e6=n.n(e3),e9=n(96141),e8=n.n(e9),e5=n(29834),e7=n.n(e5),te=n(35321),tt=n.n(te),tn=n(82057),ti=n.n(tn),ChallengeHarmonicForm=function(e){var t=e.handleSubmit,n=e.challengeDetail,l=e.formState,o=e.pristine,c=e.formName,s=(0,j.$G)(),u=s.t,d=s.i18n,p=n||{},m=p.primaryColor,h=p.secondaryColor,b=p.questions,v=p.answersAfter,g=(0,x.v9)(function(e){var t;return null===(t=e.user)||void 0===t?void 0:t.challenges.isLoading}),_=[eY(),eQ(),e1(),e4(),e6(),e8(),e7(),tt(),ti(),eK()],y=(0,k.z8)(v);return(0,a.jsx)(layouts_LayoutHarmonic,(0,r._)((0,i._)({},function(){switch(l){case C.ih.START:return{title:u("Vyplň dotazn\xedk pred v\xfdzvou"),subtitle:u("Tvoje pocity pred v\xfdzvou"),countdownDate:f()(n.startMeasurementsDeadline).toISOString(),countdownTitle:u("Pre vyplnenie dotazn\xedka ti ost\xe1va"),primaryColor:m};case C.ih.ONGOING:return{title:u("V\xfdzva prebieha"),subtitle:u("Tvoje pocity pred v\xfdzvou"),countdownDate:f()(n.finishedAt).toISOString(),countdownTitle:u("Do ukončenia v\xfdzvy ost\xe1va"),primaryColor:m};case C.ih.END:return{title:u("Vyplň dotazn\xedk po v\xfdzve"),subtitle:u("Tvoje pocity po v\xfdzve"),countdownDate:f()(n.finishMeasurementsDeadline).toISOString(),countdownTitle:u("Pre vyplnenie dotazn\xedka ti ost\xe1va"),primaryColor:m}}}()),{children:(0,a.jsxs)("form",{onSubmit:t,children:[(0,a.jsx)(w.tv,{children:eT()(eU()(b,["order"],["asc"]),function(e){for(var t=eV()(null==e?void 0:e.translations,function(e){return e.language===d.language}),n=(e.maxValue||0)-(e.minValue||0)+1,i=[],r=0;r<n;r+=1)i.push({value:r+1,icon:_[r]});return t&&(0,a.jsxs)(w.$4,{children:[(0,a.jsxs)(w.Sf,{children:[(0,a.jsx)(w.vD,{}),(0,a.jsxs)(w.XX,{children:[(0,a.jsx)(w.RX,{children:t.text}),t.note&&(0,a.jsx)(w.F6,{children:t.note})]})]}),(0,a.jsxs)(w.aT,{children:[(0,a.jsx)(R.Z,{name:(0,C.zn)(e.id),component:e$.Z,options:i,primaryColor:m,secondaryColor:h,minDescription:t.minDescription,maxDescription:t.maxDescription,disabled:l===C.ih.ONGOING}),(0,a.jsx)(R.Z,{name:(0,C.JG)(e.id),component:eX.Z,placeholder:u("Tvoj koment\xe1r"),disabled:l===C.ih.ONGOING,size:C.NO.XL,hasErrorTooltip:!1})]})]},e.id)})}),l!==C.ih.ONGOING&&(0,a.jsx)(w.sx,{children:(0,a.jsx)(eS.Z,{type:C.JB.SUBMIT,label:l===C.ih.START?u("Uložit odpovede"):u("Vyhodnotiť m\xf4j pokrok"),disabled:c===C.n5.CHALLENGE_HARMONIC_START?g||o:y&&(g||o),size:C.NO.XL,fullWidthOnMobile:!0,style:{marginTop:"40px"}})})]})}))}
1,tr={destroyOnUnmount:!0,forceUnregisterOnUnmount:!0,touchOnChange:!0},ta=(0,E.Z)((0,r._)((0,i._)({},tr),{form:C.n5.CHALLENGE_HARMONIC_START}))(ChallengeHarmonicForm),tl=(0,E.Z)((0,r._)((0,i._)({},tr),{form:C.n5.CHALLENGE_HARMONIC_END}))(ChallengeHarmonicForm),to=n(72351),ChallengeEnd_ChallengeEnd=function(e){var t,n,i,r,l=e.challengeDetail,o=e.setPricesChallengeModalOpen,c=e.isSubscribed,u=e.setIsChallengeEndFormEdited,p=e.challengeType,m=(0,j.$G)().t,f=(0,x.I0)(),h=l||{},b=h.id,v=h.measurementsAfter,g=h.measurementsBefore,_=h.isCompetition,O=h.questions,w=h.answersAfter,P=h.allowCompetition,N=(0,y.useMemo)(function(){return(0,k.UX)(m)},[m]);(0,y.useEffect)(function(){if(p===C.EZ.COMPETITIVE){var e,t=(e={},(0,T._)(e,C.dG.HIPS,(null==v?void 0:v.hips)||null),(0,T._)(e,C.dG.WEIGHT,(null==v?void 0:v.weight)||null),(0,T._)(e,C.dG.THIGH,(null==v?void 0:v.thigh)||null),(0,T._)(e,C.dG.WAIST,(null==v?void 0:v.waist)||null),(0,T._)(e,"image",null==v?void 0:v.image),(0,T._)(e,"".concat(C.dG.HIPS,"_start"),(null==g?void 0:g.hips)||null),(0,T._)(e,"".concat(C.dG.WEIGHT,"_start"),(null==g?void 0:g.weight)||null),(0,T._)(e,"".concat(C.dG.THIGH,"_start"),(null==g?void 0:g.thigh)||null),(0,T._)(e,"".concat(C.dG.WAIST,"_start"),(null==g?void 0:g.waist)||null),e);P?t.isCompetition=_?N.IS_COMPETITION.ID:N.NOT_COMPETITION.ID:t.isCompetition=N.NOT_COMPETITION.ID,_&&(t.agreement=!!(null==v?void 0:v.image)),f((0,M.j2)(C.n5.CHALLENGE_COMPETITION_END,t))}else p===C.EZ.HARMONIC?f((0,M.j2)(C.n5.CHALLENGE_HARMONIC_END,(0,k.ke)(O,w))):p===C.EZ.NON_COMPETITIVE&&f((0,M.j2)(C.n5.CHALLENGE_NON_COMPETITIVE_END_END,(0,k.ke)(O,w)))},[f,v,w,_,O,p,N,g,P]);var R=(t=(0,s._)(function(){return(0,d.Jh)(this,function(e){switch(e.label){case 0:return[4,f((0,S.IM)(b))];case 1:return e.sent(),[4,f((0,S.fU)(b,void 0,void 0,void 0,!1))];case 2:return e.sent(),u(!0),(0,I.k3)(),[2]}})}),function(){return t.apply(this,arguments)}),E=(n=(0,s._)(function(e){var t;return(0,d.Jh)(this,function(n){switch(n.label){case 0:return t={isCompetition:!!P&&(null==e?void 0:e.isCompetition)===N.IS_COMPETITION.ID,measurementsAfter:{weight:A()(e[C.dG.WEIGHT],2),hips:A()(e[C.dG.HIPS],2),thigh:A()(e[C.dG.THIGH],2),waist:A()(e[C.dG.WAIST],2),image:(null==e?void 0:e.image)||void 0}},[4,f((0,S.xq)(b,t))];case 1:return n.sent(),R(),[2]}})}),function(e){return n.apply(this,arguments)}),Z=(i=(0,s._)(function(e){var t;return(0,d.Jh)(this,function(n){switch(n.label){case 0:return t={answersAfter:(0,k.B)(O,e)},[4,f((0,S.s2)(b,t))];case 1:return n.sent(),R(),[2]}})}),function(e){return i.apply(this,arguments)}),D=(r=(0,s._)(function(e){var t;return(0,d.Jh)(this,function(n){switch(n.label){case 0:return t={answersAfter:(0,k.B)(O,e)},[4,f((0,S.s2)(b,t))];case 1:return n.sent(),[4,f((0,S.IM)(b))];case 2:return n.sent(),[4,f((0,S.fU)(b,void 0,void 0,void 0,!1))];case 3:return n.sent(),[2]}})}),function(e){return r.apply(this,arguments)});return c&&function(){switch(p){case C.EZ.COMPETITIVE:return(0,a.jsx)(eF,{formName:C.n5.CHALLENGE_COMPETITION_END,challengeDetail:l,onSubmit:E,setPricesChallengeModalVisible:o});case C.EZ.HARMONIC:return(0,a.jsx)(tl,{formName:C.n5.CHALLENGE_HARMONIC_END,formState:C.ih.END,challengeDetail:l,onSubmit:Z});case C.EZ.NON_COMPETITIVE:return(0,a.jsx)(to.u,{onSubmit:D,questions:O,primaryColor:null==l?void 0:l.primaryColor,secondaryColor:null==l?void 0:l.secondaryColor,showSubmitButton:!0});default:return null}}()};function LoggedInStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return LoggedInStyles_templateObject=function(){return e},e}function LoggedInStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return LoggedInStyles_templateObject1=function(){return e},e}function LoggedInStyles_templateObject2(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			display: none;\n		}\n	"]);return LoggedInStyles_templateObject2=function(){return e},e}function LoggedInStyles_templateObject3(){var e=(0,V._)(["\n	","\n"]);return LoggedInStyles_templateObject3=function(){return e},e}
1function LoggedInStyles_templateObject4(){var e=(0,V._)(["\n		display: none;\n\n		@media (min-width: ","px) {\n			display: flex;\n			flex-direction: row;\n			gap: ",";\n			justify-content: space-between;\n		}\n\n		@media (min-width: ","px) {\n			gap: ",";\n		}\n	"]);return LoggedInStyles_templateObject4=function(){return e},e}function LoggedInStyles_templateObject5(){var e=(0,V._)(["\n	","\n"]);return LoggedInStyles_templateObject5=function(){return e},e}function LoggedInStyles_templateObject6(){var e=(0,V._)(["\n		@media (min-width: ","px) {\n			display: flex;\n			flex-direction: column;\n			gap: ",";\n			width: 55%;\n		}\n	"]);return LoggedInStyles_templateObject6=function(){return e},e}function LoggedInStyles_templateObject7(){var e=(0,V._)(["\n	","\n"]);return LoggedInStyles_templateObject7=function(){return e},e}function LoggedInStyles_templateObject8(){var e=(0,V._)(["\n	align-self: center;\n	transform: scaleX(-1);\n	max-width: 280px;\n\n	@media (min-width: ","px) {\n		width: 45%;\n		max-width: 363px;\n	}\n"]);return LoggedInStyles_templateObject8=function(){return e},e}function LoggedInStyles_templateObject9(){var e=(0,V._)(["\n	",";\n"]);return LoggedInStyles_templateObject9=function(){return e},e}function LoggedInStyles_templateObject10(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			gap: ",";\n		}\n\n		@media (min-width: ","px) {\n			display: none;\n		}\n	"]);return LoggedInStyles_templateObject10=function(){return e},e}function LoggedInStyles_templateObject11(){var e=(0,V._)(["\n	","\n"]);return LoggedInStyles_templateObject11=function(){return e},e}function LoggedInStyles_templateObject12(){var e=(0,V._)(["\n	display: none;\n\n	@media (min-width: ","px) {\n		display: flex;\n	}\n"]);return LoggedInStyles_templateObject12=function(){return e},e}function LoggedInStyles_templateObject13(){var e=(0,V._)(["\n	flex-direction: column;\n	align-items: center;\n\n	@media (min-width: ","px) {\n		align-items: start;\n	}\n"]);return LoggedInStyles_templateObject13=function(){return e},e}function LoggedInStyles_templateObject14(){var e=(0,V._)(["\n	width: 100%;\n\n	@media (min-width: ","px) {\n		margin: 0 auto;\n		width: fit-content;\n	}\n\n	@media (min-width: ","px) {\n		margin: 0;\n	}\n"]);return LoggedInStyles_templateObject14=function(){return e},e}function LoggedInStyles_templateObject15(){var e=(0,V._)(["\n		margin-top: ",";\n		padding: 0;\n	"]);return LoggedInStyles_templateObject15=function(){return e},e}function LoggedInStyles_templateObject16(){var e=(0,V._)(["\n	",";\n"]);return LoggedInStyles_templateObject16=function(){return e},e}function LoggedInStyles_templateObject17(){var e=(0,V._)(["\n		padding-left: ",";\n		list-style: inside;\n\n		a {\n			text-decoration: underline;\n		}\n	"]);return LoggedInStyles_templateObject17=function(){return e},e}function LoggedInStyles_templateObject18(){var e=(0,V._)(["\n	","\n"]);return LoggedInStyles_templateObject18=function(){return e},e}var tc=H.ZP.div.withConfig({componentId:"sc-3569519e-0"})(LoggedInStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(LoggedInStyles_templateObject(),t.spacing[24])}),ts=H.ZP.div.withConfig({componentId:"sc-3569519e-1"})(LoggedInStyles_templateObject3(),function(e){var t=e.theme;return(0,H.iv)(LoggedInStyles_templateObject2(),t.spacing[24],q.AV.md)}),tu=H.ZP.div.withConfig({componentId:"sc-3569519e-2"})(LoggedInStyles_templateObject5(),function(e){var t=e.theme;return(0,H.iv)(LoggedInStyles_templateObject4(),q.AV.md,t.spacing[24],q.AV.xl,t.spacing[64])}),td=H.ZP.div.withConfig({componentId:"sc-3569519e-3"})(LoggedInStyles_templateObject7(),function(e){var t=e.theme;return(0,H.iv)(LoggedInStyles_templateObject6(),q.AV.md,t.spacing[24])}),tp=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-3569519e-4"})(LoggedInStyles_templateObject8(),q.AV.md),tm=H.ZP.a.withConfig({componentId:"sc-3569519e-5"})(LoggedInStyles_templateObject9(),U.lT),tf=H.ZP.div.withConfig({componentId:"sc-3569519e-6"})(LoggedInStyles_templateObject11(),function(e){var t=e.theme;
1return(0,H.iv)(LoggedInStyles_templateObject10(),t.spacing[32],q.AV.md,t.spacing[24],q.AV.xl)}),th=(0,H.ZP)(tf).withConfig({componentId:"sc-3569519e-7"})(LoggedInStyles_templateObject12(),q.AV.xl),tb=(0,H.ZP)(w.fe).withConfig({componentId:"sc-3569519e-8"})(LoggedInStyles_templateObject13(),q.AV.xl),tv=(0,H.ZP)(eS.Z).withConfig({componentId:"sc-3569519e-9"})(LoggedInStyles_templateObject14(),q.AV.sm,q.AV.xl),tg=H.ZP.ul.withConfig({componentId:"sc-3569519e-10"})(LoggedInStyles_templateObject16(),function(e){var t=e.theme;return(0,H.iv)(LoggedInStyles_templateObject15(),t.spacing[8])}),tj=H.ZP.li.withConfig({componentId:"sc-3569519e-11"})(LoggedInStyles_templateObject18(),function(e){var t=e.theme;return(0,H.iv)(LoggedInStyles_templateObject17(),t.spacing[8])});function ChallengeLoginStyles_templateObject(){var e=(0,V._)(["\n		gap: ",";\n\n		@media (min-width: ","px) {\n			gap: ",";\n		}\n\n		@media (min-width: ","px) {\n			gap: ",";\n		}\n	"]);return ChallengeLoginStyles_templateObject=function(){return e},e}function ChallengeLoginStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return ChallengeLoginStyles_templateObject1=function(){return e},e}function ChallengeLoginStyles_templateObject2(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		"," {\n			align-items: center;\n			align-self: center;\n		}\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			gap: ",";\n			justify-content: space-between;\n\n			"," {\n				align-items: start;\n				align-self: flex-end;\n			}\n		}\n	"]);return ChallengeLoginStyles_templateObject2=function(){return e},e}function ChallengeLoginStyles_templateObject3(){var e=(0,V._)(["\n	","\n"]);return ChallengeLoginStyles_templateObject3=function(){return e},e}function ChallengeLoginStyles_templateObject4(){var e=(0,V._)(["\n		display: flex;\n		flex-flow: row wrap;\n		gap: ",";\n		justify-content: space-between;\n		padding: 0;\n		width: 100%;\n		list-style: none;\n		counter-reset: item;\n\n		> li {\n			width: 100%;\n		}\n\n		@media (min-width: ","px) {\n			gap: "," ",";\n\n			> li {\n				width: calc(50% - ",");\n			}\n		}\n\n		@media (min-width: ","px) {\n			flex-wrap: nowrap;\n			gap: ",";\n\n			> li {\n				width: 25%;\n			}\n		}\n	"]);return ChallengeLoginStyles_templateObject4=function(){return e},e}function ChallengeLoginStyles_templateObject5(){var e=(0,V._)(["\n	","\n"]);return ChallengeLoginStyles_templateObject5=function(){return e},e}function ChallengeLoginStyles_templateObject6(){var e=(0,V._)(["\n	width: 100%;\n\n	@media (min-width: ","px) {\n		margin: 0 auto;\n		width: fit-content;\n	}\n"]);return ChallengeLoginStyles_templateObject6=function(){return e},e}var t_=(0,H.ZP)(w.xu).withConfig({componentId:"sc-97359166-0"})(ChallengeLoginStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(ChallengeLoginStyles_templateObject(),t.spacing[64],q.AV.md,t.spacing[48],q.AV.xl,t.spacing[64])}),ty=H.ZP.div.withConfig({componentId:"sc-97359166-1"})(ChallengeLoginStyles_templateObject3(),function(e){var t=e.theme;return(0,H.iv)(ChallengeLoginStyles_templateObject2(),t.spacing[24],w.fe,q.AV.md,t.spacing[32],w.fe)}),tx=H.ZP.div.withConfig({componentId:"sc-97359166-2"})(ChallengeLoginStyles_templateObject5(),function(e){var t=e.theme;return(0,H.iv)(ChallengeLoginStyles_templateObject4(),t.spacing[16],q.AV.sm,t.spacing[48],t.spacing[16],t.spacing[8],q.AV.xl,t.spacing[24])}),tO=(0,H.ZP)(eS.Z).withConfig({componentId:"sc-97359166-3"})(ChallengeLoginStyles_templateObject6(),q.AV.sm),tS=n(87644),tC=n.n(tS),LoggedIn_LoggedIn=function(e){var t=e.challengeType,n=e.startDate,i=e.secondaryColor,r=e.domain,l=void 0===r?null:r,o=e.allowCompetition,c=(0,j.$G)().t,s=(0,I.Kd)(),u=f()(n).format("D. M. YYYY"),getInfoBox=function(){var e=s===C.MV.CZ?Z.Z.eshopUrlCz:Z.Z.eshopUrlSk;switch(t){case C.EZ.HARMONIC:return(0,a.jsx)(J.Z,{variant:i||C.HU.SUCCESS,content:(0,a.jsxs)(a.Fragment,{children:[c("Ak sa chceš zapojiť s\xfaťažne a hrať o skvel\xe9 ceny nezabudni splniť tieto podmienky"),(0,a.jsxs)(tg,{children:[(0,a.jsxs)(tj,{children:[c("Zak\xfapiť si "),(0,a.jsx)(eI.Z,{href:c("paths:profileMembership|path"),children:c("členstvo")})]}),(0,a.jsx)(tj,{children:c("Vyplniť dotazn\xedk pred a po v\xfdzve")})]})]}),icon:(0,a.jsx)(eL.sz,{}),alwaysRounded:!0});case C.EZ.COMPETITIVE:return o&&(0,a.jsx)(J.Z,{variant:i,content:(0,a.jsxs)(a.Fragment,{children:[c("Ak sa chceš za
1pojiť s\xfaťažne a hrať o skvel\xe9 ceny nezabudni si"),"\xa0",(0,a.jsx)(tm,{href:e,target:C.hI.BLANK,children:c("zak\xfapiť di\xe1r")}),"\xa0",c("s ktor\xfdm sa odfot\xedš pred a po v\xfdzve")]}),icon:(0,a.jsx)(eL.sz,{}),alwaysRounded:!0});default:return null}},getTitle=function(){return n?(0,a.jsx)(w.$K,{children:c("Gratulujeme! Bola si zapojen\xe1 do v\xfdzvy Zač\xedname {{formattedStartDate}}",{formattedStartDate:u})}):(0,a.jsx)(w.$K,{children:c("Gratulujeme! Bola si zapojen\xe1 do v\xfdzvy")})},getIllustration=function(){return(0,a.jsx)(tp,{src:tC(),alt:t===C.EZ.HARMONIC?c("lebo šťastie nek\xfapiš v obchode N\xe1jdeš ho v SEBE!"):c("Prihl\xe1senie do v\xfdzvy")})},getCountdown=function(){switch(t){case C.EZ.HARMONIC:return n&&(0,a.jsx)(tb,{date:f()(n).toISOString(),label:c("Do začiatku v\xfdzvy ost\xe1va")});case C.EZ.COMPETITIVE:return(0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsx)(tb,{date:f()(n).toISOString(),label:c("Do začiatku v\xfdzvy ost\xe1va")}),l&&(0,a.jsx)(tv,{asHTML:C.vf.ANCHOR,href:c("paths:calendar|path"),label:c("Zobraziť kalend\xe1r"),size:C.NO.LG})]});default:return null}},d=(0,a.jsxs)(ts,{children:[getTitle(),getIllustration(),getInfoBox()]}),p=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(tu,{children:[(0,a.jsxs)(td,{children:[getTitle(),getInfoBox(),(0,a.jsx)(th,{children:getCountdown()})]}),getIllustration()]}),(0,a.jsx)(tf,{children:getCountdown()})]});return(0,a.jsx)(t_,{children:(0,a.jsxs)(tc,{children:[d,p]})})};function StepDescriptionListItemStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		counter-increment: item;\n	"]);return StepDescriptionListItemStyles_templateObject=function(){return e},e}function StepDescriptionListItemStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return StepDescriptionListItemStyles_templateObject1=function(){return e},e}function StepDescriptionListItemStyles_templateObject2(){var e=(0,V._)(["\n	max-width: 208px;\n\n	@media (min-width: ","px) {\n		max-width: 280px;\n	}\n\n	@media (min-width: ","px) {\n		max-width: 300px;\n	}\n"]);return StepDescriptionListItemStyles_templateObject2=function(){return e},e}function StepDescriptionListItemStyles_templateObject3(){var e=(0,V._)(["\n		&::before {\n			display: flex;\n			align-items: center;\n			justify-content: center;\n			border-radius: ",";\n			background-color: ",";\n			width: 56px;\n			height: 56px;\n			",";\n			color: ",";\n			content: counter(item, decimal-leading-zero);\n		}\n	"]);return StepDescriptionListItemStyles_templateObject3=function(){return e},e}function StepDescriptionListItemStyles_templateObject4(){var e=(0,V._)(["\n	","\n"]);return StepDescriptionListItemStyles_templateObject4=function(){return e},e}function StepDescriptionListItemStyles_templateObject5(){var e=(0,V._)([""]);return StepDescriptionListItemStyles_templateObject5=function(){return e},e}function StepDescriptionListItemStyles_templateObject6(){var e=(0,V._)(["\n		margin-bottom: ",";\n		",";\n		color: ",";\n	"]);return StepDescriptionListItemStyles_templateObject6=function(){return e},e}function StepDescriptionListItemStyles_templateObject7(){var e=(0,V._)(["\n	","\n"]);return StepDescriptionListItemStyles_templateObject7=function(){return e},e}function StepDescriptionListItemStyles_templateObject8(){var e=(0,V._)(["\n		margin-bottom: ",";\n		",";\n		color: ",";\n	"]);return StepDescriptionListItemStyles_templateObject8=function(){return e},e}function StepDescriptionListItemStyles_templateObject9(){var e=(0,V._)(["\n	","\n"]);return StepDescriptionListItemStyles_templateObject9=function(){return e},e}function StepDescriptionListItemStyles_templateObject10(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return StepDescriptionListItemStyles_templateObject10=function(){return e},e}function StepDescriptionListItemStyles_templateObject11(){var e=(0,V._)(["\n	","\n"]);return StepDescriptionListItemStyles_templateObject11=function(){return e},e}var tI=H.ZP.li.withConfig({componentId:"sc-13f8f5e9-0"})(StepDescriptionListItemStyles_templateObject1(),function(e){var t=e.theme;
1return(0,H.iv)(StepDescriptionListItemStyles_templateObject(),t.spacing[20])}),tw=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-13f8f5e9-1"})(StepDescriptionListItemStyles_templateObject2(),q.AV.md,q.AV.xl),tT=H.ZP.div.withConfig({componentId:"sc-13f8f5e9-2"})(StepDescriptionListItemStyles_templateObject4(),function(e){var t=e.theme;return(0,H.iv)(StepDescriptionListItemStyles_templateObject3(),t.borderRadius.circle,t["color-base-surface-quaternary"],U.EP,t["color-base-content-secondary"])});H.ZP.div.withConfig({componentId:"sc-13f8f5e9-3"})(StepDescriptionListItemStyles_templateObject5());var tP=H.ZP.h3.withConfig({componentId:"sc-13f8f5e9-4"})(StepDescriptionListItemStyles_templateObject7(),function(e){var t=e.theme;return(0,H.iv)(StepDescriptionListItemStyles_templateObject6(),t.spacing[8],U.DC,t["color-base-content-top"])}),tA=H.ZP.span.withConfig({componentId:"sc-13f8f5e9-5"})(StepDescriptionListItemStyles_templateObject9(),function(e){var t=e.theme;return(0,H.iv)(StepDescriptionListItemStyles_templateObject8(),t.spacing[4],U.pu,t["color-base-content-secondary"])}),tM=H.ZP.p.withConfig({componentId:"sc-13f8f5e9-6"})(StepDescriptionListItemStyles_templateObject11(),function(e){var t=e.theme;return(0,H.iv)(StepDescriptionListItemStyles_templateObject10(),U.lT,t["color-base-content-secondary"])}),ChallengeLogIn_StepDescriptionListItem_StepDescriptionListItem=function(e){var t=e.className,n=e.title,i=e.illustration,r=e.timeInfo,l=e.description;return(0,a.jsxs)(tI,{className:t,children:[(0,a.jsx)(tw,{src:i,alt:n}),(0,a.jsx)(tT,{}),(0,a.jsxs)("div",{children:[(0,a.jsx)(tP,{children:n}),(0,a.jsx)(tA,{children:r}),(0,a.jsx)(tM,{children:l})]})]})},tk=n(41514),tN=n.n(tk),tR=n(39473),tE=n.n(tR),tZ=n(29049),tD=n.n(tZ),NotLoggedIn_NotLoggedIn=function(e){var t,n=e.handleChallengeLogin,r=e.challengeDates,l=e.isAfterStart,o=e.challengeType,c=(0,j.$G)().t,s=(t={},(0,T._)(t,C.EZ.COMPETITIVE,[{title:c("Prihl\xe1senie do v\xfdzvy"),timeInfo:(0,k.g)(r,c,l),description:c("Zapoj sa do v\xfdzvy a pracuj na sebe s našim fitness programom"),illustration:tC()},{title:c("Začiatok v\xfdzvy"),timeInfo:(0,k.ld)(r,c),description:c("Vyplň svoje \xfadaje, nahraj svoje fotky a zapoj sa do v\xfdzvy"),illustration:tD()},{title:c("Koniec v\xfdzvy"),timeInfo:(0,k.KM)(r,c),description:c("Vyplň svoje \xfadaje, nahraj svoje aktu\xe1lne fotky a vyhodnoť svoj pokrok"),illustration:tE()},{title:c("Vyhodnotenie"),timeInfo:c("Po ukončen\xed v\xfdzvy"),description:c("Nechaj si vyhodnotiť svoj pokrok a my ti vystav\xedme certifik\xe1t"),illustration:tN()}]),(0,T._)(t,C.EZ.HARMONIC,[{title:c("Prihl\xe1senie do v\xfdzvy"),timeInfo:(0,k.g)(r,c,l),description:c("Zapoj sa do v\xfdzvy a pracuj na sebe s našim fitness programom"),illustration:tC()},{title:c("Začiatok v\xfdzvy"),timeInfo:(0,k.ld)(r,c),description:c("Na začiatku vyplň \xfadaje o svojich pocitoch pred v\xfdzvou"),illustration:tD()},{title:c("Koniec v\xfdzvy"),timeInfo:(0,k.KM)(r,c),description:c("Na konci vyplň \xfadaje o svojich pocitoch po v\xfdzve"),illustration:tE()},{title:c("Vyhodnotenie"),timeInfo:c("Po ukončen\xed v\xfdzvy"),description:c("Nechaj si vyhodnotiť svoj pokrok a my ti vystav\xedme certifik\xe1t"),illustration:tN()}]),(0,T._)(t,C.EZ.NON_COMPETITIVE,[{title:c("Prihl\xe1senie do v\xfdzvy"),timeInfo:(0,k.g)(r,c,l),description:c("Makaj vo v\xfdzve"),illustration:tC()},{title:c("Priebeh v\xfdzvy"),timeInfo:(0,k.UQ)(r,c,!1),description:c("Makaj vo v\xfdzve"),illustration:tE()},{title:c("Koniec v\xfdzvy"),timeInfo:(0,k.KM)(r,c),description:c("Odpovedz na jednoduch\xfa ot\xe1zku"),illustration:tN()}]),t);return(0,a.jsxs)(t_,{children:[(0,a.jsxs)(ty,{children:[(0,a.jsxs)(w.eL,{children:[(0,a.jsx)(w.$K,{children:c("Zapoj sa do v\xfdzvy")}),o!==C.EZ.NON_COMPETITIVE&&(0,a.jsx)(w.F6,{children:c(o===C.EZ.HARMONIC?"Vyplň dotazn\xedk, zap\xedš si svoje pocity a zapoj sa do v\xfdzvy":"Vyplň svoje \xfadaje, nahraj svoje fotky a zapoj sa do v\xfdzvy")})]}),(0,a.jsx)(w.fe,(0,i._)({},l?{date:f()(r.startMeasurementsDeadline).toISOString(),label:c("V\xfdzva už začala")}:{date:f()(r.startedAt).toISOString(),label:c("Pre zapojenie do v\xfdzvy ti ost\xe1va")}))]}),(0,a.jsx)(tx,{children:eT()(s[o],function(e){return(0,a.jsx)(ChallengeLogIn_StepDescriptionListItem_StepDescriptionListItem,{illustration:e.illustration,title:e.title,timeInfo:e.timeInfo,description:e.description})})}
1),(0,a.jsx)(tO,{label:c("Chcem sa zapojiť do v\xfdzvy"),onClick:n,size:C.NO.XL})]})},ChallengeLogIn_ChallengeLogin=function(e){var t=e.challengeDetail,n=t.startedAt,i=t.finishedAt,r=t.startMeasurementsDeadline,l=t.finishMeasurementsDeadline,o=t.signupDeadline,c=t.secondaryColor,s=t.domain,u=t.allowCompetition,d=e.challengeType,p=e.isAfterStart,m=void 0!==p&&p,f=e.alreadyLoggedIn,h=e.isSubscribed,b=e.handleChallengeLogin;return function(){switch(!0){case!f:return(0,a.jsx)(NotLoggedIn_NotLoggedIn,{handleChallengeLogin:b,challengeDates:{startedAt:n,finishedAt:i,startMeasurementsDeadline:r,finishMeasurementsDeadline:l,signupDeadline:o},isAfterStart:m,challengeType:d});case h:return(0,a.jsx)(LoggedIn_LoggedIn,{startDate:n,challengeType:d,secondaryColor:c,domain:s,allowCompetition:u});default:return null}}()},tL=n(18609);function ChallengeOngoingStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			gap: ",";\n			justify-content: space-between;\n		}\n	"]);return ChallengeOngoingStyles_templateObject=function(){return e},e}function ChallengeOngoingStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return ChallengeOngoingStyles_templateObject1=function(){return e},e}function ChallengeOngoingStyles_templateObject2(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		width: 100%;\n\n		@media (min-width: ","px) {\n			width: 50%;\n		}\n	"]);return ChallengeOngoingStyles_templateObject2=function(){return e},e}function ChallengeOngoingStyles_templateObject3(){var e=(0,V._)(["\n	","\n"]);return ChallengeOngoingStyles_templateObject3=function(){return e},e}function ChallengeOngoingStyles_templateObject4(){var e=(0,V._)(["\n	display: none;\n\n	@media (min-width: ","px) {\n		display: flex;\n		align-items: center;\n		width: 50%;\n		height: 300px;\n	}\n"]);return ChallengeOngoingStyles_templateObject4=function(){return e},e}function ChallengeOngoingStyles_templateObject5(){var e=(0,V._)(["\n	aspect-ratio: unset;\n	height: 260px;\n\n	"," {\n		height: 260px;\n		object-position: center;\n	}\n\n	@media (min-width: ","px) {\n		height: 360px;\n\n		"," {\n			height: 360px;\n		}\n	}\n\n	@media (min-width: ","px) {\n		display: none;\n	}\n"]);return ChallengeOngoingStyles_templateObject5=function(){return e},e}function ChallengeOngoingStyles_templateObject6(){var e=(0,V._)(["\n	display: none;\n\n	@media (min-width: ","px) {\n		display: flex;\n		aspect-ratio: unset;\n		max-width: 280px;\n		height: 300px;\n\n		"," {\n			object-position: center;\n			height: 300px;\n		}\n	}\n"]);return ChallengeOngoingStyles_templateObject6=function(){return e},e}function ChallengeOngoingStyles_templateObject7(){var e=(0,V._)(["\n	"," {\n		flex: 0 0 ",";\n	}\n"]);return ChallengeOngoingStyles_templateObject7=function(){return e},e}var tB=H.ZP.div.withConfig({componentId:"sc-6cd2ccbd-0"})(ChallengeOngoingStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(ChallengeOngoingStyles_templateObject(),t.spacing[12],q.AV.md,t.spacing[56])}),tz=H.ZP.div.withConfig({componentId:"sc-6cd2ccbd-1"})(ChallengeOngoingStyles_templateObject3(),function(e){var t=e.theme;return(0,H.iv)(ChallengeOngoingStyles_templateObject2(),t.spacing[12],q.AV.md)}),tF=H.ZP.div.withConfig({componentId:"sc-6cd2ccbd-2"})(ChallengeOngoingStyles_templateObject4(),q.AV.md),tG=(0,H.ZP)(ee.Z).withConfig({componentId:"sc-6cd2ccbd-3"})(ChallengeOngoingStyles_templateObject5(),K.Yo,q.AV.sm,K.Yo,q.AV.md),tV=(0,H.ZP)(ee.Z).withConfig({componentId:"sc-6cd2ccbd-4"})(ChallengeOngoingStyles_templateObject6(),q.AV.md,K.Yo),tH=(0,H.ZP)(eO.Z).withConfig({componentId:"sc-6cd2ccbd-5"})(ChallengeOngoingStyles_templateObject7(),tL.__,$),ChallengeOngoing_ChallengeOngoingCompetition=function(e){var t=e.challengeDetail,n=(0,j.$G)().t,i=t||{},r=i.isCompetition,l=i.measurementsBefore,o=i.allowCompetition,c=n("V\xfdzva začala! Pracuj na svojich cieľoch s našim tr\xe9ningov\xfdm programom"),s=(0,k.UX)(n),u=[{id:1,title:r?s.IS_COMPETITION.TITLE:s.NOT_COMPETITION.TITLE,disabled:!0}];return(0,a.jsxs)(layouts_LayoutCompetitive,{title:n("V\xfdzva prebieha"),descriptionDesktop:c,descriptionMobile:c,countdownTitle:n("Do ukončenia v\xfdzvy ost\xe1va"),countdownDate:f()(t.finishedAt).toISOString(),children:[(0,a.jsx)(J.Z,{variant:C.HU.IMPORTANT,icon:(0,a.jsx)(eL.sz,{}),content:n((0,k.hm)(l)&&o?"Zmeniť sp\xf4sob zapojenia a zap\xedsať svoje v\xfdsledky si budeš m\xf4cť po skončen\xed v\xfdzvy":"Svoje v\xfdsledky si budeš m\xf4cť zap\xedsať po skončen\xed v\xfdzvy"),alwaysRounded:!0}),(0,a.jsxs)(w.tv,{children:[o&&(0,a.jsxs)(w.LV,{children:[(0,a.jsx)(w.zz,{children:(0,a.jsx)(w.RX,{children:n("Sp\xf4sob zapojenia")})}),(0,a.jsx)(RadioGroupFieldChallenge_RadioGroupFieldChallenge,{options:u,input:{value:1},meta:{},disabled:!0})]}),(0,a.jsx)(w.LV,{children:(0,a.jsxs)(tB,{children:[(0,a.jsxs)(tz,{children:[(0,a.jsx)(w.zz,{children:(0,a.jsx)(w.RX,{children:n("Tvoje zap\xedsan\xe9 \xfadaje")})}),(0,a.jsx)(tG,{name:"",s3directory:C.j8.PROFILE,input:{value:null==l?void 0:l.image},meta:{},disabled:!0,hasErrorTooltip:!1}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tH,{input:{value:(null==l?void 0:l.weight)||""},meta:{},type:"number",label:n("forms_V\xe1ha"),suffix:"kg",step:.01,disabled:!0,size:C.NO.LG,flexDirection:C.uM.ROW}),(0,a.jsx)(tH,{input:{value:(null==l?void 0:l.hips)||""},meta:{},type:"number",label:n("forms_Boky"),suffix:"cm",step:.01,disabled:!0,size:C.NO.LG,flexDirection:C.uM.ROW}),(0,a.jsx)(tH,{input:{value:(null==l?void 0:l.waist)||""},meta:{},type:"number",label:n("forms_P\xe1s"),suffix:"cm",step:.01,disabled:!0,size:C.NO.LG,flexDirection:C.uM.ROW}),(0,a.jsx)(tH,{input:{value:(null==l?void 0:l.thigh)||""},type:"number",meta:{},label:n("forms_Stehno"),suffix:"cm",step:.01,disabled:!0,size:C.NO.LG,flexDirection:C.uM.ROW})]})]}),(0,a.jsx)(tF,{children:(0,a.jsx)(tV,{name:"",s3directory:C.j8.PROFILE,input:{value:null==l?void 0:l.image},meta:{},disabled:!0,hasErrorTooltip:!1})})]})})]}),(0,a.jsx)(w.sx,{children:(0,a.jsx)(eS.Z,{asHTML:C.vf.ANCHOR,href:n("paths:calendar|path"),label:n("Zobraziť kalend\xe1r"),size:C.NO.XL,fullWidthOnMobile:!0})})]})},ChallengeOngoing_ChallengeOngoing=function(e){var t=e.challengeDetail,n=e.isSubscribed,i=e.challengeType,r=(0,x.I0)();return(0,y.useEffect)(function(){i===C.EZ.HARMONIC&&r((0,M.j2)(C.n5.CHALLENGE_HARMONIC_START,(0,k.ke)(t.questions,t.answersBefore)))},[r,t,i]),n&&function(){switch(i){case C.EZ.COMPETITIVE:return(0,a.jsx)(ChallengeOngoing_ChallengeOngoingCompetition,{challengeDetail:t});case C.EZ.HARMONIC:return(0,a.jsx)(ta,{formName:C.n5.CHALLENGE_HARMONIC_START,formState:C.ih.ONGOING,challengeDetail:t});default:return null}}()},tU=n(87432);
1function ChallengeResultsStyles_templateObject(){var e=(0,V._)(["\n	align-self: center;\n	width: 132px;\n	height: 16px;\n"]);return ChallengeResultsStyles_templateObject=function(){return e},e}function ChallengeResultsStyles_templateObject1(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		align-items: center;\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n		}\n	"]);return ChallengeResultsStyles_templateObject1=function(){return e},e}function ChallengeResultsStyles_templateObject2(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject2=function(){return e},e}function ChallengeResultsStyles_templateObject3(){var e=(0,V._)(["\n	aspect-ratio: unset;\n	width: auto;\n	max-width: 160px;\n	height: auto;\n"]);return ChallengeResultsStyles_templateObject3=function(){return e},e}function ChallengeResultsStyles_templateObject4(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return ChallengeResultsStyles_templateObject4=function(){return e},e}function ChallengeResultsStyles_templateObject5(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject5=function(){return e},e}function ChallengeResultsStyles_templateObject6(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			gap: ",";\n			align-items: center;\n			justify-content: space-between;\n		}\n	"]);return ChallengeResultsStyles_templateObject6=function(){return e},e}function ChallengeResultsStyles_templateObject7(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject7=function(){return e},e}function ChallengeResultsStyles_templateObject8(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n\n		@media (min-width: ","px) {\n			",";\n			color: ",";\n		}\n	"]);return ChallengeResultsStyles_templateObject8=function(){return e},e}function ChallengeResultsStyles_templateObject9(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject9=function(){return e},e}function ChallengeResultsStyles_templateObject10(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return ChallengeResultsStyles_templateObject10=function(){return e},e}function ChallengeResultsStyles_templateObject11(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject11=function(){return e},e}function ChallengeResultsStyles_templateObject12(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return ChallengeResultsStyles_templateObject12=function(){return e},e}function ChallengeResultsStyles_templateObject13(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject13=function(){return e},e}function ChallengeResultsStyles_templateObject14(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return ChallengeResultsStyles_templateObject14=function(){return e},e}function ChallengeResultsStyles_templateObject15(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject15=function(){return e},e}function ChallengeResultsStyles_templateObject16(){var e=(0,V._)(["\n	display: flex;\n	flex-direction: column;\n	align-items: center;\n	width: 100%;\n"]);return ChallengeResultsStyles_templateObject16=function(){return e},e}function ChallengeResultsStyles_templateObject17(){var e=(0,V._)(["\n		margin-bottom: ",";\n		",";\n		text-align: center;\n\n		@media (min-width: ","px) {\n			",";\n		}\n\n		@media (min-width: ","px) {\n			",";\n		}\n	"]);return ChallengeResultsStyles_templateObject17=function(){return e},e}function ChallengeResultsStyles_templateObject18(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject18=function(){return e},e}function ChallengeResultsStyles_templateObject19(){var e=(0,V._)(["\n	align-self: center;\n	max-width: 320px;\n\n	@media (min-width: ","px) {\n		max-width: 356px;\n	}\n"]);return ChallengeResultsStyles_templateObject19=function(){return e},e}function ChallengeResultsStyles_templateObject20(){var e=(0,V._)(["\n		margin: "," 0 0;\n		",";\n		text-align: center;\n	"]);
1return ChallengeResultsStyles_templateObject20=function(){return e},e}function ChallengeResultsStyles_templateObject21(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject21=function(){return e},e}function ChallengeResultsStyles_templateObject22(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		align-items: center;\n	"]);return ChallengeResultsStyles_templateObject22=function(){return e},e}function ChallengeResultsStyles_templateObject23(){var e=(0,V._)(["\n	","\n"]);return ChallengeResultsStyles_templateObject23=function(){return e},e}var t$=H.ZP.img.withConfig({componentId:"sc-7d0343f1-0"})(ChallengeResultsStyles_templateObject()),tX=H.ZP.div.withConfig({componentId:"sc-7d0343f1-1"})(ChallengeResultsStyles_templateObject2(),function(e){var t=e.theme;return(0,H.iv)(ChallengeResultsStyles_templateObject1(),t.spacing[48],q.AV.md)}),tW=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-7d0343f1-2"})(ChallengeResultsStyles_templateObject3()),tY=H.ZP.div.withConfig({componentId:"sc-7d0343f1-3"})(ChallengeResultsStyles_templateObject5(),function(e){var t=e.theme,n=e.$noGap;return(0,H.iv)(ChallengeResultsStyles_templateObject4(),n?0:t.spacing[16])}),tq=H.ZP.div.withConfig({componentId:"sc-7d0343f1-4"})(ChallengeResultsStyles_templateObject7(),function(e){var t=e.theme;return(0,H.iv)(ChallengeResultsStyles_templateObject6(),t.spacing[16],q.AV.xl,t.spacing[32])}),tK=H.ZP.h3.withConfig({componentId:"sc-7d0343f1-5"})(ChallengeResultsStyles_templateObject9(),function(e){var t=e.theme;return(0,H.iv)(ChallengeResultsStyles_templateObject8(),U.lC,t["color-base-content-primary"],q.AV.md,U.ui,t["color-base-content-primary"])}),tJ=H.ZP.p.withConfig({componentId:"sc-7d0343f1-6"})(ChallengeResultsStyles_templateObject11(),function(e){var t=e.theme;return(0,H.iv)(ChallengeResultsStyles_templateObject10(),U.lT,t["color-base-content-tertiary"])}),tQ=H.ZP.div.withConfig({componentId:"sc-7d0343f1-7"})(ChallengeResultsStyles_templateObject13(),function(e){var t=e.theme;return(0,H.iv)(ChallengeResultsStyles_templateObject12(),t.spacing[16])}),t0=H.ZP.h3.withConfig({componentId:"sc-7d0343f1-8"})(ChallengeResultsStyles_templateObject15(),function(e){var t=e.theme;return(0,H.iv)(ChallengeResultsStyles_templateObject14(),U.DC,t["color-base-content-top"])}),t1=H.ZP.div.withConfig({componentId:"sc-7d0343f1-9"})(ChallengeResultsStyles_templateObject16()),t2=H.ZP.h3.withConfig({componentId:"sc-7d0343f1-10"})(ChallengeResultsStyles_templateObject18(),function(e){var t=e.theme;return(0,H.iv)(ChallengeResultsStyles_templateObject17(),t.spacing[16],U.vW,q.AV.sm,U.EP,q.AV.md,U.dE)}),t4=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-7d0343f1-11"})(ChallengeResultsStyles_templateObject19(),q.AV.sm),t3=H.ZP.p.withConfig({componentId:"sc-7d0343f1-12"})(ChallengeResultsStyles_templateObject21(),function(e){var t=e.theme;return(0,H.iv)(ChallengeResultsStyles_templateObject20(),t.spacing[24],U.q6)}),t6=H.ZP.div.withConfig({componentId:"sc-7d0343f1-13"})(ChallengeResultsStyles_templateObject23(),function(e){var t=e.theme;return(0,H.iv)(ChallengeResultsStyles_templateObject22(),t.spacing[24])});function AnswerItemStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: row;\n		gap: ",";\n	"]);return AnswerItemStyles_templateObject=function(){return e},e}function AnswerItemStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return AnswerItemStyles_templateObject1=function(){return e},e}function AnswerItemStyles_templateObject2(){var e=(0,V._)(["\n	width: 32px;\n	height: 32px;\n"]);return AnswerItemStyles_templateObject2=function(){return e},e}function AnswerItemStyles_templateObject3(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return AnswerItemStyles_templateObject3=function(){return e},e}function AnswerItemStyles_templateObject4(){var e=(0,V._)(["\n	","\n"]);return AnswerItemStyles_templateObject4=function(){return e},e}function AnswerItemStyles_templateObject5(){var e=(0,V._)(["\n		",";\n		color: ",";\n	"]);return AnswerItemStyles_templateObject5=function(){return e},e}
1function AnswerItemStyles_templateObject6(){var e=(0,V._)(["\n	","\n"]);return AnswerItemStyles_templateObject6=function(){return e},e}function AnswerItemStyles_templateObject7(){var e=(0,V._)(["\n		",";\n		color: ",";\n	"]);return AnswerItemStyles_templateObject7=function(){return e},e}function AnswerItemStyles_templateObject8(){var e=(0,V._)(["\n	","\n"]);return AnswerItemStyles_templateObject8=function(){return e},e}function AnswerItemStyles_templateObject9(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return AnswerItemStyles_templateObject9=function(){return e},e}function AnswerItemStyles_templateObject10(){var e=(0,V._)(["\n	","\n"]);return AnswerItemStyles_templateObject10=function(){return e},e}var t9=H.ZP.div.withConfig({componentId:"sc-9d86e691-0"})(AnswerItemStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(AnswerItemStyles_templateObject(),t.spacing[16])}),t8=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-9d86e691-1"})(AnswerItemStyles_templateObject2()),t5=H.ZP.div.withConfig({componentId:"sc-9d86e691-2"})(AnswerItemStyles_templateObject4(),function(e){var t=e.theme;return(0,H.iv)(AnswerItemStyles_templateObject3(),t.spacing[4])}),t7=H.ZP.span.withConfig({componentId:"sc-9d86e691-3"})(AnswerItemStyles_templateObject6(),function(e){var t=e.theme;return(0,H.iv)(AnswerItemStyles_templateObject5(),U.lC,t["color-base-content-primary"])}),ne=H.ZP.span.withConfig({componentId:"sc-9d86e691-4"})(AnswerItemStyles_templateObject8(),function(e){var t=e.theme;return(0,H.iv)(AnswerItemStyles_templateObject7(),U.q6,t["color-base-content-primary"])}),nt=H.ZP.p.withConfig({componentId:"sc-9d86e691-5"})(AnswerItemStyles_templateObject10(),function(e){var t=e.theme;return(0,H.iv)(AnswerItemStyles_templateObject9(),U.lT,t["color-base-content-tertiary"])}),nn={PENSIVE:e1(),NEUTRAL:e8(),HAPPY:eK(),NOT_SET:e6()},getSmile=function(e,t){if(!t)return nn.NOT_SET;var n=t/e;return n>=.8?nn.HAPPY:n>=.5?nn.NEUTRAL:nn.PENSIVE},getComment=function(e){var t=e.split(/\r?\n/);return eT()(t,function(e,t){return(0,a.jsx)("p",{children:e},t)})},AnswerItem_AnswerItem=function(e){var t=e.value,n=e.maxValue,i=e.comment,r=e.isStart,l=(0,j.$G)().t,o=getSmile(n,t);return(0,a.jsxs)(t9,{children:[(0,a.jsx)(t8,{src:o,alt:"Emoji"}),(0,a.jsxs)(t5,{children:[(0,a.jsx)(t7,{children:"".concat(t||"-","/").concat(n)}),(0,a.jsx)(ne,{children:l(r?"Pocity pred v\xfdzvou":"Pocity po v\xfdzve")}),i&&(0,a.jsx)(nt,{children:getComment(i)})]})]})},Answers_Answers=function(e){var t,n,i=(0,j.$G)(),r=i.t,l=i.i18n,o=e.challengeDetail,c=e.setIsChallengeEndFormEdited,s=e.setProgramSelectionVisible,u=o||{},d=u.questions,p=u.answersAfter,m=u.answersBefore,f=u.primaryColor,h=(0,x.v9)(function(e){var t,n,i;return null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(n=i.challenges)||void 0===n?void 0:null===(t=n.challengeDetail)||void 0===t?void 0:t.challengeState})!==C.bs.AFTER_FINISH_MEASUREMENTS_DEADLINE;return(0,a.jsxs)(a.Fragment,{children:[(t=(0,k.z8)(m),n=(0,k.z8)(p),t||n)?(0,a.jsx)(w.tv,{children:eT()(eU()(d,["order"],["asc"]),function(e){var t=eV()(null==e?void 0:e.translations,function(e){return e.language===l.language}),n=(e.maxValue||0)-(e.minValue||0)+1,i=eV()(m,function(t){return e.id===t.questionID}),r=eV()(p,function(t){return e.id===t.questionID});return t&&(0,a.jsxs)(w.$4,{children:[(0,a.jsxs)(w.Sf,{children:[(0,a.jsx)(w.vD,{}),(0,a.jsx)(w.XX,{children:(0,a.jsx)(w.RX,{children:t.text})})]}),(0,a.jsxs)(w.aT,{$isBeforeAndAfter:!0,children:[(0,a.jsx)(AnswerItem_AnswerItem,{isStart:!0,primaryColor:f,maxValue:n,value:null==i?void 0:i.value,comment:null==i?void 0:i.comment}),(0,a.jsx)(AnswerItem_AnswerItem,{primaryColor:f,maxValue:n,value:null==r?void 0:r.value,comment:null==r?void 0:r.comment})]})]},e.id)})}):(0,a.jsxs)(t1,{children:[(0,a.jsx)(t4,{src:tC(),alt:"Thanks image"}),(0,a.jsx)(t3,{children:r("lebo šťastie nek\xfapiš v obchode N\xe1jdeš ho v SEBE!")})]}),h&&(0,a.jsxs)(t6,{children:[(0,a.jsx)(eI.Z,{asHTML:C.vf.BUTTON,onClick:function(){c(!1),(0,I.k3)({top:0,left:0,behavior:"smooth"})},typography:U.kk,applyPadding:!0,children:r("Upraviť odpovede")}),(0,a.jsx)(eS.Z,{type:C.JB.BUTTON,variant:C.RN.PRIMARY,label:r("Vybrať si program po v\xfdzve"),onClick:function(){return s(!0)},size:C.NO.XL,fullWidthOnMobile:!0})]})]})},ni=n(28293),nr=n.n(ni);
1function CertificateBannerStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		position: relative;\n		flex-direction: column;\n		border-radius: ",";\n		background-color: ",";\n		overflow: hidden;\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n		}\n	"]);return CertificateBannerStyles_templateObject=function(){return e},e}function CertificateBannerStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return CertificateBannerStyles_templateObject1=function(){return e},e}function CertificateBannerStyles_templateObject2(){var e=(0,V._)(["\n	display: flex;\n	background-image: ",";\n	background-position: center center;\n	background-repeat: no-repeat;\n	background-size: contain;\n	aspect-ratio: 1;\n\n	@media (min-width: ","px) {\n		aspect-ratio: unset;\n		width: 33%;\n		min-height: 124px;\n	}\n\n	@media (min-width: ","px) {\n		aspect-ratio: unset;\n		width: 25%;\n		min-height: 200px;\n	}\n"]);return CertificateBannerStyles_templateObject2=function(){return e},e}function CertificateBannerStyles_templateObject3(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		padding: ",";\n\n		@media (min-width: ","px) {\n			padding: ",";\n		}\n\n		@media (min-width: ","px) {\n			padding: ",";\n		}\n	"]);return CertificateBannerStyles_templateObject3=function(){return e},e}function CertificateBannerStyles_templateObject4(){var e=(0,V._)(["\n	","\n"]);return CertificateBannerStyles_templateObject4=function(){return e},e}function CertificateBannerStyles_templateObject5(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n\n		@media (min-width: ","px) {\n			",";\n			color: ",";\n		}\n	"]);return CertificateBannerStyles_templateObject5=function(){return e},e}function CertificateBannerStyles_templateObject6(){var e=(0,V._)(["\n	","\n"]);return CertificateBannerStyles_templateObject6=function(){return e},e}function CertificateBannerStyles_templateObject7(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return CertificateBannerStyles_templateObject7=function(){return e},e}function CertificateBannerStyles_templateObject8(){var e=(0,V._)(["\n	","\n"]);return CertificateBannerStyles_templateObject8=function(){return e},e}var na=H.ZP.div.withConfig({componentId:"sc-3b1091da-0"})(CertificateBannerStyles_templateObject1(),function(e){var t=e.theme,n=e.backgroundColor;return(0,H.iv)(CertificateBannerStyles_templateObject(),t.borderRadius[16],n||t["color-base-surface-violet"],q.AV.sm)}),nl=H.ZP.div.withConfig({componentId:"sc-3b1091da-1"})(CertificateBannerStyles_templateObject2(),function(e){var t=e.src;return'url("'.concat(t||nr(),'")')},q.AV.sm,q.AV.xl),no=H.ZP.div.withConfig({componentId:"sc-3b1091da-2"})(CertificateBannerStyles_templateObject4(),function(e){var t=e.theme;return(0,H.iv)(CertificateBannerStyles_templateObject3(),t.spacing[16],t.spacing[24],q.AV.md,t.spacing[32],q.AV.md,t.spacing[64])}),nc=H.ZP.h3.withConfig({componentId:"sc-3b1091da-3"})(CertificateBannerStyles_templateObject6(),function(e){var t=e.theme;return(0,H.iv)(CertificateBannerStyles_templateObject5(),U.EP,t["color-base-content-top"],q.AV.md,U.XP,t["color-base-content-top"])}),ns=H.ZP.p.withConfig({componentId:"sc-3b1091da-4"})(CertificateBannerStyles_templateObject8(),function(e){var t=e.theme;return(0,H.iv)(CertificateBannerStyles_templateObject7(),U.lT,t["color-base-content-secondary"])}),CertificateBanner_CertificateBanner=function(e){var t=e.name,n=e.challengeName,i=e.image,r=e.hasName,l=e.backgroundColor,o=(0,j.$G)().t;return(0,a.jsxs)(na,{backgroundColor:l,children:[(0,a.jsx)(nl,{src:i}),(0,a.jsxs)(no,{children:[(0,a.jsx)(nc,{children:r?t:n}),(0,a.jsx)(ns,{children:"".concat(o("Certifik\xe1t absolvovanej v\xfdzvy")," ").concat(r?n:"")})]})]})},nu=n(39148),nd=n.n(nu);function ChallengeStatsStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			gap: ",";\n		}\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n		}\n	"]);return ChallengeStatsStyles_templateObject=function(){return e},e}
1function ChallengeStatsStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return ChallengeStatsStyles_templateObject1=function(){return e},e}function ChallengeStatsStyles_templateObject2(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: row;\n		gap: ",";\n		align-items: center;\n		border-radius: ",";\n		background-color: ",";\n		padding: ",";\n		width: 100%;\n\n		@media (min-width: ","px) {\n			flex-basis: calc(100% / 3);\n			width: unset;\n		}\n	"]);return ChallengeStatsStyles_templateObject2=function(){return e},e}function ChallengeStatsStyles_templateObject3(){var e=(0,V._)(["\n	","\n"]);return ChallengeStatsStyles_templateObject3=function(){return e},e}function ChallengeStatsStyles_templateObject4(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		align-items: center;\n		justify-content: center;\n		border-radius: ",";\n		background-color: ",";\n		width: 64px;\n		height: 64px;\n\n		svg {\n			width: 44px;\n			height: 44px;\n\n			path {\n				stroke: ",";\n			}\n		}\n	"]);return ChallengeStatsStyles_templateObject4=function(){return e},e}function ChallengeStatsStyles_templateObject5(){var e=(0,V._)(["\n	","\n"]);return ChallengeStatsStyles_templateObject5=function(){return e},e}function ChallengeStatsStyles_templateObject6(){var e=(0,V._)(["\n	display: flex;\n	flex-direction: column;\n"]);return ChallengeStatsStyles_templateObject6=function(){return e},e}function ChallengeStatsStyles_templateObject7(){var e=(0,V._)(["\n		",";\n		color: ",";\n	"]);return ChallengeStatsStyles_templateObject7=function(){return e},e}function ChallengeStatsStyles_templateObject8(){var e=(0,V._)(["\n	","\n"]);return ChallengeStatsStyles_templateObject8=function(){return e},e}function ChallengeStatsStyles_templateObject9(){var e=(0,V._)(["\n		",";\n		color: ",";\n	"]);return ChallengeStatsStyles_templateObject9=function(){return e},e}function ChallengeStatsStyles_templateObject10(){var e=(0,V._)(["\n	","\n"]);return ChallengeStatsStyles_templateObject10=function(){return e},e}function ChallengeStatsStyles_templateObject11(){var e=(0,V._)(["\n	transition: max-height 250ms ease-in-out;\n	margin-bottom: 30px;\n	border-radius: ",";\n	background: ",";\n	width: 100%;\n	min-height: 60px;\n	overflow: hidden;\n\n	@media (width <= 767.98px) {\n		min-height: 40px;\n	}\n"]);return ChallengeStatsStyles_templateObject11=function(){return e},e}function ChallengeStatsStyles_templateObject12(){var e=(0,V._)(["\n	display: flex;\n	align-items: center;\n	justify-content: center;\n	cursor: pointer;\n	padding: 0 16px;\n	width: 100%;\n	min-height: 40px;\n"]);return ChallengeStatsStyles_templateObject12=function(){return e},e}function ChallengeStatsStyles_templateObject13(){var e=(0,V._)(["\n	margin-right: 4px;\n	padding: 8px 0;\n	text-align: center;\n	line-height: 18px;\n	color: ",";\n	font-size: 14px;\n	font-weight: ",";\n\n	@media (width <= 767.98px) {\n		font-size: 12px;\n	}\n"]);return ChallengeStatsStyles_templateObject13=function(){return e},e}function ChallengeStatsStyles_templateObject14(){var e=(0,V._)(["\n	flex: 0 0 auto;\n	transform: ",";\n	transform-origin: center;\n	transition: transform 250ms ease-in-out;\n	background: url('","') center center no-repeat;\n	background-size: contain;\n	width: 18px;\n	height: 18px;\n"]);return ChallengeStatsStyles_templateObject14=function(){return e},e}function ChallengeStatsStyles_templateObject15(){var e=(0,V._)(["\n	padding: 0 16px;\n\n	@media (width <= 767.98px) {\n		padding: 0 16px 8px;\n	}\n"]);return ChallengeStatsStyles_templateObject15=function(){return e},e}function ChallengeStatsStyles_templateObject16(){var e=(0,V._)(["\n	display: flex;\n	align-items: center;\n	justify-content: space-around;\n	margin: 0;\n	padding: 0;\n	min-height: 60px;\n	list-style: none;\n\n	@media (width <= 767.98px) {\n		flex-direction: column;\n		align-items: flex-start;\n		justify-content: flex-start;\n	}\n"]);return ChallengeStatsStyles_templateObject16=function(){return e},e}function ChallengeStatsStyles_templateObject17(){var e=(0,V._)(["\n	display: flex;\n	align-items: center;\n	padding: 0 8px;\n	height: 100%;\n\n	@media (width <= 767.98px) {\n		padding: 8px 0;\n	}\n"]);
1return ChallengeStatsStyles_templateObject17=function(){return e},e}function ChallengeStatsStyles_templateObject18(){var e=(0,V._)(["\n	flex: 0 0 auto;\n	margin-right: 8px;\n	background: ",";\n	background-size: contain;\n	width: 24px;\n	height: 24px;\n\n	@media (width <= 767.98px) {\n		margin-right: 4px;\n		width: 18px;\n		height: 18px;\n	}\n"]);return ChallengeStatsStyles_templateObject18=function(){return e},e}function ChallengeStatsStyles_templateObject19(){var e=(0,V._)(["\n	display: inline-flex;\n	flex-wrap: wrap;\n	align-items: center;\n\n	strong {\n		padding-right: 8px;\n		line-height: 127%;\n		color: ",";\n		font-size: 18px;\n		font-weight: ",";\n	}\n\n	span {\n		line-height: 20px;\n		color: ",";\n		font-size: 14px;\n		font-weight: ",";\n	}\n\n	@media (width <= 767.98px) {\n		strong {\n			padding-right: 6px;\n			font-size: 14px;\n		}\n	}\n"]);return ChallengeStatsStyles_templateObject19=function(){return e},e}var np=H.ZP.div.withConfig({componentId:"sc-26c6afee-0"})(ChallengeStatsStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(ChallengeStatsStyles_templateObject(),t.spacing[4],q.AV.md,t.spacing[24],q.AV.xl)}),nm=H.ZP.div.withConfig({componentId:"sc-26c6afee-1"})(ChallengeStatsStyles_templateObject3(),function(e){var t=e.theme;return(0,H.iv)(ChallengeStatsStyles_templateObject2(),t.spacing[16],t.borderRadius[8],t["color-base-surface-secondary"],t.spacing[24],q.AV.xl)}),nf=H.ZP.div.withConfig({componentId:"sc-26c6afee-2"})(ChallengeStatsStyles_templateObject5(),function(e){var t=e.theme,n=e.backgroundColor,i=e.iconColor;return(0,H.iv)(ChallengeStatsStyles_templateObject4(),t.borderRadius[10],n||t["color-base-surface-tertiary"],i||t["color-base-content-primary"])}),nh=H.ZP.div.withConfig({componentId:"sc-26c6afee-3"})(ChallengeStatsStyles_templateObject6()),nb=H.ZP.span.withConfig({componentId:"sc-26c6afee-4"})(ChallengeStatsStyles_templateObject8(),function(e){var t=e.theme;return(0,H.iv)(ChallengeStatsStyles_templateObject7(),U.lT,t["color-base-content-tertiary"])}),nv=H.ZP.span.withConfig({componentId:"sc-26c6afee-5"})(ChallengeStatsStyles_templateObject10(),function(e){var t=e.theme;return(0,H.iv)(ChallengeStatsStyles_templateObject9(),U.EP,t["color-base-content-primary"])});H.ZP.div.withConfig({componentId:"sc-26c6afee-6"})(ChallengeStatsStyles_templateObject11(),function(e){return e.theme.borderRadius[12]},function(e){return e.theme.colors.lightGray}),H.ZP.div.withConfig({componentId:"sc-26c6afee-7"})(ChallengeStatsStyles_templateObject12()),H.ZP.span.withConfig({componentId:"sc-26c6afee-8"})(ChallengeStatsStyles_templateObject13(),function(e){return e.theme.colors.darkPrimary},function(e){return e.theme.fontWeight.boldmedium}),H.ZP.div.withConfig({componentId:"sc-26c6afee-9"})(ChallengeStatsStyles_templateObject14(),function(e){return e.areStatsOpen?"rotate(180deg)":"rotate(0)"},nd()),H.ZP.div.withConfig({componentId:"sc-26c6afee-10"})(ChallengeStatsStyles_templateObject15()),H.ZP.ul.withConfig({componentId:"sc-26c6afee-11"})(ChallengeStatsStyles_templateObject16()),H.ZP.li.withConfig({componentId:"sc-26c6afee-12"})(ChallengeStatsStyles_templateObject17()),H.ZP.div.withConfig({componentId:"sc-26c6afee-13"})(ChallengeStatsStyles_templateObject18(),function(e){var t=e.icon;return'url("'.concat(t,'") center center no-repeat')}),H.ZP.div.withConfig({componentId:"sc-26c6afee-14"})(ChallengeStatsStyles_templateObject19(),function(e){return e.theme.colors.darkFooter},function(e){return e.theme.fontWeight.boldmedium},function(e){return e.theme.colors.darkSecondary},function(e){return e.theme.fontWeight.bold});var ChallengeStats_ChallengeStats=function(e){var t=e.backgroundColor,n=e.daysOfExerciseCount,i=e.burnedCaloriesCount,r=e.exercisesCount,l=e.iconColor,o=(0,j.$G)().t,c=[{icon:(0,a.jsx)(eL.so,{}),name:o("Odcvičen\xe9 vide\xe1"),value:void 0===r?0:r},{icon:(0,a.jsx)(eL.Qu,{}),name:o("Odcvičen\xe9 dni"),value:void 0===n?0:n},{icon:(0,a.jsx)(eL.Gt,{}),name:o("Sp\xe1len\xe9 kal\xf3rie"),value:(0,I.Fl)(void 0===i?0:i)}];return(0,a.jsx)(np,{children:eT()(c,function(e){return(0,a.jsxs)(nm,{children:[(0,a.jsx)(nf,{backgroundColor:t,iconColor:l,children:e.icon}),(0,a.jsxs)(nh,{children:[(0,a.jsx)(nb,{children:e.name}),(0,a.jsx)(nv,{children:e.value})]})]},"stat-item-".concat(e.name))})})},ng=n(50035);
1function MeasurementsStyles_templateObject(){var e=(0,V._)(["\n		display: grid;\n		grid-template-columns: 1fr;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			grid-template-columns: min-content 216px min-content 216px;\n			gap: ",";\n			justify-content: center;\n		}\n\n		@media (min-width: ","px) {\n			grid-template-columns: min-content 248px min-content 248px;\n		}\n	"]);return MeasurementsStyles_templateObject=function(){return e},e}function MeasurementsStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return MeasurementsStyles_templateObject1=function(){return e},e}function MeasurementsStyles_templateObject2(){var e=(0,V._)(["\n			margin-top: auto;\n			padding-bottom: ",";\n		"]);return MeasurementsStyles_templateObject2=function(){return e},e}function MeasurementsStyles_templateObject3(){var e=(0,V._)(["\n		display: flex;\n		position: relative;\n		flex-direction: column;\n		gap: ",";\n		width: 100%;\n\n		",";\n\n		@media (min-width: ","px) {\n			justify-content: center;\n		}\n	"]);return MeasurementsStyles_templateObject3=function(){return e},e}function MeasurementsStyles_templateObject4(){var e=(0,V._)(["\n	","\n"]);return MeasurementsStyles_templateObject4=function(){return e},e}function MeasurementsStyles_templateObject5(){var e=(0,V._)(["\n		display: inline-flex;\n		position: relative;\n		align-items: center;\n		justify-content: space-between;\n		width: 100%;\n\n		&:not(:first-child) {\n			::after {\n				position: absolute;\n				top: -",";\n				border-top: "," solid ",";\n				width: 100%;\n				content: '';\n			}\n		}\n	"]);return MeasurementsStyles_templateObject5=function(){return e},e}function MeasurementsStyles_templateObject6(){var e=(0,V._)(["\n	","\n"]);return MeasurementsStyles_templateObject6=function(){return e},e}function MeasurementsStyles_templateObject7(){var e=(0,V._)(["\n	min-height: 32px;\n"]);return MeasurementsStyles_templateObject7=function(){return e},e}function MeasurementsStyles_templateObject8(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		border-radius: ",";\n		background-color: ",";\n		padding: ",";\n\n		&:nth-child(1),\n		&:nth-child(3) {\n			display: none;\n		}\n\n		@media (min-width: ","px) {\n			&:nth-child(1),\n			&:nth-child(3) {\n				display: flex;\n				justify-content: flex-end;\n				padding-top: 0;\n\n				"," {\n					&::after {\n						border: 0;\n					}\n				}\n			}\n\n			&:nth-child(3) {\n				"," {\n					gap: calc("," - ",");\n					margin-bottom: -",";\n				}\n			}\n\n			&:not(:first-child) {\n				"," {\n					justify-content: center;\n				}\n			}\n		}\n	"]);return MeasurementsStyles_templateObject8=function(){return e},e}function MeasurementsStyles_templateObject9(){var e=(0,V._)(["\n	","\n"]);return MeasurementsStyles_templateObject9=function(){return e},e}function MeasurementsStyles_templateObject10(){var e=(0,V._)(["\n		align-self: center;\n		border-radius: ",";\n		max-width: 264px;\n\n		@media (min-width: ","px) {\n			aspect-ratio: 0;\n			width: 168px;\n			height: 252px;\n		}\n\n		@media (min-width: ","px) {\n			width: 200px;\n			height: 300px;\n		}\n	"]);return MeasurementsStyles_templateObject10=function(){return e},e}function MeasurementsStyles_templateObject11(){var e=(0,V._)(["\n	","\n"]);return MeasurementsStyles_templateObject11=function(){return e},e}function MeasurementsStyles_templateObject12(){var e=(0,V._)(["\n		align-self: center;\n		",";\n		color: ",";\n	"]);return MeasurementsStyles_templateObject12=function(){return e},e}function MeasurementsStyles_templateObject13(){var e=(0,V._)(["\n	","\n"]);return MeasurementsStyles_templateObject13=function(){return e},e}function MeasurementsStyles_templateObject14(){var e=(0,V._)(["\n		display: none;\n		",";\n		white-space: nowrap;\n		color: ",";\n\n		@media (min-width: ","px) {\n			display: block;\n		}\n	"]);return MeasurementsStyles_templateObject14=function(){return e},e}function MeasurementsStyles_templateObject15(){var e=(0,V._)(["\n	","\n"]);return MeasurementsStyles_templateObject15=function(){return e},e}function MeasurementsStyles_templateObject16(){var e=(0,V._)(["\n	display: block;\n\n	@media (min-width: ","px) {\n		display: none;\n	}\n"]);
1return MeasurementsStyles_templateObject16=function(){return e},e}function MeasurementsStyles_templateObject17(){var e=(0,V._)(["\n		",";\n		color: ",";\n	"]);return MeasurementsStyles_templateObject17=function(){return e},e}function MeasurementsStyles_templateObject18(){var e=(0,V._)(["\n	","\n"]);return MeasurementsStyles_templateObject18=function(){return e},e}function MeasurementsStyles_templateObject19(){var e=(0,V._)(["\n		background-color: ",";\n		color: ",";\n	"]);return MeasurementsStyles_templateObject19=function(){return e},e}function MeasurementsStyles_templateObject20(){var e=(0,V._)(["\n	","\n"]);return MeasurementsStyles_templateObject20=function(){return e},e}function MeasurementsStyles_templateObject21(){var e=(0,V._)(["\n	display: flex;\n	position: relative;\n	flex-direction: column;\n	align-items: center;\n	justify-content: center;\n	width: 100%;\n"]);return MeasurementsStyles_templateObject21=function(){return e},e}var nj=H.ZP.div.withConfig({componentId:"sc-815692c1-0"})(MeasurementsStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(MeasurementsStyles_templateObject(),t.spacing[8],q.AV.md,t.spacing[24],q.AV.xl)}),n_=H.ZP.div.withConfig({componentId:"sc-815692c1-1"})(MeasurementsStyles_templateObject4(),function(e){var t=e.theme,n=e.areResultsEditable;return(0,H.iv)(MeasurementsStyles_templateObject3(),t.spacing[64],n&&(0,H.iv)(MeasurementsStyles_templateObject2(),t.spacing[64]),q.AV.md)}),ny=H.ZP.div.withConfig({componentId:"sc-815692c1-2"})(MeasurementsStyles_templateObject6(),function(e){var t=e.theme;return(0,H.iv)(MeasurementsStyles_templateObject5(),t.spacing[32],t.borderWidth.xs,t["color-base-content-quintarny"])}),nx=(0,H.ZP)(ny).withConfig({componentId:"sc-815692c1-3"})(MeasurementsStyles_templateObject7()),nO=H.ZP.div.withConfig({componentId:"sc-815692c1-4"})(MeasurementsStyles_templateObject9(),function(e){var t=e.theme,n=e.backgroundColor,i=void 0===n?"transparent":n;return(0,H.iv)(MeasurementsStyles_templateObject8(),t.spacing[32],t.spacing[24],i,t.spacing[24],q.AV.md,ny,n_,t.spacing[64],t.spacing[12],t.spacing[6],ny)}),nS=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-815692c1-5"})(MeasurementsStyles_templateObject11(),function(e){var t=e.theme;return(0,H.iv)(MeasurementsStyles_templateObject10(),t.spacing[16],q.AV.md,q.AV.xl)}),nC=H.ZP.span.withConfig({componentId:"sc-815692c1-6"})(MeasurementsStyles_templateObject13(),function(e){var t=e.theme;return(0,H.iv)(MeasurementsStyles_templateObject12(),U.pu,t["color-base-content-primary"])}),nI=H.ZP.span.withConfig({componentId:"sc-815692c1-7"})(MeasurementsStyles_templateObject15(),function(e){var t=e.theme;return(0,H.iv)(MeasurementsStyles_templateObject14(),U.pu,t["color-base-content-primary"],q.AV.md)}),nw=(0,H.ZP)(nI).withConfig({componentId:"sc-815692c1-8"})(MeasurementsStyles_templateObject16(),q.AV.md),nT=H.ZP.span.withConfig({componentId:"sc-815692c1-9"})(MeasurementsStyles_templateObject18(),function(e){var t=e.theme;return(0,H.iv)(MeasurementsStyles_templateObject17(),U.lT,t["color-base-content-tertiary"])}),nP=(0,H.ZP)(ng.Z).withConfig({componentId:"sc-815692c1-10"})(MeasurementsStyles_templateObject20(),function(e){var t=e.theme,n=e.backgroundColor;return(0,H.iv)(MeasurementsStyles_templateObject19(),n,t["color-base-content-tertiary"])});H.ZP.div.withConfig({componentId:"sc-815692c1-11"})(MeasurementsStyles_templateObject21());var getMeasurement=function(e,t){return t?"".concat(t," ").concat(e)||"? ".concat(e):"-"},getDifference=function(e,t,n,i){return b()(t)||b()(n)?null:t===n?(0,a.jsx)(nP,{backgroundColor:i,size:C.NO.LG,children:"0 ".concat(e)}):t>n?(0,a.jsx)(nP,{backgroundColor:i,size:C.NO.LG,children:"- ".concat(A()(t-n,2)," ").concat(e)}):(0,a.jsx)(nP,{backgroundColor:i,size:C.NO.LG,children:"+ ".concat(A()(n-t,2)," ").concat(e)})},Measurements_Measurements=function(e){var t=e.challengeDetail,n=e.setIsChallengeEndFormEdited,i=e.setProgramSelectionVisible,r=(0,j.$G)().t,l=(0,H.Fg)(),o=t||{},c=o.measurementsAfter,s=o.measurementsBefore,u=o.secondaryColor,d=(0,x.v9)(function(e){var t,n,i;return null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(n=i.challenges)||void 0===n?void 0:null===(t=n.challengeDetail)||void 0===t?void 0:t.challengeState})!==C.bs.AFTER_FINISH_MEASUREMENTS_DEADLINE;return null!=s&&s.image||null!=c&&c.image||null!=s&&s.thigh||null!=c&&c.thigh||null!=s&&s.hips||null!=c&&c.hips||null!=s&&s.waist||null!=c&&c.waist||null!=s&&s.weight||null!=c&&c.weight?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(nj,{children:[(0,a.jsx)(nO,{children:(0,a.jsxs)(n_,{areResultsEditable:d,children:[(0,a.jsx)(ny,{children:(0,a.jsx)(nI,{children:r("
1V\xe1ha")})}),(0,a.jsx)(ny,{children:(0,a.jsx)(nI,{children:r("Boky")})}),(0,a.jsx)(ny,{children:(0,a.jsx)(nI,{children:r("P\xe1s")})}),(0,a.jsx)(ny,{children:(0,a.jsx)(nI,{children:r("Stehno")})})]})}),(0,a.jsxs)(nO,{backgroundColor:l["color-base-surface-secondary"],children:[(0,a.jsx)(nS,{src:(null==s?void 0:s.image)||tC(),alt:r("Pred v\xfdzvou"),fit:C.gN.COVER}),(0,a.jsx)(nC,{children:r("Pred v\xfdzvou")}),(0,a.jsxs)(n_,{children:[(0,a.jsxs)(ny,{children:[(0,a.jsx)(nw,{children:r("V\xe1ha")}),(0,a.jsxs)(nT,{children:[" ",getMeasurement("kg",null==s?void 0:s.weight)]})]}),(0,a.jsxs)(ny,{children:[(0,a.jsx)(nw,{children:r("Boky")}),(0,a.jsx)(nT,{children:getMeasurement("cm",null==s?void 0:s.hips)})]}),(0,a.jsxs)(ny,{children:[(0,a.jsx)(nw,{children:r("P\xe1s")}),(0,a.jsx)(nT,{children:getMeasurement("cm",null==s?void 0:s.waist)})]}),(0,a.jsxs)(ny,{children:[(0,a.jsx)(nw,{children:r("Stehno")}),(0,a.jsx)(nT,{children:getMeasurement("cm",null==s?void 0:s.thigh)})]})]})]}),(0,a.jsx)(nO,{children:(0,a.jsxs)(n_,{areResultsEditable:d,children:[(0,a.jsx)(nx,{children:getDifference("kg",null==s?void 0:s.weight,null==c?void 0:c.weight,u)}),(0,a.jsx)(nx,{children:getDifference("cm",null==s?void 0:s.hips,null==c?void 0:c.hips,u)}),(0,a.jsx)(nx,{children:getDifference("cm",null==s?void 0:s.waist,null==c?void 0:c.waist,u)}),(0,a.jsx)(nx,{children:getDifference("cm",null==s?void 0:s.thigh,null==c?void 0:c.thigh,u)})]})}),(0,a.jsxs)(nO,{backgroundColor:null==t?void 0:t.secondaryColor,children:[(0,a.jsx)(nS,{src:(null==c?void 0:c.image)||tC(),alt:r("Pred v\xfdzvou"),fit:C.gN.COVER}),(0,a.jsx)(nC,{children:r("Po v\xfdzve")}),(0,a.jsxs)(n_,{children:[(0,a.jsxs)(ny,{children:[(0,a.jsx)(nw,{children:r("V\xe1ha")}),(0,a.jsx)(nT,{children:getMeasurement("kg",null==c?void 0:c.weight)})]}),(0,a.jsxs)(ny,{children:[(0,a.jsx)(nw,{children:r("Boky")}),(0,a.jsx)(nT,{children:getMeasurement("cm",null==c?void 0:c.hips)})]}),(0,a.jsxs)(ny,{children:[(0,a.jsx)(nw,{children:r("P\xe1s")}),(0,a.jsx)(nT,{children:getMeasurement("cm",null==c?void 0:c.waist)})]}),(0,a.jsxs)(ny,{children:[(0,a.jsx)(nw,{children:r("Stehno")}),(0,a.jsx)(nT,{children:getMeasurement("cm",null==c?void 0:c.thigh)})]})]}),d&&(0,a.jsx)(eI.Z,{asHTML:C.vf.BUTTON,onClick:function(){n(!1),(0,I.k3)({top:0,left:0,behavior:"smooth"})},typography:U.kk,applyPadding:!0,children:r("Upraviť \xfadaje")})]})]}),d&&(0,a.jsx)(t6,{children:(0,a.jsx)(eS.Z,{type:C.JB.BUTTON,variant:C.RN.PRIMARY,label:r("Vybrať si program po v\xfdzve"),onClick:function(){return i(!0)},size:C.NO.XL})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(t1,{children:[(0,a.jsx)(t2,{children:r("Ďakujeme že si sa z\xfačastnila v\xfdzvy")}),(0,a.jsx)(t4,{src:tC(),alt:"Thanks image"})]}),d&&(0,a.jsxs)(t6,{children:[(0,a.jsx)(eS.Z,{variant:C.RN.SECONDARY,label:r("Upraviť \xfadaje"),onClick:function(){n(!1),(0,I.k3)({top:0,left:0,behavior:"smooth"})},icon:(0,a.jsx)(eL.dY,{}),size:C.NO.LG}),(0,a.jsx)(eS.Z,{type:C.JB.BUTTON,variant:C.RN.PRIMARY,label:r("Vybrať si program po v\xfdzve"),onClick:function(){return i(!0)},size:C.NO.XL})]})]})},nA=n(40200),ChallengeResults_ChallengeResults=function(e){var t,n,i,r,o,c,m,f=(0,j.$G)().t,h=e.challengeDetail,v=e.challengeType,g=e.setIsChallengeEndFormEdited,_=(0,x.v9)(function(e){var t,n;return null===(n=e.user)||void 0===n?void 0:null===(t=n.profile)||void 0===t?void 0:t.program}),O=(0,u._)((0,y.useState)(!1),2),S=O[0],I=O[1],T=(0,u._)((0,y.useState)(!1),2),P=T[0],A=T[1],M=(t=(0,s._)(function(){var e,t;return(0,d.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),A(!0),[4,(0,tU.ZL)(l.bV.DOWNLOAD_CERTIFICATE_PDF(h.id))];case 1:return(t=null==(e=n.sent().data)?void 0:e.url)&&window?window.open(t,"_blank"):p.ZP.warning({icon:(0,a.jsx)(eL.nV,{}),message:f("PDF certifik\xe1t nieje možn\xe9 stiahnuť")}),A(!1),[3,3];case 2:return n.sent(),A(!1),p.ZP.warning({icon:(0,a.jsx)(eL.nV,{}),message:f("PDF certifik\xe1t nieje možn\xe9 stiahnuť")}),[3,3];case 3:return[2]}})}),function(){return t.apply(this,arguments)});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(w.xu,{children:[(0,a.jsx)(t$,{src:(0,q.mm)(C.w$.BLACK),alt:"Fitshaker",loading:"lazy"}),(0,a.jsxs)(tX,{children:[(0,a.jsx)(tW,{src:(null==h?void 0:null===(n=h.badgeLogoPaths)||void 0===n?void 0:n.small)||(null==h?void 0:h.badgeLogo)||(null==h?void 0:null===(i=h.logoPaths)||void 0===i?void 0:i.small)||"",alt:null==h?void 0:h.title,fit:C.gN.CONTAIN}),(0,a.jsxs)(tY,{$noGap:v===C.EZ.NON_COMPETITIVE,children:[(0,a.jsx)(tK,{children:C.EZ.NON_COMPETITIVE?f("Gratulujeme! \xdaspešne si dokončila t\xfato v\xfdzvu"):f("Vyhodnotenie")}),(0,a.jsxs)(tq,{children:[v!==C.EZ.NON_COMPETITIVE&&(0,a.jsxs)(tJ,{children:[f("Gratulujeme! \xdaspešne si dokončila t\xfato v\xfdzvu"),"\xa0",v===C.EZ.COMPETITIVE&&f("Vystavili sme ti certifik\xe1t, ktor\xfd si m\xf4žeš stiahnuť a vytlačiť, alebo sa n\xedm pochv\xe1liť na soci\xe1lnych sieťach")]}),v===C.EZ.COMPETITIVE&&(0,a.jsx)(eS.Z,{type:C.JB.BUTTON,variant:C.RN.SECONDARY,label:f("Stiahnuť diplom PDF"),onClick:M,icon:(0,a.jsx)(eL._8,{}),disabled:P,size:C.NO.LG})]})]})]}),v===C.EZ.COMPETITIVE&&(0,a.jsx)(CertificateBanner_CertificateBanner,{hasName:!b()(null==h?void 0:null===(r=h.user)||void 0===r?void 0:r.firstName)||!b()(null==h?void 0:null===(o=h.user)||void 0===o?void 0:o.lastName),name:"".concat((null==h?void 0:null===(c=h.user)||void 0===c?void 0:c.firstName)||""," ").concat((null==h?void 0:null===(m=h.user)||void 0===m?void 0:m.lastName)||""),challengeName:(null==h?void 0:h.title)||"",image:(null==h?void 0:h.largeBannerImage)||"",backgroundColor:null==h?void 0:h.secondaryColor}),function(){switch(v){case C.EZ.COMPETITIVE:return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(tQ,{children:[(0,a.jsx)(t0,{
1children:f("Štatistiky")}),(0,a.jsx)(ChallengeStats_ChallengeStats,{daysOfExerciseCount:null==h?void 0:h.daysOfExerciseCount,exercisesCount:null==h?void 0:h.exercisesCount,burnedCaloriesCount:null==h?void 0:h.burnedCaloriesCount,backgroundColor:null==h?void 0:h.secondaryColor,iconColor:null==h?void 0:h.primaryColor})]}),(0,a.jsx)(Measurements_Measurements,{challengeDetail:h,setIsChallengeEndFormEdited:g,setProgramSelectionVisible:I})]});case C.EZ.HARMONIC:return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(w.eL,{children:[(0,a.jsx)(w.RX,{children:f("Ďakujeme že si sa z\xfačastnila harmonickej v\xfdzvy")}),(0,a.jsx)(w.F6,{children:f("Vyhodnotili sme tvoj pokrok vo v\xfdzve Nižšie si m\xf4žeš pozrieť ako sa menili tvoje pocity pred a po v\xfdzve")})]}),(0,a.jsx)(Answers_Answers,{challengeDetail:h,setIsChallengeEndFormEdited:g,setProgramSelectionVisible:I})]});default:return null}}()]}),(0,a.jsx)(nA.Z,{isOpen:S,setIsOpen:I,userProgram:_,redirectToCalendar:!0})]})},ChallengeStart_ChallengeStart=function(e){var t,n,i=e.isSubscribed,r=e.challengeDetail,l=e.setPricesChallengeModalOpen,o=e.challengeType,c=e.setConfirmationModalVisible,u=(0,j.$G)().t,p=(0,x.I0)(),m=(0,y.useMemo)(function(){return(0,k.UX)(u)},[u]),f=(0,k.Pc)(o,r.measurementsBefore,r.answersBefore);(0,y.useEffect)(function(){if(o===C.EZ.COMPETITIVE){var e,t,n,i,a,l,c,s=(c={},(0,T._)(c,C.dG.HIPS,(null===(e=r.measurementsBefore)||void 0===e?void 0:e.hips)||null),(0,T._)(c,C.dG.WEIGHT,(null===(t=r.measurementsBefore)||void 0===t?void 0:t.weight)||null),(0,T._)(c,C.dG.THIGH,(null===(n=r.measurementsBefore)||void 0===n?void 0:n.thigh)||null),(0,T._)(c,C.dG.WAIST,(null===(i=r.measurementsBefore)||void 0===i?void 0:i.waist)||null),(0,T._)(c,"image",null===(a=r.measurementsBefore)||void 0===a?void 0:a.image),(0,T._)(c,"agreement",!!(null===(l=r.measurementsBefore)||void 0===l?void 0:l.image)),c);r.allowCompetition?s.isCompetition=r.isCompetition?m.IS_COMPETITION.ID:m.NOT_COMPETITION.ID:s.isCompetition=m.NOT_COMPETITION.ID,p((0,M.j2)(C.n5.CHALLENGE_COMPETITION_START,s))}else o===C.EZ.HARMONIC&&p((0,M.j2)(C.n5.CHALLENGE_HARMONIC_START,(0,k.ke)(r.questions,r.answersBefore)))},[p,r,m,o]);var h=(t=(0,s._)(function(e){var t;return(0,d.Jh)(this,function(n){switch(n.label){case 0:return t={isCompetition:!!r.allowCompetition&&(null==e?void 0:e.isCompetition)===m.IS_COMPETITION.ID,measurementsBefore:{weight:A()(e[C.dG.WEIGHT],2),hips:A()(e[C.dG.HIPS],2),thigh:A()(e[C.dG.THIGH],2),waist:A()(e[C.dG.WAIST],2),image:null==e?void 0:e.image}},[4,p((0,S.xq)(r.id,t,function(){p((0,S.fU)(r.id,void 0,void 0,void 0,!1)),f||c(!0)}))];case 1:return n.sent(),[2]}})}),function(e){return t.apply(this,arguments)}),b=(n=(0,s._)(function(e){var t;return(0,d.Jh)(this,function(n){switch(n.label){case 0:return t={answersBefore:(0,k.B)(r.questions,e)},[4,p((0,S.s2)(r.id,t,function(){f||c(!0)}))];case 1:return n.sent(),[2]}})}),function(e){return n.apply(this,arguments)});return i&&function(){switch(o){case C.EZ.COMPETITIVE:return(0,a.jsx)(ez,{formName:C.n5.CHALLENGE_COMPETITION_START,challengeDetail:r,onSubmit:h,setPricesChallengeModalVisible:l});case C.EZ.HARMONIC:return(0,a.jsx)(ta,{formName:C.n5.CHALLENGE_HARMONIC_START,formState:C.ih.START,challengeDetail:r,onSubmit:b});default:return null}}()},nM=n(63714);function DetailModalStyles_templateObject(){var e=(0,V._)(["\n	.ant-modal-content {\n		.ant-modal-header {\n			padding-bottom: 0;\n		}\n\n		.ant-modal-body {\n			padding-top: 0 !important;\n		}\n	}\n"]);return DetailModalStyles_templateObject=function(){return e},e}function DetailModalStyles_templateObject1(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			align-items: center;\n		}\n	"]);return DetailModalStyles_templateObject1=function(){return e},e}function DetailModalStyles_templateObject2(){var e=(0,V._)(["\n	","\n"]);return DetailModalStyles_templateObject2=function(){return e},e}function DetailModalStyles_templateObject3(){var e=(0,V._)(["\n		align-self: center;\n		margin-bottom: ",";\n		max-width: 280px;\n\n		@media (min-width: ","px) {\n			order: 2;\n			width: 40%;\n			max-width: unset;\n		}\n	"]);
1return DetailModalStyles_templateObject3=function(){return e},e}function DetailModalStyles_templateObject4(){var e=(0,V._)(["\n	","\n"]);return DetailModalStyles_templateObject4=function(){return e},e}function DetailModalStyles_templateObject5(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		width: 100%;\n\n		@media (min-width: ","px) {\n			order: 1;\n			width: 60%;\n		}\n	"]);return DetailModalStyles_templateObject5=function(){return e},e}function DetailModalStyles_templateObject6(){var e=(0,V._)(["\n	","\n"]);return DetailModalStyles_templateObject6=function(){return e},e}function DetailModalStyles_templateObject7(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return DetailModalStyles_templateObject7=function(){return e},e}function DetailModalStyles_templateObject8(){var e=(0,V._)(["\n	","\n"]);return DetailModalStyles_templateObject8=function(){return e},e}function DetailModalStyles_templateObject9(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return DetailModalStyles_templateObject9=function(){return e},e}function DetailModalStyles_templateObject10(){var e=(0,V._)(["\n	","\n"]);return DetailModalStyles_templateObject10=function(){return e},e}function DetailModalStyles_templateObject11(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return DetailModalStyles_templateObject11=function(){return e},e}function DetailModalStyles_templateObject12(){var e=(0,V._)(["\n	","\n"]);return DetailModalStyles_templateObject12=function(){return e},e}function DetailModalStyles_templateObject13(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			align-items: center;\n		}\n	"]);return DetailModalStyles_templateObject13=function(){return e},e}function DetailModalStyles_templateObject14(){var e=(0,V._)(["\n	","\n"]);return DetailModalStyles_templateObject14=function(){return e},e}var nk=(0,H.ZP)(nM.Z).withConfig({componentId:"sc-33f50f20-0"})(DetailModalStyles_templateObject()),nN=H.ZP.div.withConfig({componentId:"sc-33f50f20-1"})(DetailModalStyles_templateObject2(),function(e){var t=e.theme;return(0,H.iv)(DetailModalStyles_templateObject1(),t.spacing[32],q.AV.md)}),nR=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-33f50f20-2"})(DetailModalStyles_templateObject4(),function(e){var t=e.theme;return(0,H.iv)(DetailModalStyles_templateObject3(),t.spacing[16],q.AV.md)}),nE=H.ZP.div.withConfig({componentId:"sc-33f50f20-3"})(DetailModalStyles_templateObject6(),function(e){var t=e.theme;return(0,H.iv)(DetailModalStyles_templateObject5(),t.spacing[32],q.AV.md)}),nZ=H.ZP.div.withConfig({componentId:"sc-33f50f20-4"})(DetailModalStyles_templateObject8(),function(e){var t=e.theme;return(0,H.iv)(DetailModalStyles_templateObject7(),t.spacing[16])}),nD=H.ZP.h2.withConfig({componentId:"sc-33f50f20-5"})(DetailModalStyles_templateObject10(),function(e){var t=e.theme;return(0,H.iv)(DetailModalStyles_templateObject9(),U.lC,t["color-base-content-primary"])}),nL=H.ZP.p.withConfig({componentId:"sc-33f50f20-6"})(DetailModalStyles_templateObject12(),function(e){var t=e.theme;return(0,H.iv)(DetailModalStyles_templateObject11(),U.q6,t["color-base-content-secondary"])}),nB=H.ZP.div.withConfig({componentId:"sc-33f50f20-7"})(DetailModalStyles_templateObject14(),function(e){var t=e.theme;return(0,H.iv)(DetailModalStyles_templateObject13(),t.spacing[16],q.AV.sm)}),DetailModal_DetailModal=function(e){var t=e.isOpen,n=e.handleCloseModal,i=e.modalContentTitle,r=e.description,l=e.primaryButton,o=e.secondaryButton,c=e.image,s=(0,x.v9)(function(e){var t,n,i;return null===(i=e.user)||void 0===i?void 0:null===(n=i.challenges)||void 0===n?void 0:null===(t=n.challengeDetail)||void 0===t?void 0:t.data}),u=s.title,d=s.primaryColor;return(0,a.jsx)(nk,{isOpen:t,width:736,footer:!1,onCancel:n,backgroundColor:d,children:(0,a.jsxs)(nN,{children:[(0,a.jsx)(nR,{src:c,alt:u}),(0,a.jsxs)(nE,{children:[(0,a.jsxs)(nZ,{children:[(0,a.jsx)(nD,{children:i}),(0,a.jsx)(nL,{children:r})]}),(0,a.jsxs)(nB,{children:[(0,a.jsx)(eS.Z,{label:l.label,onClick:l.action,size:C.NO.XL,fullWidthOnMobile:!0}
1),o&&(0,a.jsx)(eI.Z,{asHTML:C.vf.BUTTON,onClick:o.action,typography:U.kk,applyPadding:!0,children:o.label})]})]})]})})};function HeaderStyles_templateObject(){var e=(0,V._)([""]);return HeaderStyles_templateObject=function(){return e},e}function HeaderStyles_templateObject1(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		align-items: start;\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			align-items: center;\n		}\n	"]);return HeaderStyles_templateObject1=function(){return e},e}function HeaderStyles_templateObject2(){var e=(0,V._)(["\n	","\n"]);return HeaderStyles_templateObject2=function(){return e},e}function HeaderStyles_templateObject3(){var e=(0,V._)(["\n			"," {\n				flex-direction: row;\n				align-items: center;\n				align-self: center;\n			}\n		"]);return HeaderStyles_templateObject3=function(){return e},e}function HeaderStyles_templateObject4(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		align-items: start;\n		margin: "," 0;\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			align-items: center;\n			justify-content: ",";\n		}\n\n		","\n	"]);return HeaderStyles_templateObject4=function(){return e},e}function HeaderStyles_templateObject5(){var e=(0,V._)(["\n	","\n"]);return HeaderStyles_templateObject5=function(){return e},e}function HeaderStyles_templateObject6(){var e=(0,V._)(["\n	width: 80px;\n	height: 80px;\n	aspect-ratio: unset;\n"]);return HeaderStyles_templateObject6=function(){return e},e}function HeaderStyles_templateObject7(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return HeaderStyles_templateObject7=function(){return e},e}function HeaderStyles_templateObject8(){var e=(0,V._)(["\n	","\n"]);return HeaderStyles_templateObject8=function(){return e},e}function HeaderStyles_templateObject9(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return HeaderStyles_templateObject9=function(){return e},e}function HeaderStyles_templateObject10(){var e=(0,V._)(["\n	","\n"]);return HeaderStyles_templateObject10=function(){return e},e}function HeaderStyles_templateObject11(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n\n		@media (min-width: ","px) {\n			",";\n			color: ",";\n		}\n	"]);return HeaderStyles_templateObject11=function(){return e},e}function HeaderStyles_templateObject12(){var e=(0,V._)(["\n	","\n"]);return HeaderStyles_templateObject12=function(){return e},e}var nz=H.ZP.div.withConfig({componentId:"sc-9ab6f044-0"})(HeaderStyles_templateObject()),nF=H.ZP.div.withConfig({componentId:"sc-9ab6f044-1"})(HeaderStyles_templateObject2(),function(e){var t=e.theme;return(0,H.iv)(HeaderStyles_templateObject1(),t.spacing[16],q.AV.sm)}),nG=H.ZP.div.withConfig({componentId:"sc-9ab6f044-2"})(HeaderStyles_templateObject5(),function(e){var t=e.theme,n=e.$centered;return(0,H.iv)(HeaderStyles_templateObject4(),t.spacing[16],t.spacing[24],q.AV.sm,n?"center":"space-between",n&&(0,H.iv)(HeaderStyles_templateObject3(),nF))}),nV=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-9ab6f044-3"})(HeaderStyles_templateObject6()),nH=H.ZP.div.withConfig({componentId:"sc-9ab6f044-4"})(HeaderStyles_templateObject8(),function(e){var t=e.theme;return(0,H.iv)(HeaderStyles_templateObject7(),t.spacing[8])}),nU=H.ZP.p.withConfig({componentId:"sc-9ab6f044-5"})(HeaderStyles_templateObject10(),function(e){var t=e.theme;return(0,H.iv)(HeaderStyles_templateObject9(),U.kk,t["color-base-content-secondary"])}),n$=H.ZP.h2.withConfig({componentId:"sc-9ab6f044-6"})(HeaderStyles_templateObject12(),function(e){var t=e.theme;return(0,H.iv)(HeaderStyles_templateObject11(),U.EP,t["color-base-content-primary"],q.AV.md,U.XP,t["color-base-content-primary"])}),components_Header_Header=function(e){var t=e.logo,n=e.ctaButton,i=e.title,r=e.centered,l=e.showSignedInSubtitle,o=(0,j.$G)().t;return(0,a.jsxs)(nz,{children:[(0,a.jsx)(eI.Z,{href:o("paths:challenges|path"),icon:(0,a.jsx)(eL.wy,{}),children:o("Sp\xe4Å¥ na v\xfdzvy")}),(0,a.jsxs)(nG,{$centered:r,children:[(0,a.jsxs)(nF,{children:[(0,a.jsx)(nV,{src:t,alt:"Challenge logo",fit:C.gN.CONTAIN}),(0,a.jsxs)(nH,{children:[(0,a.jsx)(n$,{children:i}),l&&(0,a.jsxs)(nU,{children:[o("Si prihl\xe1sen\xe1 vo v\xfdzve!")," \uD83C\uDF89"]})]})]}),n&&!r&&(0,a.jsx)(eS.Z,{variant:n.buttonType,label:n.label,onClick:n.action,size:C.NO.XL,fullWidthOnMobile:!0})]})]})},nX=n(64136);
1function NotSubscribedContentStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		align-items: center;\n	"]);return NotSubscribedContentStyles_templateObject=function(){return e},e}function NotSubscribedContentStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return NotSubscribedContentStyles_templateObject1=function(){return e},e}function NotSubscribedContentStyles_templateObject2(){var e=(0,V._)(["\n	width: 100%;\n"]);return NotSubscribedContentStyles_templateObject2=function(){return e},e}function NotSubscribedContentStyles_templateObject3(){var e=(0,V._)(["\n		margin-inline: -",";\n		max-width: 728px;\n\n		@media (min-width: ","px) {\n			margin-inline: auto;\n		}\n	"]);return NotSubscribedContentStyles_templateObject3=function(){return e},e}function NotSubscribedContentStyles_templateObject4(){var e=(0,V._)(["\n	","\n"]);return NotSubscribedContentStyles_templateObject4=function(){return e},e}function NotSubscribedContentStyles_templateObject5(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		width: 100%;\n		max-width: 728px;\n		margin-inline: auto;\n	"]);return NotSubscribedContentStyles_templateObject5=function(){return e},e}function NotSubscribedContentStyles_templateObject6(){var e=(0,V._)(["\n	","\n"]);return NotSubscribedContentStyles_templateObject6=function(){return e},e}function NotSubscribedContentStyles_templateObject7(){var e=(0,V._)(["\n		margin: 0;\n		text-align: center;\n		",";\n		color: ",";\n\n		strong {\n			color: ",";\n		}\n	"]);return NotSubscribedContentStyles_templateObject7=function(){return e},e}function NotSubscribedContentStyles_templateObject8(){var e=(0,V._)(["\n	","\n"]);return NotSubscribedContentStyles_templateObject8=function(){return e},e}function NotSubscribedContentStyles_templateObject9(){var e=(0,V._)(["\n		display: flex;\n		flex-wrap: wrap;\n		justify-content: space-between;\n		align-items: center;\n		gap: ",";\n\n		> * {\n			flex: 0 0 auto;\n		}\n\n		@media (max-width: ","px) {\n			flex-direction: column-reverse;\n\n			> * {\n				width: 100%;\n			}\n		}\n	"]);return NotSubscribedContentStyles_templateObject9=function(){return e},e}function NotSubscribedContentStyles_templateObject10(){var e=(0,V._)(["\n	","\n"]);return NotSubscribedContentStyles_templateObject10=function(){return e},e}function NotSubscribedContentStyles_templateObject11(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n\n		p {\n			margin: 0;\n			",";\n			color: ",";\n		}\n	"]);return NotSubscribedContentStyles_templateObject11=function(){return e},e}function NotSubscribedContentStyles_templateObject12(){var e=(0,V._)(["\n	","\n"]);return NotSubscribedContentStyles_templateObject12=function(){return e},e}var nW=H.ZP.div.withConfig({componentId:"sc-ca4eb090-0"})(NotSubscribedContentStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(NotSubscribedContentStyles_templateObject(),t.spacing[40])}),nY=(0,H.ZP)(nX.Z).withConfig({componentId:"sc-ca4eb090-1"})(NotSubscribedContentStyles_templateObject2()),nq=(0,H.ZP)(J.Z).withConfig({componentId:"sc-ca4eb090-2"})(NotSubscribedContentStyles_templateObject4(),function(e){var t=e.theme;return(0,H.iv)(NotSubscribedContentStyles_templateObject3(),t.spacing[16],q.AV.sm)}),nK=H.ZP.div.withConfig({componentId:"sc-ca4eb090-3"})(NotSubscribedContentStyles_templateObject6(),function(e){var t=e.theme;return(0,H.iv)(NotSubscribedContentStyles_templateObject5(),t.spacing[24])}),nJ=H.ZP.p.withConfig({componentId:"sc-ca4eb090-4"})(NotSubscribedContentStyles_templateObject8(),function(e){var t=e.theme;return(0,H.iv)(NotSubscribedContentStyles_templateObject7(),U.lT,t["color-base-content-tertiary"],t["color-base-content-primary"])}),nQ=H.ZP.div.withConfig({componentId:"sc-ca4eb090-5"})(NotSubscribedContentStyles_templateObject10(),function(e){var t=e.theme;return(0,H.iv)(NotSubscribedContentStyles_templateObject9(),t.spacing[16],q.AV.sm)}),n0=H.ZP.div.withConfig({componentId:"sc-ca4eb090-6"})(NotSubscribedContentStyles_templateObject12(),function(e){var t=e.theme;
1return(0,H.iv)(NotSubscribedContentStyles_templateObject11(),t.spacing[8],U.lT,t["color-base-content-tertiary"])}),n1=n(20434),n2=n(98130),n4=n(67117);function BonusActivationBannerStyles_templateObject(){var e=(0,V._)(["\n	display: flex;\n	flex-direction: row;\n	margin: 0 auto;\n	width: 100%;\n	// NOTE: pricelist max width\n	max-width: 1104px;\n"]);return BonusActivationBannerStyles_templateObject=function(){return e},e}function BonusActivationBannerStyles_templateObject1(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		border: 1px solid ",";\n		border-radius: ",";\n		width: 100%;\n		overflow: hidden;\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n		}\n	"]);return BonusActivationBannerStyles_templateObject1=function(){return e},e}function BonusActivationBannerStyles_templateObject2(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject2=function(){return e},e}function BonusActivationBannerStyles_templateObject3(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n		align-items: center;\n		justify-content: center;\n		background-color: ",";\n		padding: "," ",";\n		width: 100%;\n		text-align: center;\n\n		@media (min-width: ","px) {\n			flex: 0 0 40%;\n			width: auto;\n		}\n	"]);return BonusActivationBannerStyles_templateObject3=function(){return e},e}function BonusActivationBannerStyles_templateObject4(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject4=function(){return e},e}function BonusActivationBannerStyles_templateObject5(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return BonusActivationBannerStyles_templateObject5=function(){return e},e}function BonusActivationBannerStyles_templateObject6(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject6=function(){return e},e}function BonusActivationBannerStyles_templateObject7(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return BonusActivationBannerStyles_templateObject7=function(){return e},e}function BonusActivationBannerStyles_templateObject8(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject8=function(){return e},e}function BonusActivationBannerStyles_templateObject9(){var e=(0,V._)(["\n		display: flex;\n		gap: ",";\n	"]);return BonusActivationBannerStyles_templateObject9=function(){return e},e}function BonusActivationBannerStyles_templateObject10(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject10=function(){return e},e}function BonusActivationBannerStyles_templateObject11(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		align-items: center;\n		justify-content: center;\n		border-radius: ",";\n		background-color: ",";\n		width: 56px;\n		height: 56px;\n	"]);return BonusActivationBannerStyles_templateObject11=function(){return e},e}function BonusActivationBannerStyles_templateObject12(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject12=function(){return e},e}function BonusActivationBannerStyles_templateObject13(){var e=(0,V._)(["\n		",";\n		color: ",";\n	"]);return BonusActivationBannerStyles_templateObject13=function(){return e},e}function BonusActivationBannerStyles_templateObject14(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject14=function(){return e},e}function BonusActivationBannerStyles_templateObject15(){var e=(0,V._)(["\n		",";\n		color: ",";\n	"]);return BonusActivationBannerStyles_templateObject15=function(){return e},e}function BonusActivationBannerStyles_templateObject16(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject16=function(){return e},e}function BonusActivationBannerStyles_templateObject17(){var e=(0,V._)(["\n		display: flex;\n		flex: 1;\n		flex-direction: column;\n		gap: ",";\n		background-color: ",";\n		padding: ",";\n	"]);return BonusActivationBannerStyles_templateObject17=function(){return e},e}function BonusActivationBannerStyles_templateObject18(){var e=(0,V._)(["\n	","\n"]);
1return BonusActivationBannerStyles_templateObject18=function(){return e},e}function BonusActivationBannerStyles_templateObject19(){var e=(0,V._)(["\n		display: inline-flex;\n		gap: ",";\n		align-items: center;\n		align-self: flex-start;\n		border-radius: ",";\n		background-color: ",";\n		padding: "," ",";\n		",";\n		color: ",";\n	"]);return BonusActivationBannerStyles_templateObject19=function(){return e},e}function BonusActivationBannerStyles_templateObject20(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject20=function(){return e},e}function BonusActivationBannerStyles_templateObject21(){var e=(0,V._)(["\n	position: relative;\n	top: 2px;\n"]);return BonusActivationBannerStyles_templateObject21=function(){return e},e}function BonusActivationBannerStyles_templateObject22(){var e=(0,V._)(["\n		margin: 0;\n		max-width: 425px;\n		",";\n		color: ",";\n	"]);return BonusActivationBannerStyles_templateObject22=function(){return e},e}function BonusActivationBannerStyles_templateObject23(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject23=function(){return e},e}function BonusActivationBannerStyles_templateObject24(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: row;\n		gap: ",";\n	"]);return BonusActivationBannerStyles_templateObject24=function(){return e},e}function BonusActivationBannerStyles_templateObject25(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject25=function(){return e},e}function BonusActivationBannerStyles_templateObject26(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return BonusActivationBannerStyles_templateObject26=function(){return e},e}function BonusActivationBannerStyles_templateObject27(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject27=function(){return e},e}function BonusActivationBannerStyles_templateObject28(){var e=(0,V._)(["\n		display: flex;\n		width: 40px;\n		height: 100%;\n		position: relative;\n		align-items: center;\n		justify-content: center;\n		background-color: ",";\n		border-radius: ",";\n	"]);return BonusActivationBannerStyles_templateObject28=function(){return e},e}function BonusActivationBannerStyles_templateObject29(){var e=(0,V._)(["\n	","\n"]);return BonusActivationBannerStyles_templateObject29=function(){return e},e}function BonusActivationBannerStyles_templateObject30(){var e=(0,V._)(["\n	position: absolute;\n	top: 15px;\n"]);return BonusActivationBannerStyles_templateObject30=function(){return e},e}function BonusActivationBannerStyles_templateObject31(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return BonusActivationBannerStyles_templateObject31=function(){return e},e}function _templateObject32(){var e=(0,V._)(["\n	","\n"]);return _templateObject32=function(){return e},e}function _templateObject33(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return _templateObject33=function(){return e},e}function _templateObject34(){var e=(0,V._)(["\n	","\n"]);return _templateObject34=function(){return e},e}function _templateObject35(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n		font-style: italic;\n	"]);return _templateObject35=function(){return e},e}function _templateObject36(){var e=(0,V._)(["\n	","\n"]);return _templateObject36=function(){return e},e}var n3=H.ZP.div.withConfig({componentId:"sc-6b42e60b-0"})(BonusActivationBannerStyles_templateObject()),n6=H.ZP.div.withConfig({componentId:"sc-6b42e60b-1"})(BonusActivationBannerStyles_templateObject2(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject1(),t["color-base-surface-tertiary"],t.borderRadius[16],q.AV.lg)}),n9=H.ZP.div.withConfig({componentId:"sc-6b42e60b-2"})(BonusActivationBannerStyles_templateObject4(),function(e){var t=e.theme,n=e.$secondaryColor;return(0,H.iv)(BonusActivationBannerStyles_templateObject3(),t.spacing[16],n||t["color-base-surface-tertiary"],t.spacing[24],t.spacing[16],q.AV.lg)}),n8=H.ZP.p.withConfig({componentId:"sc-6b42e60b-3"})(BonusActivationBannerStyles_templateObject6(),function(e){var t=e.theme;
1return(0,H.iv)(BonusActivationBannerStyles_templateObject5(),U.gY,t["color-base-content-primary"])}),n5=H.ZP.p.withConfig({componentId:"sc-6b42e60b-4"})(BonusActivationBannerStyles_templateObject8(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject7(),U.lT,t["color-base-content-primary"])}),n7=H.ZP.div.withConfig({componentId:"sc-6b42e60b-5"})(BonusActivationBannerStyles_templateObject10(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject9(),t.spacing[8])}),ie=H.ZP.div.withConfig({componentId:"sc-6b42e60b-6"})(BonusActivationBannerStyles_templateObject12(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject11(),t.borderRadius[8],t["color-base-surface-primary"])}),it=H.ZP.span.withConfig({componentId:"sc-6b42e60b-7"})(BonusActivationBannerStyles_templateObject14(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject13(),U.dc,t["color-base-content-primary"])}),ii=H.ZP.span.withConfig({componentId:"sc-6b42e60b-8"})(BonusActivationBannerStyles_templateObject16(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject15(),U.Kd,t["color-base-content-secondary"])}),ir=H.ZP.div.withConfig({componentId:"sc-6b42e60b-9"})(BonusActivationBannerStyles_templateObject18(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject17(),t.spacing[16],t["color-base-surface-primary"],t.spacing[24])}),ia=H.ZP.div.withConfig({componentId:"sc-6b42e60b-10"})(BonusActivationBannerStyles_templateObject20(),function(e){var t=e.theme,n=e.$secondaryColor;return(0,H.iv)(BonusActivationBannerStyles_templateObject19(),t.spacing[4],t.borderRadius[999],n||t["color-base-surface-tertiary"],t.spacing[2],t.spacing[10],U.Bv,t["color-base-content-primary"])}),il=H.ZP.span.withConfig({componentId:"sc-6b42e60b-11"})(BonusActivationBannerStyles_templateObject21()),io=H.ZP.p.withConfig({componentId:"sc-6b42e60b-12"})(BonusActivationBannerStyles_templateObject23(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject22(),U.lT,t["color-base-content-primary"])}),ic=H.ZP.div.withConfig({componentId:"sc-6b42e60b-13"})(BonusActivationBannerStyles_templateObject25(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject24(),t.spacing[16])}),is=H.ZP.div.withConfig({componentId:"sc-6b42e60b-14"})(BonusActivationBannerStyles_templateObject27(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject26(),t.spacing[4])}),iu=H.ZP.div.withConfig({componentId:"sc-6b42e60b-15"})(BonusActivationBannerStyles_templateObject29(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject28(),t["color-base-surface-tertiary"],t.borderRadius[8])}),id=H.ZP.div.withConfig({componentId:"sc-6b42e60b-16"})(BonusActivationBannerStyles_templateObject30()),ip=H.ZP.h3.withConfig({componentId:"sc-6b42e60b-17"})(_templateObject32(),function(e){var t=e.theme;return(0,H.iv)(BonusActivationBannerStyles_templateObject31(),U.dc,t["color-base-content-primary"])}),im=H.ZP.p.withConfig({componentId:"sc-6b42e60b-18"})(_templateObject34(),function(e){var t=e.theme;return(0,H.iv)(_templateObject33(),U.lT,t["color-base-content-primary"])}),ih=H.ZP.p.withConfig({componentId:"sc-6b42e60b-19"})(_templateObject36(),function(e){var t=e.theme;return(0,H.iv)(_templateObject35(),U.Kd,t["color-base-content-primary"])}),ib=n(90573),BonusActivationBanner_BonusActivationBanner=function(e){var t=e.bonusDeadline,n=e.secondaryColor,i=e.onExpire,r=(0,j.$G)().t,l=(0,n4.tm)(),o=f()(Number(t)).toDate();return(0,a.jsx)(n3,{children:(0,a.jsxs)(n6,{children:[(0,a.jsxs)(n9,{$secondaryColor:n,children:[(0,a.jsxs)(n8,{children:[r("Aktivuj si PREMIUM členstvo do"),":"]}),(0,a.jsx)(n2.ZP,{date:o,daysInHours:!0,onComplete:i,renderer:function(e){var t=e.minutes,n=e.seconds;return(0,a.jsxs)(n7,{children:[(0,a.jsx)(ie,{children:l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(it,{children:t}),(0,a.jsx)(ii,{children:(0,I.UT)(t,I.ju.MINUTES)})]}):(0,a.jsx)(ib.Z,{})}),(0,a.jsx)(ie,{children:l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(it,{children:n}),(0,a.jsx)(ii,{children:(0,I.UT)(n,I.ju.SECONDS)})]}):(0,a.jsx)(ib.Z,{})})]})}}),(0,a.jsx)(n5,{children:r("a z\xedskaj par\xe1dny bonus ZADARMO!")})]}),(0,a.jsxs)(ir,{children:[(0,a.jsxs)(ia,{$secondaryColor:n,children:[(0,a.jsx)(il,{"aria-hidden":!0,
1children:"\uD83C\uDF81"}),r("Špeci\xe1lny darček k v\xfdzve")]}),(0,a.jsx)(io,{dangerouslySetInnerHTML:{__html:r("Ak si stihneš aktivovať svoje <strong>PREMIUM členstvo</strong> do konca odpočtu pribal\xedme ti k v\xfdzve navyše")}}),(0,a.jsxs)(ic,{children:[(0,a.jsx)(iu,{children:(0,a.jsx)(id,{children:"\uD83E\uDD57"})}),(0,a.jsxs)(is,{children:[(0,a.jsx)(ip,{children:r("60 v\xfdnimočn\xfdch receptov")}),(0,a.jsx)(im,{children:r("na doma aj do krabičky")})]})]}),(0,a.jsx)(ih,{children:r("*Bonusov\xe1 ponuka sa nevzťahuje na členstvo START")})]})]})})},isBonusDeadlineActive=function(e){return!!e&&f()(Number(e)).isAfter(f()())},NotSubscribedContent_NotSubscribedContent=function(e){var t=e.classname,n=e.handleCancelChallenge,i=e.priceList,r=e.secondaryColor,l=e.bonusDeadline,o=e.lowestTier,c=(0,j.$G)().t,s=(0,_.useRouter)(),d=(0,u._)((0,y.useState)(function(){return isBonusDeadlineActive(l)}),2),p=d[0],m=d[1],f=(0,u._)((0,y.useState)(!1),2),h=f[0],b=f[1];(0,y.useEffect)(function(){m(isBonusDeadlineActive(l))},[l]);var v=o===C.hX.VIP?C.hX.VIP:C.hX.PREMIUM;return(0,a.jsxs)(nW,{className:t,children:[p&&l&&(0,a.jsx)(nY,{children:(0,a.jsx)(BonusActivationBanner_BonusActivationBanner,{bonusDeadline:l,secondaryColor:r,onExpire:function(){return m(!1)}})}),o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n1.Z,{priceList:i,noTopMargin:p,hideHeader:p,singleTier:h?void 0:v,challengeUnlockTier:o,hideDowngrade:!0}),(0,a.jsxs)(nK,{children:[(0,a.jsx)(nJ,{dangerouslySetInnerHTML:{__html:c("Nie si si ist\xe1 v\xfdberom PREMIUM členstva? <strong>Pozri si cel\xfa ponuku dostupn\xfdch členstiev k tejto v\xfdzve</strong>")}}),(0,a.jsxs)(nQ,{children:[(0,a.jsx)(eS.Z,{size:C.NO.LG,variant:C.RN.SECONDARY,label:c("Zatiaľ nie"),onClick:function(){return s.push(c("paths:calendar|path"))}}),!h&&(0,a.jsx)(eS.Z,{size:C.NO.LG,label:c("Zobraziť všetky členstv\xe1"),icon:(0,a.jsx)(eL.SS,{}),onClick:function(){return b(!0)}})]})]})]}):(0,a.jsx)(n1.Z,{priceList:i,noTopMargin:p,hideHeader:p}),(0,a.jsx)(nq,{variant:r||C.HU.WARNING,icon:(0,a.jsx)(eL.sz,{}),content:c("Ak sa chceš zapojiť s\xfaťažne a hrať o skvel\xe9 ceny nezabudni si zak\xfapiť di\xe1r s ktor\xfdm sa odfot\xedš pred a po v\xfdzve")}),(0,a.jsxs)(n0,{children:[(0,a.jsx)("p",{children:c("Ak sa nepl\xe1nuješ do v\xfdzvy zapojiť tak m\xf4žeš zrušiť svoju \xfačasť")}),(0,a.jsx)(eI.Z,{asHTML:C.vf.BUTTON,onClick:n,typography:U.pu,applyPadding:!0,children:c("Zrušiť \xfačasť")})]})]})};function PricesModalStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: column;\n		gap: ",";\n	"]);return PricesModalStyles_templateObject=function(){return e},e}function PricesModalStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return PricesModalStyles_templateObject1=function(){return e},e}function PricesModalStyles_templateObject2(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n\n		&:not(:last-of-type) {\n			margin-bottom: ",";\n		}\n	"]);return PricesModalStyles_templateObject2=function(){return e},e}function PricesModalStyles_templateObject3(){var e=(0,V._)(["\n	",";\n"]);return PricesModalStyles_templateObject3=function(){return e},e}function PricesModalStyles_templateObject4(){var e=(0,V._)(["\n		&& {\n			text-decoration: underline;\n			color: ",";\n		}\n	"]);return PricesModalStyles_templateObject4=function(){return e},e}function PricesModalStyles_templateObject5(){var e=(0,V._)(["\n	","\n"]);return PricesModalStyles_templateObject5=function(){return e},e}function PricesModalStyles_templateObject6(){var e=(0,V._)(["\n		border-radius: ",";\n	"]);return PricesModalStyles_templateObject6=function(){return e},e}function PricesModalStyles_templateObject7(){var e=(0,V._)(["\n	","\n"]);return PricesModalStyles_templateObject7=function(){return e},e}var iv=H.ZP.div.withConfig({componentId:"sc-e2dfe904-0"})(PricesModalStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(PricesModalStyles_templateObject(),t.spacing[32])}),ig=H.ZP.p.withConfig({componentId:"sc-e2dfe904-1"})(PricesModalStyles_templateObject3(),function(e){var t=e.theme;
1return(0,H.iv)(PricesModalStyles_templateObject2(),U.q6,t["color-base-content-secondary"],t.spacing[12])}),ij=(0,H.ZP)(eI.Z).withConfig({componentId:"sc-e2dfe904-2"})(PricesModalStyles_templateObject5(),function(e){var t=e.theme;return(0,H.iv)(PricesModalStyles_templateObject4(),t["color-base-content-secondary"])}),i_=(0,H.ZP)(Q.Z).withConfig({componentId:"sc-e2dfe904-3"})(PricesModalStyles_templateObject7(),function(e){var t=e.theme;return(0,H.iv)(PricesModalStyles_templateObject6(),t.borderRadius[12])}),PricesModal_PricesModal=function(e){var t=e.isOpen,n=e.handleCloseModal,i=e.challengeDetail,r=(0,j.$G)().t,l=i.title,o=i.prizeBanner,c=i.conditionsUrl,s=i.prizeValue;return(0,a.jsx)(nM.Z,{isOpen:t,width:736,title:r("Hr\xe1š o skvel\xe9 ceny vo v\xfdške {{prizeValue}}!",{prizeValue:s}),footer:!1,onCancel:n,children:(0,a.jsxs)(iv,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(ig,{children:r("Ak chceš vyhrať jednu zo skvel\xfdch cien, je potrebn\xe9 odfotiť sa s naš\xedm FITNESS DI\xc1ROM 2023 K\xfapiš ho v našom e-shope alebo vo svojom obľ\xfabenom kn\xedhkupectve")}),c&&(0,a.jsxs)(ig,{children:[r("Kompletn\xe9 podmienky s\xfaťaže n\xe1jdeš"),"\xa0",(0,a.jsx)(ij,{asHTML:C.vf.ANCHOR,href:c,target:"_blank",rel:"noreferrer",typography:U.q6,children:r("TU")}),"!"]})]}),o&&(0,a.jsx)(i_,{src:o,alt:l,fit:C.gN.NONE})]})})},RedirectToChallengeList_RedirectToChallengeList=function(){var e=(0,j.$G)().t,t=(0,_.useRouter)();return(0,y.useEffect)(function(){t.push(e("paths:challenges|path"))},[]),null},iy=n(90377),ix=n(85421),iO=n.n(ix),iS=n(84543),iC=n.n(iS),iI=n(20336),iw=n(32193),iT=n(53182);function ChallengeDifficultyModalFormStyles_templateObject(){var e=(0,V._)(["\n	.ant-modal-body {\n		padding-block: 0 !important;\n	}\n\n	.ant-modal-footer {\n		"," {\n			display: none;\n		}\n	}\n"]);return ChallengeDifficultyModalFormStyles_templateObject=function(){return e},e}function ChallengeDifficultyModalFormStyles_templateObject1(){var e=(0,V._)(["\n	display: flex;\n	flex-direction: column;\n	gap: 16px;\n	align-items: end;\n"]);return ChallengeDifficultyModalFormStyles_templateObject1=function(){return e},e}function ChallengeDifficultyModalFormStyles_templateObject2(){var e=(0,V._)(["\n	gap: 16px;\n"]);return ChallengeDifficultyModalFormStyles_templateObject2=function(){return e},e}function ChallengeDifficultyModalFormStyles_templateObject3(){var e=(0,V._)(["\n	display: flex;\n	flex-direction: column;\n	gap: 8px;\n	line-height: 1;\n"]);return ChallengeDifficultyModalFormStyles_templateObject3=function(){return e},e}function ChallengeDifficultyModalFormStyles_templateObject4(){var e=(0,V._)(["\n		display: flex;\n		gap: 4px;\n		align-items: center;\n		color: ",";\n		",";\n\n		svg {\n			width: 14px;\n			height: 14px;\n		}\n	"]);return ChallengeDifficultyModalFormStyles_templateObject4=function(){return e},e}function ChallengeDifficultyModalFormStyles_templateObject5(){var e=(0,V._)(["\n	","\n"]);return ChallengeDifficultyModalFormStyles_templateObject5=function(){return e},e}function ChallengeDifficultyModalFormStyles_templateObject6(){var e=(0,V._)(["\n		color: ",";\n		",";\n	"]);return ChallengeDifficultyModalFormStyles_templateObject6=function(){return e},e}function ChallengeDifficultyModalFormStyles_templateObject7(){var e=(0,V._)(["\n	","\n"]);return ChallengeDifficultyModalFormStyles_templateObject7=function(){return e},e}function ChallengeDifficultyModalFormStyles_templateObject8(){var e=(0,V._)(["\n		color: ",";\n		",";\n	"]);return ChallengeDifficultyModalFormStyles_templateObject8=function(){return e},e}function ChallengeDifficultyModalFormStyles_templateObject9(){var e=(0,V._)(["\n	","\n"]);return ChallengeDifficultyModalFormStyles_templateObject9=function(){return e},e}var iP=(0,H.ZP)(nM.Z).withConfig({componentId:"sc-4ff0b0e8-0"})(ChallengeDifficultyModalFormStyles_templateObject(),iT.uj),iA=H.ZP.form.withConfig({componentId:"sc-4ff0b0e8-1"})(ChallengeDifficultyModalFormStyles_templateObject1()),iM=(0,H.ZP)(iw.Z).withConfig({componentId:"sc-4ff0b0e8-2"})(ChallengeDifficultyModalFormStyles_templateObject2()),ik=H.ZP.div.withConfig({componentId:"sc-4ff0b
10e8-3"})(ChallengeDifficultyModalFormStyles_templateObject3()),iN=H.ZP.span.withConfig({componentId:"sc-4ff0b0e8-4"})(ChallengeDifficultyModalFormStyles_templateObject5(),function(e){var t=e.theme;return(0,H.iv)(ChallengeDifficultyModalFormStyles_templateObject4(),t["color-base-content-primary"],U.pu)}),iR=H.ZP.span.withConfig({componentId:"sc-4ff0b0e8-5"})(ChallengeDifficultyModalFormStyles_templateObject7(),function(e){var t=e.theme;return(0,H.iv)(ChallengeDifficultyModalFormStyles_templateObject6(),t["color-base-content-tertiary"],U.lT)}),iE=H.ZP.li.withConfig({componentId:"sc-4ff0b0e8-6"})(ChallengeDifficultyModalFormStyles_templateObject9(),function(e){var t=e.theme;return(0,H.iv)(ChallengeDifficultyModalFormStyles_templateObject8(),t["color-base-content-primary"],U.Kd)}),iZ=(0,E.Z)({form:C.n5.CHALLENGE_DIFFICULTY_FORM,destroyOnUnmount:!0,forceUnregisterOnUnmount:!0,touchOnChange:!0,validate:function(e){var t,n={};return(null===(t=e.difficulty)||void 0===t?void 0:t.length)||(n.difficulty=null===j.ag||void 0===j.ag?void 0:j.ag.t("Toto pole je povinn\xe9")),n}})(function(e){var t=e.isOpen,n=e.onClose,i=e.handleSubmit,r=(0,j.$G)().t,l=(0,x.I0)(),o=(0,x.v9)(function(e){var t,n;return null===(n=e.user)||void 0===n?void 0:null===(t=n.profile)||void 0===t?void 0:t.program}),c=(0,y.useCallback)(function(){var e={difficulty:null==o?void 0:o.userDifficulty};l((0,M.j2)(C.n5.CHALLENGE_DIFFICULTY_FORM,e))},[l]);return(0,y.useEffect)(function(){l(function(){return c()})},[l,c]),(0,a.jsx)(iP,{isOpen:t,title:r("Vyber si n\xe1ročnosť v\xfdzvy"),onCancel:n,children:(0,a.jsxs)(iA,{onSubmit:i,children:[(0,a.jsx)(R.Z,{name:"difficulty",component:iM,label:"",options:(0,I.bl)(r),additionalContent:(0,a.jsx)(iI.Z,{zIndex:1e4,getPopupContainer:function(){return document.getElementsByName("body")[0]},placement:"top",title:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{children:[r("Začiatočn\xedk"),":"]}),(0,a.jsxs)("ul",{children:[(0,a.jsx)(iE,{children:r("nikdy som necvičila")}),(0,a.jsx)(iE,{children:r("mala som dlhšiu pauzu od cvičenia ( 1 rok a viac)")}),(0,a.jsx)(iE,{children:r("potrebujem s cvičen\xedm začať pomaly a dokonale pochopiť spr\xe1vnu techniku cvikov")})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{children:[r("Pokročil\xfd"),":"]}),(0,a.jsxs)("ul",{children:[(0,a.jsx)(iE,{children:r("akt\xedvne cvič\xedm (3 a viac mesiacov)")}),(0,a.jsx)(iE,{children:r("viem techniku z\xe1kladn\xfdch cvikov (drepy, v\xfdpady, kľuky, skracovačky, plank)")}),(0,a.jsx)(iE,{children:r("kardio cvičenia mi nerobia probl\xe9m")})]})]})]}),children:(0,a.jsxs)(ik,{children:[(0,a.jsxs)(iN,{children:[r("Ako viem či som začiatočn\xedk alebo pokročil\xfd?"),(0,a.jsx)(eL.sz,{width:12,height:12})]}),(0,a.jsx)(iR,{children:r("*n\xe1ročnosť svojej v\xfdzvy si vieš kedykoľvek počas jej trvania zmeniť cez ozuben\xe9 koliesko")})]})}),flexDirection:C.uM.COLUMN,size:C.NO.MD}),(0,a.jsx)(eS.Z,{label:r("Uložiť"),size:C.NO.LG,variant:C.RN.PRIMARY,type:C.JB.SUBMIT})]})})}),iD=n(30998),iL=n.n(iD),iB=n(66832);n(60439);var iz=n(2261);function TimelineStyles_templateObject(){var e=(0,V._)(["\n		display: none;\n\n		@media (min-width: ","px) {\n			display: flex;\n			flex-direction: row;\n			justify-content: space-between;\n			margin-bottom: ",";\n			border-radius: ",";\n			background-color: ",";\n			padding: ",";\n			width: 100%;\n		}\n\n		@media (min-width: ","px) {\n			padding: ",";\n		}\n	"]);return TimelineStyles_templateObject=function(){return e},e}function TimelineStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return TimelineStyles_templateObject1=function(){return e},e}function TimelineStyles_templateObject2(){var e=(0,V._)(["\n		margin: 0 -"," ",";\n		padding: 0 ",";\n\n		.swiper-wrapper {\n			display: flex;\n			flex-direction: row;\n			align-items: center;\n			width: 100%;\n		}\n\n		@media (min-width: ","px) {\n			margin: 0 -"," ",";\n			padding: 0 ",";\n		}\n\n		@media (min-width: ","px) {\n			display: none;\n		}\n	"]);return TimelineStyles_templateObject2=function(){return e},e}
1function TimelineStyles_templateObject3(){var e=(0,V._)(["\n	","\n"]);return TimelineStyles_templateObject3=function(){return e},e}function TimelineStyles_templateObject4(){var e=(0,V._)(["\n	flex-shrink: 0;\n	margin: 0;\n	cursor: pointer;\n	padding: 0;\n	width: fit-content;\n"]);return TimelineStyles_templateObject4=function(){return e},e}var iF=H.ZP.div.withConfig({componentId:"sc-260b4b0c-0"})(TimelineStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(TimelineStyles_templateObject(),q.AV.md,t.spacing[24],t.borderRadius[24],t["color-base-surface-primary"],t.spacing[24],q.AV.xl,t.spacing[40])}),iG=(0,H.ZP)(iz.tq).withConfig({componentId:"sc-260b4b0c-1"})(TimelineStyles_templateObject3(),function(e){var t=e.theme;return(0,H.iv)(TimelineStyles_templateObject2(),t.spacing[16],t.spacing[32],t.spacing[16],q.AV.sm,t.spacing[24],t.spacing[40],t.spacing[24],q.AV.md)}),iV=(0,H.ZP)(iz.o5).withConfig({componentId:"sc-260b4b0c-2"})(TimelineStyles_templateObject4());function FeaturedIconStyles_templateObject(){var e=(0,V._)(["\n			border-radius: ",";\n			width: 24px;\n			height: 24px;\n\n			svg {\n				width: 12px;\n				height: 12px;\n			}\n		"]);return FeaturedIconStyles_templateObject=function(){return e},e}function FeaturedIconStyles_templateObject1(){var e=(0,V._)(["\n			border-radius: ",";\n			width: 32px;\n			height: 32px;\n\n			svg {\n				width: 16px;\n				height: 16px;\n			}\n		"]);return FeaturedIconStyles_templateObject1=function(){return e},e}function FeaturedIconStyles_templateObject2(){var e=(0,V._)(["\n			border-radius: ",";\n			width: 40px;\n			height: 40px;\n\n			svg {\n				width: 20px;\n				height: 20px;\n			}\n		"]);return FeaturedIconStyles_templateObject2=function(){return e},e}function FeaturedIconStyles_templateObject3(){var e=(0,V._)(["\n			border-radius: ",";\n			width: 48px;\n			height: 48px;\n\n			svg {\n				width: 24px;\n				height: 24px;\n			}\n		"]);return FeaturedIconStyles_templateObject3=function(){return e},e}function FeaturedIconStyles_templateObject4(){var e=(0,V._)(["\n			border-radius: ",";\n			width: 56px;\n			height: 56px;\n\n			svg {\n				width: 28px;\n				height: 28px;\n			}\n		"]);return FeaturedIconStyles_templateObject4=function(){return e},e}function FeaturedIconStyles_templateObject5(){var e=(0,V._)(["\n			@media (min-width: ","px) {\n				border-radius: ",";\n				width: 32px;\n				height: 32px;\n\n				svg {\n					width: 16px;\n					height: 16px;\n				}\n			}\n\n			@media (min-width: ","px) {\n				border-radius: ",";\n				width: 40px;\n				height: 40px;\n\n				svg {\n					width: 20px;\n					height: 20px;\n				}\n			}\n\n			@media (min-width: ","px) {\n				border-radius: ",";\n				width: 48px;\n				height: 48px;\n\n				svg {\n					width: 24px;\n					height: 24px;\n				}\n			}\n\n			@media (min-width: ","px) {\n				border-radius: ",";\n				width: 56px;\n				height: 56px;\n\n				svg {\n					width: 28px;\n					height: 28px;\n				}\n			}\n		"]);return FeaturedIconStyles_templateObject5=function(){return e},e}function FeaturedIconStyles_templateObject6(){var e=(0,V._)(["\n		display: flex;\n		position: relative;\n		flex-shrink: 0;\n		align-items: center;\n		justify-content: center;\n		border-radius: ",";\n		background-color: ",";\n		width: 24px;\n		height: 24px;\n\n		svg {\n			width: 12px;\n			height: 12px;\n\n			path {\n				stroke: ",";\n			}\n		}\n\n		","\n\n		","\n\n		","\n\n    ","\n\n    ","\n\n		","\n	"]);return FeaturedIconStyles_templateObject6=function(){return e},e}function FeaturedIconStyles_templateObject7(){var e=(0,V._)(["\n	","\n"]);return FeaturedIconStyles_templateObject7=function(){return e},e}function FeaturedIconStyles_templateObject8(){var e=(0,V._)(["\n		background-color: ",";\n\n		svg {\n			path {\n				stroke: ",";\n			}\n		}\n	"]);return FeaturedIconStyles_templateObject8=function(){return e},e}function FeaturedIconStyles_templateObject9(){var e=(0,V._)(["\n	","\n"]);return FeaturedIconStyles_templateObject9=function(){return e},e}function FeaturedIconStyles_templateObject10(){var e=(0,V._)(["\n		background-color: ",";\n\n		svg {\n			path {\n				stroke: ",";\n			}\n		}\n	"]);
1return FeaturedIconStyles_templateObject10=function(){return e},e}function FeaturedIconStyles_templateObject11(){var e=(0,V._)(["\n	","\n"]);return FeaturedIconStyles_templateObject11=function(){return e},e}function FeaturedIconStyles_templateObject12(){var e=(0,V._)(["\n		background-color: ",";\n\n		svg {\n			path {\n				stroke: ",";\n			}\n		}\n	"]);return FeaturedIconStyles_templateObject12=function(){return e},e}function FeaturedIconStyles_templateObject13(){var e=(0,V._)(["\n	","\n"]);return FeaturedIconStyles_templateObject13=function(){return e},e}var iH=H.ZP.div.withConfig({componentId:"sc-fbdca913-0"})(FeaturedIconStyles_templateObject7(),function(e){var t=e.theme,n=e.iconTheme,i=e.shape,r=e.size;return(0,H.iv)(FeaturedIconStyles_templateObject6(),i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[4],n===C.Sz.LIGHT?t["color-base-action-primary-bg10"]:t["color-base-action-primary-default"],n===C.Sz.LIGHT?t["color-base-action-primary-default"]:t["color-base-surface-primary"],r===C.NO.XS&&(0,H.iv)(FeaturedIconStyles_templateObject(),i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[4]),r===C.NO.SM&&(0,H.iv)(FeaturedIconStyles_templateObject1(),i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[6]),r===C.NO.MD&&(0,H.iv)(FeaturedIconStyles_templateObject2(),i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[8]),r===C.NO.LG&&(0,H.iv)(FeaturedIconStyles_templateObject3(),i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[10]),r===C.NO.XL&&(0,H.iv)(FeaturedIconStyles_templateObject4(),i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[12]),!r&&(0,H.iv)(FeaturedIconStyles_templateObject5(),q.AV.sm,i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[6],q.AV.md,i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[8],q.AV.lg,i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[10],q.AV.xl,i===C.X3.CIRCLE?t.borderRadius.circle:t.borderRadius[12]))}),iU=(0,H.ZP)(iH).withConfig({componentId:"sc-fbdca913-1"})(FeaturedIconStyles_templateObject9(),function(e){var t=e.theme,n=e.iconTheme;return(0,H.iv)(FeaturedIconStyles_templateObject8(),n===C.Sz.LIGHT?t["color-base-action-destructive-bg10"]:t["color-base-action-destructive-default"],n===C.Sz.LIGHT?t["color-base-action-destructive-default"]:t["color-base-surface-primary"])}),i$=(0,H.ZP)(iH).withConfig({componentId:"sc-fbdca913-2"})(FeaturedIconStyles_templateObject11(),function(e){var t=e.theme,n=e.iconTheme;return(0,H.iv)(FeaturedIconStyles_templateObject10(),n===C.Sz.LIGHT?t["color-base-state-warning-bg"]:t["color-base-state-warning-fg"],n===C.Sz.LIGHT?t["color-base-state-warning-fg"]:t["color-base-surface-primary"])}),iX=(0,H.ZP)(iH).withConfig({componentId:"sc-fbdca913-3"})(FeaturedIconStyles_templateObject13(),function(e){var t=e.theme,n=e.iconTheme;return(0,H.iv)(FeaturedIconStyles_templateObject12(),n===C.Sz.LIGHT?t["color-base-state-success-bg"]:t["color-base-state-success-fg"],n===C.Sz.LIGHT?t["color-base-state-success-fg"]:t["color-base-surface-primary"])});function TimelineItemStyles_templateObject(){var e=(0,V._)(["\n		display: flex;\n		flex-direction: row;\n		gap: ",";\n		align-items: center;\n		border-radius: ",";\n		background-color: ",";\n		cursor: pointer;\n		padding: ",";\n		height: fit-content;\n\n		@media (min-width: ","px) {\n			flex-direction: column;\n			gap: 0;\n			align-items: start;\n			border-radius: 0;\n			background-color: transparent;\n			cursor: unset;\n			padding: 0;\n			height: unset;\n		}\n\n		@media (min-width: ","px) {\n			flex-direction: row;\n			gap: ",";\n			align-items: center;\n		}\n	"]);return TimelineItemStyles_templateObject=function(){return e},e}function TimelineItemStyles_templateObject1(){var e=(0,V._)(["\n	","\n"]);return TimelineItemStyles_templateObject1=function(){return e},e}function TimelineItemStyles_templateObject2(){var e=(0,V._)(["\n		@media (min-width: ","px) {\n			margin-bottom: ",";\n		}\n\n		@media (min-width: ","px) {\n			margin-bottom: 0;\n		}\n	"]);return TimelineItemStyles_templateObject2=function(){return e},e}function TimelineItemStyles_templateObject3(){var e=(0,V._)(["\n	","\n"]);
1return TimelineItemStyles_templateObject3=function(){return e},e}function TimelineItemStyles_templateObject4(){var e=(0,V._)(["\n			",";\n			color: ",";\n		"]);return TimelineItemStyles_templateObject4=function(){return e},e}function TimelineItemStyles_templateObject5(){var e=(0,V._)(["\n			background-color: ",";\n		"]);return TimelineItemStyles_templateObject5=function(){return e},e}function TimelineItemStyles_templateObject6(){var e=(0,V._)(["\n		background-color: ",";\n		",";\n		color: ",";\n\n		","\n\n		","\n	"]);return TimelineItemStyles_templateObject6=function(){return e},e}function TimelineItemStyles_templateObject7(){var e=(0,V._)(["\n	","\n"]);return TimelineItemStyles_templateObject7=function(){return e},e}function TimelineItemStyles_templateObject8(){var e=(0,V._)(["\n	display: flex;\n	flex-direction: column;\n"]);return TimelineItemStyles_templateObject8=function(){return e},e}function TimelineItemStyles_templateObject9(){var e=(0,V._)(["\n		margin-bottom: ",";\n		",";\n		color: ",";\n\n		@media (min-width: ","px) {\n			margin-bottom: ",";\n		}\n\n		@media (min-width: ","px) {\n			margin-bottom: ",";\n		}\n	"]);return TimelineItemStyles_templateObject9=function(){return e},e}function TimelineItemStyles_templateObject10(){var e=(0,V._)(["\n	","\n"]);return TimelineItemStyles_templateObject10=function(){return e},e}function TimelineItemStyles_templateObject11(){var e=(0,V._)(["\n		display: none;\n\n		@media (min-width: ","px) {\n			display: unset;\n			margin-bottom: ",";\n			",";\n			color: ",";\n		}\n	"]);return TimelineItemStyles_templateObject11=function(){return e},e}function TimelineItemStyles_templateObject12(){var e=(0,V._)(["\n	","\n"]);return TimelineItemStyles_templateObject12=function(){return e},e}function TimelineItemStyles_templateObject13(){var e=(0,V._)(["\n		margin: 0;\n		",";\n		color: ",";\n	"]);return TimelineItemStyles_templateObject13=function(){return e},e}function TimelineItemStyles_templateObject14(){var e=(0,V._)(["\n	","\n"]);return TimelineItemStyles_templateObject14=function(){return e},e}var iW=H.ZP.div.withConfig({componentId:"sc-a920327c-0"})(TimelineItemStyles_templateObject1(),function(e){var t=e.theme;return(0,H.iv)(TimelineItemStyles_templateObject(),t.spacing[20],t.borderRadius[24],t["color-base-surface-primary"],t.spacing[16],q.AV.md,q.AV.xl,t.spacing[20])}),iY=H.ZP.div.withConfig({componentId:"sc-a920327c-1"})(TimelineItemStyles_templateObject3(),function(e){var t=e.theme;return(0,H.iv)(TimelineItemStyles_templateObject2(),q.AV.md,t.spacing[4],q.AV.xl)}),iq=(0,H.ZP)(function(e){var t=e.className,n=e.content,l=void 0===n?(0,a.jsx)(eL.bG,{}):n,o=e.shape,c=void 0===o?C.X3.CIRCLE:o,s=e.size,u=e.style,d=e.iconTheme,p=void 0===d?C.Sz.LIGHT:d,m=e.type,f=void 0===m?C.W.PRIMARY:m,h={className:t,iconTheme:p,shape:c,size:s,style:u};return function(){switch(f){case C.W.PRIMARY:return(0,a.jsx)(iH,(0,r._)((0,i._)({},h),{children:l}));case C.W.DESTRUCTIVE:return(0,a.jsx)(iU,(0,r._)((0,i._)({},h),{children:l}));case C.W.WARNING:return(0,a.jsx)(i$,(0,r._)((0,i._)({},h),{children:l}));case C.W.SUCCESS:return(0,a.jsx)(iX,(0,r._)((0,i._)({},h),{children:l}));default:return(0,a.jsx)(iH,(0,r._)((0,i._)({},h),{children:l}))}}()}).withConfig({componentId:"sc-a920327c-2"})(TimelineItemStyles_templateObject7(),function(e){var t=e.theme,n=e.backgroundColor,i=e.isActive,r=e.isDone;return(0,H.iv)(TimelineItemStyles_templateObject6(),t["color-base-surface-quaternary"],U.wI,t["color-base-content-secondary"],i&&(0,H.iv)(TimelineItemStyles_templateObject4(),U.EP,t["color-base-content-secondary"]),(r||i)&&(0,H.iv)(TimelineItemStyles_templateObject5(),n))}),iK=H.ZP.div.withConfig({componentId:"sc-a920327c-3"})(TimelineItemStyles_templateObject8()),iJ=H.ZP.h3.withConfig({componentId:"sc-a920327c-4"})(TimelineItemStyles_templateObject10(),function(e){var t=e.theme;return(0,H.iv)(TimelineItemStyles_templateObject9(),t.spacing[8],U.DC,t["color-base-content-top"],q.AV.md,t.spacing[4],q.AV.xl,t.spacing[8])}),iQ=H.ZP.p.withConfig({componentId:"sc-a920327c-5"})(TimelineItemStyles_templateObject12(),function(e){var t=e.theme;
1return(0,H.iv)(TimelineItemStyles_templateObject11(),q.AV.md,t.spacing[4],U.lT,t["color-base-content-secondary"])}),i0=H.ZP.span.withConfig({componentId:"sc-a920327c-6"})(TimelineItemStyles_templateObject14(),function(e){var t=e.theme;return(0,H.iv)(TimelineItemStyles_templateObject13(),U.pu,t["color-base-content-primary"])}),i1=(0,y.memo)(function(e){var t=e.className,n=e.secondaryColor,i=e.isActive,r=e.isDone,l=e.step,o=e.title,c=e.description,s=e.timeInfo;return(0,a.jsxs)(iW,{className:t,children:[(0,a.jsx)(iY,{children:(0,a.jsx)(iq,{backgroundColor:n,content:r?(0,a.jsx)(eL.nQ,{}):String(l).padStart(2,"0"),isActive:i,isDone:r,shape:C.X3.CIRCLE,size:C.NO.XL})}),(0,a.jsxs)(iK,{children:[(0,a.jsx)(iJ,{children:o}),(0,a.jsx)(iQ,{children:c}),(0,a.jsx)(i0,{children:s})]})]})}),Timeline_Timeline=function(e){var t=e.currentStep,n=e.isAfterStart,r=(0,j.$G)().t,l=(0,n4.tm)(),o=(0,x.v9)(function(e){var t,n,i;return null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(n=i.challenges)||void 0===n?void 0:null===(t=n.challengeDetail)||void 0===t?void 0:t.data})||{},c=o.challengeType,s=o.secondaryColor,u=(0,y.useMemo)(function(){return{startedAt:o.startedAt,finishedAt:o.finishedAt,startMeasurementsDeadline:o.startMeasurementsDeadline,finishMeasurementsDeadline:o.finishMeasurementsDeadline,signupDeadline:o.signupDeadline}},[o.startedAt,o.finishedAt,o.startMeasurementsDeadline,o.finishMeasurementsDeadline,o.signupDeadline]),d=(0,y.useMemo)(function(){var e;return((e={},(0,T._)(e,C.EZ.COMPETITIVE,[{key:C.hP.LOGIN,step:1,title:r("Prihl\xe1senie"),description:r("Zapoj sa do v\xfdzvy"),timeInfo:(0,k.g)(u,r,n,!0),isActive:t===C.hP.LOGIN,isDone:t===C.hP.START||t===C.hP.END||t===C.hP.RESULTS,challengeType:c,secondaryColor:s},{key:C.hP.START,step:2,title:r("Začiatok v\xfdzvy"),description:r("Zap\xedš si \xfavodn\xe9 \xfadaje"),timeInfo:(0,k.ld)(u,r,!1),isActive:t===C.hP.START,isDone:t===C.hP.END||t===C.hP.RESULTS,challengeType:c,secondaryColor:s},{key:C.hP.END,step:3,title:r("Koniec v\xfdzvy"),description:r("Zap\xedš si svoje v\xfdsledky"),timeInfo:(0,k.KM)(u,r,!1),isActive:t===C.hP.END,isDone:t===C.hP.RESULTS,challengeType:c,secondaryColor:s},{key:C.hP.RESULTS,step:4,title:r("Vyhodnotenie"),description:r("Stiahni si certifik\xe1t"),timeInfo:r("po ukončen\xed v\xfdzvy"),isActive:t===C.hP.RESULTS,isDone:!1,challengeType:c,secondaryColor:s}]),(0,T._)(e,C.EZ.HARMONIC,[{key:C.hP.LOGIN,step:1,title:r("Prihl\xe1senie"),description:r("Zapoj sa do v\xfdzvy"),timeInfo:(0,k.g)(u,r,n,!0),isActive:t===C.hP.LOGIN,isDone:t===C.hP.START||t===C.hP.END||t===C.hP.RESULTS,challengeType:c,secondaryColor:s},{key:C.hP.START,step:2,title:r("Začiatok v\xfdzvy"),description:r("Vyplň dotazn\xedk pred v\xfdzvou"),timeInfo:(0,k.ld)(u,r,!1),isActive:t===C.hP.START,isDone:t===C.hP.END||t===C.hP.RESULTS,challengeType:c,secondaryColor:s},{key:C.hP.END,step:3,title:r("Koniec v\xfdzvy"),description:r("Vyplň dotazn\xedk po v\xfdzve"),timeInfo:(0,k.KM)(u,r,!1),isActive:t===C.hP.END,isDone:t===C.hP.RESULTS,challengeType:c,secondaryColor:s},{key:C.hP.RESULTS,step:4,title:r("Vyhodnotenie"),description:r("C\xedtiš sa lepšie?"),timeInfo:r("po ukončen\xed v\xfdzvy"),isActive:t===C.hP.RESULTS,isDone:!1,challengeType:c,secondaryColor:s}]),(0,T._)(e,C.EZ.NON_COMPETITIVE,[{key:C.hP.LOGIN,step:1,title:r("Prihl\xe1senie"),description:r("Zapoj sa do v\xfdzvy"),timeInfo:(0,k.g)(u,r,n,!0),isActive:t===C.hP.LOGIN,isDone:t===C.hP.START||t===C.hP.END||t===C.hP.RESULTS,challengeType:c,secondaryColor:s},{key:C.hP.START,step:2,title:r("Priebeh"),description:r("Makaj vo v\xfdzve"),timeInfo:(0,k.UQ)(u,r,!1),isActive:t===C.hP.START||t===C.hP.END,isDone:t===C.hP.RESULTS,challengeType:c,secondaryColor:s},{key:C.hP.RESULTS,step:3,title:r("Vyhodnotenie"),description:r("Odpovedz na jednoduch\xfa ot\xe1zku"),timeInfo:(0,k.KM)(u,r,!1),isActive:t===C.hP.RESULTS,isDone:!1,challengeType:c,secondaryColor:s}]),e)[c]||[]).map(function(e){return(0,a.jsx)(i1,(0,i._)({},e))})},[c,u,t,n,s,r]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(iF,{children:d}),l&&(0,a.jsx)(iG,{updateOnWindowResize:!0,followFinger:!0,watchSlidesProgress:!0,effect:"slide",initialSlide:iL()(d,function(e){return t===e.key}),slidesPerView:1,spaceBetween:16,modules:[iB.W_],navigation:{prevEl:".swiper-button.prev",nextEl:".swiper-button.next"},children:eT()(d,function(e){return(0,a.jsx)(iV,{children:e},e.key)})})]})},challengeDetail_ChallengeDetail=function(e){var t,n,r,l,o,c=e.priceList,m=(0,j.$G)().t,h=(0,x.I0)(),v=(0,_.useRouter)(),T=(0,u._)((0,y.useState)(!1),2),P=T[0],A=T[1],M=(0,x.v9)(function(e){var t,n,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(n=i.challenges)||void 0===n?void 0:null===(t=n.challengeDetail)||void 0===t?void 0:t.data)||{}}),k=M.alreadyLoggedIn,N=M.challengeType,R=(0,x.v9)(function(e){var t,n;return(null==e?void 0:null===(n=e.user)||void 0===n?void 0:null===(t=n.challenges)||void 0===t?void 0:t.isLoading)||!1}),E=(0,x.v9)(function(e){var t,n,i;return null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(n=i.challenges)||void 0===n?void 0:null===(t=n.challengeDetail)||void 0===t?void 0:t.challengeState}),Z=(0,x.v9)(function(e){var t,n;return null==e?void 0:null===(n=e.user)||void 0===n?void 0:null===(t=n.profile)||void 0===t?void 0:t.subscription}
1),D=null==M?void 0:M.subscriptionTier,L=!D||!(0,I.bH)(null==Z?void 0:Z.tier,D),B=!!Z&&L,z=(0,u._)((0,y.useState)(!1),2),F=z[0],G=z[1],V=(0,u._)((0,y.useState)(!1),2),H=V[0],U=V[1],$=(0,u._)((0,y.useState)(!1),2),X=$[0],W=$[1],Y=(0,u._)((0,y.useState)(),2),q=Y[0],K=Y[1],J=(0,u._)((0,y.useState)(!1),2),Q=J[0],ee=J[1],et=(0,u._)((0,y.useState)(!1),2),en=et[0],ei=et[1];(0,y.useEffect)(function(){(0,s._)(function(){var e,t;return(0,d.Jh)(this,function(n){switch(n.label){case 0:return t=null==v?void 0:null===(e=v.query)||void 0===e?void 0:e.id,[4,h((0,S.fU)(g()(t),function(e){K(!!e.challengeCompletedAt)},void 0,!0,!1))];case 1:return n.sent(),A(!0),[2]}})})()},[h,null==v?void 0:v.asPath]),(0,y.useEffect)(function(){var e;(null===(e=v.query)||void 0===e?void 0:e.registration)==="successful"&&(p.ZP.success({icon:(0,a.jsx)(eL.gI,{}),message:m("Tvoje konto bolo \xfaspešne aktivovan\xe9")}),v.push({pathname:"/challenges/[id]",query:{id:v.query.id}},void 0,{shallow:!0}))},[v]);var handleCloseCancelChallengeModal=function(){return G(!1)},er=(t=(0,s._)(function(){return(0,d.Jh)(this,function(e){switch(e.label){case 0:W(!0),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,h((0,S.et)())];case 2:return e.sent(),W(!1),[3,4];case 3:return e.sent(),p.ZP.error({icon:(0,a.jsx)(eL.uI,{}),message:m("Nepodarilo sa nač\xedtať tvoj nov\xfd program")}),W(!1),[3,4];case 4:return[2]}})}),function(){return t.apply(this,arguments)}),handleChallengeLogin=function(e){var t={difficulty:e.difficulty};h((0,S.uE)(M.id,t,(0,s._)(function(){return(0,d.Jh)(this,function(e){switch(e.label){case 0:return(0,I.k3)(),ei(!1),h((0,S.fU)(M.id,void 0,void 0,void 0,!1)),[4,er()];case 1:return e.sent(),[2]}})})))},ea=(n=(0,s._)(function(){return(0,d.Jh)(this,function(e){return F&&handleCloseCancelChallengeModal(),h((0,S.u)(M.id,(0,s._)(function(){return(0,d.Jh)(this,function(e){switch(e.label){case 0:return[4,er()];case 1:return e.sent(),h((0,O.nM)(null)),v.push(m("paths:challenges|path")),[2]}})}))),[2]})}),function(){return n.apply(this,arguments)}),onSubscriptionBuy=function(){h((0,O.nM)(M.id))},el={notSet:null,beforeStart:{buttonType:C.RN.SECONDARY,label:m("Zrušiť \xfačasť"),action:ea},afterStart:{buttonType:C.RN.SECONDARY,label:m("Odhl\xe1siť sa z v\xfdzvy"),action:function(){return G(!0)}}},eo={afterStart:m("V\xfdzva st\xe1le prebieha, v pr\xedpade ukončenia v\xfdzvy strat\xedš svoje zap\xedsan\xe9 \xfadaje"),afterStartMeasurementDeadline:(0,a.jsxs)(a.Fragment,{children:[m("V\xfdzva st\xe1le prebieha, v pr\xedpade ukončenia v\xfdzvy strat\xedš svoje zap\xedsan\xe9 \xfadaje a "),(0,a.jsx)("strong",{children:m("už sa nebudeš m\xf4cť znovu zapojiť")})]})},ec={logo:(null==M?void 0:null===(r=M.badgeLogoPaths)||void 0===r?void 0:r.small)||(null==M?void 0:M.badgeLogo)||(null===(l=M.logoPaths)||void 0===l?void 0:l.small),title:(!!(null==M?void 0:null===(o=M.badgeLogoPaths)||void 0===o?void 0:o.small)||!!(null==M?void 0:M.badgeLogo))&&M.title,centered:k&&!B,showSignedInSubtitle:k&&!B,ctaButton:el.notSet},es={currentStep:C.hP.LOGIN,isAfterStart:!1},getChallengeConfirmationModalProps=function(){var e={isOpen:Q,handleCloseModal:function(){return ee(!1)},image:iC(),modalContentTitle:m("Tvoje \xfadaje boli uložen\xe9!"),description:"".concat(m("V pr\xedpade, že si urobila chybu, tak svoje fotky a zap\xedsan\xe9 miery si budeš m\xf4cť zmeniť do začiatku v\xfdzvy")," (").concat(f()(M.startMeasurementsDeadline).format("D. M. YYYY"),")"),primaryButton:{label:m("Zobraziť kalend\xe1r"),action:function(){return v.push(m("paths:calendar|path"))}}};return N===C.EZ.HARMONIC&&(e.modalContentTitle=m("Tvoje odpovede boli uložen\xe9!"),e.description="".concat(m("Svoje odpovede budeš m\xf4cť meniť do začiatku v\xfdzvy")," (").concat(f()(M.startMeasurementsDeadline).format("D. M. YYYY"),")")),e};return(0,a.jsx)(iy.Z,{isLoading:R||X,children:function(){var e,t=null;if(b()(k))return null;switch(E){case C.bs.VISIBLE_TO_START:k?ec.ctaButton=el.beforeStart:ec.ctaButton=el.notSet,es.currentStep=C.hP.LOGIN,t=(0,a.jsx)(ChallengeLogIn_ChallengeLogin,{alreadyLoggedIn:k,isSubscribed:B,challengeDetail:M,onSubscriptionBuy:onSubscriptionBuy,handleChallengeLogin:function(){var e,t,n;(null==M?void 0:null===(e=M.difficulties)||void 0===e?void 0:e.length)>1?ei(!0):handleChallengeLogin({difficulty:(null==M?void 0:null===(n=M.difficulties)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.value)||C.Wi.NORMAL})},challengeType:N});break;case C.bs.START_TO_START_MEASUREMENTS_DEADLINE:if(k){e=eo.afterStart,ec.ctaButton=el.afterStart,es.currentStep=C.hP.START,t=(0,a.jsx)(ChallengeStart_ChallengeStart,{challengeDetail:M,isSubscribed:B,onSubscriptionBuy:onSubscriptionBuy,setPricesChallengeModalOpen:function(){return U(!0)},challengeType:N,setConfirmationModalVisible:ee});break}
1ec.ctaButton=el.notSet,es.currentStep=C.hP.LOGIN,es.isAfterStart=!0,t=(0,a.jsx)(ChallengeLogIn_ChallengeLogin,{isAfterStart:!0,alreadyLoggedIn:k,isSubscribed:B,challengeDetail:M,onSubscriptionBuy:onSubscriptionBuy,handleChallengeLogin:function(){var e,t,n;(null==M?void 0:null===(e=M.difficulties)||void 0===e?void 0:e.length)>1?ei(!0):handleChallengeLogin({difficulty:(null==M?void 0:null===(n=M.difficulties)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.value)||C.Wi.NORMAL})},challengeType:N});break;case C.bs.START_MEASUREMENTS_DEADLINE_TO_FINISH:if(!k&&P)return(0,a.jsx)(RedirectToChallengeList_RedirectToChallengeList,{});ec.ctaButton=el.afterStart,e=eo.afterStart,es.currentStep=C.hP.START,t=(0,a.jsx)(ChallengeOngoing_ChallengeOngoing,{challengeDetail:M,isSubscribed:B,onSubscriptionBuy:onSubscriptionBuy,challengeType:N});break;case C.bs.FINISH_TO_FINISH_MEASUREMENTS_DEADLINE:if(void 0===q)return null;ec.ctaButton=el.notSet,e=eo.afterStart,q?(es.currentStep=C.hP.RESULTS,t=(0,a.jsx)(ChallengeResults_ChallengeResults,{challengeDetail:M,setIsChallengeEndFormEdited:K,challengeType:N})):(es.currentStep=C.hP.END,t=(0,a.jsx)(ChallengeEnd_ChallengeEnd,{challengeDetail:M,setPricesChallengeModalOpen:function(){return U(!0)},isSubscribed:B,onSubscriptionBuy:onSubscriptionBuy,setIsChallengeEndFormEdited:K,challengeType:N}));break;case C.bs.AFTER_FINISH_MEASUREMENTS_DEADLINE:ec.ctaButton=el.notSet,es.currentStep=C.hP.RESULTS,t=(0,a.jsx)(ChallengeResults_ChallengeResults,{challengeDetail:M,setIsChallengeEndFormEdited:K,challengeType:N});break;default:return null}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(w.PQ,{children:[(0,a.jsx)(components_Header_Header,(0,i._)({},ec)),k&&B&&(0,a.jsx)(Timeline_Timeline,(0,i._)({},es)),t,k&&!B&&(0,a.jsx)(NotSubscribedContent_NotSubscribedContent,{handleCancelChallenge:ea,priceList:c,secondaryColor:null==M?void 0:M.secondaryColor,lowestTier:null==M?void 0:M.subscriptionTier,bonusDeadline:null==M?void 0:M.bonusDeadline})]}),(0,a.jsx)(DetailModal_DetailModal,{isOpen:F,handleCloseModal:handleCloseCancelChallengeModal,modalContentTitle:m("Naozaj chceš ukončiť v\xfdzvu?"),image:iO(),description:e,primaryButton:{label:m("Ukončiť v\xfdzvu"),action:ea},secondaryButton:{label:m("Pokračovať"),action:handleCloseCancelChallengeModal}}),(0,a.jsx)(DetailModal_DetailModal,(0,i._)({},getChallengeConfirmationModalProps())),(0,a.jsx)(PricesModal_PricesModal,{isOpen:H,handleCloseModal:function(){return U(!1)},challengeDetail:M}),(0,a.jsx)(iZ,{isOpen:en,onClose:function(){return ei(!1)},onSubmit:handleChallengeLogin})]})}()||(0,a.jsx)(w.dJ,{})})},ChallengeDetailPage=function(e){var t;return(0,a.jsx)(challengeDetail_ChallengeDetail,{priceList:null==e?void 0:null===(t=e.settingsData)||void 0===t?void 0:t.pricelist})};ChallengeDetailPage.getLayout=function(e,t){return(0,a.jsx)("div",{children:(0,a.jsx)(c.Z,{children:(0,a.jsx)(o.Z,(0,r._)((0,i._)({},t),{pageID:l.$1.CHALLENGES,children:e}))})})};var i2=!0,i4=ChallengeDetailPage},28293:function(e){e.exports="/_next/static/images/fallback-challenge-banner-1a069721d56b1442b0cbbaa28d7b0ea7.png"},87644:function(e){e.exports="/_next/static/images/illustration-challenge-login-ef6ea6f237789cb40938552a881d560c.svg"},41514:function(e){e.exports="/_next/static/images/illustration-challenge-859dc4a79dd99b8b14802bff5fe95844.svg"},96888:function(e){e.exports="/_next/static/images/illustration-empty-day-52aafaf6deb8eacc77e177c72e862013.svg"},71818:function(e){e.exports="/_next/static/images/illustration-general-error-f82512486d0f23e7610896ef1a1c22a6.svg"},85421:function(e){e.exports="/_next/static/images/illustration-inactive-subscription-efefcee9fd2b3cf1bdbfd257e890db33.svg"},19219:function(e){e.exports="/_next/static/images/illustration-measurement-7475d0e685431bc889b9cea85241e492.svg"},56256:function(e){e.exports="/_next/static/images/illustration-no-results-1881c4861654b91673993d2ee49ae75e.svg"},39473:function(e){e.exports="/_next/static/images/illustration-weight-loss-done-e3e219d0854d40ca0af01a8a5d8b3c42.svg"},29049:function(e){e.exports="/_next/static/images/illustration-weight-loss-progress-04c45455d9ee44b4b5f5c8c2bb742094.svg"},84543:function(e){e.exports="/_next/static/images/illustration-written-data-1c40c734daa46e7821fcaa5d10f728a0.svg"},18132:function(e){e.exports="/_next/static/images/certificates-empty-state-955d73f8203cbfb1d0c7259213c2ebb4.svg"},39148:function(e){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjUgNi43NUw5IDExLjI1TDQuNSA2Ljc1IiBzdHJva2U9IiMwQTE2MjkiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg=="},89508:function(e,t,n){"use strict";n.d(t,{M:function(){return AnimatePresence}});var i=n(85893),r=n(67294),a=n(25364),l=n(96681),o=n(75062),c=n(240),s=n(93243),u=n(16014);function setRef(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}let PopChildMeasure=class PopChildMeasure extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,s.R)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,s.R)(e)&&e.offsetWidth||0,i=(0,s.R)(e)&&e.offsetHeight||0,r=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(r.height),a.width=parseFloat(r.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=i-a.height-a.top,a.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function PopChild({children:e,isPresent:t,anchorX:n,anchorY:a,root:l,pop:o}){let c=(0,r.useId)(),s=(0,r.useRef)(null),d=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:p}=(0,r.useContext)(u._),m=e.props?.ref??e?.ref,f=function(...e){return r.useCallback(function(...e){return t=>{let n=!1,i=e.map(e=>{let i=setRef(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():setRef(e[t],null)}}}}(...e),e)}(s,m);return(0,r.useInsertionEffect)(()=>{let{width:e,height:i,top:r,left:u,right:m,bottom:f,direction:h}=d.current;if(t||!1===o||!s.current||!e||!i)return;
1let b="rtl"===h,v="left"===n?b?`right: ${m}`:`left: ${u}`:b?`left: ${u}`:`right: ${m}`,g="bottom"===a?`bottom: ${f}`:`top: ${r}`;s.current.dataset.motionPopId=c;let j=document.createElement("style");p&&(j.nonce=p);let _=l??document.head;return _.appendChild(j),j.sheet&&j.sheet.insertRule(`
2          [data-motion-pop-id="${c}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${i}px !important;
6            ${v}px !important;
7            ${g}px !important;
8          }
9        `),()=>{s.current?.removeAttribute("data-motion-pop-id"),_.contains(j)&&_.removeChild(j)}},[t]),(0,i.jsx)(PopChildMeasure,{isPresent:t,childRef:s,sizeRef:d,pop:o,children:!1===o?e:r.cloneElement(e,{ref:f})})}let PresenceChild=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:s,presenceAffectsLayout:u,mode:d,anchorX:p,anchorY:m,root:f})=>{let h=(0,l.h)(newChildrenMap),b=(0,r.useId)(),v=(0,r.useRef)(n),g=(0,r.useRef)(a);(0,o.L)(()=>{v.current=n,g.current=a});let j=!0,_=(0,r.useMemo)(()=>(j=!1,{id:b,initial:t,isPresent:n,custom:s,onExitComplete:e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;a&&a()},register:e=>(h.set(e,!1),()=>{h.delete(e),v.current||h.size||g.current?.()})}),[n,h,a]);return u&&j&&(_={..._}),(0,r.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),r.useEffect(()=>{n||h.size||!a||a()},[n]),e=(0,i.jsx)(PopChild,{pop:"popLayout"===d,isPresent:n,anchorX:p,anchorY:m,root:f,children:e}),(0,i.jsx)(c.O.Provider,{value:_,children:e})};function newChildrenMap(){return new Map}var d=n(15947);let getChildKey=e=>e.key||"";function onlyElements(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let AnimatePresence=({children:e,custom:t,initial:n=!0,onExitComplete:c,presenceAffectsLayout:s=!0,mode:u="sync",propagate:p=!1,anchorX:m="left",anchorY:f="top",root:h})=>{let[b,v]=(0,d.oO)(p),g=(0,r.useMemo)(()=>onlyElements(e),[e]),j=p&&!b?[]:g.map(getChildKey),_=(0,r.useRef)(!0),y=(0,r.useRef)(g),x=(0,l.h)(()=>new Map),O=(0,r.useRef)(new Set),[S,C]=(0,r.useState)(g),[I,w]=(0,r.useState)(g);(0,o.L)(()=>{_.current=!1,y.current=g;for(let e=0;e<I.length;e++){let t=getChildKey(I[e]);j.includes(t)?(x.delete(t),O.current.delete(t)):!0!==x.get(t)&&x.set(t,!1)}},[I,j.length,j.join("-")]);let T=[];if(g!==S){let e=[...g];for(let t=0;t<I.length;t++){let n=I[t],i=getChildKey(n);j.includes(i)||(e.splice(t,0,n),T.push(n))}return"wait"===u&&T.length&&(e=T),w(onlyElements(e)),C(g),null}let{forceRender:P}=(0,r.useContext)(a.p);return(0,i.jsx)(i.Fragment,{children:I.map(e=>{let r=getChildKey(e),a=(!p||!!b)&&(g===I||j.includes(r));return(0,i.jsx)(PresenceChild,{isPresent:a,initial:(!_.current||!!n)&&void 0,custom:t,presenceAffectsLayout:s,mode:u,root:h,onExitComplete:a?void 0:()=>{if(O.current.has(r)||!x.has(r))return;O.current.add(r),x.set(r,!0);let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(P?.(),w(y.current),p&&v?.(),c&&c())},anchorX:m,anchorY:f,children:e},r)})})}}},function(e){e.O(0,[2655,7048,6845,5584,5704,1350,1035,6832,4749,8618,2031,8465,5673,8427,8672,7980,35,494,2266,8723,2618,434,2292,6399,1616,5710,9774,2888,179],function(){return e(e.s=27004)}),_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.