PageSourceSearch

https://wbk-assets.webook.com/0.7.8/assets/index-D914KgfJ.js

js webook.com collected 2026-09-25 15:16:51 UTC 5,649 bytes, 3 lines download raw bytes

1import{u as k,j as s}from"./@wbk/hooks-BlLlWTp9.js";import{bS as G,aS as A,g as R}from"./@wbk/queue-DaHNt4dN.js";import{r as S,e as y}from"./vendor-Cc9w-i99.js";import{aT as z,b6 as B}from"./@wbk/contentful-9uMqmgoA.js";import{F,E as I,S as O}from"./index-CriLyxpO.js";import{E as P,a as _,B as g,b as v,H as T,A as H,S as M,N as J}from"./Hero-B4-bVB9b.js";import{u as m}from"./react-i18next-Dxy0wzdl.js";import{u as D,l as V,t as W}from"./@wbk/ui-Bq7l3oiK.js";import{R as $}from"./Reveal-CUC2LvqY.js";import{m as q}from"./@wbk/svg-HUfKeBgT.js";import"./@wbk/api-BgBdL-BO.js";import"./@wbk/config-CNzyBjC_.js";import"./@wbk/logger-DfNVpG3P.js";import"./react-hook-form-D_m77UuM.js";import"./@wbk/auth-AbxUcDmb.js";import"./@wbk/analytics-DE0c17Pa.js";import"./@wbk/currency-B7PYjEev.js";import"./@wbk/ticketing-BIN3h7yH.js";import"./@wbk/payment-CMegBHo6.js";import"./@wbk/flights-zxddM6AH.js";import"./@wbk/hotels-5c6KxmYL.js";import"./@smc/ads-x_0QwEKi.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-BYo4kjve.js";const K=({events:i,season:n})=>{const{t:o}=m("jcsa"),{isMobile:e}=k(),[r,a]=S.useState(e?4:8),c=()=>{a(t=>t+(e?4:8))};return i.length?s.jsxs("section",{id:"jcsa-events-section",className:"container py-10",children:[s.jsx("h2",{className:"mb-5 text-2xl md:text-3xl",children:o("jcsa:hospitality_experience")}),s.jsxs("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2 md:grid-cols-3 lg:md:grid-cols-4",children:[i.map((t,l)=>s.jsx(P,{slug:t.slug,poster:t.poster,title:t.title,venue_name:t.venue_name||"",currency:t.currency,start_date_time:t.start_date,end_date_time:t.end_date,price:t.price,meetingNumber:t.home_page_order},l)),n&&(n==null?void 0:n.map(t=>s.jsx(_,{slug:t.slug,poster:t.poster,title:t.title,description:t.description},t._id)))]}),i.length>r&&s.jsx("div",{className:"mt-10 text-center",children:s.jsx(g,{onClick:c,className:"capitalize",children:o("jcsa:view_more")})})]}):null},Q=({eventsGroup:i,slug:n})=>{const{t:o}=m("jcsa"),e=i.filter(r=>r.slug!==n);return e.length?s.jsxs("section",{className:"container py-10",children:[s.jsx("h2",{className:"mb-5 text-2xl md:text-3xl",children:o("might_be_interest")}),s.jsx("div",{className:"grid grid-cols-1 gap-5 md:grid-cols-2",children:e.map((r,a)=>s.jsx(_,{slug:r.slug,poster:r.poster,title:r.title,description:r.description},a))})]}):null},U=({images:i})=>{const{t:n}=m("jcsa"),{lang:o}=y(),[e,r]=S.useState(0);return i.length?s.jsx("section",{className:"pb-20 pt-8",children:s.jsx(D,{locale:o,options:{loop:!0,align:"center"},onIndexChanged:a=>r(a),autoplay:!0,renderHeader:()=>s.jsx("div",{className:"container",children:s.jsx("h2",{className:"mb-5 text-2xl capitalize md:mb-10 md:text-3xl",children:n("gallery")})}),renderFooter:({scrollPrev:a,scrollNext:c})=>s.jsxs($,{as:"div",once:!1,threshold:.5,className:"flex items-center justify-center gap-2 md:mt-5",children:[s.jsx(g,{shape:"text",className:"flex h-[44px] w-[44px] p-0",onClick:a,"aria-label":"Previous",children:s.jsx(v,{className:"ltr:rotate-180"})}),s.jsx("div",{className:"flex gap-2",children:i.map((t,l)=>s.jsx("span",{className:W("block h-1 w-1 rounded-sm bg-black/50 transition-all",e===l&&"w-6 bg-black")},l))}),s.jsx(g,{shape:"text",className:"flex h-[44px] w-[44px] p-0",onClick:c,"aria-label":"Next",children:s.jsx(v,{className:"rtl:rotate-180"})})]}),children:i.map((a,c)=>s.jsx(q.div,{variants:{hidden:{opacity:0,y:25},visible:{opacity:1,y:0}},className:"mx-auto flex h-[300px] shrink-0 space-y-8 py-4 sm:aspect-[2/1] sm:h-auto md:w-[85%] md:max-w-screen-xl",children:s.jsx("div",{className:`relative h-full overflow-hidden rounded-3xl transition-all sm:basis-[98%] md:rounded-2xl ${e===c?"scale-100 md:scale-100 lg:scale-[1.03] 2xl:scale-[1.05]":"scale-[0.90] md:scale-[0.95] lg:scale-[0.96] 2xl:scale-[0.90]"}`,children:s.jsx(V,{className:"h-full w-full object-cover",src:a,alt:a})})},c))})}):null},X=s.jsx("style",{children:`
2    #main {background:#ffffff; color:#000000}
3  `}),ws=({slug:i})=>{var j,f,b,N;const{t:n}=m("jcsa"),{lang:o}=y(),{data:e,isLoading:r}=G({slug:i,lang:o}),a=i==="riyadh-racing-season"||i==="saudi-cup-season",c=i.includes("saudi-cup-weekend-2026"),t=i==="saudi-cup-season"?"/jcsa/saudi-cup.png":i==="taif-racing-season"?"/jcsa/saudi-cup-taif-season.png":"",{data:l,isLoading:w}=A({organizationSlug:"jcsa",lang:o,publicOnly:!0},{enabled:a||c}),{data:d,isLoading:C}=z({lang:o,limit:1,where:{slug:"saudi-cup-2025"}}),{data:p,isLoading:E}=R({slug:"jcsa",lang:o}),L=l==null?void 0:l.events.find(x=>x.slug==="riyadh-racing-season-pass"),u=d==null?void 0:d.data,h=d==null?void 0:d.rateLimited;return r||C||E||w?s.jsx(F,{}):!(e!=null&&e._id)||h?s.jsx(I,{isRateLimit:h}):s.jsxs(s.Fragment,{children:[X,s.jsx(O,{title:((j=e.seo)==null?void 0:j.title)||e.title,de
3scription:(f=e.seo)==null?void 0:f.description,image:e.poster}),s.jsx(T,{isSoon:!(e!=null&&e.events.upcoming.length),title:e.title,subtitle:n(i),logoSrc:t,backgroundSrc:e.poster,showTopTitle:a}),s.jsx(H,{description:e.description,slug:i}),a&&!c&&s.jsx(M,{season:L}),s.jsx(K,{events:e==null?void 0:e.events.upcoming.filter(x=>x.slug!=="riyadh-racing-season-pass"),season:c?l==null?void 0:l.seasons:void 0}),s.jsx(U,{images:e.gallery_images}),s.jsx(Q,{slug:i,eventsGroup:(p==null?void 0:p.event_groups)||[]}),u&&!!((N=(b=u.sponsorsCollection)==null?void 0:b.items)!=null&&N.length)&&s.jsx("div",{className:"bg-[#1C6755] py-10",children:s.jsx(B,{sponsors:u.sponsorsCollection,className:"[&>p]:text-3xl"})}),s.jsx(J,{src:e.poster,alt:e.title})]})};export{ws 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.