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]=`2cc3ebb0-fca9-4072-b12b-141c01fc9de7`,e._sentryDebugIdIdentifier=`sentry-dbid-2cc3ebb0-fca9-4072-b12b-141c01fc9de7`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{x as t,y as n}from"./xds-react-components-lks62tbl.js";import{Ag as r,Fg as i,X as a,Z as o,dn as s,eh as c,or as l}from"./entry.client-dr7r6s9a.js";import{vt as u}from"./xds-icons-d7khcnpi.js";import{t as d}from"./useFeedbackAllowed-gk1zhv9k.js";var f=i(),p=e(l(),1),m=r(),h=e=>{let r=(0,f.c)(11),{hidden:i,label:a,onPress:o}=e,{locGiveFeedback:s}=c();if(i)return null;let l;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,m.jsx)(t.LeadingIcon,{children:(0,m.jsx)(u,{className:`w-icon-subtitle-2`})}),r[0]=l):l=r[0];let d;r[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,p.default)(n()),r[1]=d):d=r[1];let h;r[2]!==a||r[3]!==s?(h=a||s(),r[2]=a,r[3]=s,r[4]=h):h=r[4];let g;r[5]!==d||r[6]!==h?(g=(0,m.jsx)(t.Label1,{children:(0,m.jsx)(`span`,{className:d,children:h})}),r[5]=d,r[6]=h,r[7]=g):g=r[7];let _;return r[8]!==o||r[9]!==g?(_=(0,m.jsxs)(t,{as:`button`,background:`invisible`,className:`w-full`,onPress:o,children:[l,g]}),r[8]=o,r[9]=g,r[10]=_):_=r[10],_},g=s(e=>{let t=(0,f.c)(5),{hidden:n,label:r,onPress:i,visual:a}=e,o=a===void 0?h:a;if(n)return null;let s;return t[0]!==o||t[1]!==n||t[2]!==r||t[3]!==i?(s=(0,m.jsx)(o,{hidden:n,label:r,onPress:i}),t[0]=o,t[1]=n,t[2]=r,t[3]=i,t[4]=s):s=t[4],s},e=>{let{feedbackAllowed:t}=d(),n=o({location:`FeedbackButton`});return{hidden:!t,label:e.label??``,onPress:()=>{n({key:a.feedback.fullPath,props:{feedbackType:e.feedbackType,feedbackTag:e.feedbackTag},options:e.feedbackTag?{finalTelemetryLocation:e.feedbackTag}:void 0},e.feedbackTag)},visual:e.visual}});export{g as t};