PageSourceSearch

https://www.tasteinmotion.com/_nuxt/useLayoutState.5f5eff8f.js

js tasteinmotion.com collected 2026-10-05 02:11:01 UTC 3,523 bytes, 74 lines download raw bytes

1import{a as k,e as t}from"./entry.7d939621.js";const w=String.raw||((s,...r)=>{const n=s.length-1;return s.slice(0,n).reduce((o,c,l)=>o+c+r[l],"")+s[n]}),a=`
2    _key,
3    _type,
4    title,
5    url,
6    "page": page -> {
7        "type": _type,
8        "slug": coalesce(store.slug.current, slug.current, handle, slug)
9    }
10`,P=`
11  ...,
12  markDefs[]{
13    ...,
14    _type == "link" => {
15      "url": @.url,
16    },
17    _type == "pageLink" => {
18      "title": @->title,
19      "page": @-> {
20        "type": _type,
21        "slug": slug.current
22      }
23    }
24  }
25`,_=`
26    menu-> {
27        navItems[] {
28            ${a}
29        }
30    }
31`,O=()=>w`*[_type == "siteSettings"] | order(_updatedAt desc)[0]{
32        "id": _id,
33        siteUrl,
34        header {
35            announcementBar {
36                messages[] {
37                    ...,
38                    ${a}
39                }
40            },
41            "socialLinks": socialLinks-> {
42                navItems[] {
43                    ${a}
44                }
45            },
46            ${_}
47        },
48        footer {
49            menus[] -> {
50                title,
51                _key,
52                navItems[] {
53                    ${a}
54                }
55            },
56            newsletter,
57            "menu": menu -> {
58                ...,
59                title,
60                navItems[] {
61                    ${a}
62                }
63            }
64        },
65        newsletterConfig,
66        cookieConsent {
67            text[] {
68                ${P}
69            }
70        },
71        newsletterPopup,
72        passwordProtection,
73        seo
74    }`,D=()=>{const s=k(),r=t("globalUrl",()=>""),n=t("subscriptionConfig",()=>null),o=t("isCartOpen",()=>!1),c=t("isMobileMenuOpen",()=>!1),l=t("isSearchModalOpen",()=>!1),u=t("isAnnouncementBarEnabled",()=>!1),i=t("searchResults",()=>[]),p=t("isMobile",()=>!1),d=t("loaderEnabled",()=>!0),g=t("cachedHomepage",()=>null);return{isCartOpen:o,isMobileMenuOpen:c,isSearchModalOpen:l,searchResults:i,isMobile:p,isAnnouncementBarEnabled:u,subscriptionConfig:n,cachedHomepage:g,loaderEnabled:d,setLoaderEnabled:e=>{d.value=e},setSearchModal:e=>{l.value=e},setCartOpen:e=>{o.value=e},setMobileMenu:e=>{c.value=e},setSearchResults:e=>{i.value=e},setCachedHomepage:e=>g.value=e,staticRoute:e=>{switch(e){case"homePage":return"/";case"home":return"/";case"about":return"/about";case"contact":return"/contact";case"directorsPage":return"/directors";case"blog":return"/blog";case"collectionPage":return"/collections";case"faqsPage":return"/faqs";case"visit":return"/visit-us";case"stockists":return"/stockists";case"press":return"/press";case"returns":return"/returns";case"materialsAndCare":return"/materials-and-care";case"repairs":return"/repairs";default:return!1}},dynamicRoute:e=>{switch(e){case"page":return"";case"collection":return"/collections";case"product":return"/products";case"post":return"/archive";case"infoPage":return"/info";case"legalPage":return"/legal";case"pageSO":return"";case"article":return"/blog";case"director":return"/director";default:return!1}},setIsMobile:e=>{p.value=e},setGlobalSiteSettings:async()=>{try{const e=await s.fetch(O()),{title:b,siteUrl:m,seo:h,header:f,footer:y,newsletterConfig:v,cookieConsent:S,newsletterPopup:M,passwordProtection:C}=e;return r.value=m,n.value=v,{title:b,siteUrl:m,seo:h,header:f,footer:y,cookieConsent:S,newsletterPopup:M,passwordProtection:C}}catch(e){return console.log(e),null}},setAnnouncementBar:e=>{u.value=e},globalUrl:r}};export{w as g,a as l,P as p,D as u};

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.