try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`59365f49-cc2a-4480-af24-b22dd3508ddb`,e._sentryDebugIdIdentifier=`sentry-dbid-59365f49-cc2a-4480-af24-b22dd3508ddb`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Hm as n,Zm as r,gg as i,jg as a,ng as o}from"./entry.client-mpghtlrl.js";import{g as s}from"./xds-react-components-ihgca01z.js";var c=t(),l=e(a(),1),u=()=>{},d=e=>{let t=(0,c.c)(25),{label:a,isChecked:o,onChange:s}=e,{locOn:d,locOff:f,locAccessibilityComma:p}=n(),{capabilities:m}=r(),h;t[0]===m.queries.supportsSwitchRoleAnnouncement?h=t[1]:(h=m.queries.supportsSwitchRoleAnnouncement.getOptions(),t[0]=m.queries.supportsSwitchRoleAnnouncement,t[1]=h);let{data:g}=i(h),_=g===void 0?!0:g,v=(0,l.useRef)(null),y;t[2]!==p||t[3]!==a||t[4]!==d||t[5]!==f?(y=e=>{v.current&&v.current.setAttribute(`aria-label`,p(a,e?d():f()))},t[2]=p,t[3]=a,t[4]=d,t[5]=f,t[6]=y):y=t[6];let b=y,x;t[7]!==b||t[8]!==o?(x=()=>{b(!o)},t[7]=b,t[8]=o,t[9]=x):x=t[9];let S=x,C;t[10]!==b||t[11]!==s?(C=e=>{b(e),s(e)},t[10]=b,t[11]=s,t[12]=C):C=t[12];let w=C;if(_){let e;return t[13]===s?e=t[14]:(e={ref:v,ariaLabel:void 0,onPressStart:u,onChange:s},t[13]=s,t[14]=e),e}let T;t[15]!==o||t[16]!==d||t[17]!==f||t[18]!==p||t[19]!==a?(T=p(a,o?d():f()),t[15]=o,t[16]=d,t[17]=f,t[18]=p,t[19]=a,t[20]=T):T=t[20];let E;return t[21]!==T||t[22]!==S||t[23]!==w?(E={ref:v,ariaLabel:T,onPressStart:S,onChange:w},t[21]=T,t[22]=S,t[23]=w,t[24]=E):E=t[24],E},f=o(),p=e=>{let t=(0,c.c)(11),{handleChange:n,isChecked:r,label:i}=e,a;t[0]!==i||t[1]!==r||t[2]!==n?(a={label:i,isChecked:r,onChange:n},t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3];let{ref:o,ariaLabel:l,onPressStart:u,onChange:p}=d(a),m;return t[4]!==o||t[5]!==l||t[6]!==r||t[7]!==i||t[8]!==u||t[9]!==p?(m=(0,f.jsx)(s,{ref:o,ariaLabel:l,background:`invisible`,checked:r,kind:`switch`,label1:i,onPressStart:u,onChange:p}),t[4]=o,t[5]=l,t[6]=r,t[7]=i,t[8]=u,t[9]=p,t[10]=m):m=t[10],m};export{p as t};