PageSourceSearch

https://www.ffhandball.fr/wp-content/plugins/smartfire-blocks-proj…competitions---bottom-bar.74dc32f1.chunk.js

js ffhandball.fr collected 2026-10-02 03:05:05 UTC 24,342 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksmartfire=self.webpackChunksmartfire||[]).push([[4553],{5637:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ee});var o=n(87363),s=n(63733),i=n(29954),l=n(36351);const a="styles_component__8XILf",r="styles_arrow__zmcIi",c="styles_bottomLine__dx++p";var d=n(80184);const u=()=>(0,d.jsxs)("a",{href:(0,l.ct)({}),className:a,children:["Retrouvez toutes les comp\xe9titions",(0,d.jsx)("i",{className:(0,s.Z)("fi fi-rs-angle-small-right",r)}),(0,d.jsx)("div",{className:c})]}),m="styles_component__10-k7",v="styles_heart__LtdT7",f="styles_line__L6EFO",p="styles_logo__KeD2I",h="styles_surtitle__HDPUm",_="styles_name__qBQtQ",E="styles_slash__w03AZ",w="styles_subtitle__r+naE",y={COUPE_DE_FRANCE:"Coupe de France",NATIONAL:"National",REGIONAL:"Re\u0301gional",DEPARTEMENTAL:"De\u0301partemental",INTER_LIGUES:"Interligues",INTER_COMITES:"Inter-comite\u0301s"},I=e=>{var t;let{favorite:n,logo:o,libelle:i,type:a,structureLibelle:r,href:c,subtitle:u}=e;return(0,d.jsxs)("a",{href:c,className:m,title:i,children:[n?(0,d.jsx)("i",{className:(0,s.Z)("fi fi-rs-heart",v),title:"Competition favorie"}):null,(0,d.jsxs)("div",{className:f,children:[o?(0,d.jsx)("img",{src:null!==(t=(0,l.Qw)(o,64))&&void 0!==t?t:"",alt:"",title:i,className:p}):null,(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:h,children:[y[a],r?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:E,children:"/"}),r]}):null]}),(0,d.jsx)("div",{className:_,children:i}),(0,d.jsx)("div",{className:w,children:u})]})]})]})};var L=n(64761),x=n(31372),g=n(83005),S=n(41814),b=n(33524);const C={colors:"(primary: (blue: #051371, red: #ef0808, white: #ffffff, black: #1d1d1d, gold: #d6c278), blue: (5: #f9faff, 10: #edeef6, 20: #e3e5f2, 30: #c3c6e2, 40: #9da5d7, 50: #4856ac, 60: #1f2b6f, 70: #051371, 80: #0a1663, 85: #0c1757, 90: #0e164a, 100: #030829), red: (10: #fce8e4, 20: #f8cac1, 30: #f6a292, 40: #f17760, 50: #ea6147, 60: #dd4a2e, 70: #ef0808, 80: #aa240a, 90: #841505, 100: #440a02))",laptopBreakpoint:"1200px",tabletBreakpoint:"990px",mobileBreakpoint:"600px",blue10:"#edeef6",blue20:"#e3e5f2",blue30:"#c3c6e2",blue40:"#9da5d7",blue80:"#0a1663",blue100:"#030829",red10:"#fce8e4",red20:"#f8cac1",red30:"#f6a292",red40:"#f17760",red:"#ef0808",blue:"#051371",white:"#fff",black:"#1d1d1d",gold:"#d6c278",minMarginMobile:"15px","content-width":"styles_content-width__04a3r","content-post-width":"styles_content-post-width__zKl02","overflow-without-scrollbar":"styles_overflow-without-scrollbar__yiGHd","custom-list-style":"styles_custom-list-style__-LOYM","common-input":"styles_common-input__q2q0W",item:"styles_item__R-6lX",component:"styles_component__dZTbi",error:"styles_error__QFewW",prompt:"styles_prompt__yaTKN",title:"styles_title__n9ItI",scores:"styles_scores__Sp-EI",team:"styles_team__KzfSL",home:"styles_home__Vv2M9",name:"styles_name__yIypO",score:"styles_score__Of5Yx",icon:"styles_icon__ZkTcp",loading:"styles_loading__PL04d"};var O=n(73587),A=n(59654);const N=e=>{let{href:t,title:n,error:o,loading:i,homeName:l,homeScore:a,homeIcon:r,awayName:c,awayScore:u,awayIcon:m,date:v,status:f,className:p}=e;return(0,d.jsxs)("a",{href:t,className:(0,s.Z)(C.component,p,i&&C.loading),title:n,children:[o?(0,d.jsx)("div",{className:C.error,title:"Erreur de synchro, veuilliez rafra\xeechir le site.",children:"\u26a0\ufe0f"}):null,(0,d.jsx)("div",{className:C.prompt,children:(0,d.jsx)(A.w,{status:f,date:v})}),(0,d.jsx)("div",{className:C.title,children:n}),(0,d.jsxs)("div",{className:C.scores,children:[(0,d.jsxs)("div",{className:(0,s.Z)(C.team,C.home),children:[(0,d.jsx)("span",{className:C.name,children:l}),(0,d.jsx)(O.Q,{imageUrl:r,className:C.icon,title:`Drapeau ${l}`}),(0,d.jsx)("span",{className:C.score,children:null!==a&&void 0!==a?a:"_"})]}),(0,d.jsx)("span",{children:"-"}),(0,d.jsxs)("div",{className:(0,s.Z)(C.team,C.away),children:[(0,d.jsx)("span",{className:C.score,children:null!==u&&void 0!==u?u:"_"}),(0,d.jsx)(O.Q,{imageUrl:m,className:C.icon,title:`Drapeau ${c}`}),(0,d.jsx)("span",{className:C.name,children:c})]})]})]})};var T=n(80999),k=n(63951),j=n(83737);const M=e=>{var t,n,o,s,i,l,a,r,c,u,m,v,f,p;let{matchFormatted:h}=e;const _=(0,T.M1)(h.statsperformid),{homeContestant:E,awayContestant:w}=(0,j.v)(h.statsperformid);return(null===_||void 0===_||null===(t=_.data)||void 0===t?void 0:t.matchInfo)&&E&&w?(0,d.jsx)(N,{href:h.link,title:`${_.data.matchInfo.competition.name} - ${_.data.matchInfo.round.name}`,error:_.error,homeName:null!==(n=null===E||void 0===E?void 0:E.name)&&void 0!==n?n:"",homeIcon:(0,g.CO)(E.logo),homeScore:null===(o=_.data)||void 0===o||null===(s=o.liveData)||void 0===s||null===(i=s.matchDetails.scores)||void 0===i||null===(l=i.final)||void 0===l?void 0:l.home,awayName:null!==(a=null===w||void 0===w?void 0:w.name)&&void 0!==a?a:"",awayIcon:(0,g.CO)(w.logo),awayScore:null===(r=_.data)||void 0===r||null===(c=r.liveData)||void 0===c||null===(u=c.matchDetails.scores)||void 0===u||null===(m=u.final)||void 0===m?void 0:m.away,status:null!==(v=null===(f=_.data)||void 0===f||null===(p=f.liveData)||void 0===p?void 0:p.matchDetails.matchStatus)&&void 0!==v?v:"Fixture",date:(0,k.uw)(_.data.matchInfo)}):null},V=e=>{let{liveMatchs:t}=e;return t?(0,d.jsx)(d.Fragment,{children:t.map((e=>(0,d.jsx)(M,{matchFormatted:e},e.post_id)))}):null},P="styles_wrapper__edK9H",R="styles_itemsWrapper__6k71i",D="style_mobileContainer__Z98CA",$="style_item__pd3GJ",G="style_ignored__bJZai",K="style_link__xzcsd",B="style_close__ehu7j";var U;function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},F.apply(this,arguments)}function Y(e,t){let{title:n,titleId:s,...i}=e;return o.createElement("svg",F({width:9,height:9,viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},i),n?o.createElement("title",{id:s},n):null,U||(U=o.createElement("g",{id:"01 align center"},o.createElement("path",{id:"Vector",d:"M8.69234 1.19173L7.80859 0.307983L4.50047 3.61611L1.19234 0.307983L0.308594 1.19173L3.61672 4.49986L0.308594 7.80798L1.19234 8.69173L4.50047 5.38361L7.80859 8.69173L8.69234 7.80798L5.38422 4.49986L8.69234 1.19173Z",fill:"#9DA5D7"}))))}const X=o.forwardRef(Y);n.p;var Z=n(19719);const z=[],H=e=>Array.isArray(e)&&e.every((e=>"number"===typeof e)),W=e=>{var t,n,i,l,a,r,c,u,m,v,f,p;let{matchFormatted:h}=e;const _=document.body.classList,{ignoredLiveMatch:E,addIgnoredLiveMatch:w}=(()=>{const{value:e,setValue:t}=(0,Z.G)({key:b.i.IGNORED_MOBILE_LIVE_MATCH.LOCAL_STORAGE_KEY,defaultValue:z,getItemV
1alidation:H});return{ignoredLiveMatch:e,addIgnoredLiveMatch:(0,o.useCallback)((e=>{t((t=>[e,...t].filter(((e,t,n)=>n.indexOf(e)===t)).slice(0,b.i.IGNORED_MOBILE_LIVE_MATCH.MAX_ITEMS)))}),[t])}})(),y=(0,T.M1)(h.statsperformid),{homeContestant:I,awayContestant:L}=(0,j.v)(h.statsperformid),x=(null===y||void 0===y||null===(t=y.data)||void 0===t?void 0:t.matchInfo)&&I&&L,S=_.contains("single-live_match")&&_.contains(`postid-${h.post_id}`);if(!x||S)return null;const C=E.includes(h.post_id);return(0,d.jsxs)("div",{className:(0,s.Z)($,C&&G),children:[(0,d.jsx)("div",{className:B,onClick:()=>w(h.post_id),children:(0,d.jsx)(X,{})}),(0,d.jsx)(N,{href:h.link,title:`${y.data.matchInfo.competition.name}`,error:y.error,homeName:"",homeIcon:(0,g.CO)(I.logo),homeScore:null===(n=y.data)||void 0===n||null===(i=n.liveData)||void 0===i||null===(l=i.matchDetails.scores)||void 0===l||null===(a=l.final)||void 0===a?void 0:a.home,awayName:"",awayIcon:(0,g.CO)(L.logo),awayScore:null===(r=y.data)||void 0===r||null===(c=r.liveData)||void 0===c||null===(u=c.matchDetails.scores)||void 0===u||null===(m=u.final)||void 0===m?void 0:m.away,status:null!==(v=null===(f=y.data)||void 0===f||null===(p=f.liveData)||void 0===p?void 0:p.matchDetails.matchStatus)&&void 0!==v?v:"Fixture",date:(0,k.uw)(y.data.matchInfo),className:K})]})},q=e=>{let{liveMatchs:t}=e;return t?(0,d.jsx)("div",{className:D,children:t.map((e=>(0,d.jsx)(W,{matchFormatted:e},e.post_id)))}):null},Q=e=>{let{liveMatchs:t=[]}=e;const{favoritesPoules:n}=(0,x.Hu)(),{lastVieweds:s}=(0,x.Uv)(),{cachedUserCompetitions:i}=(0,x.d4)(),{cachedCoupes:a}=(0,x.NK)(),r=[].concat(n.map((e=>({competitionExtId:e.extCompetitionId,pouleExtId:e.extPouleId,itemType:"favoritePoule"})))).concat(s.map((e=>({competitionExtId:e,itemType:"lastViewed"})))).concat(a.map((e=>({competitionExtId:Number(e.ext_competitionId),itemType:"coupe"})))).filter(((e,t,n)=>"favoritePoule"===e.itemType||n.findIndex((t=>t.competitionExtId===e.competitionExtId))===t)).slice(0,b.i.MAX_ITEMS),c=(0,o.useMemo)((()=>r.map((e=>{const t=e.itemType,n="coupe"===t?a.find((t=>t.ext_competitionId===String(e.competitionExtId))):"favoritePoule"===t?i.find((t=>(0,S.pE)(t)&&t.ext_pouleId===String(e.pouleExtId))):i.find((t=>t.ext_competitionId===String(e.competitionExtId)));return n?{...n,itemType:t}:void 0})).filter(Boolean)),[a,i,r]),u=(0,o.useRef)(null);return(e=>{const[t,n]=(0,o.useState)(!1),[s,i]=(0,o.useState)(!1),[l,a]=(0,o.useState)(0),[r,c]=(0,o.useState)(0),d=(0,o.useCallback)((t=>{if(!e.current)return;const o=t instanceof TouchEvent?t.touches[0].pageX:t.pageX;n(!0),a(o-e.current.offsetLeft),c(e.current.scrollLeft)}),[e]),u=(0,o.useCallback)((()=>{n(!1),setTimeout((()=>{i(!1)}),50)}),[]),m=(0,o.useCallback)((n=>{if(n.preventDefault(),!t)return;if(!e.current)return;i(!0);const o=(n instanceof TouchEvent?n.touches[0].pageX:n.pageX)-e.current.offsetLeft-l;e.current.scrollLeft=r-o}),[t,e,r,l]),v=(0,o.useCallback)((e=>{s&&e.preventDefault()}),[s]);(0,o.useEffect)((()=>{const t=e.current;return null===t||void 0===t||t.addEventListener("mousemove",m),null===t||void 0===t||t.addEventListener("mousedown",d),null===t||void 0===t||t.addEventListener("mouseup",u),null===t||void 0===t||t.addEventListener("mouseleave",u),null===t||void 0===t||t.addEventListener("touchmove",m),null===t||void 0===t||t.addEventListener("touchstart",d),null===t||void 0===t||t.addEventListener("touchend",u),null===t||void 0===t||t.addEventListener("touchcancel",u),null===t||void 0===t||t.addEventListener("click",v),()=>{null===t||void 0===t||t.removeEventListener("mousemove",m),null===t||void 0===t||t.removeEventListener("mousedown",d),null===t||void 0===t||t.removeEventListener("mouseup",u),null===t||void 0===t||t.removeEventListener("mouseleave",u),null===t||void 0===t||t.removeEventListener("touchmove",m),null===t||void 0===t||t.removeEventListener("touchstart",d),null===t||void 0===t||t.removeEventListener("touchend",u),null===t||void 0===t||t.removeEventListener("touchcancel",u),null===t||void 0===t||t.removeEventListener("click",v)}}),[m,v,e,d,u])})(u),(0,d.jsxs)("div",{className:R,ref:u,children:[(0,d.jsx)(V,{liveMatchs:t}),c.map((e=>(0,d.jsx)(I,{logo:e.logo,type:e.type,libelle:e.libelle,structureLibelle:e.structureLibelle,subtitle:(0,S.pE)(e)?`${e.phaseLibelle} - ${e.pouleLibelle}
1`:void 0,href:(0,l.ct)({ext_saison_id:e.extSaisonId,url_competition_type:S.Nv[e.type],url_competition:`${(0,g.lV)(e.libelle)}-${e.ext_competitionId}`,ext_poule_id:(0,S.pE)(e)?e.ext_pouleId:void 0}),favorite:"favoritePoule"===e.itemType},`p-${(0,S.pE)(e)?e.ext_pouleId:"0"},c-${e.ext_competitionId}`)))]})},J=e=>{const t=window.location.pathname.startsWith("/competitions"),n=!(0,L.ac)("(max-width: 990px)");return t?null:(0,d.jsxs)("div",{className:(0,s.Z)(P,"competition"),children:[(0,d.jsx)(u,{}),n&&(0,d.jsx)(Q,{...e}),!n&&(0,d.jsx)(q,{liveMatchs:e.liveMatchs})]})},ee=(0,i.defineBlock)({Block:e=>(0,d.jsx)(i.BlockWrapper.Without,{children:(0,d.jsx)(J,{...e})})})},33524:(e,t,n)=>{n.d(t,{i:()=>i});var o=n(97892),s=n.n(o);const i={MAX_ITEMS:6,FAVORITE:{LOCAL_STORAGE_KEY:"favoriteComps.v2"},IGNORED_MOBILE_LIVE_MATCH:{LOCAL_STORAGE_KEY:"ignoredLiveMatch.v1",MAX_ITEMS:10},LAST_VIEWED:{LOCAL_STORAGE_KEY:"lastViewedComps.v1",MAX_ITEMS:10},USER_COMPS:{LOCAL_STORAGE_KEY:"userComps.v2",EXPIRATION:{LOCAL_STORAGE_KEY:"userCompsExpire.v2",getNewExpiration:()=>s().utc().endOf("day").toISOString()}},COUPES:{SESSION_STORAGE_KEY:"currentCoupes.v1"}}},31372:(e,t,n)=>{n.d(t,{NK:()=>A,Hu:()=>m,Uv:()=>p,d4:()=>b});var o=n(87363),s=n(19719),i=n(33524);const l=[],a=()=>{const{setValue:e}=(0,s.G)({key:i.i.USER_COMPS.LOCAL_STORAGE_KEY,defaultValue:l}),{setValue:t}=(0,s.G)({key:i.i.USER_COMPS.EXPIRATION.LOCAL_STORAGE_KEY,defaultValue:""});return{clearUserCompetitionCache:(0,o.useCallback)((()=>{e(l),t("")}),[e,t])}};var r=n(83005);const c=[],d=e=>Array.isArray(e)&&e.every((e=>{if("string"!==typeof e)return!1;const t=e.split(",");return 2===t.length&&((0,r.kE)(t[0])&&(0,r.kE)(t[1]))})),u=e=>{let{extPouleId:t,extCompetitionId:n}=e;return`${t},${n}`},m=()=>{const{value:e,setValue:t}=(0,s.G)({key:i.i.FAVORITE.LOCAL_STORAGE_KEY,defaultValue:c,getItemValidation:d}),{clearUserCompetitionCache:n}=a(),l=(0,o.useCallback)((e=>{let{extPouleId:o,extCompetitionId:s}=e;t((e=>e.includes(u({extPouleId:o,extCompetitionId:s}))?e:[u({extPouleId:o,extCompetitionId:s}),...e])),n()}),[n,t]),r=(0,o.useCallback)((e=>{let{extPouleId:o,extCompetitionId:s}=e;t((e=>e.includes(u({extPouleId:o,extCompetitionId:s}))?e.filter((e=>e!==u({extPouleId:o,extCompetitionId:s}))):e)),n()}),[n,t]);return{favoritesPoules:(0,o.useMemo)((()=>e.map((e=>{const[t,n]=e.split(",");return{extPouleId:Number(t),extCompetitionId:Number(n)}}))),[e]),addFavorite:l,removeFavorite:r}},v=[],f=e=>Array.isArray(e)&&e.every((e=>"number"===typeof e)),p=()=>{const{value:e,setValue:t}=(0,s.G)({key:i.i.LAST_VIEWED.LOCAL_STORAGE_KEY,defaultValue:v,getItemValidation:f}),{clearUserCompetitionCache:n}=a();return{lastVieweds:e,addLastViewed:(0,o.useCallback)((e=>{t((t=>[e,...t].filter(((e,t,n)=>n.indexOf(e)===t)).slice(0,i.i.LAST_VIEWED.MAX_ITEMS))),n()}),[n,t])}};var h=n(97892),_=n.n(h),E=n(83027),w=n.n(E),y=n(71865),I=n.n(y),L=n(41814);_().extend(w());const x=[],g=e=>Array.isArray(e),S=e=>"string"===typeof e&&_()(e).isValid(),b=()=>{const{value:e,setValue:t}=(0,s.G)({key:i.i.USER_COMPS.LOCAL_STORAGE_KEY,defaultValue:x,getItemValidation:g}),{value:n,setValue:l}=(0,s.G)({key:i.i.USER_COMPS.EXPIRATION.LOCAL_STORAGE_KEY,defaultValue:"",getItemValidation:S}),{favoritesPoules:a}=m(),{lastVieweds:c}=p(),d=c.filter(((e,t,n)=>n.indexOf(e)===t)),u=d.sort(((e,t)=>e-t)).join(","),v=a.map((e=>e.extPouleId)).sort(((e,t)=>e-t)).join(","),f=(0,o.useCallback)((async()=>{const o=n&&_().utc(n).isAfter(_().utc()),s=d.length>0&&0===e.filter((e=>!(0,L.pE)(e))).length,c=a.length>0&&0===e.filter((e=>(0,L.pE)(e))).length;if(!o||s||c)try{const e=await I()({path:`competitions/v1/competitions/?competition_ids=${u}&poule_ids=${v}`}),n=(0,r.Rz)(e);t(n),l(i.i.USER_COMPS.EXPIRATION.getNewExpiration())}catch(m){console.error(m)}}),[n,d.length,a.length,e,u,v,t,l]);return(0,o.useEffect)((()=>{f()}),[f]),{cachedUserCompetitions:e}},C=[],O=e=>Array.isArray(e),A=()=>{const{value:e,setValue:t}=(0,s.G)({key:i.i.COUPES.SESSION_STORAGE_KEY,defaultValue:C,getItemValidation:O,persistence:"sessionStorage"}),[n,l]=(0,o.useState)(0===e.length),a=(0,o.useCallback)((async()=>
1{if(n)try{const e=await I()({path:"competitions/v1/competitions/coupes-de-france"}),n=(0,r.Rz)(e);t(n)}catch(e){console.error(e)}finally{l(!1)}}),[t,n]);return(0,o.useEffect)((()=>{a()}),[a]),{cachedCoupes:e}};n(92978)},92978:(e,t,n)=>{n.d(t,{k:()=>r});var o=n(87363),s=n(71865),i=n.n(s),l=n(83005),a=n(21889);const r=()=>{const e=(0,o.useCallback)((async e=>{var t;if(null!==(t=e.state)&&void 0!==t&&t.competitionParams){(e=>{const t=document.querySelector('link[rel="canonical"]');null!==t&&t.setAttribute("href",e)})(window.location.href);try{var n,o,s;const t=new URLSearchParams(e.state),r=await i()({path:`competitions/v1/tunnel_seo?${t.toString()}`}),c=(0,l.Rz)(r);window.document.title=null===(n=c.head)||void 0===n?void 0:n.meta_title,(e=>{const t=document.querySelector('meta[name="description"]');null!==t&&t.setAttribute("content",e)})(null===(o=c.head)||void 0===o?void 0:o.description);const d=new CustomEvent(a.z1.UPDATE_PAGE_HEADER_EVENT_NAME,{detail:{title:null===(s=c.head)||void 0===s?void 0:s.H1,breadcrumb:c.breadcrumb}});dispatchEvent(d)}catch{}}}),[]);(0,o.useEffect)((()=>(window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)})),[e])}},64761:(e,t,n)=>{n.d(t,{tD:()=>o.t,c4:()=>i,ac:()=>l.a,$e:()=>u,C7:()=>m.C,iP:()=>v.i});var o=n(16856),s=n(87363);const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ad-submit-form";const[n,o]=(0,s.useState)(Boolean(e));return(0,s.useEffect)((()=>{if(!e)return;const n=document.getElementById(t),s=e.replace(/^\s*/,"").replace(/\s*$/,"").replace(" ","^").replace(" ","^").split("^");if(3!==s.length)return;let[i,l,a]=s,r=[];for(;a.match(/[()[\]"']/);)a=a.replace(/[()[\]"']/,"");r=a.split(/\s*,\s*/);const c=((e,t)=>{var n;if(!e)return;const o=null===(n=Object.entries(e).find((e=>{let[n,o]=e;return!isNaN(n)&&(null===o||void 0===o?void 0:o.name)===t})))||void 0===n?void 0:n[1];return o||void 0})(n,i);if(!c)return;const d=e=>{var t,n;let s=null===(t=e.target)||void 0===t?void 0:t.value;var i;null!==(n=s)&&void 0!==n&&n.includes("^")&&(s=null===(i=s)||void 0===i?void 0:i.split("^")[1]);((e,t,n,s)=>{switch(t){case"=":o(e!==n);break;case"!=":o(e===n);break;case"LIKE":o(!e.includes(n));break;case"NOT_LIKE":o(e.includes(n));break;case"IN":o(!s.includes(e));break;case"NOT_IN":o(s.includes(e));break;case"EXISTS":o(!e);break;case"NOT_EXISTS":o(Boolean(e));break;default:o(!0)}})(s,l,a,r)},u="select"===c.tagName?"change":"input";return c.addEventListener(u,d),()=>{null===c||void 0===c||c.removeEventListener(u,d)}}),[e,t]),n};var l=n(24635),a=n(29954),r=n(65218);var c=n(71865),d=n.n(c);const u=(e,t)=>{const{isEditing:n}=(0,a.useEditor)(),[o,i]=(0,s.useState)(!1);return{isLoading:o,formHandler:async o=>{if(o.preventDefault(),o.stopPropagation(),n)return;i(!0);const s=o.currentTarget,l=new FormData(s);Object.entries(s).forEach((e=>{let[t,n]=e;isNaN(t)||null!==n&&void 0!==n&&n.required&&"file"!==(null===n||void 0===n?void 0:n.type)&&(l.append(n.name+"*",n.value),l.delete(n.name))}));try{await d()({path:e,method:"POST",body:l}),setTimeout((()=>window.scrollTo(0,0)),100),s.reset(),t&&t()}catch(a){let e="";Object.entries(a).forEach((t=>e+=t[1])),r.ZP.error(e)}finally{i(!1)}}}};var m=n(32216),v=n(46527)},16856:(e,t,n)=>{n.d(t,{Z:()=>a,t:()=>r});var o=n(87363),s=n(64761);const i="990px",l="600px",a=e=>{var t,n;return e&&null!==(t=null===(n=e[0])||void 0===n?void 0:n.anchor)&&void 0!==t?t:""},r=e=>{let{anchors:t,scrollAtRender:n=!1}=e;const[r,c]=(0,o.useState)(window.location.hash),[d,u]=(0,o.useState)({}),[m,v]=(0,o.useState)({up:[],down:[]}),f=(0,s.C7)({initialDirection:"up",thresholdPixels:0}),p=(0,s.iP)(),h=(0,s.ac)("(max-width: "+i+")"),_=(0,s.ac)("(max-width: "+l+")"),E=(0,o.useMemo)((()=>a(t)),[t]),w=(0,o.useMemo)((()=>_?90:h?95:0),[_,h]),y=(0,o.useCallback)((()=>{if(!t)return;const e={up:[],down:[]};null===t||void 0===t||t.forEach((t=>{if(null!==t&&void 0!==t&&t.anchor){const n=document.getElementById(t.anchor.replace("#",""));if(n){const o=n.offsetTop;e.up.push(o-w),e.down.push(o),u((e=>({...e,[o]:t.anchor,[o-w]:t.anchor})))}}
1null!==t&&void 0!==t&&t.subAnchors&&t.subAnchors.forEach((t=>{if(null!==t&&void 0!==t&&t.anchor){const n=document.getElementById(t.anchor.replace("#",""));if(n){const o=n.offsetTop;e.up.push(o-w),e.down.push(o),u((e=>({...e,[o]:t.anchor,[o-w]:t.anchor})))}}}))})),e.up.sort(((e,t)=>t-e)),e.down.sort(((e,t)=>t-e)),v(e)}),[t,w]),I=(e,t)=>{let n=e.offsetTop;return e.getBoundingClientRect().top<0&&(n-=t),n},L=(0,o.useCallback)((e=>{let t=document.getElementById(e.replace("#",""));t&&window.scrollTo({top:I(t,w),behavior:"smooth"});const n=e.includes("#")?e:`#${e}`;window.history.pushState({},"",`${window.location.pathname}${window.location.search}${n}`)}),[w]),x=(0,o.useCallback)((()=>{m[f].every(((e,t)=>e<=window.scrollY?(c((t=>t!==d[e]?d[e]:t)),!1):(t===m[f].length-1&&c((e=>e!==E?E:e)),!0)))}),[m,f,d,E]);return(0,o.useEffect)((()=>{const e=setTimeout(y,100);return()=>clearTimeout(e)}),[y,p.width,p.height]),(0,o.useEffect)((()=>{const e=setInterval((()=>{y()}),3e3),t=()=>{y(),clearInterval(e)};return window.addEventListener("load",t),()=>{window.removeEventListener("load",t)}}),[y]),(0,o.useEffect)((()=>(document.addEventListener("scroll",x),()=>{document.removeEventListener("scroll",x)})),[x]),(0,o.useEffect)((()=>{window.location.hash||x()}),[x]),(0,o.useEffect)((()=>{if(!n||!window.location.hash)return;const e=setTimeout((()=>{L(window.location.hash)}),100);return()=>clearTimeout(e)}),[]),{activeAnchor:r,setActiveAnchor:c,scrollToAnchor:L}}},19719:(e,t,n)=>{n.d(t,{G:()=>m});var o=n(87363);const s="localStorage";function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;"undefined"!==typeof window||l||a();try{return window[e]}catch(t){return a(t),null}}let l=!1;function a(e){l||(console.warn("Browser storage is not available.\nPossible reasons: running this website in an iframe, in an incognito browser session, or using too strict browser privacy settings.",null!==e&&void 0!==e?e:""),l=!0)}const r=JSON.stringify,c=JSON.parse;function d(e){let{key:t,getItemValidation:n,decode:o=c,persistence:l=s}=e;const a=function(e,t){const n=i(null===t||void 0===t?void 0:t.persistence);if(null===n)return{isSuccessful:!1};try{return{isSuccessful:!0,item:n.getItem(e)}}catch(o){return console.error(`Browser storage error, can't get key=${e}`,o),{isSuccessful:!1}}}(t,{persistence:l});if(!a.isSuccessful||null===a.item)return{isSuccessful:!1};let r;try{r=o(a.item)}catch(d){return console.error(`Failed to parse ${l} of key=${t}'s value`,d),{isSuccessful:!1}}try{if(n&&!n(r))return console.error(`${l} of key=${t}'s value is not valid`),{isSuccessful:!1}}catch(d){return console.error(`Failed to validate ${l} of key=${t}'s value`,d),{isSuccessful:!1}}return{isSuccessful:!0,value:r,item:a.item}}function u(e){let t,{key:n,value:o,encode:l=r,persistence:a=s}=e;try{t=l(o)}catch(d){return console.error(`Failed to encode value: ${o}`,d),{isSuccessful:!1}}const c=function(e,t,n){const o=i(null===n||void 0===n?void 0:n.persistence);if(null===o)return!1;try{return o.setItem(e,t),!0}catch(d){return console.error(`Browser storage error, can't set ${e}=${t}`,d),!1}}(n,t,{persistence:a});return c?{isSuccessful:!0,encoded:t}:{isSuccessful:!1}}const m=e=>{let{key:t,defaultValue:n,getItemValidation:s,encode:i=r,decode:l=c,persistence:a}=e;const[m,v]=(0,o.useState)((()=>{const e=d({key:t,getItemValidation:s,decode:l,persistence:a});return e.isSuccessful?e.value:n})),f=(0,o.useCallback)((e=>{if("function"===typeof e){const o=d({key:t,getItemValidation:s,decode:l,persistence:a}),r=e(o.isSuccessful?o.value:n),{isSuccessful:c}=u({key:t,value:r,encode:i,persistence:a});return void(c&&v(e))}const{isSuccessful:o}=u({key:t,value:e,encode:i,persistence:a});o&&v(e)}),[l,n,i,s,t,a]);return(0,o.useEffect)((()=>{const e=e=>{if(e.key!==t)return;const o=d({key:t,getItemValidation:s,decode:l,persistence:a});v(o.isSuccessful?o.value:n)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[l,n,s,t,a]),{value:m,setValue:f}}},24635:(e,t,n)=>{n.d(t,{a:()=>s});var o=n(87363);function s(e){const t=e=>"undefined"!==typeof window&&window.matchMedia(e).matches,[n,s]=(0,o.useState)(t(e));function i(){s(t(e))}return(0,o.useEffect)((()=>{const t=window.matchMedia(e);return i(),t.addListener?t.addListener(i):t.addEventListener("change",i
1),()=>{t.removeListener?t.removeListener(i):t.removeEventListener("change",i)}}),[e]),n}},32216:(e,t,n)=>{n.d(t,{C:()=>s});var o=n(87363);const s=e=>{let{initialDirection:t,thresholdPixels:n,off:s}=e;const[i,l]=(0,o.useState)(t);return(0,o.useEffect)((()=>{const e=n||0;let o=window.pageYOffset,i=!1;const a=()=>{const t=window.pageYOffset;Math.abs(t)<e||(l(t>o?"down":"up"),o=t>0?t:0),i=!1},r=()=>{i||(window.requestAnimationFrame(a),i=!0)};return s?l(t):window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)}),[t,n,s]),i}},46527:(e,t,n)=>{n.d(t,{i:()=>s});var o=n(87363);function s(){const[e,t]=(0,o.useState)({width:0,height:0});return(0,o.useEffect)((()=>{function e(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e}}}]);
2//# sourceMappingURL=block-competitions---bottom-bar.74dc32f1.chunk.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.