PageSourceSearch

https://www.tasteinmotion.com/_nuxt/sanity-content.76a65c08.js

js tasteinmotion.com collected 2026-10-05 02:10:59 UTC 3,998 bytes, 1 lines download raw bytes

1import{_ as L}from"./nuxt-link.928736e8.js";import{u as w}from"./useLayoutState.5f5eff8f.js";import{h as f,q as c,H as I,I as v,B as C,x as k,F as S,V as x,O as j,A as O,u as d,f as $,j as l}from"./swiper-vue.1b2a8b42.js";import{j as A}from"./entry.7d939621.js";const N={computed:{hasSlotContent(){return!!this.$slots.default}}},G=Object.assign(N,{__name:"NavLink",props:{link:Object,handleClick:Function},setup(t){const{dynamicRoute:n,staticRoute:e}=w(),{link:r,handleClick:o}=t,a=f(()=>{var s;return e((s=r==null?void 0:r.page)==null?void 0:s.type)!==!1});f(()=>{var s;return n((s=r==null?void 0:r.page)==null?void 0:s.type)!==!1});const u=f(()=>!!r.url),h=f(()=>{var p,i,_;if(u&&u.value)return r==null?void 0:r.url;const s=(p=r==null?void 0:r.page)==null?void 0:p.slug;return a.value?`${e((i=r==null?void 0:r.page)==null?void 0:i.type)}`:`${n((_=r==null?void 0:r.page)==null?void 0:_.type)}/${s}`});return(s,p)=>{const i=L;return t.handleClick?(c(),I(i,{onClick:t.handleClick,key:t.link,to:d(h),target:d(u)?"_blank":""},{default:v(()=>[s.hasSlotContent?C(s.$slots,"default",{key:0}):t.link.title?(c(),k(S,{key:1},[x(j(t.link.title),1)],64)):O("",!0)]),_:3},8,["onClick","to","target"])):(c(),I(i,{key:t.link,to:d(h),target:d(u)?"_blank":""},{default:v(()=>[s.hasSlotContent?C(s.$slots,"default",{key:0}):t.link.title?(c(),k(S,{key:1},[x(j(t.link.title),1)],64)):O("",!0)]),_:3},8,["to","target"]))}}}),q=t=>t._type==="span",D={types:{span:"span",image:"img"},marks:{strong:"strong",em:"em",link:"a"},styles:{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",normal:"p",blockquote:"blockquote"},listItem:"li",container:"div"},F=["abbr","accesskey","accessKey","action","alt","autocomplete","autofocus","autoplay","charset","checked","cite","class","cols","colspan","command","content","datetime","default","disabled","download","draggable","dropzone","headers","height","hidden","href","hreflang","id","maxlength","minlength","muted","placeholder","preload","radiogroup","readonly","required","role","selected","src","srcdoc","srcset","tabindex","title","value","width","wrap"];function V(t,n){return t!=null&&t.listItem&&t._type!=="list"?n.listItem||"li":t!=null&&t._type?n.types[t._type]||n.marks[t._type]:void 0}function R(t,n,e){const r=t.style&&n.styles[t.style],a=E(t,typeof r=="string");return!t.listItem&&t.style&&r?l(r,a,{default:e}):e==null?void 0:e()}function H(t,n){return m(n,t,()=>(t.children||[]).map(e=>q(e)?y(e.text,e.marks,n,t.markDefs):m(n,e,()=>y(e.text,e.marks,n,t.markDefs))))}function y(t,[n,...e]=[],r,o=[]){if(!n)return t;const a=n in r.marks?{_type:n,_key:""}:o.find(u=>u._key===n);return m(r,a,()=>y(t,e,r,o))}function B(t,n){if(!n.listItem)return t.push(n),t;const e=t[t.length-1]||{};return e._type!=="list"||!e.children||n.level===1&&n.listItem!==e.listItem?(t.push({_type:"list",listItem:n.listItem,level:n.level,children:[n]}),t):n.level===e.level&&n.listItem===e.listItem?(e.children.push(n),t):(B(e.children,n),t)}function m(t,n,e){const r=V(n,t);if(!r)return e==null?void 0:e();if(!n)return;const o=typeof r=="string",a=E(n,o);return o?l(r,a,e==null?void 0:e()):l(r,a,{default:()=>e==null?void 0:e()})}function E(t,n){return Object.fromEntries(Object.entries(t).filter(([e])=>e!=="_type"&&e!=="markDefs").map(([e,r])=>e==="_key"?["key",r||null]:!n||F.includes(e)?[e,r]:[]))}function g(t,n){return t.map(e=>R(e,n,()=>H(e,n)))}const J=$({name:"SanityContent",props:{blocks:{type:Array,default:()=>[]},serializers:{type:Object,default:()=>({})}},setup(t){const n=A(t.serializers,D);return n.types.list=n.types.list||K(n),()=>{var e;return g(((e=t.blocks)==null?void 0:e.reduce(B,[]))||[],n)}}}),K=t=>$({name:"ListComponent",inheritAttrs:!1,props:{children:{type:Array,default:()=>[]},level:{type:Number,default:1}},setup(n){return()=>{var r;const e=((r=n.children[0])==null?void 0:r.listItem)==="number";return n.level>1?l(t.listItem||"li",[l(e?"ol":"ul",{},{default:()=>g(n.children,t)})]):l(e?"ol":"ul",{},{default:()=>g(n.children,t)})}}});
1export{G as _,J as a};

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.