PageSourceSearch

https://www.stuttgarter-zeitung.de/static/assets/D-cilfWR.js

js stuttgarter-zeitung.de collected 2026-09-24 08:27:25 UTC 1,312 bytes, 1 lines download raw bytes

1import{d as h,ax as w,aK as _,K as n,c as i,e as d,f as t,M as b,aL as g,v as V,g as u,n as c,L as y,h as v,t as k,k as B,aM as M}from"./wGaC-Zcn.js";const S={class:"u-switch"},C=["name","required"],q=["id"],D=h({__name:"ToggleSwitch",props:M({error:{type:Boolean,default:!1},label:{},name:{},required:{type:Boolean,default:!1},isValidated:{type:Boolean,default:!1}},{modelValue:{default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const r=w(o,"modelValue"),m=_(),a=o,l=n(()=>{const e=m?.default;return e?e()?.length>0:!1}),p=n(()=>{const e={};return l&&a.name&&(e["aria-labelledby"]=`switch-${a.name}`),!l&&a.label&&(e["aria-label"]=a.label),e});return(e,s)=>(i(),d("label",{class:c(["u-switch__wrapper",{"u-switch__wrapper--error":e.isValidated&&e.error,"u-switch__wrapper--success":e.isValidated&&!e.error}])},[t("span",S,[b(t("input",V({type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=f=>r.value=f),name:e.name,required:e.required},u(p),{class:"u-switch__input visually-hidden"}),null,16,C),[[g,r.value]]),s[1]||(s[1]=t("span",{class:c(["u-switch__toggler"])},null,-1))]),u(l)||e.label?(i(),d("div",{key:0,id:`switch-${e.name}`,class:"u-switch__label"},[y(e.$slots,"default",{},()=>[v(k(e.label),1)])],8,q)):B("",!0)],2))}}),T=Object.assign(D,{__name:"AtomsToggleSwitch"});export{T as _};

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.