PageSourceSearch

https://www.quelle.de/assets/turbo/ace91a57/quellede/_next/static/chunks/4642.b2fa134936a8f6f4.js

js quelle.de collected 2026-10-02 05:42:29 UTC 6,415 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4642],{84642:(e,t,r)=>{r.d(t,{bL:()=>C,zi:()=>k});var n=r(7620),o=r.t(n,2);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let r=!1,n=e.map(e=>{let n=l(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():l(e[t],null)}}}}function u(...e){return n.useCallback(i(...e),e)}"u">typeof window&&window.document&&window.document.createElement;var c=r(54568),a=globalThis?.document?n.useLayoutEffect:()=>{},s=o[" useInsertionEffect ".trim().toString()]||a;Symbol("RADIX:SYNC_STATE"),r(97509);var f=Symbol("radix.slottable");function d(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}var p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,o;let l,u,a,s=(o=r=`Primitive.${t}`,(l=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var l;let e,u,c=(l=r,(u=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(u=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),a=function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(a.ref=t?i(t,c):c),n.cloneElement(r,a)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${o}.SlotClone`,u=l,(a=n.forwardRef((e,t)=>{let{children:r,...o}=e,l=n.Children.toArray(r),i=l.find(d);if(i){let e=i.props.children,r=l.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,c.jsx)(u,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,c.jsx)(u,{...o,ref:t,children:r})})).displayName=`${r}.Slot`,a),f=n.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(n?s:t,{...o,ref:r})});return f.displayName=`Primitive.${t}`,{...e,[t]:f}},{}),m="Switch",[h,v]=function(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){let l=n.createContext(o),i=r.length;r=[...r,o];let u=t=>{let{scope:r,children:o,...u}=t,a=r?.[e]?.[i]||l,s=n.useMemo(()=>u,Object.values(u));return(0,c.jsx)(a.Provider,{value:s,children:o})};return u.displayName=t+"Provider",[u,function(r,u){let c=u?.[e]?.[i]||l,a=n.useContext(c);if(a)return a;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(o,...t)]}(m),[b,y]=h(m),w=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:o,checked:l,defaultChecked:i,required:a,disabled:f,value:d="on",onCheckedChange:h,form:v,...y}=e,[w,g]=n.useState(null),x=u(t,e=>g(e)),C=n.useRef(!1),k=!w||v||!!w.closest("form"),[R,N]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){let[l,i,u]=function({defaultProp:e,onChange:t}){let[r,o]=n.useState(e),l=n.useRef(r),i=n.useRef(t);return s(()=>{i.current=t},[t]),n.useEffect(()=>{l.current!==r&&(i.current?.(r),l.current=r)},[r,l]),[r,o,i]}({defaultProp:t,onChange:r}),c=void 0!==e,a=c?e:l;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,o])}return[a,n.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else i(t)},[c,e,i,u])]}({prop:l,defaultProp:i??!1,onChange:h,caller:m});return(0,c.jsxs)(b,{scope:r,checked:R,disabled:f,children:[(0,c.jsx)(p.button,{type:"button",role:"switch","aria-checked":R,"aria-required":a,"data-state":S(R),"data-disabled":f?"":void 0,disabled:f,value:d,...y,ref:x,onClick:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}(e.onClick,e=>{N(e=>!e),k&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),k&&(0,c.jsx)(E,{control:w,bubbles:!C.current,name:o,value:d,checked:R,required:a,disabled:f,form:v,style:{transform:"translateX(-100%)"}})]})});w.displayName=m;var g="SwitchThumb",x=n.forwardRef((e,t)=>
1{let{__scopeSwitch:r,...n}=e,o=y(g,r);return(0,c.jsx)(p.span,{"data-state":S(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});x.displayName=g;var E=n.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:o=!0,...l},i)=>{let s,f=n.useRef(null),d=u(f,i),p=(s=n.useRef({value:r,previous:r}),n.useMemo(()=>(s.current.value!==r&&(s.current.previous=s.current.value,s.current.value=r),s.current.previous),[r])),m=function(e){let[t,r]=n.useState(void 0);return a(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(t);return n.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[p,r,o]),(0,c.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:d,style:{...l.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function S(e){return e?"checked":"unchecked"}E.displayName="SwitchBubbleInput";var C=w,k=x}}]);
2//# sourceMappingURL=4642.b2fa134936a8f6f4.js.map

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.