"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7259],{30704:function(e,a,t){t.d(a,{Z:function(){return n}});var n=(0,t(55052).Z)("loader-2","IconLoader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]])},19149:function(e,a,t){t.d(a,{Z:function(){return c}});var n=t(74512),r=t(55052),i=(0,r.Z)("exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]),s=t(30704),l=(0,r.Z)("checks","IconChecks",[["path",{d:"M7 12l5 5l10 -10",key:"svg-0"}],["path",{d:"M2 12l5 5m5 -5l5 -5",key:"svg-1"}]]),c=function(e){return(0,n.jsx)("div",{className:"fixed bottom-10 right-10 z-50 border-l-4 border-green-400 bg-green-50 p-4",children:(0,n.jsxs)("div",{className:"flex",children:[e.isError&&(0,n.jsx)("div",{className:"flex-shrink-0",children:(0,n.jsx)(i,{size:24,className:"stroke-red-400","aria-hidden":"true"})}),(0,n.jsx)("div",{className:"flex-shrink-0",children:e.isLoading?(0,n.jsx)(s.Z,{size:24,className:"animate-spin stroke-green-400","aria-hidden":"true"}):(0,n.jsx)(l,{size:24,className:"stroke-green-400","aria-hidden":"true"})}),(0,n.jsx)("div",{className:"ml-3",children:(0,n.jsxs)("p",{className:"text-sm text-green-700",children:["This page is in preview mode."," ",(0,n.jsx)("span",{className:"font-medium text-green-700 underline",children:"It will refresh automatically every 3 seconds, with your draft changes."})]})})]})})}},81694:function(e,a,t){var n=t(74512),r=t(35837),i=t(83836);a.Z=function(e){var a;let t=(0,r.useRouter)(),s="https://www.origins-digital.com";return(0,n.jsx)(i.PB,{title:e.title.slice(0,60),description:e.description.slice(0,160),openGraph:{title:e.title,description:e.description.slice(0,200),images:null===(a=e.images)||void 0===a?void 0:a.map(e=>({url:e+"?q=80&w=480"}))},nofollow:"nofollow"===e.robots,noindex:"noindex"===e.robots,twitter:{handle:"@handle",site:"@site",cardType:"summary_large_image"},languageAlternates:(()=>{var e;let a=null!==(e="en".split(",").filter(e=>"en"!==e))&&void 0!==e?e:[],n=t.asPath;return[{hrefLang:"en",href:"".concat(s).concat(n)},{hrefLang:"x-default",href:"".concat(s).concat(n)},...a.map(e=>({hrefLang:e,href:"".concat(s,"/").concat(e).concat(n)}))]})(),canonical:"".concat(s).concat(t.asPath)})}},85821:function(e,a,t){var n=t(74512),r=t(32735),i=t(82070),s=t.n(i),l=t(35837),c=t(47069);let o=s()(()=>Promise.all([t.e(4864),t.e(51),t.e(4742),t.e(527)]).then(t.bind(t,30527)),{loadableGenerated:{webpack:()=>[30527]}}),d=s()(()=>Promise.all([t.e(4864),t.e(51),t.e(4742),t.e(5443)]).then(t.bind(t,65443)),{loadableGenerated:{webpack:()=>[65443]}}),u=s()(()=>Promise.all([t.e(4864),t.e(51),t.e(4742),t.e(5197)]).then(t.bind(t,35197)),{loadableGenerated:{webpack:()=>[35197]}}),b=s()(()=>t.e(3426).then(t.bind(t,73426)),{loadableGenerated:{webpack:()=>[73426]}}),m=s()(()=>Promise.all([t.e(1701),t.e(9090)]).then(t.bind(t,70712)),{loadableGenerated:{webpack:()=>[70712]},ssr:!1}),h=s()(()=>Promise.all([t.e(4864),t.e(4742),t.e(6458)]).then(t.bind(t,66458)),{loadableGenerated:{webpack:()=>[66458]}}),p=s()(()=>Promise.all([t.e(9005),t.e(4864),t.e(51),t.e(9908),t.e(4742),t.e(7654)]).then(t.bind(t,20064)),{loadableGenerated:{webpack:()=>[20064]}}),k=s()(()=>Promise.all([t.e(4864),t.e(51),t.e(4742),t.e(3299)]).then(t.bind(t,93299)),{loadableGenerated:{webpack:()=>[93299]}}),_=s()(()=>Promise.all([t.e(4864),t.e(4742),t.e(320),t.e(4819)]).then(t.bind(t,24819)),{loadableGenerated:{webpack:()=>[24819]}}),y=s()(()=>Promise.all([t.e(4864),t.e(4742),t.e(320),t.e(8835)]).then(t.bind(t,78835)),{loadableGenerated:{webpack:()=>[78835]}}),f=s()(()=>Promise.all([t.e(4864),t.e(4742),t.e(320),t.e(2205)]).then(t.bind(t,2205)),{loadableGenerated:{webpack:()=>[2205]}}),P=s()(()=>Promise.all([t.e(4864),t.e(51),t.e(4742),t.e(4873)]).then(t.bind(t,14873)),{loadableGenerated:{webpack:()=>[14873]}}),w=s()(()=>t.e(8175).then(t.bind(t,8175)),{loadableGenerated:{webpack:()=>[8175]}}),g=s()(()=>t.e(3500).then(t.bind(t,3500)),{loadableGenerated:{webpack:()=>[3500]}}),v=s()(()=>Promise.all([t.e(3981),t.e(5553),t.e(9265)]).then(t.bind(t,9265)),{loadableGenerated:{webpack:()=>[9265]}}),x=s()(()=>t.e(1957).then(t.bind(t,61957)),{loadableGenerated:{webpack:()=>[61957]}}),E=s()(()=>t.e(1264).then(t.bind(t,51264)),{loadableGenerated:{webpack:()=>[51264]}}),G=s()(()=>Promise.all([t.e(4864),t.e(51),t.e(7675)]).then(t.bind(t,57675)),{loadableGenerated:{webpack:()=>[57675]}}),j=s()(()=>t.e(5726).then(t.bind(t,45726)),{loadableGenerated:{webpack:()=>[45726]}}),N=s()(()=>t.e(6819).then(t.bind(t,96819)),{loadableGenerated:{webpack:()=>[96819]}}),Z=s()(()=>t.e(7392).then(t.bind(t,57392)),{loadableGenerated:{webpack:()=>[57392]}}),L=s()(()=>Promise.all([t.e(51),t.e(2775),t.e(4785)]).then(t.bind(t,40572)),{loadableGenerated:{webpack:()=>[40572]}}),I=s()(()=>Promise.all([t.e(51),t.e(2775),t.e(6678)]).then(t.bind(t,78905)),{loadableGenerated:{webpack:()=>[78905]}}),M=s()(()=>Promise.all([t.e(4864),t.e(51),t.e(3436),t.e(4742),t.e(6110),t.e(9618)]).then(t.bind(t,4068)),{loadableGenerated:{webpack:()=>[4068]}}),q=s()(()=>t.e(5358).then(t.bind(t,95358)),{loadableGenerated:{webpack:()=>[95358]}});a.Z=function(e){let{sections:a,overload:t}=e,i=(0,l.useRouter)(),{data:s}=(0,c.O)(),C=a.length>0&&["section_hero","dynamic_slider","static_slider","section_ad_banner"].some(e=>e===a[0].type)?1:0;return(0,n.jsx)(n.Fragment,{children:null==a?void 0:a.map((e,a)=>{let l=C===a?C:void 0;switch(e.type){case"section_accordion":return(0,r.createElement)(j,{...e,key:e.id,breadcrumbPosition:l});case"section_ad_banner":return(0,r.createElement)(N,{...e,key:e.id,breadcrumbPosition:l});case"section_bloc_duo":return(0,r.createElement)(h,{...e,key:e.id,breadcrumbPosition:l});case"section_partners_sponsors":return(0,r.createElement)(b,{...e,key:e.id,breadcrumbPosition:l});case"static_grid_news":return(0,r.createElement)(f,{...e,key:e.id,breadcrumbPosition:l});case"static_grid_edito":return(0,r.createElement)(y,{...e,key:e.id,breadcrumbPosition:l});case"static_carousel_edito":return(0,r.createElement)(o,{...e,key:e.id,breadcrumbPosition:l});case"static_carousel_news":return(0,r.createElement)(u,{...e,key:e.id,breadcrumbPosition:l});case"carousel_events":return(0,r.createElement)(k,{...e,key:e.type+a+i.asPath,breadcrumbPosition:l});case"dynamic_carousel":return(0,r.createElement)(d,{...e,key:e.id,breadcrumbPosition:l});case"api":case"mailto":return(0,r.createElement)(m,{...e,key:e.type+a+i.asPath,breadcrumbPosition:l});case"dynamic_grid_news":return(0,r.createElement)(_,{...e,key:e.id,breadcrumbPosition:l});case"dynamic_slider":case"static_slider":if(2===s)return(0,r.createElement)(I,{...e,key:e.id});return(0,r.createElement)(L,{...e,key:e.id});case"section_hero":return(0,r.createElement)(g,{...e,key:e.type+a+i.asPath});case"countdown":case"quote":return(0,r.createElement)(w,{...e,key:e.id,breadcrumbPosition:l});case"rich_text":return(0,r.createElement)(x,{...e,key:e.id,breadcrumbPosition:l});case"ranking_football":return(0,r.createElement)(v,{...e,key:e.type+a+i.asPath,breadcrumbPosition:l});case"section___sports___news":return(0,r.createElement)(M,{...e,key:e.type+a+i.asPath,breadcrumbPosition:l});case"section___top_performers":return(0,r.createElement)(G,{...e,key:e.type+a+i.asPath,breadcrumbPosition:l});case"section___swisslos_banner":return(0,r.createElement)(E,{...e,key:e.type+a+i.asPath,breadcrumbPosition:l});case"section___hero_static_news":return(0,r.createElement)(P,{...e,key:e.type+a});case"section___order_of_play__tennis_":return(0,r.createElement)(p,{...e,key:e.type+a,breadcrumbPosition:l});case"section_tour_ranking_tennis":return(0,r.createElement)(q,{...e,key:e.type+a,breadcrumbPosition:l});default:return t?t(e):(0,n.jsx)(Z,{type:e.type+a+i.asPath},a)}})})}},19493:function(e,a,t){t.d(a,{U:function(){return r}});var n=t(35837);function r(){let e=(0,n.useRouter)(),a="1"===e.query.__vercel_draft,t="true"===e.query.preview||void 0;return{isVercelDraftMode:a,isPreview:t,refetchInterval:a||t?3e3:void 0}}},47069:function(e,a,t){t.d(a,{O:function(){return i}});var n=t(35837),r=t(11523);function i(){var e;let a=(0,n.useRouter)();return r.L.webConfig.getOne.useQuery({language:null!==(e=a.locale)&&void 0!==e?e:a.defaultLocale},{select:e=>+e.UIVersion})}},67259:function(e,a,t){t.d(a,{ZP:function(){return b}});var n=t(74512),r=t(32735);t(83751);var i=t(35837);t(45312);var s=t(11523),l=t(19149),c=t(85821),o=t(81694),d=t(19493);t(73027);var u=t(33080);function b(e){var a,t;let{page:b,webConfig:m,pageId:h}=e,p=(0,i.useRouter)();(0,r.useEffect)(()=>{p.asPath.includes("?")&&p.push(p.asPath.split("?")[0])},[]);let{refetchInterval:k,isPreview:_,isVercelDraftMode:y}=(0,d.U)(),{data:f,isFetching:P,isError:w}=s.L.page.getOne.useQuery({[h]:null!==(a=p.query.id)&&void 0!==a?a:"home",previewFlag:_||y,language:null!==(t=p.locale)&&void 0!==t?t:p.defaultLocale},{initialData:b,refetchInterval:k});if(!f)return null;let g=(0,u.$)({seo:b.SEO,webConfig:m});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{...g}),(0,n.jsx)("h1",{className:"absolute hidden",children:g.title}),_&&(0,n.jsx)(l.Z,{isLoading:P,isError:w}),(0,n.jsx)(c.Z,{...f})]})}}}]);