(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{717:(e,t,r)=>{"use strict";r.d(t,{ServiceWorker:()=>i});var n=r(2115);function i(e){let{actif:t=!0}=e;return(0,n.useEffect)(()=>{if("serviceWorker"in navigator){if(!t)return void navigator.serviceWorker.getRegistrations().then(e=>e.forEach(e=>e.unregister())).catch(()=>{});navigator.serviceWorker.register("/sw.js").catch(()=>{})}},[t]),null}},734:(e,t,r)=>{"use strict";r.d(t,{U:()=>s,Y:()=>i});let n="cyceo.tenantActif";function i(){return window.localStorage.getItem(n)}function s(e){window.localStorage.setItem(n,e)}},2478:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3673,23)),Promise.resolve().then(r.bind(r,6300)),Promise.resolve().then(r.bind(r,717))},3587:(e,t,r)=>{"use strict";r.d(t,{F:()=>d,s:()=>f});var n=r(5155),i=r(1461),s=r(9776),c=r(7554),o=r(9914),l=r(1900),u=r(2115),a=r(734);let d=(0,o.pY)();function f(e){let{children:t}=e,[r]=(0,u.useState)(()=>new i.E({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1,retry:(e,t)=>{var r;let n=null==t||null==(r=t.data)?void 0:r.httpStatus;return("number"!=typeof n||!(n>=400)||!(n<500))&&e<2}}}})),[o]=(0,u.useState)(()=>d.createClient({links:[(0,c.fu)({url:"/api/trpc",transformer:l.Ay,headers(){let e=(0,a.Y)();return e?{"x-tenant-id":e}:{}}})]}));return(0,n.jsx)(d.Provider,{client:o,queryClient:r,children:(0,n.jsx)(s.Ht,{client:r,children:t})})}},3673:()=>{},6300:(e,t,r)=>{"use strict";r.d(t,{Providers:()=>c});var n=r(5155),i=r(6199),s=r(3587);function c(e){let{children:t}=e;return(0,n.jsx)(i.CP,{children:(0,n.jsx)(s.s,{children:t})})}}},e=>{e.O(0,[978,643,199,441,255,358],()=>e(e.s=2478)),_N_E=e.O()}]);