PageSourceSearch

https://riyadhseason.com/assets/@wbk/config-Cvu3DwEk.js

js riyadhseason.com collected 2026-09-24 10:11:08 UTC 3,314 bytes, 2 lines download raw bytes

1import{j as R,C as D}from"./hooks-DXJ6HdY6.js";import{r as p}from"../vendor-MOSTV3TL.js";var E=p.createContext(null),M=()=>{const e=p.useContext(E);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},t=M,N=Object.defineProperty,G=Object.defineProperties,V=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,j=(e,r,a)=>r in e?N(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,d=(e,r)=>{for(var a in r||(r={}))T.call(r,a)&&j(e,a,r[a]);if(c)for(var a of c(r))$.call(r,a)&&j(e,a,r[a]);return e},h=(e,r)=>G(e,V(r)),z=(e,r)=>{var a={};for(var o in e)T.call(e,o)&&r.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&c)for(var o of c(e))r.indexOf(o)<0&&$.call(e,o)&&(a[o]=e[o]);return a},B=e=>{const{router:r}=t();return R.jsx(r.Link,d({},e))},J=B,K=e=>{var r=e,{children:a}=r,o=z(r,["children"]),f,w,_,m,g,y,P,L,C,S,b,O;const v=((f=o.router)==null?void 0:f.locale)||"en",k=n=>{window.location.assign(n)},U=n=>{window.location.replace(n)},A=p.useMemo(()=>typeof window>"u"?new URLSearchParams:new URLSearchParams(window.location.search),[]),I=(n,s)=>{const i=typeof window>"u"?new URLSearchParams:new URLSearchParams(window.location.search);for(const l in n){const u=n[l];if(!u){i.delete(l);continue}Array.isArray(u)?u.forEach(q=>{i.append(l,q)}):i.set(l,u)}const x=`${window.location.pathname}?${i.toString()}`;s!=null&&s.replace?U(x):k(x)},W=n=>{const s=window.location.pathname.replace(`/${v}`,"");window.history.pushState({},"",`/${n}${s}`)};return R.jsx(E.Provider,{value:h(d({},o),{router:{Link:((w=o.router)==null?void 0:w.Link)||"a",push:((_=o.router)==null?void 0:_.push)||k,replace:((m=o.router)==null?void 0:m.replace)||U,locale:v,dir:v==="ar"?"rtl":"ltr",languages:o.i18n.languages,pathname:((g=o.router)==null?void 0:g.pathname)||"",search:((y=o.router)==null?void 0:y.search)||A,params:((P=o.router)==null?void 0:P.params)||{},baseUrl:((L=o.router)==null?void 0:L.baseUrl)||void 0,setSearch:((C=o.router)==null?void 0:C.setSearch)||I,setLocale:((S=o.router)==null?void 0:S.setLocale)||W},checkout:h(d({},o.checkout),{requiredUserProps:((b=o.checkout)==null?void 0:b.requiredUserProps)||["dob","gender","country","nationality","city"],sendTicketsTerms:!!((O=o.checkout)!=null&&O.sendTicketsTerms)}),logo:o.logo,appLoadingComponent:o.appLoadingComponent}),children:a})},Q=()=>{var e;const{subscriptions:r}=t();return{active:(e=r==null?void 0:r.active)!=null?e:!0}},X=(...e)=>t().i18n.useTranslation(...e),Y=()=>{const e=t().geoLocation,r=p.useMemo(()=>D.find(a=>a.code===(e==null?void 0:e.countryCode)),[e==null?void 0:e.countryCode]);return h(d({},e),{countryCode:(e==null?void 0:e.countryCode)||"SA",supportCountryCode:(e==null?void 0:e.supportCountryCode)||null,country:r})},Z=()=>{const e=t(),r=typeof window<"u"?window.location.pathname:"",a=new URLSearchParams(typeof window<"u"?window.location.search:{});return{locale:e.router.locale,languages:e.i18n.languages,dir:e.router.dir,pathname:e.router.pathname||r,push:e.router.push,replace:e.router.replace,search:e.router.search||a,setSearch:e.router.setSearch,baseUrl:e.router.baseUrl,setLocale:e.router.setLocale,params:e.router.params}};export{J as L,K as W,X as a,Q as b,Y as c,Z as u};
2//# sourceMappingURL=config-Cvu3DwEk.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.