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]=`ebea7983-5f75-433b-9ab3-54dfe2dc6c2c`,e._sentryDebugIdIdentifier=`sentry-dbid-ebea7983-5f75-433b-9ab3-54dfe2dc6c2c`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Hm as n,Xt as r,Zt as i,_r as a,ng as o,pi as s}from"./entry.client-mpghtlrl.js";import{C as c,T as l}from"./xds-react-components-ihgca01z.js";import{Et as u}from"./xds-icons-m106f2fc.js";import{t as d}from"./useFeedbackAllowed-n8kdrflz.js";var f=t(),p=e(s(),1),m=o(),h=e=>{let t=(0,f.c)(17),{hidden:r,label:i,onPress:a,"aria-posinset":o,"aria-setsize":s}=e,{locGiveFeedback:d,locAccessibilityItemEnumeration:h}=n();if(r)return null;let g;t[0]!==i||t[1]!==d?(g=i||d(),t[0]=i,t[1]=d,t[2]=g):g=t[2];let _=g,v;t[3]!==o||t[4]!==s||t[5]!==h||t[6]!==_?(v=o!==void 0&&s!==void 0?h(_,o,s):void 0,t[3]=o,t[4]=s,t[5]=h,t[6]=_,t[7]=v):v=t[7];let y=v,b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,m.jsx)(l.LeadingIcon,{children:(0,m.jsx)(u,{className:`w-icon-subtitle-2`})}),t[8]=b):b=t[8];let x;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,p.default)(c()),t[9]=x):x=t[9];let S;t[10]!==x||t[11]!==_?(S=(0,m.jsx)(l.Label1,{children:(0,m.jsx)(`span`,{className:x,children:_})}),t[10]=x,t[11]=_,t[12]=S):S=t[12];let C;return t[13]!==a||t[14]!==y||t[15]!==S?(C=(0,m.jsxs)(l,{as:`button`,background:`invisible`,className:`w-full`,onPress:a,"aria-label":y,children:[b,S]}),t[13]=a,t[14]=y,t[15]=S,t[16]=C):C=t[16],C},g=a(e=>{let t=(0,f.c)(7),{hidden:n,label:r,onPress:i,visual:a,"aria-posinset":o,"aria-setsize":s}=e,c=a===void 0?h:a;if(n)return null;let l;return t[0]!==c||t[1]!==n||t[2]!==r||t[3]!==i||t[4]!==o||t[5]!==s?(l=(0,m.jsx)(c,{hidden:n,label:r,onPress:i,"aria-posinset":o,"aria-setsize":s}),t[0]=c,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=l):l=t[6],l},e=>{let{isReady:t}=d(),n=i({location:`FeedbackButton`});return{hidden:!t,label:e.label??``,onPress:()=>{n({key:r.feedback.fullPath,props:{feedbackType:e.feedbackType,feedbackTag:e.feedbackTag},options:e.feedbackTag?{finalTelemetryLocation:e.feedbackTag}:void 0},e.feedbackTag)},visual:e.visual,"aria-posinset":e[`aria-posinset`],"aria-setsize":e[`aria-setsize`]}});export{g as t};