PageSourceSearch

https://v0-enrich-e-commerce-product-data.vercel.app/_next/static/chunks/5fd36ba1c23807d1.js

js v0-enrich-e-commerce-product-data.vercel.app collected 2026-10-03 07:58:18 UTC 20,140 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42727,e=>{"use strict";var t=e.i(71645),r=e.i(81140),n=e.i(75830),o=e.i(20783),a=e.i(30030),i=e.i(10772),s=e.i(48425),u=e.i(30207),l=e.i(69340),c=e.i(86318),d=e.i(43476),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[v,m,h]=(0,n.createCollection)(b),[g,y]=(0,a.createContextScope)(b,[h]),[x,w]=g(b),P=t.forwardRef((e,t)=>(0,d.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(j,{...e,ref:t})})}));P.displayName=b;var j=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:a,orientation:i,loop:b=!1,dir:v,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:y,onEntryFocus:w,preventScrollOnEntryFocus:P=!1,...j}=e,E=t.useRef(null),R=(0,o.useComposedRefs)(n,E),C=(0,c.useDirection)(v),[S=null,T]=(0,l.useControllableState)({prop:h,defaultProp:g,onChange:y}),[_,O]=t.useState(!1),I=(0,u.useCallbackRef)(w),N=m(a),A=t.useRef(!1),[F,D]=t.useState(0);return t.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(f,I),()=>e.removeEventListener(f,I)},[I]),(0,d.jsx)(x,{scope:a,orientation:i,dir:C,loop:b,currentTabStopId:S,onItemFocus:t.useCallback(e=>T(e),[T]),onItemShiftTab:t.useCallback(()=>O(!0),[]),onFocusableItemAdd:t.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>D(e=>e-1),[]),children:(0,d.jsx)(s.Primitive.div,{tabIndex:_||0===F?-1:0,"data-orientation":i,...j,ref:R,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=N().filter(e=>e.focusable);k([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),P)}}A.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>O(!1))})})}),E="RovingFocusGroupItem",R=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,focusable:a=!0,active:u=!1,tabStopId:l,...c}=e,f=(0,i.useId)(),p=l||f,b=w(E,o),h=b.currentTabStopId===p,g=m(o),{onFocusableItemAdd:y,onFocusableItemRemove:x}=b;return t.useEffect(()=>{if(a)return y(),()=>x()},[a,y,x]),(0,d.jsx)(v.ItemSlot,{scope:o,id:p,focusable:a,active:u,children:(0,d.jsx)(s.Primitive.span,{tabIndex:h?0:-1,"data-orientation":b.orientation,...c,ref:n,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{a?b.onItemFocus(p):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>b.onItemFocus(p)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void b.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return C[o]}(e,b.orientation,b.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=b.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>k(o))}})})})});R.displayName=E;var C={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>R,"Root",()=>P,"createRovingFocusGroupScope",()=>y])},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${o}${c}${s}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return s(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return h},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return g},PageNotFoundError:function(){return y},SP:function(){return v},ST:function(){return m},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return b},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return P}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>s.test(e);function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function b(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await b(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let v="undefined"!=typeof performance,m=v&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
1class h extends Error{}class g extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return h},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),i=e.r(43476),s=a._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(91949),b=e.r(73668),v=e.r(9396);function m(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}function h(t){var r;let n,o,a,[u,h]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,s.useRef)(null),{href:x,as:w,children:P,prefetch:j=null,passHref:E,replace:R,shallow:C,scroll:k,onClick:S,onMouseEnter:T,onTouchStart:_,legacyBehavior:O=!1,onNavigate:I,ref:N,unstable_dynamicOnHover:A,...F}=t;n=P,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let D=s.default.useContext(l.AppRouterContext),L=!1!==j,M=!1!==j?null===(r=j)||"auto"===r?v.FetchStrategy.PPR:v.FetchStrategy.Full:v.FetchStrategy.PPR,{href:U,as:$}=s.default.useMemo(()=>{let e=m(x);return{href:e,as:w?m(w):e}},[x,w]);if(O){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=s.default.Children.only(n)}let K=O?o&&"object"==typeof o&&o.ref:N,B=s.default.useCallback(e=>(null!==D&&(y.current=(0,p.mountLinkInstance)(e,U,D,M,L,h)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[L,U,D,M,h]),z={ref:(0,c.useMergedRef)(B,K),onClick(t){O||"function"!=typeof S||S(t),O&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!D||t.defaultPrevented||function(t,r,n,o,a,i,u){if("undefined"!=typeof window){let l,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,b.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);s.default.startTransition(()=>{d(n||r,a?"replace":"push",i??!0,o.current)})}}(t,U,$,y,R,k,I)},onMouseEnter(e){O||"function"!=typeof T||T(e),O&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),D&&L&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){O||"function"!=typeof _||_(e),O&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),D&&L&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,d.isAbsoluteUrl)($)?z.href=$:O&&!E&&("a"!==o.type||"href"in o.props)||(z.href=(0,f.addBasePath)($)),a=O?s.default.cloneElement(o,z):(0,i.jsx)("a",{...F,...z,children:n}),(0,i.jsx)(g.Provider,{value:u,children:a})}e.r(84508);let g=(0,s.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,s.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},99682,e=>{"use strict";var t=e.i(71645);function r(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}e.s(["usePrevious",()=>r])},10708,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(48425),o=r.forwardRef((e,r)=>(0,t.jsx)(n.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var a=e.i(47163);function i({className:e,...r}){return(0,t.jsx)(o,{"data-slot":"label",className:(0,a.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}e.s(["Label",()=>i],10708)},27341,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(81140),o=e.i(30030),a=e.i(42727),i=e.i(96626),s=e.i(48425),u=e.i(86318),l=e.i(69340),c=e.i(10772),d="Tabs",[f,p]=(0,o.createContextScope)(d,[a.createRovingFocusGroupScope]),b=(0,a.createRovingFocusGroupScope)(),[v,m]=f(d),h=r.forwardRef((e,r)=>{let{__scopeTabs:n,value:o,onValueChange:a,defaultValue:i,orientation:d="horizontal",dir:f,activationMode:p="automatic",...b}=e,m=(0,u.useDirection)(f),[h,g]=(0,l.useControllableState)({prop:o,onChange:a,defaultProp:i});return(0,t.jsx)(v,{scope:n,baseId:(0,c.useId)(),value:h,onValueChange:g,orientation:d,dir:m,activationMode:p,children:(0,t.jsx)(s.Primitive.div,{dir:m,"data-orientation":d,...b,ref:r})})});h.displayName=d;var g="TabsList",y=r.forwardRef((e,r)=>{let{__scopeTabs:n,loop:o=!0,...i}=e,u=m(g,n),l=b(n);return(0,t.jsx)(a.Root,{asChild:!0,...l,orientation:u.orientation,dir:u.dir,loop:o,children:(0,t.jsx)(s.Primitive.div,{role:"tablist","aria-orientation":u.orientation,...i,ref:r})})});y.displayName=g;var x="TabsTrigger",w=r.forwardRef((e,r)=>{let{__scopeTabs:o,value:i,disabled:u=!1,...l}=e,c=m(x,o),d=b(o),f=E(c.baseId,i),p=R(c.baseId,i),v=i===c.value;return(0,t.jsx)(a.Item,{asChild:!0,...d,focusable:!u,active:v,children:(0,t.jsx)(s.Primitive.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":p,"data-state":v?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:f,...l,ref:r,onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,e=>{u||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(i)}),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(i)}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==c.activationMode;v||u||!e||c.onValueChange(i)})})})});w.displayName=x;var P="TabsContent",j=r.forwardRef((e,n)=>{let{__scopeTabs:o,value:a,forceMount:u,children:l,...c}=e,d=m(P,o),f=E(d.baseId,a),p=R(d.baseId,a),b=a===d.value,v=r.useRef(b);return r.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(i.Presence,{present:u||b,children:({present:r})=>(0,t.jsx)(s.Primitive.div,{"data-state":b?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:p,tabIndex:0,...c,ref:n,style:{...e.style,animationDuration:v.current?"0s":void 0},children:r&&l})})});function E(e,t){return`${e}-trigger-${t}`}function R(e,t){return`${e}-content-${t}`}j.displayName=P;var C=e.i(47163);function k({className:e,...r}){return(0,t.jsx)(h,{"data-slot":"tabs",className:(0,C.cn)("flex flex-col gap-2",e),...r})}function S({className:e,...r}){return(0,t.jsx)(y,{"data-slot":"tabs-list",className:(0,C.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...r})}function T({className:e,...r}){return(0,t.jsx)(w,{"data-slot":"tabs-trigger",className:(0,C.cn)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focu
1s-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function _({className:e,...r}){return(0,t.jsx)(j,{"data-slot":"tabs-content",className:(0,C.cn)("flex-1 outline-none",e),...r})}e.s(["Tabs",()=>k,"TabsContent",()=>_,"TabsList",()=>S,"TabsTrigger",()=>T],27341)},19036,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(81140),o=e.i(20783),a=e.i(30030),i=e.i(69340),s=e.i(99682),u=e.i(35804),l=e.i(48425),c="Switch",[d,f]=(0,a.createContextScope)(c),[p,b]=d(c),v=r.forwardRef((e,a)=>{let{__scopeSwitch:s,name:u,checked:c,defaultChecked:d,required:f,disabled:b,value:v="on",onCheckedChange:m,form:h,...x}=e,[w,P]=r.useState(null),j=(0,o.useComposedRefs)(a,e=>P(e)),E=r.useRef(!1),R=!w||h||!!w.closest("form"),[C=!1,k]=(0,i.useControllableState)({prop:c,defaultProp:d,onChange:m});return(0,t.jsxs)(p,{scope:s,checked:C,disabled:b,children:[(0,t.jsx)(l.Primitive.button,{type:"button",role:"switch","aria-checked":C,"aria-required":f,"data-state":y(C),"data-disabled":b?"":void 0,disabled:b,value:v,...x,ref:j,onClick:(0,n.composeEventHandlers)(e.onClick,e=>{k(e=>!e),R&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),R&&(0,t.jsx)(g,{control:w,bubbles:!E.current,name:u,value:v,checked:C,required:f,disabled:b,form:h,style:{transform:"translateX(-100%)"}})]})});v.displayName=c;var m="SwitchThumb",h=r.forwardRef((e,r)=>{let{__scopeSwitch:n,...o}=e,a=b(m,n);return(0,t.jsx)(l.Primitive.span,{"data-state":y(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:r})});h.displayName=m;var g=e=>{let{control:n,checked:o,bubbles:a=!0,...i}=e,l=r.useRef(null),c=(0,s.usePrevious)(o),d=(0,u.useSize)(n);return r.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==o&&t){let r=new Event("click",{bubbles:a});t.call(e,o),e.dispatchEvent(r)}},[c,o,a]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...i,tabIndex:-1,ref:l,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return e?"checked":"unchecked"}var x=e.i(47163);function w({className:e,...r}){return(0,t.jsx)(v,{"data-slot":"switch",className:(0,x.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:(0,t.jsx)(h,{"data-slot":"switch-thumb",className:"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"})})}e.s(["Switch",()=>w],19036)}]);

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.