1"use strict";(self.webpackChunkshop=self.webpackChunkshop||[]).push([[8945],{68945:(e,i,r)=>{r.r(i),r.d(i,{default:()=>me});var n=r(54322),t=r(64089),s=r(74143),o=r(54715),l=r(85321),a=r(26198),d=r(3874),c=r(66711),u=r(64397),x=r(44498),m=r(79536),g=r(25879),h=r(61201),p=r(37939);function b(){var e;const{data:i,loading:r}=(0,h.WT)(),t=null==i||null===(e=i.region)||void 0===e?void 0:e.countryCode,[s,o]=(0,l.useQueryParam)("country",l.StringParam),[a,d]=(0,n.useState)(!1);(0,n.useEffect)(()=>{var e;a||(s?d(!0):r||(o((e=t,Object.values(p.q).includes(null!=e?e:"")?e:p.q.IS),"replaceIn"),d(!0)))},[a,s,r,t])}var y=r(65723);const j=({label:e,onClick:i,isActive:r})=>{const[n]=(0,a.useTranslation)();return(0,y.jsx)(t.Box,{children:(0,y.jsx)(t.Button,{onClick:i,variant:"unstyled",children:(0,y.jsx)(t.Box,{py:0,color:"blue.400",children:(0,y.jsx)(t.Heading,{borderTopWidth:2,borderBottomWidth:2,borderBottomColor:r?"blue.400":"transparent",fontSize:"md",color:"inherit",fontWeight:600,children:n(`shopLanding.quickFilters.${e}`)})})})})};var v=r(70654);const f="nearMe",I={postalCode:[109]},w=({onClick:e,getIsActive:i})=>{var r;const n=(0,v.useViewerProfile)({fragment:h.Dr});if(!n||!n.postalCode)return null;const t=null!==(r=n.postalCode)&&void 0!==r?r:"";return(0,y.jsx)(j,{getIsActive:i,onClick:()=>e({postalCode:[parseInt(t)]}),isActive:i(I),label:f})};const C=()=>{const[e]=(0,a.useTranslation)(),{updateFilters:i,filters:r,clearFilters:s}=(0,x.R7)(),o=(0,v.useViewerProfile)({fragment:h.Dr}),l=(0,n.useCallback)(e=>function(e,i){const r=Object.keys(e);for(let n=0;n<r.length;n++){const t=r[n];if(!Object.prototype.hasOwnProperty.call(i,t))return!1;{const r=e[t],n=i[t];if(Array.isArray(r)&&Array.isArray(n)){if(JSON.stringify(r)!==JSON.stringify(n))return!1}else if(r!==n)return!1}}return!0}(e,r),[r]),d=(0,n.useCallback)(e=>{l(e)?s():i({...r,...e})},[r]);return o&&o.postalCode?r.country!==p.q.IS?null:(0,y.jsxs)(t.HStack,{spacing:4,pb:2,flexWrap:"wrap",alignItems:"center",display:"none",children:[(0,y.jsx)(t.Box,{children:(0,y.jsx)(t.Heading,{fontSize:"md",fontWeight:600,children:e("shopLanding.shortcuts")})}),(0,y.jsx)(w,{onClick:e=>d(e),getIsActive:l})]}):null};var k=r(85925),B=r(14332),P=r(13299),S=r(92479),R=r(51259),_=r(30669),T=r(4671),z=r(52297);const A=(0,n.memo)(()=>{const[e]=(0,a.useTranslation)(),[,i]=(0,l.useQueryParam)("sportType",l.ArrayParam),[,r]=(0,l.useQueryParam)("mode",l.StringParam);return(0,y.jsx)(t.Box,{h:"100%",display:"flex",flexDirection:"column",children:(0,y.jsx)(s.AnimatePresence,{children:(0,y.jsx)(s.motion.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.4,ease:[.4,0,.2,1]},children:(0,y.jsx)(T.E,{items:z.iV,getKey:e=>e.id,visibleCount:{base:2,sm:2,md:2,lg:2,xl:3,"2xl":4},hideArrows:!0,renderControls:({canPrev:i,canNext:n,onPrev:s,onNext:o})=>(0,y.jsxs)(t.Flex,{justifyContent:"space-between",alignItems:"center",mb:4,children:[(0,y.jsx)(t.Heading,{as:"h3",size:"lg",cursor:"pointer",onClick:()=>r("programs"),_hover:{opacity:.8},children:e("sections.explorePrograms","Explore programs")}),(0,y.jsxs)(t.Flex,{alignItems:"center",gap:2,children:[(0,y.jsx)(t.Button,{size:"sm",variant:"ghost",bg:"gray.100",borderRadius:"full",onClick:()=>r("programs"),children:e("actions.viewAllPrograms","View all programs")}),(0,y.jsx)(t.IconButton,{"aria-label":e("actions.previous","Previous"),icon:(0,y.jsx)(d.I,{type:"chevron-left",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:s,isDisabled:!i,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}}),(0,y.jsx)(t.IconButton,{"aria-label":e("actions.next","Next"),icon:(0,y.jsx)(d.I,{type:"chevron-right",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:o,isDisabled:!n,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}})]})]}),renderItem:(n,t)=>(0,y.jsx)(s.motion.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.4,delay:.05*t,ease:[.4,0,.2,1]},children:(0,y.jsx)(z.rm,{title:e(n.titleKey,n.titleDefault),description:e(n.descKey,n.descDefault),tag:e(n.tagKey,n.tagDefault),image:n.image,onClick:()=>{return e=n.sportTypes,i(e),void r("programs");var e},height:{base:"210px",md:"230px"}})})})},"explore-programs")})})});A.displayName="ExploreProgramsSection";
1var L=r(95527),H=r(67674),O=r(80713),E=r(61011),M=r(93410),F=r(25207);const D={isiClub:!0},N=()=>(0,y.jsxs)(t.Box,{bg:"gray.100",borderRadius:"4xl",overflow:"hidden",display:"flex",flexDirection:"column",children:[(0,y.jsx)(t.Skeleton,{width:"100%",height:{base:"240px",md:"256px"}}),(0,y.jsxs)(t.Box,{pt:2,display:"flex",flexDirection:"column",gap:2,children:[(0,y.jsx)(t.Skeleton,{height:"18px",width:"80%",borderRadius:"md"}),(0,y.jsx)(t.Skeleton,{height:"14px",width:"60%",borderRadius:"md"}),(0,y.jsx)(t.Skeleton,{height:"14px",width:"40%",borderRadius:"md"}),(0,y.jsx)(t.Box,{mt:2,children:(0,y.jsx)(t.Skeleton,{height:"18px",width:"50%",borderRadius:"md"})})]})]}),W=({openProduct:e})=>{const[i]=(0,a.useTranslation)(),{showModal:r}=(0,L.V)(),n=(0,F.rH)(),{loading:l,clubServiceList:c}=(0,O.eM)(!1,!0,12,D,p.q.IS);if(!(l||c&&0!==c.length))return null;const u=l?Array.from({length:4},(e,i)=>({id:`skeleton-${i}`})):null!=c?c:[];return(0,y.jsx)(t.Box,{mb:8,children:(0,y.jsx)(E.p.Provider,{value:{showModal:r,Link:o.Link,createRoute:n},children:(0,y.jsx)(T.E,{items:u,getKey:e=>e.id,visibleCount:{base:2,md:3,lg:4,xl:5},hideArrows:!0,renderControls:({canPrev:e,canNext:r,onPrev:n,onNext:s})=>(0,y.jsxs)(t.Flex,{justifyContent:"space-between",alignItems:"center",mb:4,children:[(0,y.jsxs)(t.Flex,{as:o.Link,to:"/region/siu",alignItems:"center",gap:3,cursor:"pointer",_hover:{opacity:.8},children:[(0,y.jsx)("img",{src:H,alt:"ÃSà / UMFÃ",style:{height:"32px",width:"auto"}}),(0,y.jsx)(t.Heading,{as:"h3",size:"lg",children:"ÃSà / UMFÃ"})]}),(0,y.jsxs)(t.Flex,{alignItems:"center",gap:2,children:[(0,y.jsxs)(t.Button,{as:o.Link,to:"/region/siu",size:"sm",variant:"ghost",bg:"gray.100",borderRadius:"full",display:{base:"none",sm:"inline-flex"},children:[(0,y.jsx)(t.Box,{as:"span",display:{base:"inline",md:"none"},children:i("actions.viewIsiPageShort","View page")}),(0,y.jsx)(t.Box,{as:"span",display:{base:"none",md:"inline"},children:i("actions.viewIsiPage","View ÃSà / UMFà page")})]}),(0,y.jsx)(t.IconButton,{"aria-label":i("actions.previous","Previous"),icon:(0,y.jsx)(d.I,{type:"chevron-left",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:n,isDisabled:!e,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}}),(0,y.jsx)(t.IconButton,{"aria-label":i("actions.next","Next"),icon:(0,y.jsx)(d.I,{type:"chevron-right",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:s,isDisabled:!r,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}})]})]}),renderItem:(i,r)=>l?(0,y.jsx)(N,{},i.id):(0,y.jsx)(s.motion.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.4,delay:.05*r,ease:[.4,0,.2,1]},children:(0,y.jsx)(t.Box,{onClick:()=>e(i.id),cursor:"pointer",children:(0,y.jsx)(M.i,{clubService:i})})},i.id)})})})};var Y=r(37421),V=r(93290),G=r(20139);const Q={base:"repeat(2, 1fr)",sm:"repeat(3, 1fr)"},K=()=>{const[e]=(0,a.useTranslation)(),[,i]=(0,l.useQueryParam)("mode",l.StringParam),r=(0,o.useLocation)(),n=`${r.pathname}${r.search}`,c=(0,G.bC)(),u=!!c&&c.length>0,x=(0,t.useBreakpointValue)({base:!0,lg:!1}),{clubsList:m,loading:g,error:h}=(0,Y.z)({first:200,skipGlobalFilters:!0}),p=(e=>{if(!u)return null!==(e=null==m?void 0:m.slice(0,6))&&void 0!==e?e:null;if(c.length>=6)return c.slice(0,6);const i=new Set(c.map(e=>e.id)),r=(null!=m?m:[]).filter(e=>!i.has(e.id));return[...c,...r].slice(0,6)})(),b=({canPrev:r,canNext:n,onPrev:s,onNext:o})=>(0,y.jsxs)(t.Flex,{justifyContent:"space-between",alignItems:"center",mb:4,children:[(0,y.jsx)(t.Heading,{as:"h3",size:"lg",cursor:"pointer",onClick:()=>i("clubs"),_hover:{opacity:.8},children:e("sections.clubs","Clubs")}),(0,y.jsxs)(t.Flex,{alignItems:"center",gap:2,children:[(0,y.jsx)(t.Button,{size:"sm",variant:"ghost",bg:"gray.100",borderRadius:"full",onClick:()=>i("clubs"),children:e("actions.viewAllClubs","View all clubs")}),(0,y.jsx)(t.IconButton,{"aria-label":e("actions.previous","Previous"),icon:(0,y.jsx)(d.I,{type:"chevron-left",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:s,isDisabled:!r,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}}),(0,y.jsx)(t.IconButton,{"aria-label":e("actions.next","Next"),icon:(0,y.jsx)(d.I,{type:"chevron-right",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:o,isDisabled:!n,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}})]})]});return(0,y.jsxs)(t.Box,{h:"100%",display:"flex",flexDirection:"column",children:[!x&&(0,y.jsxs)(t.Flex,{justify:"space-between",align:"center",mb:4,children:[(0,y.jsx)(t.Heading,{as:"h3",size:"lg",cursor:"pointer",onClick:()=>i("clubs"),_hover:{opacity:.8},children:e("sections.clubs","Clubs")}),(0,y.jsx)(t.Button,{size:"sm",variant:"ghost",bg:"gray.100",borderRadius:"full",onClick:()=>i("clubs"),rightIcon:(0,y.jsx)("span",{children:"âº"}),children:e("actions.viewAllClubs","View all clubs")})]}),!g&&(h||!(null!=p&&p.length))&&(0,y.jsx)(t.Text,{py:8,textAlign:"center",color:"gray.500",fontSize:"sm",children:e("errors.loadingFailed","Could not load clubs. Please try again later.")}),x?g&&!u?(0,y.jsx)(T.E,{items:Array.from({length:6}),getKey:(e,i)=>
1String(i),visibleCount:{base:3,sm:3,md:4},itemPaddingX:1,hideArrows:!0,renderControls:b,renderItem:()=>(0,y.jsx)(V.Oh,{})}):(0,y.jsx)(T.E,{items:null!=p?p:[],getKey:e=>e.id,visibleCount:{base:3,sm:3,md:4},itemPaddingX:1,hideArrows:!0,renderControls:b,renderItem:(e,i)=>{var r,t;return(0,y.jsx)(s.motion.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.4,delay:.03*i,ease:[.4,0,.2,1]},children:(0,y.jsx)(o.Link,{to:{pathname:`/${e.label}`,search:`?returnTo=${encodeURIComponent(n)}`},children:(0,y.jsx)(V._J,{logo:null!==(r=e.logo)&&void 0!==r?r:"",name:null!==(t=e.name)&&void 0!==t?t:""})})})}}):(0,y.jsx)(t.Grid,{templateColumns:Q,gap:2,children:g&&!u?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(V.Yx,{}),(0,y.jsx)(V.Yx,{}),(0,y.jsx)(V.Yx,{}),(0,y.jsx)(V.Yx,{}),(0,y.jsx)(V.Yx,{}),(0,y.jsx)(V.Yx,{})]}):null==p?void 0:p.map((e,i)=>{var r,l;return(0,y.jsx)(t.GridItem,{children:(0,y.jsx)(s.motion.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.4,delay:.05*i,ease:[.4,0,.2,1]},children:(0,y.jsx)(o.Link,{to:{pathname:`/${e.label}`,search:`?returnTo=${encodeURIComponent(n)}`},children:(0,y.jsx)(V.Iz,{logo:null!==(r=e.logo)&&void 0!==r?r:"",name:null!==(l=e.name)&&void 0!==l?l:""})})})},e.id)})})]})};var U=r(60489),$=r(63318),q=r(66193),J=r(22750),X=r(79249),Z=r(25039),ee=r(18517);const ie=()=>(0,y.jsxs)(t.Box,{bg:"gray.100",borderRadius:"4xl",overflow:"hidden",display:"flex",flexDirection:"column",children:[(0,y.jsx)(t.Skeleton,{width:"100%",height:{base:"240px",md:"256px"}}),(0,y.jsxs)(t.Box,{pt:2,display:"flex",flexDirection:"column",gap:2,children:[(0,y.jsx)(t.Skeleton,{height:"18px",width:"80%",borderRadius:"md"}),(0,y.jsx)(t.Skeleton,{height:"14px",width:"60%",borderRadius:"md"}),(0,y.jsx)(t.Skeleton,{height:"14px",width:"40%",borderRadius:"md"}),(0,y.jsx)(t.Box,{mt:2,children:(0,y.jsx)(t.Skeleton,{height:"18px",width:"50%",borderRadius:"md"})})]})]}),re=({person:e,isSelf:i,viewerPostalCode:r,country:c,birthDayRanges:u,ageRestrictedOnly:x,openProduct:m})=>{var g,h,p,b,j;const[v]=(0,a.useTranslation)(),{showModal:f}=(0,L.V)(),I=(0,F.rH)(),[,w]=(0,l.useQueryParams)({mode:l.StringParam,birthYear:l.NumberParam,birthYearTo:l.NumberParam,gender:l.ArrayParam}),C=(0,n.useMemo)(()=>{const i=e.birthDay?new Date(e.birthDay).getFullYear().toString():void 0;return(0,X.NK)(i)},[e.birthDay]),k=C.birthYear?Number.parseInt(C.birthYear,10):void 0,B=C.birthYearTo?Number.parseInt(C.birthYearTo,10):void 0,P=(0,n.useMemo)(()=>null!=u?u:void 0!==B?[{to:`${B}-12-31`}]:void 0,[u,B]),S=(0,n.useMemo)(()=>{return(i=e.gender)===J.HG.FEMALE?[J.BQ.FEMALE,J.BQ.BOTH]:i===J.HG.MALE?[J.BQ.MALE,J.BQ.BOTH]:void 0;var i},[e.gender]),R=(0,n.useMemo)(()=>((e,i)=>{if("IS"===e&&i){for(const e of ee.B)for(const r of e.areas)if(r.codes.some(e=>e.value.toString()===i))return r.codes.map(e=>e.value.toString());return[i]}})(c,r),[c,r]),_=(0,n.useCallback)(()=>{w({mode:"programs",birthYear:null!=k?k:void 0,birthYearTo:null!=B?B:void 0,gender:null!=S?S:void 0},"pushIn")},[w,k,B,S]),z=(0,n.useMemo)(()=>({filter:{...k?{birthYear:k}:{},...P?{birthDayRanges:P}:{},...x?{ageRestrictedOnly:x}:{},...S?{gender:S}:{},...c?{countries:[c]}:{},...R?{postalCode:R}:{}},sortBy:Z.aB.POPULARITY,direction:Z.UE.desc,first:12}),[k,P,x,S,c,R]),{data:A,loading:H}
1=(0,O.mG)({variables:z,fetchPolicy:"cache-first",notifyOnNetworkStatusChange:!0}),D=null===(g=(0,F.P9)().data)||void 0===g||null===(h=g.orgStructure)||void 0===h||null===(p=h.node)||void 0===p?void 0:p.id,N=(0,O.su)(D),W=(0,n.useMemo)(()=>{var e;return(0,O.nj)(null==A||null===(e=A.shopClubServices)||void 0===e?void 0:e.edges,N)},[A,N]);if(!H&&0===W.length)return null;const Y=null!==(b=null===(j=e.displayName)||void 0===j?void 0:j.split(" ")[0])&&void 0!==b?b:"",V=i?v("sections.suggestedForYou","Suggested for you"):v("sections.suggestedFor","Suggested for {{name}}",{name:Y}),G=i?v("actions.allProgramsForYou","All programs for you"):v("actions.allProgramsFor","All programs for {{name}}",{name:Y}),Q=Array.from({length:5},(e,i)=>({id:`skeleton-${i}`,_skeleton:!0})),K=H?Q:W;return(0,y.jsx)(t.Box,{mb:8,children:(0,y.jsx)(E.p.Provider,{value:{showModal:f,Link:o.Link,createRoute:I},children:(0,y.jsx)(T.E,{items:K,getKey:e=>e.id,visibleCount:{base:2,md:3,lg:4,xl:5},hideArrows:!0,renderControls:({canPrev:e,canNext:i,onPrev:r,onNext:n})=>(0,y.jsxs)(t.Flex,{justifyContent:"space-between",alignItems:"center",mb:4,children:[(0,y.jsx)(t.Heading,{as:"h3",size:"lg",cursor:"pointer",onClick:_,_hover:{opacity:.8},children:V}),(0,y.jsxs)(t.Flex,{alignItems:"center",gap:2,children:[(0,y.jsxs)(t.Button,{size:"sm",variant:"ghost",bg:"gray.100",borderRadius:"full",display:{base:"none",sm:"inline-flex"},onClick:_,children:[(0,y.jsx)(t.Box,{as:"span",display:{base:"inline",md:"none"},children:v("actions.viewAll","View all")}),(0,y.jsx)(t.Box,{as:"span",display:{base:"none",md:"inline"},children:G})]}),(0,y.jsx)(t.IconButton,{"aria-label":v("actions.previous","Previous"),icon:(0,y.jsx)(d.I,{type:"chevron-left",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:r,isDisabled:!e,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}}),(0,y.jsx)(t.IconButton,{"aria-label":v("actions.next","Next"),icon:(0,y.jsx)(d.I,{type:"chevron-right",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:n,isDisabled:!i,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}})]})]}),renderItem:(e,i)=>"_skeleton"in e?(0,y.jsx)(ie,{},e.id):(0,y.jsx)(s.motion.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.4,delay:.05*i,ease:[.4,0,.2,1]},children:(0,y.jsx)(t.Box,{onClick:()=>m(e.id),cursor:"pointer",children:(0,y.jsx)(M.i,{clubService:e})})},e.id)})})})},ne=({openProduct:e})=>{var i;const[r]=(0,l.useQueryParam)("country",l.StringParam),t=(0,h.B1)(),{data:s}=(0,h.WT)(),{filters:o}=(0,x.R7)(),a=(0,h.QV)(),d=null==o?void 0:o.birthYear,c=null==o?void 0:o.gender,u=r||(null==s||null===(i=s.region)||void 0===i?void 0:i.countryCode)||void 0,m=null==o?void 0:o.birthDayRanges,g=null==o?void 0:o.ageRestrictedOnly,p=(0,n.useMemo)(()=>{var e;const i=null==m||null===(e=m[0])||void 0===e?void 0:e.to;if(!i)return;const r=Number.parseInt(i.slice(0,4),10);return Number.isNaN(r)?void 0:r},[m]),b=!!d||void 0!==p,j=!(null==c||!c.length),v=!(null==t||!t.id),f=(0,n.useMemo)(()=>{const e=(null!=a?a:[]).filter(e=>!!e),i=(new Date).getFullYear();if(0===e.length){if(!b&&!j)return[];const e=null!=c&&c.includes(J.BQ.FEMALE)?J.HG.FEMALE:null!=c&&c.includes(J.BQ.MALE)?J.HG.MALE:void 0,i=null!=d?d:p;return[{id:"virtual-filter",birthDay:i?`${i}-01-01`:void 0,gender:e,displayName:void 0}]}if(!b){const i=e.find(e=>e.id===(null==t?void 0:t.id));return i?[i]:[]}const r=e.find(e=>{var r;const n=null===(r=e.birthDay)||void 0===r?void 0:r.slice(0,4);if(!n)return!1;const t=e.gender===J.HG.OTHER?J.BQ.BOTH:e.gender;if(null==c||!c.includes(t))return!1;if(null!=d)return n===String(d);if(void 0!==p){const e=i-Number.parseInt(n,10);if(Number.isNaN(e))return!1;const r=i-p;return 18===r?e>=18&&e<60:60===r&&e>=60}return!1});return r?[r]:[]},[a,b,j,d,c,p,null==t?void 0:t.id]);return v||b||j?0===f.length?null:(0,y.jsx)(y.Fragment,{children:f.map(i=>{var r;const n="virtual-filter"===i.id||!(null==t||!t.id)&&i.id===t.id;return(0,y.jsx)(re,{person:i,isSelf:n,viewerPostalCode:null==t?void 0:t.postalCode,country:u,birthDayRanges:m,ageRestrictedOnly:g,openProduct:e},null!==(r=i.id)&&void 0!==r?r:i.displayName)})}):null},te=()=>(0,y.jsxs)(t.Box,{bg:"gray.100",borderRadius:"4xl",overflow:"hidden",display:"flex",flexDirection:"column",children:[(0,y.jsx)(t.Skeleton,{width:"100%",height:{base:"240px",md:"256px"}}),(0,y.jsxs)(t.Box,{pt:2,display:"flex",flexDirection:"column",gap:2,children:[(0,y.jsx)(t.Skeleton,{height:"18px",width:"80%",borderRadius:"md"}),(0,y.jsx)(t.Skeleton,{height:"14px",width:"60%",borderRadius:"md"}),(0,y.jsx)(t.Skeleton,{height:"14px",width:"40%",borderRadius:"md"}),(0,y.jsx)(t.Box,{mt:2,children:(0,y.jsx)(t.Skeleton,{height:"18px",width:"50%",borderRadius:"md"})})]})]}),se=({openProduct:e})=>{var i,r,c,u;const[x]=(0,a.useTranslation)(),m=(0,o.useNavigate)(),{showModal:g}=(0,L.V)(),p=(0,F.rH)(),[b]=(0,l.useQueryParam)("country",l.StringParam),{data:j}=(0,h.WT)(),v=b||(null==j||null===(i=j.region)||void 0===i?void 0:i.countryCode),f=(0,n.useMemo)(()=>({filter:{...v?{countries:[v]}:{},category:["SUMMER_COURSES"]},sortBy:Z.aB.POPULARITY,direction:Z.UE.desc,first:12}),[v]),{data:I,loading:w}=(0,O.mG)({variables:f,fetchPolicy:"cache-first"}),C=null===(r=(0,F.P9)().data)||void 0===r||null===(c=r.orgStructure)||void 0===c||null===(u=c.node)||void 0===u?void 0:u.id,k=(0,O.su)(C),B=(0,n.useMemo)(()=>{var e;return(0,O.nj)(null==I||null===(e=I.shopClubServices)||void 0===e?void 0:e.edges,k)},[I,k]);if(!w&&0===B.length)return null;const P=w&&0===B.length?Array.from({length:4},(e,i)=>({id:`skeleton-${i}`,_skeleton:!0})):B;return(0,y.jsx)(t.Box,{mb:8,children:(0,y.jsx)(E.p.Provider,{value:{showModal:g,Link:o.Link,createRoute:p},children:(0,y.jsx)(T.E,{items:P,getKey:e=>
1e.id,visibleCount:{base:2,md:3,lg:4,xl:5},hideArrows:!0,renderControls:({canPrev:e,canNext:i,onPrev:r,onNext:n})=>(0,y.jsxs)(t.Flex,{justifyContent:"space-between",alignItems:"center",mb:4,children:[(0,y.jsxs)(t.Heading,{as:"h3",size:"lg",cursor:"pointer",onClick:()=>m("/sumarnamskeid?country=IS&view=map"),_hover:{opacity:.8},children:[x("promoBanner.sumarnamskeid.pageTitle","Sumarnámskeið")," ð´âï¸"]}),(0,y.jsxs)(t.Flex,{alignItems:"center",gap:2,children:[(0,y.jsxs)(t.Button,{size:"sm",variant:"ghost",bg:"gray.100",borderRadius:"full",display:{base:"none",sm:"inline-flex"},onClick:()=>m("/sumarnamskeid?country=IS&view=map"),children:[(0,y.jsx)(t.Box,{as:"span",display:{base:"inline",md:"none"},children:x("promoBanner.sumarnamskeid.buttonText","View all")}),(0,y.jsx)(t.Box,{as:"span",display:{base:"none",md:"inline"},children:x("promoBanner.sumarnamskeid.buttonTextLong","View all summer courses")})]}),(0,y.jsx)(t.IconButton,{"aria-label":x("actions.previous","Previous"),icon:(0,y.jsx)(d.I,{type:"chevron-left",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:r,isDisabled:!e,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}}),(0,y.jsx)(t.IconButton,{"aria-label":x("actions.next","Next"),icon:(0,y.jsx)(d.I,{type:"chevron-right",size:16}),size:"sm",h:9,w:9,borderRadius:"full",bg:"gray.100",onClick:n,isDisabled:!i,_disabled:{opacity:.4,cursor:"not-allowed"},_hover:{bg:"gray.200"}})]})]}),renderItem:(i,r)=>"_skeleton"in i?(0,y.jsx)(te,{},i.id):(0,y.jsx)(s.motion.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.4,delay:.05*r,ease:[.4,0,.2,1]},children:(0,y.jsx)(t.Box,{onClick:()=>e(i.id),cursor:"pointer",children:(0,y.jsx)(M.i,{clubService:i})})},i.id)})})})};var oe=r(71504);const le=[{id:"sumarnamskeid",backgroundVideo:"https://143309727.fs1.hubspotusercontent-eu1.net/hubfs/143309727/Video%20Clips/Youth%20sports%20-%20Q1%20-%20H265/Akranesm%C3%B3t%20Intro.mp4",subtitleKey:"promoBanner.sumarnamskeid.subtitle",titleKey:"promoBanner.sumarnamskeid.title",descriptionKey:"promoBanner.sumarnamskeid.description",buttonTextKey:"promoBanner.sumarnamskeid.buttonText",buttonLink:"/sumarnamskeid?country=IS&view=map",activeWindow:{from:{month:5,day:1},to:{month:8,day:20}}}],ae=()=>{const e=new Date;return le.find(i=>(({from:e,to:i},r)=>{const n=r.getFullYear(),t=new Date(n,e.month-1,e.day,0,0,0,0),s=new Date(n,i.month-1,i.day,23,59,59,999);return oe.dateService.isWithinInterval(r,t,s)})(i.activeWindow,e))},de=({banner:e})=>{const[i]=(0,a.useTranslation)(),r=e.buttonLink.startsWith("http"),n={display:"inline-flex",alignItems:"center",gap:"12px",color:"white",fontWeight:600,fontSize:{base:"16px",md:"20px"},lineHeight:{base:"1.44",md:"144%"},letterSpacing:"-0.32px",_hover:{textDecoration:"none",opacity:.85}};return(0,y.jsxs)(t.Box,{position:"relative",w:"100%",borderRadius:"20px",overflow:"hidden",minH:{base:"40vh",md:"50vh"},display:"flex",alignItems:"flex-end",pt:{base:"32px",md:"48px"},pr:{base:"24px",md:"8px"},pb:{base:"48px",md:"64px"},pl:{base:"24px",md:"64px"},bg:"transparent",children:[e.backgroundVideo?(0,y.jsx)(t.Box,{as:"video",position:"absolute",inset:0,w:"100%",h:"100%",objectFit:"cover",borderRadius:"20px",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:e.backgroundVideo}):e.backgroundImage?(0,y.jsx)(t.Box,{position:"absolute",inset:0,bgImage:`url(${e.backgroundImage})`,bgSize:"cover",bgPosition:"center",borderRadius:"20px"}):null,(0,y.jsx)(t.Box,{position:"absolute",inset:0,bg:"linear-gradient(0deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.58) 58%, rgba(0, 0, 0, 0) 100%)",borderRadius:"20px"}),(0,y.jsxs)(t.Box,{position:"relative",children:[(0,y.jsx)(t.Text,{fontSize:"16px",fontWeight:600,color:"white",textTransform:"uppercase",lineHeight:"150%",mb:2,children:i(e.subtitleKey)}),(0,y.jsx)(t.Heading,{as:"h1",fontSize:{base:"36px",md:"64px"},color:"white",fontWeight:600,lineHeight:"95%",letterSpacing:{base:"-1px",md:"-1.92px"},mb:3,children:i(e.titleKey)}),(0,y.jsx)(t.Text,{fontSize:{base:"16px",md:"28px"}
1,fontWeight:400,color:"white",lineHeight:"150%",maxW:{base:"320px",md:"600px"},mb:0,children:i(e.descriptionKey)}),(0,y.jsx)(t.Flex,{pt:"24px",pl:"8px",alignItems:"center",children:r?(0,y.jsxs)(t.Box,{as:"a",href:e.buttonLink,target:"_blank",rel:"noopener noreferrer",...n,children:[i(e.buttonTextKey),(0,y.jsx)(d.I,{type:"chevron-right",size:24,color:"white"})]}):(0,y.jsxs)(t.Box,{as:o.Link,to:e.buttonLink,...n,children:[i(e.buttonTextKey),(0,y.jsx)(d.I,{type:"chevron-right",size:24,color:"white"})]})})]})]})},ce=()=>{const e=ae();return e?(0,y.jsx)(de,{banner:e}):null};var ue=r(32486);const xe=()=>{const[e]=(0,a.useTranslation)();b();const i=(0,o.useLocation)().pathname.includes("sumarnamskeid"),[r]=(0,l.useQueryParam)("country",l.StringParam),[h,j]=(0,l.useQueryParam)("mode",l.StringParam),[v]=(0,l.useQueryParam)("region",l.StringParam),{filters:f,sortBy:I,setSortBy:w}=(0,x.R7)(),{viewType:T,mapStats:z}=(0,k.ID)(),{openProduct:L}=(0,P.H)();(0,R.$)({track:()=>B.z.track("Shop Landing Viewed"),skip:!1});const H=!(null==f||!f.isiClub),O=!!(null!=f&&f.birthYear||null!=f&&f.gender&&f.gender.length>0||null!=f&&f.sportType&&f.sportType.length>0||null!=f&&f.postalCode&&f.postalCode.length>0||null!=f&&f.productDateFrom||null!=f&&f.productDateTo||null!=f&&f.ageRestrictedOnly||null!=f&&f.resourceLocation||null!=f&&f.search||null!=f&&f.customTags&&Object.keys(f.customTags).length>0),E=r===p.q.IS&&H,M=E?u.Eg.find(e=>e.slug===v):void 0,F=null==M?void 0:M.districts,D=E?(0,u.Lm)(F):void 0,N=E?(0,u.Lm)(F):void 0,Y=E&&!O,V=i?"programs":"programs"===h||"clubs"===h?h:"discovery",G="programs"===V,Q=!!ae()&&r===p.q.IS&&"discovery"===V,J=i?["SUMMER_COURSES"]:void 0,X=(0,n.useCallback)(()=>{h||j("programs")},[h,j]);return(0,y.jsxs)(t.Box,{children:[(0,y.jsx)(S.k,{title:e("seo.marketplace")}),(0,y.jsxs)(t.Container,{maxW:{base:"100vw",md:"1000px",lg:"1600px"},px:{base:4,md:6,lg:8},borderRadius:"2xl",children:[r===p.q.IS?(0,y.jsx)(C,{}):null,Q&&(0,y.jsx)(t.Box,{mb:16,children:(0,y.jsx)(ce,{})}),(0,y.jsx)(t.Box,{mb:"50px",mt:Q?0:{base:0,md:-4},children:(0,y.jsx)(m.B,{placeholder:e("filters.search"),showLocationFilter:!0,onShowPrograms:X,regionFilters:N,regions:E?u.Eg:void 0})}),(0,y.jsx)(s.AnimatePresence,{mode:"wait",children:Y&&(0,y.jsx)(s.motion.div,{initial:{opacity:0,height:0,marginBottom:0},animate:{opacity:1,height:"auto",marginBottom:32},exit:{opacity:0,height:0,marginBottom:0},transition:{duration:.4,ease:[.4,0,.2,1]},style:{overflow:"hidden",paddingTop:"24px"},children:(0,y.jsxs)(t.Grid,{templateColumns:{base:"1fr",lg:"3fr 2fr"},gap:8,children:[(0,y.jsx)(t.Flex,{direction:"column",minH:{base:"auto",md:"auto",lg:"auto"},children:(0,y.jsxs)(t.Box,{flex:"1",children:[(0,y.jsx)(t.Heading,{as:"h1",size:{base:"xl",md:"2xl"},mb:6,children:e("siu.title")}),(0,y.jsx)(t.Text,{fontSize:{base:"md",md:"lg"},color:"gray.600",mb:6,children:e("siu.description")})]})}),(0,y.jsxs)(t.Box,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minH:"175px",children:[(0,y.jsx)(t.Box,{maxH:"280px",w:"100%",children:(0,y.jsx)(c.Z,{})}),(0,y.jsx)(t.Text,{fontSize:"xs",color:"text.placeholder",mt:2,textAlign:"center",children:e("map.isiRegionalOffices","Svæðisskrifstofur ÃSÃ/UMFÃ")})]})]})},"header-section")}),(0,y.jsxs)(t.Box,{mb:G?0:6,children:["discovery"!==V&&!i&&(0,y.jsx)(t.Box,{children:(0,y.jsx)($.L,{})}),G&&(0,y.jsxs)(t.Flex,{px:1.5,mt:6,mb:4,alignItems:"center",justifyContent:"space-between",gap:4,flexWrap:"wrap",children:[(0,y.jsx)(t.Flex,{alignItems:"center",gap:2,minW:"0",flex:"1",children:(0,y.jsx)(t.Text,{fontSize:{base:"md",md:"lg"},fontWeight:"semibold",color:"text.strong",whiteSpace:{base:"normal",md:"nowrap"},children:"map"===T&&z?e("programs.showingCount","Showing {{visible}} programmes of {{total}}",{visible:z.visible,total:z.total}):e("allPrograms","All programmes")})}),(0,y.jsxs)(t.Flex,{gap:2,alignItems:"center",flexShrink:0,children:[(0,y.jsxs)(t.Menu,{placement:"bottom-end",children:[(0,y.jsx)(t.MenuButton,{as:t.Button,bg:"transparent",_hover:{bg:"button.secondaryContrast._default"},_active:{bg:"button.secondaryContrast._default"},borderColor:"button.secondaryContrast._default",borderRadius:"2xl",px:4,py:3.5,w:36,size:"sm",rightIcon:(0,y.jsx)(d.I,{type:"chevron-down",size:16,color:"text.strong"}),display:{base:"none",md:"flex"},outline:"1px solid",outlineColor:"button.secondaryContrast._default",children:(0,y.jsxs)(t.Text,{fontSize:"14px",fontWeight:"500",color:"text.strong",lineHeight:1,textAlign:"left",children:[(!I||I===g.m.CREATION_TIME)&&e("filters.sortBy.new","New"),I===g.m.POPULARITY&&e("filters.sortBy.trending","Trending"),I===g.m.PRICE_LOW_TO_HIGH&&e("filters.sortBy.lowerPrice","Lower price"),I===g.m.PRICE_HIGH_TO_LOW&&e("filters.sortBy.highestPrice","Highest price")]})}),(0,y.jsxs)(t.MenuList,{zIndex:2,p:2,borderRadius:"2xl",children:[(0,y.jsxs)(t.MenuItem,{fontSize:"14px",fontWeight:"500",onClick:()=>w(g.m.CREATION_TIME),bg:I&&I!==g.m.CREATION_TIME?"transparent":"gray.50",borderRadius:"xl",py:5,px:3,_hover:{bg:"gray.100"},display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,y.jsx)(t.Text,{color:"text.strong",children:e("filters.sortBy.new","New")}),(!I||I===g.m.CREATION_TIME)&&(0,y.jsx)(d.I,{type:"check-1",size:10,
1color:"button.primary._default"})]}),(0,y.jsxs)(t.MenuItem,{fontSize:"14px",fontWeight:"500",onClick:()=>w(g.m.POPULARITY),bg:I===g.m.POPULARITY?"gray.50":"transparent",borderRadius:"xl",py:5,px:3,_hover:{bg:"gray.100"},display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,y.jsx)(t.Text,{color:"text.strong",children:e("filters.sortBy.trending","Trending")}),I===g.m.POPULARITY&&(0,y.jsx)(d.I,{type:"check-1",size:10,color:"button.primary._default"})]}),(0,y.jsxs)(t.MenuItem,{fontSize:"14px",fontWeight:"500",onClick:()=>w(g.m.PRICE_LOW_TO_HIGH),bg:I===g.m.PRICE_LOW_TO_HIGH?"gray.50":"transparent",borderRadius:"xl",py:5,px:3,_hover:{bg:"gray.100"},display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,y.jsx)(t.Text,{color:"text.strong",children:e("filters.sortBy.lowerPrice","Lower price")}),I===g.m.PRICE_LOW_TO_HIGH&&(0,y.jsx)(d.I,{type:"check-1",size:10,color:"button.primary._default"})]}),(0,y.jsxs)(t.MenuItem,{fontSize:"14px",fontWeight:"500",onClick:()=>w(g.m.PRICE_HIGH_TO_LOW),bg:I===g.m.PRICE_HIGH_TO_LOW?"gray.50":"transparent",borderRadius:"xl",py:5,px:3,_hover:{bg:"gray.100"},display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,y.jsx)(t.Text,{color:"text.strong",children:e("filters.sortBy.highestPrice","Highest price")}),I===g.m.PRICE_HIGH_TO_LOW&&(0,y.jsx)(d.I,{type:"check-1",size:10,color:"button.primary._default"})]})]})]}),(0,y.jsx)(k.fn,{})]})]})]}),"programs"===V&&(null==f?void 0:f.search)&&(0,y.jsx)(t.Box,{mb:6,children:(0,y.jsx)(q.c,{searchQuery:f.search,filters:N})}),"discovery"===V&&(0,y.jsxs)(y.Fragment,{children:[r===p.q.IS?(0,y.jsxs)(t.Grid,{templateColumns:{base:"minmax(0, 1fr)",lg:"minmax(0, 1fr) minmax(260px, 360px)"},gap:"16px",mb:8,alignItems:"start",children:[(0,y.jsx)(A,{}),(0,y.jsx)(K,{})]}):(0,y.jsx)(ue.B,{}),(0,y.jsx)(ne,{openProduct:L}),r===p.q.IS&&(0,y.jsx)(se,{openProduct:L}),r===p.q.IS&&(0,y.jsx)(t.Box,{mb:8,children:(0,y.jsx)(W,{openProduct:L})}),(0,y.jsx)(t.Box,{mb:8,children:(0,y.jsx)(U.V,{openProduct:L,filters:D})}),(0,y.jsx)(_.l,{filters:N})]}),"programs"===V&&(0,y.jsx)(t.Box,{mb:8,children:(0,y.jsx)(U.V,{showAll:!0,openProduct:L,filters:D,category:J})}),"clubs"===V&&(0,y.jsx)(t.Box,{mb:8,children:(0,y.jsx)(_.l,{showAll:!0,filters:N})})]})]})},me=()=>(0,y.jsx)(k.IM,{children:(0,y.jsx)(xe,{})})}}]);
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.