PageSourceSearch

https://dsdha-frontend.netlify.app/_nuxt/a5FhIeN6.js

js dsdha-frontend.netlify.app collected 2026-10-03 11:42:58 UTC 4,581 bytes, 5 lines download raw bytes

1import{_ as M}from"./Do_SpEuc.js";import{_ as U}from"./lfNBqQgI.js";import{_ as Y,u as z,e as F,a as q,f as G,w as Q,G as X,b as t,g as u,h as N,M as I,F as A,v as E,Y as _,P as C,d as v,a1 as Z,x as T,Z as j,o as r,k as c,c as H,l as k,N as L,A as J,O as ee,B as te,C as se}from"./XrRBevAG.js";import{c as V}from"./BdOX6J6-.js";import{u as W}from"./BY7cS-Sy.js";import{u as ae}from"./Bdrgzm9p.js";import{u as oe}from"./BnHvq93j.js";import"./9P7tid2z.js";const re={class:"blocks"},le={class:"background-image"},ne={class:"caption shadow"},ue={class:"index"},ie={class:"titles"},ce={class:"value-title"},de={key:0,class:"block-title"},fe=700,ve={__name:"[slug]",async setup(me){let w,B;z({bodyAttrs:{class:"overflow-hidden"}}),F();const $=q(),R=G(),O={slug:$.params.slug},o=([w,B]=Q(()=>ae({query:Z,params:O})),w=await w,B(),w);oe({title:o?.value?.title,seo:o?.value?.seo});const l=T(0),m=T("#000"),n=T("#000"),b=e=>{e==="left"?S():x()},x=()=>{l.value<o.value.blocks.length-1?l.value++:R.push("/values")},S=()=>{l.value>0?l.value--:R.push("/values")},g=T(!1);function D(e){g.value||(g.value=!0,window.setTimeout(()=>{g.value=!1},fe),e())}function P(e){if(o.value?.blocks?.length&&e.deltaY!==0){if(g.value){e.preventDefault();return}e.preventDefault(),D(()=>{e.deltaY>0?x():S()})}}function K(e){if(!o.value?.blocks?.length||e.repeat)return;const a=e.target?.tagName;if(a==="INPUT"||a==="TEXTAREA"||a==="SELECT"||e.target?.isContentEditable)return;const p=["ArrowDown","ArrowRight"],d=["ArrowUp","ArrowLeft"];if(!(!p.includes(e.key)&&!d.includes(e.key))){if(g.value){e.preventDefault();return}e.preventDefault(),D(()=>{p.includes(e.key)?x():S()})}}return W(window,"wheel",P,{passive:!1}),W(window,"keydown",K),X(l,e=>{const a=o.value.blocks[e],p=a._type==="valueTextBlock",d=a._type==="valueImageBlock";if(p)n.value=a.recommendedTextColor||"#000",m.value=a.recommendedTextColor||"#000";else if(d&&a.mode==="full-bleed")n.value="#fff",m.value="#fff";else if(d)for(let y=e;y>=0;y--){const i=o.value.blocks[y];if(i._type==="valueTextBlock"){n.value=i.recommendedTextColor||"#000",m.value=i.recommendedTextColor||"#000";break}else if(i._type==="valueImageBlock"&&i.mode==="full-bleed"){n.value="#fff",m.value="#fff";break}}}),(e,a)=>{const p=M,d=U,y=se,i=j("touch");return t(o)?(r(),u("main",{key:0,class:C(["value-page",{white:t(n)==="#fff",black:t(n)==="#000"}]),style:_({backgroundColor:t(o).color,"--text-color":t(n)})},[N(p,{textColor:t(n),fallbackRoute:"/values"},null,8,["textColor"]),I((r(),u("section",re,[(r(!0),u(A,null,E(t(o).blocks,(s,f)=>(r(),u("div",{key:s._key,class:C(["block",{active:t(l)===f,inactive:t(l)!==f,visible:t(l)>=f,white:t(n)==="#fff",black:t(n)==="#000"}]),style:_({color:t(n)||"#000"})},[c("div",{class:"next",onClick:a[0]||(a[0]=h=>b("right")),style:_({"--cursor":("customCursorCSS"in e?e.customCursorCSS:t(V))("right-arrow",t(m)||"#000")})},null,4),c("div",{class:"previous",onClick:a[1]||(a[1]=h=>b("left")),style:_({"--cursor":("customCursorCSS"in e?e.customCursorCSS:t(V))("left-arrow",t(m)||"#000")})},null,4),s._type==="valueTextBlock"?(r(),u("div",{key:0,class:C(["text-block",s.mode]),style:_({backgroundColor:t(o).color})},[c("div",le,[s.backgroundImage?(r(),H(d,{key:0,image:s.backgroundImage,imageWrapperClasses:"cover"},null,8,["image"])):v("",!0)]),I(c("div",{class:"text"},k(s.text),513),[[L,t(l)===f]])],6)):v("",!0),s._type==="valueImageBlock"?(r(),u("div",{key:1,class:C(["image-block",s.mode])},[s.images&&s.images.length&&s.images[0].aspectRatio?(r(),u("div",{key:0,class:C(["images",`
2              numImagesIs${s.images.length} 
3              ${t(l)===f||s.mode==="full-bleed"?"visible":"inactive"}
4              ${s.images[0].aspectRatio>1?"landscape":"portrait"}
5            `]),style:_({"--aspect-ratio":s.images[0].aspectRatio})},[(r(!0),u(A,null,E(s.images,h=>(r(),u("div",{key:h._key,class:"image"},[h?(r(),H(d,{key:0,image:h,imageWrapperClasses:`${s.mode==="full-bleed"?"cover":"containToAspectRatio"}`,aspectRatio:s.aspectRatio},null,8,["image","imageWrapperClasses","aspectRatio"])):v("",!0)]))),128))],6)):v("",!0)],2)):v("",!0),I(c("div",ne,[c("span",ue,k(f+1)+"/"+k(t(o).blocks.length),1),c("span",ie,[c("span",ce,k(t(o).title),1),s.reference?(r(
5),u("span",de,[N(y,{to:("resolveHref"in e?e.resolveHref:t(te))(s.reference?._type,s.reference?.slug),class:"underline-hover"},{default:J(()=>[ee(k(s.reference?.title),1)]),_:2},1032,["to"])])):v("",!0)])],512),[[L,t(l)===f]])],6))),128))])),[[i,x,"swipe",{left:!0}],[i,S,"swipe",{right:!0}]])],6)):v("",!0)}}},xe=Y(ve,[["__scopeId","data-v-f1c9e15f"]]);export{xe 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.