PageSourceSearch

https://wbk-assets.webook.com/0.7.8.2/assets/index-CSneY5EZ.js

js webook.com collected 2026-10-03 20:45:46 UTC 7,155 bytes, 1 lines download raw bytes

1import{j as e,Y as S}from"./@wbk/hooks-FtCTMeyH.js";import{h as P,u as T,f as M,r as L,e as y,L as z}from"./vendor-Cc9w-i99.js";import{i as C}from"./@wbk/queue-8-09eRJS.js";import{u as E}from"./@wbk/analytics-B-_ZPhJq.js";import{bj as I,b8 as $,bk as A,bd as O}from"./@wbk/contentful-C-wfS48z.js";import{F as X,E as B,S as F}from"./index-DZ2Htu0z.js";import{B as h,l as j,T as u,w as N}from"./@wbk/ui-DZdD23Ta.js";import{o as R,bc as G,bn as w}from"./@wbk/svg-Bua7FxzL.js";import{R as U}from"./Reveal-AQvT_OmM.js";import{u as v}from"./react-i18next-Dxy0wzdl.js";import{C as D}from"./@wbk/currency-BxlCDaIM.js";import"./@wbk/api-DFKMxA3e.js";import"./@wbk/config-DuwrGB8a.js";import"./@wbk/logger-DfNVpG3P.js";import"./react-hook-form-D_m77UuM.js";import"./@wbk/auth-Djoddyo0.js";import"./@wbk/ticketing-Og7zkUfp.js";import"./@wbk/payment-cL5x8D1N.js";import"./@wbk/flights-Cjxxns74.js";import"./@wbk/hotels-CFdSoV_6.js";import"./@smc/ads-C1pDiBF5.js";import"./i18next-http-backend-C2uFdLra.js";import"./i18next-Ce0fiPMx.js";import"./i18next-browser-languagedetector-Bv2FoO1s.js";import"./react-helmet-BcOPeyN0.js";import"./@wbk/auction-CsNezADS.js";const k=7,q=({total:s,skip:l=k})=>{const{t:c}=v("common"),[n]=P(),{pathname:p}=T(),m=M(),r=Number(n.get("page")||1),t=Math.ceil(s/l),b=s>l,i=L.useMemo(()=>{const a=r-1,o=a>1,x=a>2,g=r+1,f=g<t,_=g<t-1;return{prev:a,hasPrev:o,hasMorePrev:x,next:g,hasNext:f,hasMoreNext:_}},[r,t]);if(!b)return null;const d=a=>{const o=new URLSearchParams(n);if(a==="prev")Math.max(1,r-1)===1?o.delete("page"):o.set("page",`${Math.max(1,r-1)}`);else if(a==="next")o.set("page",`${Math.min(r+1,t)}`);else{const f=Math.max(1,a);f===1?o.delete("page"):o.set("page",`${f}`)}const x=o.toString(),g=x?`?${x}`:"";m(`${p}${g}`),setTimeout(()=>{S()},100)};return e.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 font-sans",children:[r>1&&e.jsx("button",{disabled:r===1,className:"bg-body-level-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-full border disabled:pointer-events-none disabled:opacity-30",onClick:()=>d("prev"),children:e.jsx("img",{src:"/icons/common/arrow.svg",width:20,height:20,className:"ltr:rotate-180",alt:c("common:back")})}),e.jsx(h,{theme:r===1?"primary":"white",shape:r===1?"solid":"text",phill:!1,rounded:!0,onClick:()=>{r>1&&d(1)},children:"1"}),i.hasMorePrev&&e.jsx("span",{className:"text-zinc-400",children:"..."}),i.hasPrev&&e.jsx(h,{theme:"white",shape:"text",phill:!1,rounded:!0,onClick:()=>{d(i.prev)},children:i.prev},i.prev),r>1&&r<t&&e.jsx(h,{phill:!1,rounded:!0,children:r}),i.hasNext&&e.jsx(h,{theme:"white",shape:"text",phill:!1,rounded:!0,onClick:()=>{d(i.next)},children:i.next},i.next),i.hasMoreNext&&e.jsx("span",{className:"text-zinc-400",children:"..."}),e.jsx(h,{theme:r===t?"primary":"white",shape:r===t?"solid":"text",phill:!1,rounded:!0,onClick:()=>{r<t&&d(t)},children:t}),r<t&&e.jsx("button",{onClick:()=>d("next"),className:"bg-body-level-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-full border disabled:pointer-events-none disabled:opacity-30",disabled:r===t,children:e.jsx("img",{src:"/icons/common/arrow.svg",width:20,height:20,className:"rtl:rotate-180",alt:c("common:back")})})]})},H=({event:s,onClick:l})=>{var m,r;const{lang:c}=y(),{t:n}=v(["common","event"]),p=I(s.__typename);return e.jsxs(h,{as:z,to:`/${c}/${p}/${s.slug}`,onClick:l,className:"bg-body-level-1 gap-M w-full justify-start ltr:text-left rtl:text-right",theme:"white",shape:"text",phill:!1,rounded:!0,children:[e.jsx(j,{src:(m=s.image11)==null?void 0:m.url,className:"h-20 w-20 rounded-md object-cover"}),e.jsxs("div",{className:"flex flex-1 justify-between",children:[e.jsxs("div",{className:"",children:[e.jsx(u,{variant:"label-L",children:s.title}),e.jsx($,{schedule:s.schedule,showIcon:!1}),((r=s.zone)==null?void 0:r.title)&&e.jsxs("div",{className:"text-text-secondary flex items-center gap-2",children:[e.jsx(R,{className:"h-4 w-4"}),e.jsx(u,{variant:"body-S",children:s.zone.title})]})]}),e.jsxs("div",{className:"gap-M hidden items-center md:flex",children:[e.jsxs("div",{className:"gap-XXS flex items-center",children:[e.jsx(u,{variant:"body-S",children:n("event:starts_from")}
1),e.jsx(D,{originalPrice:s.startingPrice,currency:s.currencyCode})]}),e.jsx(h,{as:"div",children:e.jsx(u,{as:"span",variant:"body-L",strong:!0,children:n("event:book_now")})})]})]})]})},W=({organization:s})=>{var i,d;const[l]=P(),{lang:c}=y(),{t:n}=v("event"),p=l.get("page"),m=k,r={lang:c,limit:m,skip:(Number(p)-1)*m,where:{organizationSlug:s.slug}},{data:t,isLoading:b}=A(r);return(i=t==null?void 0:t.items)!=null&&i.length?e.jsxs("section",{className:"space-y-L py-L container",children:[e.jsx(u,{variant:"heading-S",children:n("event:upcoming_events")}),e.jsx("ul",{className:"space-y-4",children:t==null?void 0:t.items.map((a,o)=>{const x=o%1*.1;return e.jsx(U,{as:"li",direction:"bottom",delay:x,className:"flex items-center gap-2",children:e.jsx(H,{organization:s,event:a})},a.id+o)})}),!b&&!((d=t==null?void 0:t.items)!=null&&d.length)&&e.jsx("div",{className:"mx-auto flex h-[200px] items-center justify-center p-4",children:e.jsxs("div",{className:"mx-auto space-y-4 font-semibold text-zinc-400",children:[e.jsx(G,{className:"mx-auto h-28 w-28"}),e.jsx("p",{className:"text-center",children:n("event:no_events_available")})]})}),e.jsx(q,{total:(t==null?void 0:t.total)||0})]}):null},Y=({data:s})=>e.jsxs("section",{className:"relative w-full pb-12",children:[e.jsx(j,{className:"relative inset-0 hidden aspect-[4/1] w-full object-cover md:block",src:s.poster}),e.jsx(j,{className:"relative inset-0 block w-full object-cover md:hidden",src:s.poster}),e.jsx(N,{data:{title:s==null?void 0:s.name,text:s==null?void 0:s.description},hideText:!0,icon:e.jsx(w,{}),className:"bg-body-level-2 border-paper-level-2 absolute right-4 top-4 h-12 w-12 rounded-full p-0 md:hidden"}),e.jsxs("div",{className:"rounded-t-L bg-body container relative -mt-4 flex items-end justify-center md:-mt-16 md:justify-between md:bg-transparent",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center gap-5 md:flex-row md:items-end",children:[s.logo&&e.jsx(j,{src:s.logo,className:"bg-body-level-2 border-paper-level-2 -mt-10 h-24 w-24 shrink-0 rounded-full border object-contain p-4 md:mt-0 md:h-44 md:w-44 md:p-6"}),e.jsx("div",{className:"space-y-XS text-center md:text-start",children:e.jsx(u,{strong:!0,variant:"heading-XXL",children:s.name})})]}),e.jsx("div",{children:e.jsx(N,{data:{title:s==null?void 0:s.name,text:s==null?void 0:s.description},icon:e.jsx(w,{}),className:"hidden gap-x-2 border-opacity-10 md:flex"})})]})]}),ye=()=>{const{lang:s,slug:l}=y(),{t:c}=v(["common","event"]),{data:n,isLoading:p}=C({slug:l,lang:s}),{viewItemEvent:m}=E();return L.useEffect(()=>{n&&m({event:{_id:n._id,slug:l||"",title:n.name}})},[n]),p?e.jsx(X,{}):n?e.jsxs(e.Fragment,{children:[e.jsx(F,{title:n.name,description:n.description,image:n.poster}),e.jsx(Y,{data:n}),e.jsx(W,{organization:n}),e.jsx(O,{title:c("common:newsletter.title"),subtitle:c("common:newsletter.description"),type:"organization",interests:[n.slug],slug:n.slug})]}):e.jsx(B,{})};export{ye as default};

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.