1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4482],{7202:(e,t,i)=>{"use strict";i.d(t,{e:()=>p});var n=i(6029),r=i(58680),o=i(49959),s=i(83617),l=i(55729),a=i(79945),c=i(42921),d=i(43780);let u=(0,a.I4)(o.Cy).withConfig({componentId:"sc-f9c44cd6-0"})(["display:flex;align-items:center;justify-content:center;padding:1.5rem 0.75rem;img{max-width:100%;height:auto;}"]),p=()=>{let{t:e}=(0,s.Bd)(),{isDarkTheme:t}=(0,a.DP)(),i=(0,c.J)(),o=(0,l.useMemo)(()=>"cz"===i?(0,d.ul)("shared","subscription",t?"featuredInCzWhite":"featuredInCzDark"):(0,d.ul)("shared","subscription",t?"featuredInWhite":"featuredInDark"),[t,i]);return(0,n.jsx)(r.Y,{title:e("paywall_as_featured_in"),children:(0,n.jsx)(u,{children:(0,n.jsx)("img",{alt:"Featured in logos",...o})})})}},13370:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/gift",function(){return i(63999)}])},17656:(e,t,i)=>{"use strict";i.d(t,{h:()=>o});var n=i(6029),r=i(55991);let o=e=>(0,n.jsx)(r.v,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",...e,children:(0,n.jsx)("circle",{cx:"50",cy:"50",fill:"none",stroke:"currentColor",strokeWidth:"10",r:"35",strokeDasharray:"164.93361431346415 56.97787143782138",children:(0,n.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})})})},25047:(e,t,i)=>{"use strict";i.d(t,{P:()=>z});var n=i(6029),r=i(79945),o=i(71238);let s=(0,r.I4)(o.o).attrs({as:"a"}).withConfig({componentId:"sc-62aecef9-0"})(["color:",";text-decoration:underline;transition:color 0.3s;@media (hover:hover) and (pointer:fine){&:focus-visible,&:hover{color:",";}}&:visited{color:",";}"],({theme:e})=>e.colors["N Content/Secondary"],({theme:e})=>e.colors["N Content/Secondary"],({theme:e})=>e.colors["N Content/Secondary"]),l=({children:e,$variant:t,...i})=>(0,n.jsx)(s,{$variant:t,...i,children:e}),a=r.I4.div.withConfig({componentId:"sc-d544236d-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;"]),c=r.I4.div.withConfig({componentId:"sc-d544236d-1"})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:center;gap:8px;text-align:center;"]),d=({links:e})=>{let t=(0,r.DP)();return(0,n.jsxs)(a,{children:[(0,n.jsxs)(o.o,{$color:t.colors["N Content/Tertiary"],$variant:"Poppins/T3",children:["\xa9 Fitify Workouts s.r.o., ",new Date().getFullYear()]}),(0,n.jsx)(c,{children:e.map(({text:e,...t})=>(0,n.jsx)(l,{...t,$variant:"Poppins/T3",children:e},e))})]})};var u=i(55729),p=i(83617),f=i(82948),h=i(26821),g=i(82066);let m=r.I4.div.withConfig({componentId:"sc-6c906617-0"})(["display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:0.5rem 1rem 0;"]),x=r.I4.div.withConfig({componentId:"sc-6c906617-1"})(["display:flex;width:100%;flex-direction:row;align-items:center;justify-content:space-between;padding:0.25rem;border:1px solid ",";border-radius:","px;backdrop-filter:blur(0.25rem);background:",";box-shadow:0 0 1.5rem 0 rgba(0,0,0,0.16);gap:0.25rem;"],({theme:e})=>e.colors["N Surface/Primary"],({theme:e})=>e.radius["Radius FULL"],({theme:e})=>e.colors["N Surface/BG Blur Base"]),C=r.I4.div.withConfig({componentId:"sc-6c906617-2"})(["display:flex;flex:1;flex-direction:column;align-items:flex-start;padding-left:1rem;"]),v=(0,r.I4)(o.o).attrs({as:"div"}).withConfig({componentId:"sc-6c906617-3"})(["font-variant-numeric:tabular-nums;"]),w=(0,r.I4)(o.o).attrs({as:"div"}).withConfig({componentId:"sc-6c906617-4"})(["hyphens:auto;text-wrap:balance;"]),y=(0,r.I4)(g.$).withConfig({componentId:"sc-6c906617-5"})(["align-self:stretch;"]),b=({expirationMillis:e,onCtaClick:t})=>{let i=(0,r.DP)(),{t:o}=(0,p.Bd)(),s=(0,h.L)(e||0);return(0,n.jsx)(m,{children:(0,n.jsxs)(x,{children:[(0,n.jsxs)(C,{children:[(0,n.jsx)(w,{$color:i.colors["N Content/Primary"],$variant:"Poppins/T4",children:o("paywall_discount_reserved")}),(0,n.jsx)(v,{$color:i.colors["N Content/Highlighted"],$variant:"Poppins/T1 - Semibold",children:(0,n.jsx)(f.X,{value:s})})]}),(0,n.jsx)(y,{isDisabled:!t,maxWidth:"50%",onClick:t,children:o("paywall_cta_get_my_plan")})]})})};var I=i(82203),j=i.n(I),_=i(70895),P=i(53842),$=i(280),k=i(4147);let S=r.I4.div.withConfig({componentId:"sc-dfb93c7d-0"})(["position:fixed;z-index:",";top:0;left:0;display:flex;width:100%;flex-direction:column;"],_.f.header),L=r.I4.div.withConfig({componentId:"sc-dfb93c7d-1"})(["display:flex;min-height:","rem;flex-direction:row;align-items:center;justify-content:space-between;padding:0 1.25rem;background:",";gap:1rem;"],({theme:e})=>e.sizes.headerHeight,({$backgroundStyle:e,theme:t})=>(0,k.w)({backgroundStyle:e,theme:t}).base),N=(0,r.I4)(j()).withConfig({componentId:"sc-dfb93c7d-2"})(["display:flex;width:min-content;"]),E=(0,r.I4)(P.g).withConfig({componentId:"sc-dfb93c7d-3"})(["flex:0 0 auto;"]),T=(0,r.I4)($.j).withConfig({componentId:"sc-dfb93c7d-4"})(["position:relative;overflow:hidden;width:auto;max-width:100%;justify-self:flex-end;"]),F=({backgroundStyle:e,containerRef:t,emailUser:i,logoLink:r,onCountdownCtaClick:o,pageConfig:s})=>{let l=!!s.countdownExpirationMillis,a=(0,u.useMemo)(()=>
1{if(i)return{...i,type:"email"}},[i]);return(0,n.jsxs)(S,{ref:t,children:[(0,n.jsxs)(L,{$backgroundStyle:e,children:[r?(0,n.jsx)(N,{href:r,children:(0,n.jsx)(E,{})}):(0,n.jsx)(E,{}),a&&(0,n.jsx)(T,{user:a})]}),l&&(0,n.jsx)(b,{expirationMillis:s.countdownExpirationMillis,onCtaClick:o})]})};var M=i(32476),A=i(9842),B=i(48605),R=i(51135),D=i(97425),V=i(91132),W=i(17030),H=i(25391),G=i(97815);let z=({children:e,headerRef:t,logoLink:i,onCountdownCtaClick:r,pageConfig:o={}})=>{let{t:s}=(0,p.Bd)(),{emailUser:l}=(0,M.O)(),a=!!o?.countdownExpirationMillis,c=(0,A.Br)("onboarding_background_style"),[f,h]=(0,u.useState)(void 0);(0,u.useEffect)(()=>{if(!t?.current)return;let e=new ResizeObserver(e=>{for(let t of e)h(t.contentRect.height)});return e.observe(t.current),h(t.current.getBoundingClientRect().height),()=>e.disconnect()},[t]);let g=(0,u.useMemo)(()=>[{href:H.hF.privacyPolicy.href,target:"_blank",rel:"noreferrer",text:s(H.hF.privacyPolicy.translate)},{href:H.hF.terms.href,target:"_blank",rel:"noreferrer",text:s(H.hF.terms.translate)}],[s]),m=(0,V.P)();return(0,n.jsxs)(W.N,{backgroundStyle:c,theme:m,children:[(0,n.jsx)(B.S,{}),(0,n.jsx)(D.K,{backgroundStyle:c}),(0,n.jsx)(F,{backgroundStyle:c,containerRef:t,emailUser:l,logoLink:i,onCountdownCtaClick:r,pageConfig:o}),(0,n.jsx)(G._,{$hasCountdown:a,$headerHeight:f,children:(0,n.jsxs)(R.A,{$variant:"subscription",children:[e,(0,n.jsx)(d,{links:g})]})})]})}},25391:(e,t,i)=>{"use strict";i.d(t,{hF:()=>r,r_:()=>o,xS:()=>n});let n={appStore:"https://apps.apple.com/app/apple-store/id1463386686?pt=119067375",googlePlay:"https://play.google.com/store/apps/details?id=com.fitifyworkouts.bodyweight.workoutapp",lfg:"https://fitify.app/lfg"},r={privacyPolicy:{href:"https://gofitify.com/privacy-policy",translate:"common_privacy_policy"},terms:{href:"https://gofitify.com/terms",translate:"common_terms_of_service"}},o={supportEmail:"[email protected]"}},26140:(e,t,i)=>{"use strict";i.d(t,{W:()=>o});var n=i(6029),r=i(55991);let o=e=>(0,n.jsx)(r.v,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",...e,children:(0,n.jsx)("path",{d:"M10.6948 21.3896C9.21826 21.3896 7.83398 21.1094 6.54199 20.5488C5.25 19.9951 4.11182 19.2261 3.12744 18.2417C2.1499 17.2642 1.38428 16.1328 0.830566 14.8477C0.276855 13.5557 0 12.1714 0 10.6948C0 9.21826 0.276855 7.83398 0.830566 6.54199C1.38428 5.25 2.1499 4.11523 3.12744 3.1377C4.11182 2.15332 5.25 1.38428 6.54199 0.830566C7.83398 0.276855 9.21826 0 10.6948 0C12.1714 0 13.5557 0.276855 14.8477 0.830566C16.1396 1.38428 17.2744 2.15332 18.252 3.1377C19.2295 4.11523 19.9951 5.25 20.5488 6.54199C21.1094 7.83398 21.3896 9.21826 21.3896 10.6948C21.3896 12.1714 21.1094 13.5557 20.5488 14.8477C19.9951 16.1328 19.2295 17.2642 18.252 18.2417C17.2744 19.2261 16.1396 19.9951 14.8477 20.5488C13.5557 21.1094 12.1714 21.3896 10.6948 21.3896ZM9.55664 15.7808C9.76172 15.7808 9.94971 15.7329 10.1206 15.6372C10.2983 15.5347 10.4487 15.3945 10.5718 15.2168L15.3604 7.81348C15.4355 7.69727 15.4971 7.57422 15.5449 7.44434C15.5996 7.31445 15.627 7.18457 15.627 7.05469C15.627 6.76758 15.5176 6.53516 15.2988 6.35742C15.0869 6.17969 14.8442 6.09082 14.5708 6.09082C14.2085 6.09082 13.9043 6.28564 13.6582 6.67529L9.52588 13.2788L7.62891 10.8999C7.49219 10.729 7.35547 10.6094 7.21875 10.541C7.08203 10.4658 6.92822 10.4282 6.75732 10.4282C6.47021 10.4282 6.22754 10.5308 6.0293 10.7358C5.83105 10.9341 5.73193 11.1768 5.73193 11.4639C5.73193 11.6006 5.75586 11.7339 5.80371 11.8638C5.8584 11.9868 5.93359 12.1133 6.0293 12.2432L8.50049 15.2168C8.65088 15.4082 8.81152 15.5518 8.98242 15.6475C9.15332 15.7363 9.34473 15.7808 9.55664 15.7808Z",fill:"currentColor"})})},26160:(e,t,i)=>{"use strict";i.d(t,{s:()=>p});var n=i(6029),r=i(26140),o=i(55991);let s=e=>(0,n.jsx)(o.v,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",...e,children:(0,n.jsx)("path",{d:"M10.6948 21.3896C9.21826 21.3896 7.83398 21.1094 6.54199 20.5488C5.25 19.9951 4.11182 19.2261 3.12744 18.2417C2.1499 17.2642 1.38428 16.1328 0.830566 14.8477C0.276855 13.5557 0 12.1714 0 10.6948C0 9.21826 0.276855 7.83398 0.830566 6.54199C1.38428 5.25 2.1499 4.11523 3.12744 3.1377C4.11182 2.15332 5.25 1.38428 6.54199 0.830566C7.83398 0.276855 9.21826 0 10.6948 0C12.1714 0 13.5557 0.276855 14.8477 0.830566C16.1396 1.38428 17.2744 2.15332 18.252 3.1377C19.2295 4.11523 19.9951 5.25 20.5488 6.54199C21.1094 7.83398 21.3896 9.21826 21.3896 10.6948C21.3896 12.1714 21.1094 13.5557 20.5488 14.8477C19.9951 16.1328 19.2295 17.2642 18.252 18.2417C17.2744 19.2261 16.1396 19.9951 14.8477 20.5488C13.5557 21.1094 12.1714 21.3896 10.6948 21.3896ZM8.28516 15.9653C8.44922 16.1294 8.6748 16.208 8.96191 16.2012C9.24902 16.1943 9.48145 16.1055 9.65918 15.9346L13.9556 11.9048C14.188 11.6929 14.3418 11.4399 14.417 11.146C14.4922 10.8521 14.4922 10.5615 14.417 10.2744C14.3418 9.98047 14.188 9.72412 13.9556 9.50537L9.65918 5.49609C9.46094 5.30469 9.23193 5.20557 8.97217 5.19873C8.7124 5.19189 8.49023 5.27734 8.30566 5.45508C8.10059 5.64648 7.99463 5.88232 7.98779 6.1626C7.98779 6.43604 8.08691 6.66504 8.28516 6.84961L12.4072 10.7051L8.28516 14.5708C8.09375 14.7554 7.99463 14.9844 7.98779 15.2578C7.98096 15.5244 8.08008 15.7603 8.28516 15.9653Z",fill:"currentColor"})});var l=i(63758);let a=e=>(0,n.jsx)(o.v,{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",...e,children:(0,n.jsx)("path",{d:"M10.459 20.918C9.0166 20.918 7.66309 20.6445 6.39844 20.0977C5.13379 19.5576 4.02295 18.8091 3.06592 17.8521C2.10889 16.895 1.35693 15.7842 0.810059 14.5195C0.27002 13.2549 0 11.9
1014 0 10.459C0 9.0166 0.27002 7.66309 0.810059 6.39844C1.35693 5.13379 2.10889 4.02295 3.06592 3.06592C4.02295 2.10205 5.13379 1.3501 6.39844 0.810059C7.66309 0.27002 9.0166 0 10.459 0C11.9014 0 13.2549 0.27002 14.5195 0.810059C15.7842 1.3501 16.895 2.10205 17.8521 3.06592C18.8091 4.02295 19.5576 5.13379 20.0977 6.39844C20.6445 7.66309 20.918 9.0166 20.918 10.459C20.918 11.9014 20.6445 13.2549 20.0977 14.5195C19.5576 15.7842 18.8091 16.895 17.8521 17.8521C16.895 18.8091 15.7842 19.5576 14.5195 20.0977C13.2549 20.6445 11.9014 20.918 10.459 20.918ZM10.459 19.1748C11.6621 19.1748 12.79 18.9492 13.8428 18.498C14.8955 18.0469 15.8218 17.4214 16.6216 16.6216C17.4214 15.8218 18.0469 14.8955 18.498 13.8428C18.9492 12.79 19.1748 11.6621 19.1748 10.459C19.1748 9.25586 18.9492 8.12793 18.498 7.07519C18.0469 6.01562 17.4214 5.08936 16.6216 4.29639C15.8218 3.49658 14.8955 2.87109 13.8428 2.41992C12.79 1.96875 11.6621 1.74316 10.459 1.74316C9.25586 1.74316 8.12793 1.96875 7.07519 2.41992C6.02246 2.87109 5.09619 3.49658 4.29639 4.29639C3.49658 5.08936 2.87109 6.01562 2.41992 7.07519C1.96875 8.12793 1.74316 9.25586 1.74316 10.459C1.74316 11.6621 1.96875 12.79 2.41992 13.8428C2.87109 14.8955 3.49658 15.8218 4.29639 16.6216C5.09619 17.4214 6.02246 18.0469 7.07519 18.498C8.12793 18.9492 9.25586 19.1748 10.459 19.1748Z",fill:"currentColor"})});var c=i(55729),d=i(79945);let u=d.I4.div.withConfig({componentId:"sc-7826f1c7-0"})(["display:flex;width:28px;height:28px;align-items:center;justify-content:center;","{width:21px;height:21px;",";}"],o.v,({$colorVariant:e,$isDisabled:t,$isSelected:i,$unselectedVariant:n,theme:r})=>"inverse"===e?(0,d.AH)(["color:",";cursor:",";"],r.colors["N Content/Inverse"],t?"not-allowed":"pointer"):t?(0,d.AH)(["color:",";cursor:not-allowed;"],r.colors["N Content/Disabled"]):i?(0,d.AH)(["color:",";cursor:pointer;"],r.colors["N General/Brand"]):(0,d.AH)(["color:",";cursor:pointer;"],()=>"circle"===n?r.colors["N Content/Tertiary"]:r.colors["N General/Brand"])),p=({colorVariant:e="default",isDisabled:t=!1,isSelected:i=!1,unselectedVariant:o})=>{let d=(0,c.useMemo)(()=>{switch(o){case"circle":return(0,n.jsx)(a,{});case"chevron-forward":return(0,n.jsx)(l.B,{});case"chevron-forward-circle":return(0,n.jsx)(s,{});default:return null}},[o]);return(0,n.jsx)(u,{$colorVariant:e,$isDisabled:t,$isSelected:i,$unselectedVariant:o,children:i?(0,n.jsx)(r.W,{}):d})}},26821:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});var n=i(4575),r=i(55729);let o=e=>Math.max(0,Math.floor((e-n.c9.now().toMillis())/1e3)),s=e=>{let[t,i]=(0,r.useState)(o(e)),n=(0,r.useRef)(null);return(0,r.useEffect)(()=>(n.current=setInterval(()=>{i(o(e))},50),()=>{n.current&&clearInterval(n.current)}),[e]),(0,r.useEffect)(()=>{0===t&&n.current&&clearInterval(n.current)},[t]),(0,r.useMemo)(()=>{let e=Math.floor(t/60),i=t%60;return`${e}:${i.toString().padStart(2,"0")}`},[t])}},28207:(e,t,i)=>{"use strict";i.d(t,{GY:()=>v,Oc:()=>u,SL:()=>x,Ts:()=>C,WL:()=>p,_A:()=>d,hH:()=>f,mZ:()=>m,om:()=>a,rf:()=>l,rl:()=>g,xi:()=>h,xv:()=>c});var n=i(55991),r=i(79945),o=i(71238),s=i(49959);let l=(0,r.I4)(s.Cy).withConfig({componentId:"sc-61257b37-0"})(["padding:","px;background:",";cursor:pointer;"],2,({$isSelected:e,theme:t})=>e?t.colors["N General/Brand"]:t.colors["N Surface/Primary"]),a=r.I4.div.withConfig({componentId:"sc-61257b37-1"})(["padding:4px 8px;border-radius:",";background:",";color:",";"],({theme:e})=>`${e.radius["Radius LG"]-2}px ${e.radius["Radius LG"]-2}px ${e.radius["Radius XXS"]}px ${e.radius["Radius XXS"]}px`,({$isSelected:e,theme:t})=>e?"inherit":t.colors["N Surface/Secondary"],({$isSelected:e,theme:t})=>e?t.colors["N Content/Inverse"]:t.colors["N Content/Tertiary"]),c=r.I4.div.withConfig({componentId:"sc-61257b37-2"})(["display:flex;width:100%;flex-direction:column;border-radius:","px;background:",";"],({theme:e})=>e.radius["Radius LG"]-2,({theme:e})=>e.colors["N Surface/Primary"]),d=r.I4.div.withConfig({componentId:"sc-61257b37-3"})(["display:flex;width:100%;min-height:72px;flex-direction:row;align-items:center;padding:12px;color:",";gap:12px;"],({theme:e})=>e.colors["N Content/Secondary"]),u=r.I4.div.withConfig({componentId:"sc-61257b37-4"})(["display:flex;flex:0 0 auto;flex-direction:column;align-items:center;"]),p=r.I4.div.withConfig({componentId:"sc-61257b37-5"})(["display:flex;flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;"]),f=(0,r.I4)(o.o).withConfig({componentId:"sc-61257b37-6"})(["color:",";hyphens:auto;overflow-wrap:anywhere;"],({$isPrimary:e,theme:t})=>e?t.colors["N Content/Primary"]:t.colors["N Content/Secondary"]),h=r.I4.div.withConfig({componentId:"sc-61257b37-7"})(["display:flex;flex:1;flex-direction:column;gap:4px;"]),g=r.I4.div.withConfig({componentId:"sc-61257b37-8"})(["display:flex;flex:0 0 auto;flex-direction:column;align-items:center;"]),m=r.I4.div.withConfig({componentId:"sc-61257b37-9"})(["display:flex;flex-flow:row wrap;gap:4px;","{width:16px;height:16px;color:",";}"],n.v,({theme:e})=>e.colors["N Content/Secondary"]),x=(0,r.I4)(f).withConfig({componentId:"sc-61257b37-10"})(["text-decoration:line-through;"]),C=(0,r.I4)(f).withConfig({componentId:"sc-61257b37-11"})(["position:relative;&::before{position:absolute;top:50%;width:100%;height:2px;background:",";content:'';transform:translateY(-50%);}"],({theme:e})=>e.colors["N General/Warning"]),v=r.I4.div.withConfig({componentId:"sc-61257b37-12"})(["display:flex;padding:0 8px 8px;"])},37534:(e,t,i)=>{"use strict";i.d(t,{V:()=>o});var n=i(6029),r=i(61957);let o=({descriptionHtml:e})=>(0,n.jsx)(r.r,{children:(0,n.jsx)(r.h,{dangerouslySetInnerHTML:{__html:e},$variant:"Poppins/T3",$textAlign:"center"})})},39363:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});let n=i(79945).I4.div.withConfig({componentId:"sc-16605a94-0"})(["display:flex;flex-direction:column;gap:12px;"])},42234:(e,t,i)=>{"use strict";i.d(t,{e:()=>o});var n=i(74279),r=i(55729);let o=({subscriptionProvider:e})=>{(0,r.useEffect)(()=>
1{if(e.plans?.length){let t=e.plans.reduce((e,t,i)=>({...e,[`sku_${i}`]:t.sku,[`price_${i}`]:t.totalValue,...0===i?{currency:t.currency}:{}}),{});(0,n.$s)("paywall_products",t)}},[e.plans])}},42921:(e,t,i)=>{"use strict";i.d(t,{J:()=>o});var n=i(9842),r=i(83617);let o=()=>{let{i18n:e}=(0,r.Bd)(),t=(0,n.mf)();return"cs"!==e.language?"all":t.evalFeature("onboarding_media_logos")?.value==="cz"?"cz":"all"}},49959:(e,t,i)=>{"use strict";i.d(t,{Cy:()=>l,fT:()=>o,h1:()=>s,on:()=>a});var n=i(79945),r=i(71238);let o=n.I4.div.withConfig({componentId:"sc-948de54a-0"})(["display:flex;flex-direction:column;gap:1rem;","{white-space:pre-line;}"],r.o),s=n.I4.div.withConfig({componentId:"sc-948de54a-1"})(["display:flex;flex-direction:column;gap:0.25rem;"]),l=n.I4.div.withConfig({componentId:"sc-948de54a-2"})(["border-radius:","px;background:",";color:",";"],({theme:e})=>e.radius["Radius LG"],({theme:e})=>e.colors["N Surface/Primary"],({theme:e})=>e.colors["N Content/Primary"]),a=n.I4.div.withConfig({componentId:"sc-948de54a-3"})([".react-loading-skeleton{border-radius:","px !important;}"],({theme:e})=>e.radius["Radius LG"])},56026:(e,t,i)=>{"use strict";i.d(t,{K:()=>p});var n=i(4233),r=i(45491),o=i(55729),s=i(4296),l=i(63428),a=i(74279),c=i(69293),d=i(73965),u=i(92109);function p({emailUser:e,defaultPeriod:t,onCheckoutCompleted:i,onSubmit:f,subscriptionPlanConfigs:h}){var g;let{promoCode:m}=(0,s.o)(),{activePlan:x,defaultPeriodPlan:C,plans:v,setActivePlan:w,setPlans:y}=(0,u.A)({defaultPeriod:t}),b=(0,c.z)("@fitify/subscription/fastPlans");(0,o.useEffect)(()=>{b.data?.currency&&b.data?.plans&&h?.length&&y(h.reduce((e,t)=>{let i=b.data?.plans.find(e=>e.path===t.sku);if(i){let n={locale:(0,r.M)(),currency:b.data?.currency||"USD",priceTotalValue:i?.priceTotalValue||i?.subscription?.instructions?.[0].priceTotalValue,totalValue:i?.totalValue||i?.subscription?.instructions?.[0].totalValue,futurePriceTotalValue:i?.future?.priceTotalValue,intervalUnit:i?.subscription?.instructions?.[0].intervalUnit,intervalLength:i?.subscription?.instructions?.[0].intervalLength,discountDurationLength:i?.subscription?.instructions?.[0].discountDurationLength,discountPercentValue:i?.subscription?.instructions?.[0].discountPercentValue,discountDurationUnit:i?.subscription?.instructions?.[0].discountDurationUnit,id:i?.path,sku:i?.path,type:i?.subscription?.instructions?.[0].type},o=l.s.safeParse(n);o.success?e.push({...n,config:t}):console.error("Invalid Fastspring plan data",n,o.error)}return e},[]))},[m,b.data?.plans,b.data?.currency,h,y]);let I=(g={onData:e=>{try{let t=e?.groups?.[0]?.items??[],i=e?.currency;b.set({plans:t,currency:i})}catch(e){console.error(e)}},onFinish:e=>{if(!v||!x)return;let t=v.find(e=>e.id===x);e?((0,d.dk)((0,d.zk)({plan:t,transactionId:e.id})),w(null),i()):(0,a.$s)("cancel_checkout",{promo:m,screen:"primary",sku:x,period:t?.config.interval,value:t?.totalValue,currency:t?.currency,gateway:n.j.Subscription.Gateway.Fastspring});let r=window.fastspring?.builder;r?.reset()},onEvent(e){let{event:t,...i}=e;t&&(0,a.$s)(t,i)}},(0,o.useEffect)(()=>{let e=document.querySelector('script[id="fsc-api"]');return e||((e=document.createElement("script")).id="fsc-api",e.src="https://sbl.onfastspring.com/sbl/0.9.2/fastspring-builder.min.js",e.async=!0,e.setAttribute("data-storefront","fitify.onfastspring.com/popup-fitify"),e.setAttribute("data-data-callback","FTFDataCallback"),e.setAttribute("data-popup-event-received","FTFPopupEventReceived"),e.setAttribute("data-popup-closed","FTFPopupClosed"),document.body.appendChild(e)),()=>{document.getElementById("fscCanvas")?.remove(),document.querySelectorAll('script[id="fsc-api"]').forEach(e=>e.remove())}},[]),(0,o.useEffect)(()=>{window.FTFDataCallback=g.onData,window.FTFPopupClosed=g.onFinish,window.FTFPopupEventReceived=g.onEvent},[g]),window.fastspring),j=(0,o.useCallback)(()=>{f(()=>{if(I&&v&&x){let t=v.find(e=>e.id===x);I.builder.push({reset:!0,checkout:!0,products:[{path:x}],paymentContact:e?.email?{email:e.email}:void 0,tags:e?{uid:e.uid}:void 0}),t&&(0,a.$s)("begin_checkout",{promo:m,sku:x,period:t.config.interval,value:t.totalValue,currency:t.currency,gateway:n.j.Subscription.Gateway.Fastspring})}})},[x,e,I,f,v,m]);return{activePlan:x,arePlansLoaded:!!v?.length&&!!x,defaultPeriodPlan:C,onPlanChange:w,onSubmit:j,plans:v}}},58648:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o,y:()=>r});var n=i(79945);let r=n.I4.div.withConfig({componentId:"sc-ccfeac09-0"})(["display:flex;width:100%;flex-direction:column;align-self:center;gap:48px;"]),o=n.I4.div.withConfig({componentId:"sc-ccfeac09-1"})(["display:flex;width:100%;flex-direction:column;gap:48px;"])},58680:(e,t,i)=>{"use strict";i.d(t,{Y:()=>l});var n=i(6029),r=i(79945),o=i(71238),s=i(49959);let l=({children:e,containerRef:t,subtitle:i,title:l})=>{let a=(0,r.DP)();return(0,n.jsxs)(s.fT,{ref:t,children:[(l||i)&&(0,n.jsxs)(s.h1,{children:[l&&(0,n.jsx)(o.o,{dangerouslySetInnerHTML:{__html:l},$color:a.colors["N Content/Primary"],$variant:"Poppins/H3 - Medium",$textAlign:"center"}),i&&(0,n.jsx)(o.o,{dangerouslySetInnerHTML:{__html:i},$color:a.colors["N Content/Secondary"],$variant:"Poppins/T4 - Medium",$textAlign:"center"})]}),e]})}},61957:(e,t,i)=>{"use strict";i.d(t,{h:()=>l,r:()=>s});var n=i(79945),r=i(71238),o=i(49959);let s=(0,n.I4)(o.Cy).withConfig({componentId:"sc-f6b8a720-0"})(["padding:16px;"]),l=(0,n.I4)(r.o).withConfig({componentId:"sc-f6b8a720-1"})(["color:",";strong{font-weight:500;}a{text-decoration:underline;&,&:active,&:hover,&:focus-visible{color:",";}}"],({theme:e})=>
1e.colors["N Content/Secondary"],({theme:e})=>e.colors["N Content/Secondary"])},63758:(e,t,i)=>{"use strict";i.d(t,{B:()=>o});var n=i(6029),r=i(55991);let o=e=>(0,n.jsx)(r.v,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M18.2242 11.9491C18.2178 11.5355 18.0684 11.1903 17.7347 10.8667L9.95878 3.2494C9.6931 2.99061 9.38052 2.8642 8.99854 2.8642C8.24469 2.8642 7.63104 3.46451 7.63104 4.22204C7.63104 4.59391 7.78365 4.93911 8.05805 5.21399L14.9776 11.9459L8.05805 18.6843C7.78687 18.956 7.63104 19.2975 7.63104 19.6795C7.63104 20.4338 8.24469 21.0373 8.99854 21.0373C9.37408 21.0373 9.6931 20.9109 9.95878 20.6453L17.7347 13.0316C18.0716 12.7011 18.2242 12.3596 18.2242 11.9491Z",fill:"currentColor"})})},63999:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSG:()=>N,default:()=>E});var n=i(6029),r=i(87795),o=i(56026),s=i(20952),l=i(80352),a=i(42234),c=i(58648),d=i(83617),u=i(90576),p=i(82066),f=i(37534),h=i(39363),g=i(58680),m=i(82785),x=i(26160),C=i(71238),v=i(28207);let w=({isSelected:e=!1,onClick:t,plan:i,topBadge:r})=>(0,n.jsxs)(v.rf,{$isSelected:e,onClick:t,children:[!!r&&(0,n.jsx)(v.om,{$isSelected:e,children:(0,n.jsx)(C.o,{$color:"inherit",$variant:"Poppins/T3 - Semibold",$textAlign:"center",children:r})}),(0,n.jsx)(v.xv,{children:(0,n.jsxs)(v._A,{children:[(0,n.jsx)(v.Oc,{children:(0,n.jsx)(x.s,{isSelected:e,unselectedVariant:"circle"})}),(0,n.jsxs)(v.WL,{children:[(0,n.jsx)(v.xi,{children:(0,n.jsx)(v.hH,{$isPrimary:e,$variant:"Poppins/H4",children:i.name})}),(0,n.jsx)(v.rl,{children:(0,n.jsx)(v.hH,{$isPrimary:e,$variant:"Poppins/H4",children:i.price})})]})]})})]});var y=i(53649),b=i(55729);let I=({isDefaultPlan:e,isSelected:t,onClick:i,subscriptionPlan:o})=>{let{t:s}=(0,d.Bd)(),l=(0,b.useMemo)(()=>({name:(()=>{switch(o.config.interval){case r.$.LIFETIME:return s("gift_voucher_lifetime_membership");case r.$.YEAR:return s("gift_voucher_one_year_membership");default:return""}})(),price:(0,y.vv)(o.totalValue,o.currency,o.locale)}),[o.totalValue,o.currency,o.locale,o.config.interval,s]);return(0,n.jsx)(w,{topBadge:e?s("paywall_badge_most_popular"):void 0,isSelected:t,onClick:i,plan:l})},j=({subscriptionProvider:e})=>{let{t}=(0,d.Bd)();return(0,n.jsxs)(g.Y,{title:t("gift_voucher_title"),children:[e.arePlansLoaded?(0,n.jsx)(h.W,{children:e.plans?.map(t=>(0,n.jsx)(I,{isDefaultPlan:e.defaultPeriodPlan===t.id,isSelected:e.activePlan===t.id,onClick:()=>e.onPlanChange(t.id),subscriptionPlan:t},t.id))}):(0,n.jsxs)(h.W,{children:[(0,n.jsx)(m.X,{style:{height:"48px"}}),(0,n.jsx)(m.X,{style:{height:"48px"}})]}),(0,n.jsx)(p.$,{isDisabled:!e.activePlan,onClick:e.onSubmit,"data-testid":"cta-buy-the-voucher",children:t("gift_voucher_cta")}),(0,n.jsx)(f.V,{descriptionHtml:t("gift_voucher_smallprint")})]})};var _=i(7202),P=i(25047),$=i(86187),k=i(43780);let S=({subscriptionProvider:e})=>{let{t}=(0,d.Bd)();return(0,n.jsxs)(P.P,{logoLink:"https://gofitify.com",children:[(0,n.jsx)(u.s,{title:t("gift_voucher_title"),description:t("onboarding_gift_meta_description")}),(0,n.jsxs)(c.y,{children:[(0,n.jsx)($.Xq,{...(0,k.ul)("shared","subscription","giftVoucher")}),(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(j,{subscriptionProvider:e}),(0,n.jsx)(_.e,{})]})]})]})},L=[{interval:r.$.YEAR,isEnabled:!0,sku:"fitify-pro-oneyear-002-gift"},{interval:r.$.LIFETIME,isEnabled:!0,sku:"fitify-pro-lifetime-003-gift"}];var N=!0;function E(){let e=(0,s.r)(),t=(0,o.K)({defaultPeriod:"longest",onSubmit:e=>{e()},subscriptionPlanConfigs:L,onCheckoutCompleted:()=>{e.push(l.$Q.giftSuccess.path)}});return(0,a.e)({subscriptionProvider:t}),(0,n.jsx)(S,{subscriptionProvider:t})}},82066:(e,t,i)=>{"use strict";i.d(t,{$:()=>a});var n=i(6029),r=i(17656),o=i(71238),s=i(3544),l=i(55729);let a=({children:e,icon:t,isDisabled:i=!1,isLoading:a=!1,maxWidth:c,size:d="large",variant:u="brand",...p})=>{let{buttonRef:f,fitWidth:h}=(({maxWidth:e,measureKey:t})=>{let i=(0,l.useRef)(null),[n,r]=(0,l.useState)();return(0,l.useLayoutEffect)(()=>{let t=i.current;if(!t||!e)return;let n=()=>{let e,i,n,o=t.lastElementChild;if(!(o instanceof HTMLElement))return;t.style.width="fit-content";let s=((e=document.createRange()).selectNodeContents(o),(i=Array.from(e.getClientRects()).map(e=>e.width)).length>0?Math.max(...i):0),l=parseFloat((n=getComputedStyle(t)).paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth);t.style.width="",s>0&&r(Math.ceil(s+l))};n();let o=new ResizeObserver(n);t.parentElement&&o.observe(t.parentElement);let s=!0;return document.fonts?.ready.then(()=>{s&&n()}),()=>{s=!1,o.disconnect()}},[e,t]),{buttonRef:i,fitWidth:n}})({maxWidth:c,measureKey:"string"==typeof e?e:void 0});return(0,n.jsx)(s.OV,{...p,ref:f,disabled:i,$fitWidth:h,$isLoading:a,$maxWidth:c,$size:d,$variant:u,children:a?(0,n.jsx)(r.h,{}):(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsx)(o.o,{$color:"inherit",$variant:"medium"===d?"Poppins/T3 - Medium":"Poppins/T2 - Semibold",children:e})]})})}},82785:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});var n=i(6029),r=i(15623),o=i(49959);let s=({style:e})=>(0,n.jsx)(o.on,{children:(0,n.jsx)(r.A,{style:e})})},82948:(e,t,i)=>{"use strict";i.d(t,{X:()=>o});var n=i(6029);let r=i(79945).I4.span.withConfig({componentId:"sc-8b9078a3-0"})(["display:inline-block;width:0.625em;text-align:center;"]),o=({value:e})=>(0,n.jsx)(n.Fragment,{children:Array.from(e).map((e,t)=>/\d/.test(e)?(0,n.jsx)(r,{children:e},t):e)})},86187:(e,t,i)=>{"use strict";i.d(t,{Al:()=>a,HF:()=>u,Xq:()=>s,iG:()=>l,nX:()=>c,pA:()=>d});var n=i(53075),r=i(35792),o=i(79945);let s=o.I4.img.withConfig({componentId:"sc-4e94db09-0"})(["align-self:center;margin-top:24px;"]),l=o.I4.div.withConfig({componentId:"sc-4e94db09-1"})(["display:flex;flex-direction:column;align-items:center;padding:16px;margin-top:24px;"]),a=o.I4.div.withConfig({componentId:"sc-4e94db09-2"})(["position:relative;
1width:200px;height:105px;transform:rotate(-10deg);"]),c=o.I4.div.withConfig({componentId:"sc-4e94db09-3"})(["position:absolute;top:50%;bottom:0;display:flex;width:100%;flex-direction:column;align-items:center;padding:0 4px;"]),d=o.I4.div.withConfig({componentId:"sc-4e94db09-4"})(["",";color:",";font-size:21px !important;text-align:center;"],(0,r.gI)("Poppins/T1 - Semibold"),n.s["New Primitives Web"]["General/White"]),u=o.I4.div.withConfig({componentId:"sc-4e94db09-5"})(["",";color:",";font-size:10px !important;text-align:center;"],(0,r.gI)("Poppins/T5"),n.s["New Primitives Web"]["General/White"])},92109:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var n=i(55729);let r=({defaultPeriod:e})=>{let[t,i]=(0,n.useState)(null),[r,o]=(0,n.useState)(null),[s,l]=(0,n.useState)(null),a=(0,n.useCallback)(e=>{if(t&&t.length>0){let i=(()=>{let i=t[t.length-1].id;switch(e){case"shortest":return t[0].id;case"month":return t.find(e=>"month"===e.intervalUnit&&1===e.intervalLength)?.id||i;default:return i}})()||null;o(i),l(i)}},[t]);return(0,n.useEffect)(()=>{t&&t.length&&(t.some(e=>e.id===r)||a(e))},[t]),(0,n.useEffect)(()=>{e&&a(e)},[e]),{activePlan:r,defaultPeriodPlan:s,plans:t,setActivePlan:o,setDefaultPeriodPlan:l,setPlans:(0,n.useCallback)(e=>{i(t=>t&&e&&t.length===e.length&&t.every((t,i)=>t.id===e[i].id)?t:e)},[i])}}},97815:(e,t,i)=>{"use strict";i.d(t,{_:()=>s,y:()=>o});var n=i(59523),r=i(79945);let o=24,s=r.I4.div.withConfig({componentId:"sc-f5d30ced-0"})(["display:flex;flex-direction:column;flex-grow:1;align-items:center;justify-content:center;padding-top:",";"],({$hasCountdown:e,$headerHeight:t,theme:i})=>(0,n.Et)(t)?`${t}px`:`${i.sizes.headerHeight*(e?2:1)}rem`)}},e=>{e.O(0,[8645,391,636,6593,8792],()=>e(e.s=13370)),_N_E=e.O()}]); 2//# sourceMappingURL=gift-1b0eb8988f46dd47.js.map
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.