PageSourceSearch

https://weneed.ch/_nuxt/CCRshrxn.js

js weneed.ch collected 2026-10-02 00:05:17 UTC 4,084 bytes, 1 lines download raw bytes

1import{u as L,a as D,b as x,c as A,d as E,e as M,f as R,g,r as B,o as N,h as q,i as W,j as z,S as V,k as G,l as O,w as F,m as J,n as T,p as K,q as Q,s as X,t as Y}from"./CG0zx5Uh.js";import{u as Z}from"./BkDjI9iv.js";import{u as ee}from"./Cm4DzozG.js";import{g as te}from"./DDlvirwQ.js";async function oe(){const m=M(),{locale:c}=L(),l=D(),{transformImage:n}=Z(),d=x("globals"),{slug:p}=l.params;let h="home";p&&(h=typeof p=="string"?p:p.join("/"));const i=l.query._storyblok||m.public?.env==="development"?"draft":"published",t=await A(h,{version:i,language:c.value,resolve_links:"url",resolve_relations:"BlockCases.cases,BlockTeam.teamMembers,BlockCardSlider.persons"});if(!t.value)throw E({statusCode:404,statusMessage:"Page not found",fatal:!0});const r=R(()=>{let v="";const a=t?.value?.content?.seo,s=t?.value?.content?.media;if(s){const{isImage:C}=ee(s);C.value&&(v=s?.filename)}const S=a?.title||t?.value?.name,w=a?.description||d.value?.globalSeoDescription||"",_=a?.og_title||S,b=a?.og_description||w,y=a?.twitter_title||_,$=a?.twitter_description||b,o=m?.public?.baseUrl?.replace(/\/$/,"")||"";let u=l.path.replace(/\/$/,"");u==="/home"&&(u="");const k=`${o}${u}`||o,I=a?.og_image||v||d.value?.globalOgImage?.filename||"",U=a?.twitter_image||I,f=l.path.replace(/^\/(fr|it|en)/,"").replace(/\/$/,""),j=[{rel:"alternate",hreflang:"de-CH",href:f?`${o}${f}`:o},{rel:"alternate",hreflang:"fr-CH",href:`${o}/fr${f}`},{rel:"alternate",hreflang:"it-CH",href:`${o}/it${f}`},{rel:"alternate",hreflang:"en-CH",href:`${o}/en${f}`},{rel:"alternate",hreflang:"x-default",href:f?`${o}${f}`:o}];return{title:e(S),link:[{rel:"canonical",href:k},...j],meta:()=>{const C=[{name:"title",content:e(S)},{name:"description",content:w},{property:"og:title",content:e(_)},{property:"og:description",content:b},{property:"og:url",content:k},{property:"og:type",content:"website"},{hid:"twitter:card",property:"twitter:card",content:"summary_large_image"},{hid:"twitter:title",property:"twitter:title",content:e(y)},{hid:"twitter:description",property:"twitter:description",content:$}],P=n(I,1200,628);P&&C.push({property:"og:image",content:P});const H=n(U,1200,628);return H&&C.push({hid:"twitter:image",property:"twitter:image",content:H}),C}}});function e(v){return`${v}`}return{head:r,story:t}}te.registerPlugin(V);function ae(){const m=B([]),c=g("--c-rose",null,{observe:!1}),l=g("--c-pink",null,{observe:!1}),n=g("--c-black",null,{observe:!1}),d=g("--c-sand",null,{observe:!1}),p=g("--c-green",null,{observe:!1}),h=g("--c-white-soft",null,{observe:!1}),i=B(h.value),t=B(p.value),r=B(l.value),e=g("--c-theme-white-soft"),v=g("--c-theme-green"),a=g("--c-theme-pink"),{height:s}=O();N(()=>{z().value==="dark"&&(i.value=n.value,t.value=d.value,r.value=l.value),e.value=i.value,v.value=t.value,a.value=r.value;let w=i.value,_=t.value,b=r.value;m.value=document.querySelectorAll("[data-js-background-color]"),q(window,"scroll",()=>{for(let y=0;y<m.value?.length;y++){const $=m.value[y],{top:o,bottom:u}=G($),k=$?.dataset.jsBackgroundColor;o.value<s.value/2&&u.value>0&&u.value>s.value/2?k!==e.value&&(w=k,_=c.value,b=c.value):(u.value<s.value/2||o.value>s.value/2&&u.value>s.value&&o.value<s.value)&&u.value>0&&e.value===k&&(w=i.value,_=t.value,b=r.value)}e.value=w,v.value=_,a.value=b},{passive:!0})}),W(()=>{e.value=i.value,v.value=t.value,a.value=r.value})}const ce={__name:"[...slug]",async setup(m){let c,l;const{story:n,head:d}=([c,l]=F(()=>oe()),c=await c,l(),c),p=D(),{locale:h}=L();J(d),ae();function i(){const t=n.value.content.seo.title?n.value.content.seo.title:n.value.name,{path:r}=p;let e="Page";n.value.content.component==="LayoutHome"&&(e="Home"),window.utag_data={event_attributes_eventName:"pageview",page_attributes_URL:`https://weneed.ch${r}`,page_pageInfo_language:`${h.value}-ch`,page_category_01:e,page_pageInfo_pageName:t,platform:"weneed-web",page_type:"content"},setTimeout(()=>{window.utag.view(utag_data)},1e3)}return N(()=>{i()}),(t,r)=>{const e=X("StoryblokComponent");return T(n)?(Y(),K(e,{key:0,blok:T(n).content},null,8,["blok"])):Q("",!0)}}};export{ce 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.