1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[939],{7154:(e,t,n)=>{n.d(t,{ShareButtons:()=>a});var r=n(5155),o=n(2115);function a(e){let{title:t,path:n}=e,[a,m]=(0,o.useState)(!1),[f,v]=(0,o.useState)("https://ergoterapie.cz");(0,o.useEffect)(()=>{v(window.location.origin)},[]);let w="".concat(f).concat(n),b=encodeURIComponent(w),j=encodeURIComponent(t),x=async()=>{try{await navigator.clipboard.writeText(w),m(!0),setTimeout(()=>m(!1),2e3)}catch(e){}};return(0,r.jsxs)("div",{className:"flex flex-wrap gap-1.5","aria-label":"Sd\xedlet",children:[(0,r.jsx)(l,{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(b),label:"Sd\xedlet na Facebook",children:(0,r.jsx)(s,{})}),(0,r.jsx)(l,{href:"https://twitter.com/intent/tweet?url=".concat(b,"&text=").concat(j),label:"Sd\xedlet na X",children:(0,r.jsx)(c,{})}),(0,r.jsx)(l,{href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(b),label:"Sd\xedlet na LinkedIn",children:(0,r.jsx)(u,{})}),(0,r.jsx)(l,{href:"mailto:?subject=".concat(j,"&body=").concat(b),label:"Sd\xedlet e-mailem",external:!1,children:(0,r.jsx)(h,{})}),(0,r.jsx)("button",{type:"button",onClick:x,"aria-label":a?"Zkop\xedrov\xe1no":"Kop\xedrovat odkaz",title:a?"Zkop\xedrov\xe1no":"Kop\xedrovat odkaz",className:i,children:a?(0,r.jsx)(p,{}):(0,r.jsx)(d,{})})]})}let i="flex h-9 w-9 items-center justify-center rounded-full border border-line text-ink-muted transition-colors hover:border-brand hover:bg-brand-tint hover:text-brand-deep";function l(e){let{href:t,label:n,external:o=!0,children:a}=e;return(0,r.jsx)("a",{href:t,"aria-label":n,title:n,target:o?"_blank":void 0,rel:o?"noopener noreferrer":void 0,className:i,children:a})}function s(){return(0,r.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M14 9h3V5h-3c-1.65 0-3 1.35-3 3v2H8v4h3v8h4v-8h3l1-4h-4V8c0-.55.45-1 1-1z"})})}function c(){return(0,r.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}function u(){return(0,r.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M20.45 20.45h-3.55v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.36V9h3.41v1.56h.05c.47-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.45v6.29zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.72v20.56C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.72V1.72C24 .77 23.2 0 22.22 0z"})})}function h(){return(0,r.jsxs)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,r.jsx)("path",{d:"m3 7 9 6 9-6"})]})}function d(){return(0,r.jsxs)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,r.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})}function p(){return(0,r.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M5 12l5 5L20 7"})})}},7376:(e,t,n)=>{n.d(t,{z:()=>l});var r=n(5155),o=n(2619),a=n.n(o),i=n(7154);function l(e){let{title:t,description:n,breadcrumbs:o,path:l,showShare:s=!0}=e,c=null!=o?o:[];return(0,r.jsxs)("header",{className:"relative overflow-hidden border-b border-line bg-gradient-to-br from-brand-soft via-brand/15 to-brand-strong/25",children:[(0,r.jsx)("div",{className:"absolute inset-0 grid-bg opacity-40"}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-full bg-gradient-to-l from-brand-strong/35 via-brand/10 to-transparent"}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 hidden w-1.5 bg-brand-strong sm:block"}),(0,r.jsxs)("div",{className:"relative mx-auto max-w-7xl px-4 py-4 sm:px-6 sm:py-5",children:[c.length>1&&(0,r.jsxs)("nav",{className:"mb-2 flex flex-wrap items-center gap-1.5 text-xs text-ink-soft","aria-label":"Breadcrumbs",children:[c.slice(0,-1).map(e=>(0,r.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(a(),{href:e.path,className:"hover:text-ink",children:e.title}),(0,r.jsx)("span",{className:"opacity-40",children:"/"})]},e.id)),(0,r.jsx)("span",{className:"text-ink-muted",children:c[c.length-1].title})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between sm:gap-8",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1 border-l-4 border-brand-strong pl-3 sm:pl-4",children:[(0,r.jsx)("h1",{className:"font-display text-xl leading-snug text-ink sm:text-2xl",children:t}),n&&(0,r.jsx)("p",{className:"mt-1.5 max-w-3xl text-sm text-ink-muted sm:text-base",children:n})]}),s&&(0,r.jsx)("div",{className:"sm:shrink-0 sm:pb-1",children:(0,r.jsx)(i.ShareButtons,{title:t,path:l})})]})]})]})}},9494:(e,t,n)=>{n.d(t,{Cr:()=>N,D3:()=>i,DQ:()=>c,E5:()=>k,L6:()=>m,MT:()=>z,NV:()=>O,QL:()=>E,Vb:()=>g,Vh:()=>y,Y7:()=>T,Yi:()=>L,ZK:()=>f,_Q:()=>p,fC:()=>d,gE:()=>P,gv:()=>v,h:()=>a,j:()=>h,km:()=>Z,lO:()=>o,mj:()=>B,my:()=>u,n$:()=>S,oe:()=>A,q5:()=>C,rR:()=>l,t0:()=>j,tA:()=>x,uZ:()=>w,vT:()=>I,vx:()=>s});let r="cae.member.token";async function o(){let e=w();if(!e)return[];let t=await fetch("/api/members/me/groups",{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json():[]}async function a(){let e=w();if(!e)return null;let t=await fetch("/api/members/me/membership-status",{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json():null}async function i(){let e=w();if(!e)return[];let t=await fetch("/api/members/map",{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json():[]}async function l(e,t){let n=w();if(!n)throw Error("Nejste pÅihl\xe1Å¡eni.");let r=await fetch("/api/members/contact",{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({targetNumber:e,message:t})});if(!r.ok){var o;let e=await r.json().catch(()=>({}));throw Error(null!=(o=null==e?void 0:e.error)?o:"Zpr\xe1vu se nepodaÅilo odeslat.")}}async function s(){let e=w();if(!e)return[];let t=await fetch("/api/members/contact-topics",{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json():[]}let c=5,u=10;async function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=w();if(!r)throw Error("Nejste pÅihl\xe1Å¡eni.");let o=new FormData;for(let r of(o.append("topicId",e),o.append("message",t),n))o.append("attachments",r,r.n
1ame);let a=await fetch("/api/members/contact-form",{method:"POST",headers:{Authorization:"Bearer ".concat(r)},body:o});if(!a.ok){var i;let e=await a.json().catch(()=>({}));throw Error(null!=(i=null==e?void 0:e.error)?i:"Zpr\xe1vu se nepodaÅilo odeslat.")}}async function d(){let e=w();if(!e)return null;let t=await fetch("/api/members/me/membership-payment",{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json():null}async function p(e){let t=w();if(!t)throw Error("NepÅihl\xe1Å¡en\xfd uživatel.");let n=await fetch("/api/members/me/identity-change-request",{method:"POST",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},body:JSON.stringify(e)});if(!n.ok){var r;let e=await n.json().catch(()=>({}));throw Error(null!=(r=null==e?void 0:e.error)?r:"Ž\xe1dost se nepodaÅilo odeslat.")}}async function m(e){let t=w();if(!t)throw Error("NepÅihl\xe1Å¡en\xfd uživatel.");let n=await fetch("/api/member-auth/me",{method:"PUT",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},body:JSON.stringify(e)});if(!n.ok){var r;let e=await n.json().catch(()=>({}));throw Error(null!=(r=null==e?void 0:e.error)?r:"Uložen\xed selhalo.")}return n.json()}function f(e){if(!e)return!1;let t=new Date(e);if(Number.isNaN(t.getTime()))return!1;let n=new Date;return n.setHours(0,0,0,0),t.getTime()>=n.getTime()}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:31;if(!e)return"expired";let n=new Date(e);if(Number.isNaN(n.getTime()))return"expired";let r=new Date;r.setHours(0,0,0,0);let o=Math.round((n.getTime()-r.getTime())/864e5);return o<0?"expired":o<t?"expiring":"ok"}function w(){return window.localStorage.getItem(r)}function b(e){window.localStorage.setItem(r,e)}function j(){window.localStorage.removeItem(r)}async function x(e){let t=await fetch("/api/member-auth/request-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});if(!t.ok){var n;if(429===t.status)throw Error("PÅ\xedliÅ¡ mnoho pokusů. Zkuste to za chv\xedli znovu.");let e=await t.json().catch(()=>({}));throw Error(null!=(n=null==e?void 0:e.error)?n:"NepodaÅilo se odeslat k\xf3d.")}let r=await t.json().catch(()=>({}));return{sent:(null==r?void 0:r.sent)!==!1,pendingApproval:(null==r?void 0:r.pendingApproval)===!0}}async function g(e,t){let n=await fetch("/api/member-auth/verify-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,code:t})});if(!n.ok){var r;if(429===n.status)throw Error("PÅ\xedliÅ¡ mnoho pokusů. Zkuste to za chv\xedli znovu.");let e=await n.json().catch(()=>({}));throw Error(null!=(r=null==e?void 0:e.error)?r:"Neplatn\xfd k\xf3d.")}let o=await n.json();return b(o.token),o}let k="1096188561390-jbu5go6prfio75f9kal0jcak40hlp3tj.apps.googleusercontent.com";async function y(e){let t=await fetch("/api/member-auth/google",{method:"POST",headers:{Authorization:"Bearer ".concat(e)}});if(!t.ok){var n;if(429===t.status)throw Error("PÅ\xedliÅ¡ mnoho pokusů. Zkuste to za chv\xedli znovu.");let e=await t.json().catch(()=>({}));throw Error(null!=(n=null==e?void 0:e.error)?n:"PÅihl\xe1Å¡en\xed pÅes Google se nepodaÅilo.")}let r=await t.json();return(null==r?void 0:r.pendingApproval)!==!0&&(b(r.token),!0)}async function z(e){let t=await fetch("/api/public/member-verification/request-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});if(!t.ok){var n;if(429===t.status)throw Error("PÅ\xedliÅ¡ mnoho pokusů. Zkuste to za chv\xedli znovu.");let e=await t.json().catch(()=>({}));throw Error(null!=(n=null==e?void 0:e.error)?n:"NepodaÅilo se odeslat k\xf3d.")}let r=await t.json().catch(()=>({}));return{sent:(null==r?void 0:r.sent)!==!1,pendingApproval:(null==r?void 0:r.pendingApproval)===!0,inactive:(null==r?void 0:r.inactive)===!0}}async function N(e,t){let n=await fetch("/api/public/member-verification/verify-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,code:t})});if(!n.ok){var r;if(429===n.status)throw Error("PÅ\xedliÅ¡ mnoho pokusů. Zkuste to za chv\xedli znovu.");let e=await n.json().catch(()=>({}));throw Error(null!=(r=null==e?void 0:e.error)?r:"Neplatn\xfd k\xf3d.")}return n.json()}async function A(){let e=w();if(!e)return null;let t=await fetch("/api/member-auth/me",{headers:{Authorization:"Bearer ".concat(e)}});return 401===t.status?(j(),null):t.ok?t.json():null}async function B(){let e=w();if(!e)return[];let t=await fetch("/api/members/menu",{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json():[]}async function C(e){let t=w();if(!t)return null;let n=await fetch("/api/members/pages?path=".concat(encodeURIComponent(e)),{headers:{Authorization:"Bearer ".concat(t)}});return 404!==n.status&&n.ok?n.json():null}async function S(){let e=w();if(!e)return[];let t=await fetch("/api/members/job-offers",{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json():[]}async function T(e){let t=w();if(!t)return null;let n=await fetch("/api/members/job-offers/".concat(encodeURIComponent(e)),{headers:{Authorization:"Bearer ".concat(t)}});return 404!==n.status&&n.ok?n.json():null}async function E(){let e=w();if(!e)return[];let t=await fetch("/api/members/webinars",{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json():[]}async function O(e){let t=w();if(!t)return null;let n=await fetch("/api/members/webinars/".concat(encodeURIComponent(e)),{headers:{Authorization:"Bearer ".concat(t)}});return 404!==n.status&&n.ok?n.json():null}function P(e){if(!e)return null;for(let t of[/youtu\.be\/([a-zA-Z0-9_-]{11})/,/youtube\.com\/watch\?(?:.*&)?v=([a-zA-Z0-9_-]{11})/,/youtube\.com\/embed\/([a-zA-Z0-9_-]{11})/,/youtube\.com\/shorts\/([a-zA-Z0-9_-]{11})/]){let n=e.match(t);if(n)return n[1]}return null}function Z(e){return"https://img.youtube.com/vi/".concat(e,"/hqdefault.jpg")}async function L(){let e=w();if(!e)return[];let t=await fetch("/api/members/discount-codes",{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json():[]}async function I(e){let t=w();if(!t)return null;let n=await fetch("/api/members/discount-codes/".concat(encodeURIComponent(e)),{headers:{Authorization:"Bearer ".concat(t)}});return 404!==n.status&&n.ok?n.json():null}}}]);
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.