@ahmetilhn/hanui 2.8.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.cjs +7 -7
- package/build/index.cjs.map +1 -1
- package/build/index.d.ts +58 -21
- package/build/index.js +2583 -2545
- package/build/index.js.map +1 -1
- package/build/styles.css +1 -1
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("react"),Y=require("@ahmetilhn/handy-utils"),R=require("react-bootstrap-icons"),kt=require("react-dom"),pe={pine:"#00322a",mint:"#43ff9c",ink:"#00120f"},Be={paper:"#eff4f1",slate:"#38594f",mist:"#8fb3a7"},I={n0:"#ffffff",n25:"#f9fbfa",n100:Be.paper,n150:"#e8efec",n200:"#e3eae7",n250:"#d6e1dc",n300:"#c5d3cc",n550:"#506d63",n600:Be.slate,n700:"#26403a",n900:pe.ink},de={base:pe.pine,two:"#004d40",three:"#0f574a",dark:pe.pine,darkLine:"#0a4a3e"},H={page:pe.ink,surface:"#0b1614",surfaceTwo:"#14201d",surfaceThree:"#1f2c28",inset:"#000d0b",border:"#26332f",borderStrong:"#3d4f4a",text:Be.paper,textTwo:Be.mist,textThree:"#799a8f",actionSoft:"#3f5a53"},Sa={light:pe.pine,dark:pe.mint},oe={base:"#22a76d",hover:"#2ab97a",active:"#1d9a64",soft:"#8fd3b6",dark:"#43d08a",darkHover:"#5ddf9c",darkActive:"#2fbb7a",darkSoft:"#43906f",on:"#02180f"},Q={base:"#1a7f61",hover:"#10654b",active:"#0a4d39",text:"#147155",tint:"#e9f6f2",line:"#acd8cb",dark:"#51d6ae",darkHover:"#74e7c5",darkTint:"#113228",darkLine:"#285d4d"},on={green:"#1d9a64"},M={okBg:"#e6f4ed",okFg:"#156f4e",okLine:"#a8dcc4",okBgDark:"#0b2d23",okFgDark:"#47d191",okLineDark:"#1e5742",warnBg:"#fdf0dd",warnFg:"#7a3e02",warnLine:"#ebc687",warnBgDark:"#2c2008",warnFgDark:"#f5c86b",warnLineDark:"#55401a",offBg:"#f0f4f3",offFg:I.n700,offLine:"#cddad4",offBgDark:"#192e29",offFgDark:"#a2b9b0",offLineDark:"#2a423b",badBg:"#f8ebeb",badFg:"#bb1e1e",badLine:"#e6a6a6",badBgDark:"#310f0f",badFgDark:"#e97575",badLineDark:"#621b1b",oemBg:"#edf8f5",oemFg:"#0d5942",oemLine:"#b5ded2",oemBgDark:"#0f2f25",oemFgDark:"#7eddc1",oemLineDark:"#296553",altBg:"#eeebfa",altFg:"#2e2661",altLine:"#c0b6ea",altBgDark:"#1d1a33",altFgDark:"#bfb3f5",altLineDark:"#332d56"},Ve={base:"#dc2626",hover:"#bb1e1e",dark:"#e45b5b",darkHover:"#ef7a72",onDark:"#1a0b0a"},Ae={red:"#dc2626",redDark:"#e35252",green:on.green,greenDark:"#43d08a",greenHover:"#17814f",greenHoverDark:"#63e3a3",onGreen:oe.on},Dt={bg:M.okBg,fg:M.okFg,bgDark:M.okBgDark,fgDark:M.okFgDark},La={light:"#9a5f04",dark:"#f0b429"},L=(e,a)=>{const s=e.replace("#",""),r=s.length===3?s.split("").map(u=>u+u).join(""):s,o=parseInt(r.slice(0,2),16),c=parseInt(r.slice(2,4),16),i=parseInt(r.slice(4,6),16);return`rgba(${o}, ${c}, ${i}, ${a})`},se="#000000",Aa={page:I.n0,surface:I.n0,"surface-2":I.n100,"surface-3":I.n150,"surface-inset":I.n25,border:I.n250,"border-strong":I.n300,text:I.n900,"text-2":I.n600,"text-3":I.n550,graphite:de.base,"graphite-2":de.two,"graphite-3":de.three,action:de.base,"action-hover":de.two,"action-active":de.three,"on-action":I.n0,"action-line":Sa.light,"action-soft":I.n300,"on-action-soft":I.n700,amber:oe.base,"amber-hover":oe.hover,"amber-active":oe.active,"amber-soft":oe.soft,"on-amber":oe.on,blue:Q.base,"blue-hover":Q.hover,"blue-active":Q.active,"blue-text":Q.text,"blue-tint":Q.tint,"blue-line":Q.line,"on-blue":I.n0,"ok-bg":M.okBg,"ok-fg":M.okFg,"ok-line":M.okLine,"warn-bg":M.warnBg,"warn-fg":M.warnFg,"warn-line":M.warnLine,"off-bg":M.offBg,"off-fg":M.offFg,"off-line":M.offLine,"bad-bg":M.badBg,"bad-fg":M.badFg,"bad-line":M.badLine,"oem-bg":M.oemBg,"oem-fg":M.oemFg,"oem-line":M.oemLine,"alt-bg":M.altBg,"alt-fg":M.altFg,"alt-line":M.altLine,"sale-bg":Dt.bg,"sale-fg":Dt.fg,"red-accent":Ae.red,"green-accent":Ae.green,"green-accent-hover":Ae.greenHover,"on-green":Ae.onGreen,star:La.light,"danger-solid":Ve.base,"danger-solid-hover":Ve.hover,"on-danger":I.n0,"nav-bg":I.n0,"nav-bg-2":I.n100,"nav-fg":I.n900,"nav-fg-2":I.n600,"nav-fg-3":I.n550,"nav-line":I.n200,"nav-line-strong":I.n300,"nav-hover":I.n100,"footer-bg":I.n100,"band-bg":de.dark,"band-fg":Be.paper,"band-fg-2":Be.mist,"band-line":de.darkLine,"band-hover":L(I.n0,.07),"shadow-xs":`0 1px 2px ${L(I.n900,.05)}`,"shadow-sm":`0 1px 2px ${L(I.n900,.05)}, 0 1px 3px ${L(I.n900,.04)}`,"shadow-md":`0 2px 4px ${L(I.n900,.04)}, 0 6px 16px ${L(I.n900,.07)}`,"shadow-lg":`0 4px 8px ${L(I.n900,.05)}, 0 16px 32px ${L(I.n900,.1)}`,"shadow-xl":`0 8px 16px ${L(I.n900,.06)}, 0 28px 56px ${L(I.n900,.13)}`,"shadow-up":`0 -2px 4px ${L(I.n900,.03)}, 0 -8px 24px ${L(I.n900,.08)}`,ring:`0 0 0 3px ${L(Q.base,.28)}`,"ring-color":Q.base,"ring-danger":`0 0 0 3px ${L(Ve.base,.24)}`,"ring-ok":`0 0 0 4px ${L(M.okFg,.16)}`,scrim:L(I.n900,.6),"scrim-soft":L(I.n900,.32),glass:L(I.n0,.92),"glass-solid":I.n0,"on-scrim":I.n0,"skeleton-a":I.n100,"skeleton-b":I.n25,track:L(I.n900,.12),"media-bg":I.n100,"glow-1":L(pe.mint,.1),"glow-2":L(pe.pine,.06),"glow-amber":L(oe.base,.09)},Fa={page:H.page,surface:H.surface,"surface-2":H.surfaceTwo,"surface-3":H.surfaceThree,"surface-inset":H.inset,border:H.border,"border-strong":H.borderStrong,text:H.text,"text-2":H.textTwo,"text-3":H.textThree,graphite:H.surface,"graphite-2":H.surfaceTwo,"graphite-3":H.surfaceThree,action:pe.pine,"action-hover":de.two,"action-active":de.three,"on-action":I.n0,"action-line":Sa.dark,"action-soft":H.actionSoft,"on-action-soft":I.n300,amber:oe.dark,"amber-hover":oe.darkHover,"amber-active":oe.darkActive,"amber-soft":oe.darkSoft,"on-amber":oe.on,blue:Q.dark,"blue-hover":Q.darkHover,"blue-active":Q.base,"blue-text":Q.dark,"blue-tint":Q.darkTint,"blue-line":Q.darkLine,"on-blue":I.n900,"ok-bg":M.okBgDark,"ok-fg":M.okFgDark,"ok-line":M.okLineDark,"warn-bg":M.warnBgDark,"warn-fg":M.warnFgDark,"warn-line":M.warnLineDark,"off-bg":M.offBgDark,"off-fg":M.offFgDark,"off-line":M.offLineDark,"bad-bg":M.badBgDark,"bad-fg":M.badFgDark,"bad-line":M.badLineDark,"oem-bg":M.oemBgDark,"oem-fg":M.oemFgDark,"oem-line":M.oemLineDark,"alt-bg":M.altBgDark,"alt-fg":M.altFgDark,"alt-line":M.altLineDark,"sale-bg":Dt.bgDark,"sale-fg":Dt.fgDark,"red-accent":Ae.redDark,"green-accent":Ae.greenDark,"green-accent-hover":Ae.greenHoverDark,"on-green":Ae.onGreen,star:La.dark,"danger-solid":Ve.dark,"danger-solid-hover":Ve.darkHover,"on-danger":Ve.onDark,"nav-bg":H.page,"nav-bg-2":H.surfaceTwo,"nav-fg":H.text,"nav-fg-2":H.textTwo,"nav-fg-3":H.textThree,"nav-line":H.border,"nav-line-strong":H.borderStrong,"nav-hover":L(I.n0,.07),"footer-bg":H.surface,"band-bg":de.dark,"band-fg":Be.paper,"band-fg-2":Be.mist,"band-line":de.darkLine,"band-hover":L(I.n0,.07),"shadow-xs":`0 1px 2px ${L(se,.4)}`,"shadow-sm":`0 1px 2px ${L(se,.4)}, 0 1px 3px ${L(se,.3)}`,"shadow-md":`0 2px 4px ${L(se,.35)}, 0 6px 16px ${L(se,.45)}`,"shadow-lg":`0 4px 8px ${L(se,.4)}, 0 16px 32px ${L(se,.55)}`,"shadow-xl":`0 8px 16px ${L(se,.45)}, 0 28px 56px ${L(se,.6)}`,"shadow-up":`0 -2px 4px ${L(se,.3)}, 0 -8px 24px ${L(se,.45)}`,ring:`0 0 0 3px ${L(Q.dark,.36)}`,"ring-color":Q.dark,"ring-danger":`0 0 0 3px ${L(Ve.dark,.32)}`,"ring-ok":`0 0 0 4px ${L(M.okFgDark,.2)}`,scrim:L(se,.68),"scrim-soft":L(se,.45),glass:L(H.surfaceTwo,.92),"glass-solid":H.surfaceTwo,"on-scrim":I.n0,"skeleton-a":H.surfaceTwo,"skeleton-b":H.surfaceThree,track:L(I.n0,.14),"media-bg":H.surfaceTwo,"glow-1":L(pe.mint,.2),"glow-2":L(pe.pine,.12),"glow-amber":L(oe.dark,.12)},cn={"radius-xs":"4px","radius-sm":"6px","radius-md":"8px","radius-lg":"12px","radius-xl":"16px","radius-pill":"999px","space-0":"0","space-1":"4px","space-2":"8px","space-3":"12px","space-4":"16px","space-5":"24px","space-6":"32px","space-7":"48px","space-8":"64px","space-9":"96px","font-size-2xs":"12px","font-size-xs":"13px","font-size-sm":"15px","font-size-base":"16px","font-size-body":"17px","font-size-lg":"19px","font-size-xl":"23px","font-size-2xl":"29px","font-size-3xl":"37px","font-size-4xl":"47px","leading-none":"1","leading-tight":"1.16","leading-snug":"1.35","leading-normal":"1.62","leading-relaxed":"1.75","icon-xs":"14px","icon-sm":"16px","icon-md":"18px","icon-lg":"20px","icon-xl":"24px","duration-instant":"80ms","duration-fast":"140ms","duration-normal":"200ms","duration-slow":"320ms","ease-out":"cubic-bezier(0.22, 1, 0.36, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)","ease-spring":"cubic-bezier(0.34, 1.4, 0.64, 1)","duration-spin":"700ms","duration-shimmer":"1400ms"},ln={"space-2":"6px","space-3":"8px","space-4":"12px","space-5":"16px","space-6":"24px","space-7":"32px","font-size-2xs":"11px","font-size-xs":"12px","font-size-sm":"13px","font-size-base":"15px","font-size-body":"16px","font-size-lg":"18px","font-size-xl":"21px","font-size-2xl":"25px","font-size-3xl":"31px","font-size-4xl":"39px","leading-normal":"1.5","leading-relaxed":"1.6"},dn={heading:"system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif",body:"system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif",mono:"ui-monospace, 'SF Mono', Menlo, Consolas, monospace"},fa="--hanui-",xa="hanui-theme-overrides",Fe="data-hanui-theme",ea="data-hanui-density",va="hanui-theme-switching",un=(e,a)=>{const s=e==="dark"?Fa:Aa,r=(e==="dark"?a==null?void 0:a.dark:a==null?void 0:a.light)??{};return{...s,...r}},Ma=e=>{const a=[],s=(i,u=" ")=>Object.entries(i).map(([p,_])=>`${u}${fa}${p}: ${_};`).join(`
|
|
2
2
|
`),r=e.fonts??{},o=Object.entries(r).filter(([,i])=>!!i);o.length>0&&a.push(`:root {
|
|
3
|
-
${o.map(([i,
|
|
3
|
+
${o.map(([i,u])=>` ${fa}font-${i}: ${u};`).join(`
|
|
4
4
|
`)}
|
|
5
5
|
}`);const c=e.metrics??{};if(Object.keys(c).length>0){const i=s(c);a.push(`:root {
|
|
6
6
|
${i}
|
|
7
|
-
}`),a.push(`:root[${
|
|
7
|
+
}`),a.push(`:root[${ea}='compact'] {
|
|
8
8
|
${i}
|
|
9
9
|
}`)}if(e.light&&Object.keys(e.light).length>0){const i=s(e.light);a.push(`:root {
|
|
10
10
|
${i}
|
|
11
|
-
}`),a.push(`:root[${
|
|
11
|
+
}`),a.push(`:root[${Fe}='light'] {
|
|
12
12
|
${i}
|
|
13
|
-
}`)}if(e.dark&&Object.keys(e.dark).length>0){const i=s(e.dark);a.push(`:root[${
|
|
13
|
+
}`)}if(e.dark&&Object.keys(e.dark).length>0){const i=s(e.dark);a.push(`:root[${Fe}='dark'] {
|
|
14
14
|
${i}
|
|
15
15
|
}`),a.push(`@media (prefers-color-scheme: dark) {
|
|
16
|
-
:root:not([${
|
|
16
|
+
:root:not([${Fe}]) {
|
|
17
17
|
${s(e.dark," ")}
|
|
18
18
|
}
|
|
19
19
|
}`)}return a.join(`
|
|
20
20
|
|
|
21
|
-
`)},Aa=e=>{if(!U.isClient())return;const a=e?La(e):"",s=document.getElementById(ba);if(a===""){s==null||s.remove();return}const r=s??document.createElement("style");r.id=ba,r.textContent=a,s||document.head.appendChild(r)},Fa=n.createContext({}),z=()=>n.useContext(Fa),dn=({children:e,theme:a,linkComponent:s,labels:r})=>{const o=n.useMemo(()=>a?JSON.stringify(a):"",[a]);n.useEffect(()=>{Aa(a)},[o]);const c=n.useRef(a);c.current=a;const i=n.useMemo(()=>({theme:c.current,linkComponent:s,labels:r}),[o,s,r]);return t.jsx(Fa.Provider,{value:i,children:e})},un=(e={})=>{Aa(e.theme),U.isClient()&&(e.colorScheme&&document.documentElement.setAttribute(We,e.colorScheme),e.density&&document.documentElement.setAttribute(Sa,e.density))},_n="hanui-live-region",hn=e=>{if(!U.isClient())return null;const a=`${_n}-${e}`,s=document.getElementById(a);if(s)return s;const r=document.createElement("div");return r.id=a,r.setAttribute("aria-live",e),r.setAttribute("aria-atomic","true"),r.className="hanui-visually-hidden",document.body.appendChild(r),r},pn=(e,a)=>{e.textContent="",window.requestAnimationFrame(()=>{e.textContent=a})},At=()=>n.useCallback((e,a="polite")=>{const s=e.trim();if(s==="")return;const r=hn(a);r&&pn(r,s)},[]),fa=()=>{var e;return U.isClient()&&((e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"},mn=()=>{if(!U.isClient())return"system";const e=document.documentElement.getAttribute(We);return e==="dark"||e==="light"?e:"system"},bn=()=>{const[e,a]=n.useState("light"),[s,r]=n.useState("light"),[o,c]=n.useState(!1);n.useEffect(()=>{a(mn()),r(fa()),c(!0)},[]),n.useEffect(()=>{if(!U.isClient()||!window.matchMedia)return;const u=window.matchMedia("(prefers-color-scheme: dark)"),l=()=>r(fa());return u.addEventListener("change",l),()=>u.removeEventListener("change",l)},[]);const i=e==="system"?s:e,_=n.useCallback(u=>{if(!U.isClient())return;const l=document.documentElement;l.classList.add(ga),u==="system"?l.removeAttribute(We):l.setAttribute(We,u),a(u),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>l.classList.remove(ga))})},[]),p=n.useCallback(()=>_(i==="dark"?"light":"dark"),[i,_]);return{scheme:i,preference:e,setScheme:_,toggle:p,isReady:o}},gn=()=>{!U.isClient()||typeof window.scrollTo!="function"||window.scrollTo({top:0,left:0,behavior:"instant"})},Zt=(e,a)=>{typeof(e==null?void 0:e.scrollIntoView)=="function"&&e.scrollIntoView(a)},ea=({count:e,isOpen:a,initialIndex:s=0,onSelect:r,onClose:o},{hasSpaceSelect:c=!1}={})=>{const[i,_]=n.useState(s),p=n.useRef(null);n.useEffect(()=>{a&&_(s)},[a,s]),n.useEffect(()=>{_(l=>l>=e?Math.max(0,e-1):l)},[e]),n.useEffect(()=>{var l;a&&Zt((l=p.current)==null?void 0:l.querySelector(`[data-index="${i}"]`),{block:"nearest"})},[i,a,e]);const u=n.useCallback(l=>{const h=e-1;switch(l.key){case"ArrowDown":l.preventDefault(),_(d=>d>=h?0:d+1);break;case"ArrowUp":l.preventDefault(),_(d=>d<=0?h:d-1);break;case"Home":l.preventDefault(),_(0);break;case"End":l.preventDefault(),_(h);break;case" ":case"Enter":{if(l.key===" "&&!c)break;l.preventDefault(),e>0&&r(i);break}case"Escape":l.preventDefault(),o();break;case"Tab":o();break}},[i,e,c,o,r]);return{activeIndex:i,setActiveIndex:_,listRef:p,handleKeyDown:u}},Kt={top:"bottom",bottom:"top",left:"right",right:"left"},xa=(e,a,s)=>s<a?a:Math.min(Math.max(e,a),s),Ut=(e,a,s,r,o)=>{const c=s==="top"||s==="bottom",i={top:e.top-a.height-o,bottom:e.top+e.height+o,left:e.left-a.width-o,right:e.left+e.width+o}[s],_=c?e.left:e.top,p=c?e.width:e.height,u=c?a.width:a.height,l={start:_,center:_+p/2-u/2,end:_+p-u}[r];return c?{top:i,left:l}:{top:l,left:i}},va=(e,a,s,r,o)=>({top:e.top>=r,bottom:e.top+a.height<=o.height-r,left:e.left>=r,right:e.left+a.width<=o.width-r})[s],jt=(e,a,{side:s="top",align:r="center",offset:o=8,padding:c=8,isOpen:i})=>{const[_,p]=n.useState({style:{position:"fixed",top:0,left:0},side:s,isPositioned:!1}),u=n.useRef(0),l=n.useCallback(()=>{const b=e.current,y=a.current;if(!b||!y)return;const g=b.getBoundingClientRect(),m=y.getBoundingClientRect(),f={width:window.innerWidth,height:window.innerHeight},v=Ut(g,m,s,r,o),E=va(v,m,s,c,f)?s:va(Ut(g,m,Kt[s],r,o),m,Kt[s],c,f)?Kt[s]:s,w=Ut(g,m,E,r,o);p({style:{position:"fixed",top:Math.round(xa(w.top,c,f.height-m.height-c)),left:Math.round(xa(w.left,c,f.width-m.width-c))},side:E,isPositioned:!0})},[e,a,s,r,o,c]),h=n.useCallback(()=>{u.current||(u.current=window.requestAnimationFrame(()=>{u.current=0,l()}))},[l]);return(U.isClient()?n.useLayoutEffect:n.useEffect)(()=>{var y,g;if(!i){p(m=>m.isPositioned?{...m,isPositioned:!1}:m);return}l(),window.addEventListener("resize",h),(y=window.visualViewport)==null||y.addEventListener("resize",h),(g=window.visualViewport)==null||g.addEventListener("scroll",h),document.addEventListener("scroll",h,!0);const b=typeof ResizeObserver>"u"?null:new ResizeObserver(h);return b&&a.current&&b.observe(a.current),b&&e.current&&b.observe(e.current),()=>{var m,f;window.removeEventListener("resize",h),(m=window.visualViewport)==null||m.removeEventListener("resize",h),(f=window.visualViewport)==null||f.removeEventListener("scroll",h),document.removeEventListener("scroll",h,!0),b==null||b.disconnect(),u.current&&(window.cancelAnimationFrame(u.current),u.current=0)}},[i,l,h,e,a]),_},fn=40,xn=6,Ma=(e,{rowHeight:a=fn,overscan:s=xn,isEnabled:r=!0}={})=>{const o=n.useRef(null),[c,i]=n.useState({start:0,end:e,totalHeight:e*a,offset:0}),_=n.useCallback(()=>{const u=o.current,l=!r||!u||u.clientHeight===0?{start:0,end:e,totalHeight:e*a,offset:0}:(()=>{const h=Math.ceil(u.clientHeight/a),d=Math.floor(u.scrollTop/a),b=Math.max(0,d-s),y=Math.min(e,d+h+s);return{start:b,end:y,totalHeight:e*a,offset:b*a}})();i(h=>h.start===l.start&&h.end===l.end&&h.totalHeight===l.totalHeight&&h.offset===l.offset?h:l)},[e,r,s,a]);n.useEffect(_),n.useEffect(()=>{const u=o.current;if(!u)return;u.addEventListener("scroll",_,{passive:!0});const l=typeof ResizeObserver>"u"?null:new ResizeObserver(_);return l==null||l.observe(u),()=>{u.removeEventListener("scroll",_),l==null||l.disconnect()}},[_]);const p=n.useCallback(u=>{const l=o.current;if(!l||!r)return;const h=u*a,d=h+a;h<l.scrollTop?l.scrollTop=h:d>l.scrollTop+l.clientHeight&&(l.scrollTop=d-l.clientHeight)},[r,a]);return{scrollRef:o,range:c,scrollToIndex:p,measure:_}};let vt=0,Ee=null;const vn=()=>{if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iP(hone|ad|od)/.test(e)?!0:/Macintosh/.test(e)&&navigator.maxTouchPoints>1},yn=()=>{if(vt+=1,vt>1)return;const{body:e,style:a}={body:document.body,style:document.documentElement.style},s=window.scrollY;Ee={overflow:e.style.overflow,position:e.style.position,top:e.style.top,width:e.style.width,paddingRight:e.style.paddingRight,scrollY:s};const r=window.innerWidth-document.documentElement.clientWidth;r>0&&(e.style.paddingRight=`${r}px`),a.setProperty("scrollbar-gutter","stable"),e.style.overflow="hidden",vn()&&(e.style.position="fixed",e.style.top=`${-s}px`,e.style.width="100%")},wn=()=>{if(vt=Math.max(0,vt-1),vt>0||!Ee)return;const{body:e}=document,{scrollY:a}=Ee;e.style.overflow=Ee.overflow,e.style.position=Ee.position,e.style.top=Ee.top,e.style.width=Ee.width,e.style.paddingRight=Ee.paddingRight,document.documentElement.style.removeProperty("scrollbar-gutter"),Ee=null,window.scrollTo(0,a)},Nt=(e=!0)=>{n.useEffect(()=>{if(e)return yn(),wn},[e])},Ba="--hanui-sheet-height",Pa="--hanui-sheet-inset-bottom";let $t=0,rt=0;const kn=240,Oa=()=>{const e=window.visualViewport;if(!e||e.height<kn)return;const a=window.innerHeight-e.height-e.offsetTop,s=document.documentElement;s.style.setProperty(Pa,`${Math.max(0,Math.round(a))}px`),s.style.setProperty(Ba,`${Math.round(e.height)}px`)},Qe=()=>{rt||(rt=window.requestAnimationFrame(()=>{rt=0,Oa()}))},ya=()=>{rt&&(window.cancelAnimationFrame(rt),rt=0)},ta=(e=!0)=>{n.useEffect(()=>{if(!e)return;const a=window.visualViewport;if(a)return $t+=1,$t===1&&(a.addEventListener("resize",Qe),a.addEventListener("scroll",Qe),window.addEventListener("orientationchange",Qe)),ya(),Oa(),()=>{$t-=1,!($t>0)&&(a.removeEventListener("resize",Qe),a.removeEventListener("scroll",Qe),window.removeEventListener("orientationchange",Qe),ya(),document.documentElement.style.removeProperty(Pa),document.documentElement.style.removeProperty(Ba))}},[e])};var ve=(e=>(e.PRIMARY="PRIMARY",e.CART="CART",e.SECONDARY="SECONDARY",e.OUTLINE="OUTLINE",e.DARK="DARK",e.LIGHT="LIGHT",e.GHOST="GHOST",e.DANGER="DANGER",e))(ve||{}),Fe=(e=>(e.SMALL="SMALL",e.MEDIUM="MEDIUM",e.LARGE="LARGE",e))(Fe||{});const Ha=640,jn=768,za=1024,Nn=`(min-width: ${za+1}px)`,Ft=`(min-width: ${Ha+1}px)`,Wt=e=>e.replace(/İ/g,"i").replace(/I/g,"i").replace(/ı/g,"i").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ş/g,"s").replace(/ğ/g,"g").replace(/ç/g,"c").replace(/ø/g,"o").replace(/æ/g,"ae").replace(/ß/g,"ss").replace(/đ/g,"d").replace(/ł/g,"l").replace(/\s+/g," ").trim(),wt=(e,a)=>Wt(e).includes(Wt(a)),$n=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),Ka=e=>{if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const a=e.getAttribute("contenteditable");if(a===""||a==="true"||a==="plaintext-only")return!0;const s=e.tagName;return s==="TEXTAREA"?!0:s!=="INPUT"?!1:!$n.has(e.type)},Mt=e=>{const a=e.ownerDocument.activeElement;!e.contains(a)||!Ka(a)||(a.blur(),e.tabIndex=-1,e.focus({preventScroll:!0}))},it=()=>{const e=typeof document>"u"?null:document.activeElement;return()=>{e instanceof HTMLElement&&e.isConnected&&e.focus({preventScroll:!0})}},En=["a[href]","button:not(:disabled)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].map(e=>`${e}:not([inert]):not([aria-hidden="true"])`).join(", "),Bt=(e,a="[data-hanui-close]")=>{const s=e.querySelector("[data-hanui-autofocus]");if(s){s.focus({preventScroll:!0});return}const r=[...e.querySelectorAll(En)],o=r.find(c=>!c.matches(a))??r[0];if(o){o.focus({preventScroll:!0});return}e.tabIndex=-1,e.focus({preventScroll:!0})},Rt=[],Pt=()=>{const e=Symbol("hanui-modal");return Rt.push(e),{token:e,pop:()=>{const a=Rt.indexOf(e);a>=0&&Rt.splice(a,1)}}},Ot=e=>Rt.at(-1)===e,x=(...e)=>{let a="";for(const s of e)s&&(a=a===""?s:`${a} ${s}`);return a},L=(e,a)=>Object.assign(e,{displayName:a}),he=({children:e,...a})=>{const{linkComponent:s}=z();return s?t.jsx(s,{...a,children:e}):t.jsx("a",{...a,children:e})},wa=new Set,B=(e,...a)=>{for(const s of a)if(s!==void 0)return s;return process.env.NODE_ENV!=="production"&&!wa.has(e)&&(wa.add(e),console.error(`[hanui] Eksik metin: ${e}. Prop olarak geçin ya da <HanuiProvider labels={…}> içinde bir kez tanımlayın. Metinsiz bırakılan öğe ekran okuyucuda adsız kalır.`)),""},St=(e,a,...s)=>a?a(...s):B(e),Tn="hanui-spinner-7pXwf",Cn="hanui-spinner__label-sZvSq",qt={spinner:Tn,spinner__label:Cn,"spinner--sm":"hanui-spinner--sm-uI0wH","spinner--md":"hanui-spinner--md--VmFK","spinner--lg":"hanui-spinner--lg-K9k-Z"},In=({size:e="md",label:a,className:s})=>{const{labels:r}=z();return t.jsx("span",{className:x(qt.spinner,qt[`spinner--${e}`],s),role:"status",children:t.jsx("span",{className:qt.spinner__label,children:a??B("Spinner.label",r==null?void 0:r.loading)})})},aa=n.memo(In),Rn="hanui-button-SRu4R",Dn="hanui-button__icon-giom6",Sn="hanui-button__spinner-vexVG",Ln="hanui-button__label-qiMHm",we={button:Rn,button__icon:Dn,button__spinner:Sn,button__label:Ln,"button--full":"hanui-button--full-CwPHR","button--loading":"hanui-button--loading-O-naJ","button--small":"hanui-button--small-TF9Hz","button--medium":"hanui-button--medium-JDjkH","button--large":"hanui-button--large-btadu","button--primary":"hanui-button--primary-ym7RJ","button--cart":"hanui-button--cart-5DVmR","button--secondary":"hanui-button--secondary-56m1d","button--outline":"hanui-button--outline-ZI8sw","button--dark":"hanui-button--dark-FGZgn","button--light":"hanui-button--light-YzEPs","button--ghost":"hanui-button--ghost-rijnZ","button--danger":"hanui-button--danger-TNGd2"},An=n.forwardRef(({variant:e=ve.PRIMARY,size:a=Fe.MEDIUM,isLoading:s,isFullWidth:r,startIcon:o,endIcon:c,className:i,children:_,disabled:p,href:u,isExternal:l,linkProps:h,testId:d,...b},y)=>{const g=x(we.button,we[`button--${e.toLowerCase()}`],we[`button--${a.toLowerCase()}`],r&&we["button--full"],s&&we["button--loading"],i),m=t.jsxs(t.Fragment,{children:[s&&t.jsx(aa,{size:"sm",className:we.button__spinner,label:""}),!s&&o&&t.jsx("span",{className:we.button__icon,children:o}),t.jsx("span",{className:we.button__label,children:_}),c&&t.jsx("span",{className:we.button__icon,children:c})]});return u&&l?t.jsx("a",{href:u,className:g,target:"_blank",rel:"noopener noreferrer","aria-label":b["aria-label"],"data-testid":d,children:m}):u?t.jsx(he,{href:u,className:g,"data-testid":d,...h,children:m}):t.jsx("button",{ref:y,className:g,disabled:p||s,"aria-busy":s,"data-testid":d,...b,children:m})}),ot=n.memo(L(An,"Button")),Fn="hanui-iconButton-JdtwM",Yt={iconButton:Fn,"iconButton--sm":"hanui-iconButton--sm-wE6zE","iconButton--md":"hanui-iconButton--md-iTNNS","iconButton--ghost":"hanui-iconButton--ghost-w-8K3","iconButton--outline":"hanui-iconButton--outline-vEhcY","iconButton--solid":"hanui-iconButton--solid-NUszP","iconButton--cart":"hanui-iconButton--cart-nVsH-","iconButton--danger":"hanui-iconButton--danger-xKkEA"},Mn=n.forwardRef(({icon:e,label:a,variant:s="ghost",size:r="md",className:o,type:c="button",href:i,linkProps:_,testId:p,...u},l)=>{const h=x(Yt.iconButton,Yt[`iconButton--${s}`],Yt[`iconButton--${r}`],o);return i?t.jsx(he,{href:i,className:h,"aria-label":a,title:u.title,"data-testid":p,..._,children:e}):t.jsx("button",{ref:l,type:c,className:h,"aria-label":a,"data-testid":p,...u,children:e})}),ye=n.memo(L(Mn,"IconButton")),Bn="hanui-link-WBmXY",Pn="hanui-link__label--OEu-",On="hanui-link__arrow-JKXm-",_t={link:Bn,link__label:Pn,link__arrow:On,"link--sm":"hanui-link--sm-a-3Dz","link--md":"hanui-link--md-lZdYP","link--brand":"hanui-link--brand-vr8sW","link--muted":"hanui-link--muted-EeN6l"},Hn=({href:e,children:a,hasArrow:s,tone:r="brand",size:o="md",className:c,linkProps:i,..._})=>t.jsxs(he,{href:e,className:x(_t.link,_t[`link--${r}`],_t[`link--${o}`],c),...i,..._,children:[t.jsx("span",{className:_t.link__label,children:a}),s&&t.jsx(D.ArrowRight,{"aria-hidden":!0,className:_t.link__arrow})]}),zn=n.memo(Hn),na=(e,a)=>{n.useEffect(()=>{if(!e)return;const s=r=>{r.key==="Escape"&&a()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,a])},sa=e=>{var s;const a=((s=e==null?void 0:e.closest)==null?void 0:s.call(e,"dialog"))??null;return a&&a.isConnected?{container:a,needsTopLayer:Kn(a)}:{container:document.body,needsTopLayer:!1}},Kn=e=>{try{return e.matches(":modal")}catch{return e.hasAttribute("open")}},ra={margin:0,right:"auto",bottom:"auto"},oa=e=>{if(!e||typeof e.showPopover!="function")return()=>{};try{e.showPopover()}catch{return()=>{}}return()=>{try{e.isConnected&&e.hidePopover()}catch{}}},Un="hanui-tooltip-RG1g1",qn="hanui-tooltip__trigger-nWZtO",Yn="hanui-bubble-bcBNk",Et={tooltip:Un,tooltip__trigger:qn,bubble:Yn,"bubble--top":"hanui-bubble--top-uWSZy","bubble--bottom":"hanui-bubble--bottom-jKokL","bubble--left":"hanui-bubble--left-WK4EM","bubble--right":"hanui-bubble--right-EQjUT"},Xn=120,Gn=500,Wn=300,Vn=({content:e,children:a,side:s,position:r,openDelay:o=Wn,className:c})=>{const[i,_]=n.useState(!1),p=n.useId(),u=s??r??"top",l=n.useRef(null),h=n.useRef(null),d=n.useRef(0),b=n.useRef(0),y=jt(l,h,{side:u,align:"center",isOpen:i}),g=i&&U.isClient()?sa(l.current):null;n.useEffect(()=>{if(!(!i||!(g!=null&&g.needsTopLayer)))return oa(h.current)},[i,g==null?void 0:g.needsTopLayer]);const m=n.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=0},[]),f=n.useCallback(C=>{m(),d.current=window.setTimeout(()=>_(!0),C)},[m]),v=n.useCallback((C=Xn)=>{m(),d.current=window.setTimeout(()=>_(!1),C)},[m]);n.useEffect(()=>m,[m]),n.useEffect(()=>()=>{b.current&&window.clearTimeout(b.current)},[]);const E=n.useCallback(()=>v(0),[v]);na(i,E),n.useEffect(()=>{if(!i)return;const C=N=>{var k;N.pointerType!=="mouse"&&((k=l.current)!=null&&k.contains(N.target)||v(0))};return document.addEventListener("pointerdown",C),()=>document.removeEventListener("pointerdown",C)},[i,v]);const w=()=>{b.current&&window.clearTimeout(b.current),b.current=0},T=C=>{C.pointerType!=="mouse"&&(b.current=window.setTimeout(()=>_(!0),Gn))};return t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:l,className:x(Et.tooltip,c),onPointerEnter:C=>C.pointerType==="mouse"&&f(o),onPointerLeave:C=>{w(),C.pointerType==="mouse"&&v()},onPointerDown:T,onPointerUp:w,onPointerCancel:w,onFocus:()=>f(0),onBlur:()=>v(0),onContextMenu:C=>{(i||b.current)&&C.preventDefault()},children:t.jsx("span",{"aria-describedby":i?p:void 0,className:Et.tooltip__trigger,children:a})}),i&&g&&kt.createPortal(t.jsx("span",{ref:h,...g.needsTopLayer?{popover:"manual"}:{},id:p,role:"tooltip",className:x(Et.bubble,Et[`bubble--${y.side}`]),style:{...y.style,...g.needsTopLayer?ra:{},visibility:y.isPositioned?"visible":"hidden"},onPointerEnter:m,onPointerLeave:()=>v(),children:e}),g.container)]})},Qn=n.memo(L(Vn,"Tooltip")),Jn="hanui-menu-1x-FU",Zn="hanui-menu__item-d1iil",es="hanui-menu__icon-kzLV2",ht={menu:Jn,"menu--top":"hanui-menu--top-gpo39","menu--bottom":"hanui-menu--bottom-6sL7b","menu--left":"hanui-menu--left-4w-O8","menu--right":"hanui-menu--right-XmM8G",menu__item:Zn,"menu__item--danger":"hanui-menu__item--danger-lIINY",menu__icon:es},ts=e=>e.map((a,s)=>a.isDisabled?-1:s).filter(a=>a>=0),as=({trigger:e,items:a,label:s,side:r="bottom",align:o="start",className:c,testId:i})=>{const _=n.useId(),p=n.useRef(null),u=n.useRef(null),l=n.useRef(null),h=n.useRef({text:"",at:0}),[d,b]=n.useState(!1),[y,g]=n.useState(0),m=jt(p,u,{side:r,align:o,isOpen:d}),f=ts(a),v=d&&U.isClient()?sa(p.current):null;n.useEffect(()=>{if(!(!d||!(v!=null&&v.needsTopLayer)))return oa(u.current)},[d,v==null?void 0:v.needsTopLayer]);const E=n.useCallback(j=>{f.length!==0&&(l.current=it(),g(j==="first"?f[0]:f[f.length-1]),b(!0))},[f]),w=n.useCallback(()=>{var j;b(!1),(j=l.current)==null||j.call(l),l.current=null},[]);n.useEffect(()=>{var j,M;d&&((M=(j=u.current)==null?void 0:j.querySelector(`[data-index="${y}"]`))==null||M.focus({preventScroll:!0}))},[d,y]),n.useEffect(()=>{if(!d)return;const j=M=>{var G,K;const Y=M.target;(G=u.current)!=null&&G.contains(Y)||(K=p.current)!=null&&K.contains(Y)||w()};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[d,w]);const T=j=>{const Y=(f.indexOf(y)+j+f.length)%f.length;g(f[Y])},C=j=>{const M=Date.now(),Y=M-h.current.at>500?j:h.current.text+j;h.current={text:Y,at:M};const G=f.find(K=>a[K].label.toLocaleLowerCase("tr").startsWith(Y.toLocaleLowerCase("tr")));G!==void 0&&g(G)},N=j=>{switch(j.key){case"ArrowDown":j.preventDefault(),T(1);break;case"ArrowUp":j.preventDefault(),T(-1);break;case"Home":j.preventDefault(),g(f[0]);break;case"End":j.preventDefault(),g(f[f.length-1]);break;case"Escape":j.preventDefault(),w();break;case"Tab":w();break;default:j.key.length===1&&!j.metaKey&&!j.ctrlKey&&C(j.key)}},k=j=>{if(j.key==="ArrowUp"){j.preventDefault(),E("last");return}["ArrowDown","Enter"," "].includes(j.key)&&(j.preventDefault(),E("first"))};if(!n.isValidElement(e))return null;const I=e.props,$=n.cloneElement(e,{ref:p,"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?_:void 0,onClick:j=>{var M;(M=I.onClick)==null||M.call(I,j),d?w():E("first")},onKeyDown:j=>{var M;(M=I.onKeyDown)==null||M.call(I,j),d||k(j)}});return t.jsxs(t.Fragment,{children:[$,d&&v&&kt.createPortal(t.jsx("div",{ref:u,id:_,role:"menu","aria-label":s,...v.needsTopLayer?{popover:"manual"}:{},className:x(ht.menu,ht[`menu--${m.side}`],c),style:{...m.style,...v.needsTopLayer?ra:{},visibility:m.isPositioned?"visible":"hidden"},"data-testid":i,onKeyDown:N,children:a.map((j,M)=>t.jsxs("button",{type:"button",role:"menuitem","data-index":M,tabIndex:M===y?0:-1,disabled:j.isDisabled,className:x(ht.menu__item,j.isDanger&&ht["menu__item--danger"]),onClick:()=>{j.onSelect(),w()},children:[j.icon&&t.jsx("span",{className:ht.menu__icon,"aria-hidden":!0,children:j.icon}),j.label]},j.id))}),v.container)]})},ns=n.memo(L(as,"Menu")),ss="hanui-popover-VxgiK",ka={popover:ss,"popover--top":"hanui-popover--top-OUYwo","popover--bottom":"hanui-popover--bottom-Q1K4X","popover--left":"hanui-popover--left-9Rsjx","popover--right":"hanui-popover--right-0TJeo"},rs=({trigger:e,children:a,label:s,side:r="bottom",align:o="start",isOpen:c,onOpenChange:i,className:_,testId:p})=>{const u=n.useId(),l=n.useRef(null),h=n.useRef(null),d=n.useRef(null),[b,y]=n.useState(!1),g=c!==void 0,m=g?c:b,f=jt(l,h,{side:r,align:o,isOpen:m}),v=m&&U.isClient()?sa(l.current):null;n.useEffect(()=>{if(!(!m||!(v!=null&&v.needsTopLayer)))return oa(h.current)},[m,v==null?void 0:v.needsTopLayer]);const E=n.useCallback(N=>{g||y(N),i==null||i(N)},[g,i]);n.useEffect(()=>{if(!m)return;d.current=it();const N=h.current;return N&&Bt(N),()=>{var k;(k=d.current)==null||k.call(d),d.current=null}},[m]);const w=n.useCallback(()=>E(!1),[E]);if(na(m,w),n.useEffect(()=>{if(!m)return;const N=k=>{var $,j;const I=k.target;($=h.current)!=null&&$.contains(I)||(j=l.current)!=null&&j.contains(I)||E(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[m,E]),!n.isValidElement(e))return null;const T=e.props,C=n.cloneElement(e,{ref:l,"aria-expanded":m,"aria-haspopup":"dialog","aria-controls":m?u:void 0,onClick:N=>{var k;(k=T.onClick)==null||k.call(T,N),E(!m)}});return t.jsxs(t.Fragment,{children:[C,m&&v&&kt.createPortal(t.jsx("div",{ref:h,id:u,...v.needsTopLayer?{popover:"manual"}:{},role:"dialog","aria-label":s,className:x(ka.popover,ka[`popover--${f.side}`],_),style:{...f.style,...v.needsTopLayer?ra:{},visibility:f.isPositioned?"visible":"hidden"},"data-testid":p,onBlur:N=>{var I;const k=N.relatedTarget;k&&(N.currentTarget.contains(k)||(I=l.current)!=null&&I.contains(k)||k.closest('[role="listbox"],[role="menu"],[role="dialog"]')||E(!1))},children:a}),v.container)]})},os=n.memo(L(rs,"Popover")),is="hanui-chip--NLgU",cs="hanui-chip__icon-IjjSb",ls="hanui-chip__label-cT4hw",ds="hanui-chip__count-MBGO3",Ce={chip:is,chip__icon:cs,chip__label:ls,chip__count:ds,"chip--sm":"hanui-chip--sm-60H-S","chip--md":"hanui-chip--md--yAlm","chip--iconOnly":"hanui-chip--iconOnly-5LT1h","chip--selected":"hanui-chip--selected-FdpCr"},us=n.forwardRef(({children:e,icon:a,endIcon:s,count:r,isSelected:o,size:c="md",label:i,href:_,linkProps:p,className:u,type:l="button",role:h,testId:d,...b},y)=>{const g=x(Ce.chip,Ce[`chip--${c}`],o&&Ce["chip--selected"],!e&&Ce["chip--iconOnly"],u),m=t.jsxs(t.Fragment,{children:[a&&t.jsx("span",{className:Ce.chip__icon,"aria-hidden":!0,children:a}),e&&t.jsx("span",{className:Ce.chip__label,children:e}),U.isDefined(r)&&t.jsx("span",{className:Ce.chip__count,children:r}),s&&t.jsx("span",{className:Ce.chip__icon,"aria-hidden":!0,children:s})]});return _?t.jsx(he,{href:_,className:g,"aria-label":e?void 0:i,"aria-current":o?"page":void 0,"data-testid":d,...p,children:m}):t.jsx("button",{ref:y,type:l,role:h,className:g,"aria-label":e?void 0:i,"data-testid":d,...h==="radio"?{"aria-checked":!!o}:{"aria-pressed":!!o},...b,children:m})}),Ua=n.memo(L(us,"Chip")),_s="hanui-group-0tnVf",ja={group:_s,"group--scrollable":"hanui-group--scrollable-PMu6V"},hs=({options:e,label:a,size:s="md",isScrollable:r,className:o,...c})=>{var h;const i=n.useRef(null),_=d=>c.isMultiple?c.value.includes(d):c.value===d,p=d=>{if(c.isMultiple){const b=c.value.includes(d)?c.value.filter(y=>y!==d):[...c.value,d];c.onChange(b);return}c.onChange(c.value===d?null:d)},u=d=>{var f,v;if(c.isMultiple)return;const b=d.key==="ArrowRight"||d.key==="ArrowDown"?1:d.key==="ArrowLeft"||d.key==="ArrowUp"?-1:0;if(b===0)return;d.preventDefault();const y=e.filter(E=>!E.isDisabled);if(y.length===0)return;const g=y.findIndex(E=>E.value===c.value),m=y[(g+b+y.length)%y.length];c.onChange(m.value),(v=(f=i.current)==null?void 0:f.querySelector(`[data-chip-value="${m.value}"]`))==null||v.focus()},l=c.isMultiple?null:c.value??((h=e.find(d=>!d.isDisabled))==null?void 0:h.value)??null;return t.jsx("div",{ref:i,className:x(ja.group,r&&ja["group--scrollable"],o),role:c.isMultiple?"group":"radiogroup","aria-label":a,onKeyDown:u,children:e.map(d=>t.jsx(Ua,{size:s,icon:d.icon,count:d.count,isSelected:_(d.value),disabled:d.isDisabled,role:c.isMultiple?void 0:"radio",tabIndex:c.isMultiple||d.value===l?0:-1,"data-chip-value":d.value,onClick:()=>p(d.value),children:d.label},d.value))})},ps=n.memo(hs),ms=(e,a,s,r)=>{const o=n.useRef(s);o.current=s,n.useEffect(()=>{if(!a||!o.current)return;const c=window.setTimeout(()=>{var i;return(i=o.current)==null?void 0:i.call(o,e.trim())},r);return()=>window.clearTimeout(c)},[e,a,r])},bs="hanui-sheet-GEvdE",gs="hanui-sheet__header-NJgw-",fs="hanui-sheet__title-f-b07",xs="hanui-sheet__toolbar-eyhmW",vs="hanui-sheet__body-eJ2KB",ys="hanui-sheet__footer-NpsY5",Oe={sheet:bs,sheet__header:gs,sheet__title:fs,sheet__toolbar:xs,sheet__body:vs,sheet__footer:ys},ws=({title:e,closeLabel:a,onClose:s,children:r,toolbar:o,footer:c,closeAbove:i=Ft,className:_,testId:p})=>{const{labels:u}=z(),l=n.useId(),h=n.useRef(null);ta(),Nt(),n.useEffect(()=>{const y=it(),{token:g,pop:m}=Pt();return h.current=g,()=>{m(),h.current=null,y()}},[]),n.useEffect(()=>{const y=window.matchMedia(i),g=m=>{m.matches&&s()};return y.addEventListener("change",g),()=>y.removeEventListener("change",g)},[i,s]);const d=n.useCallback(y=>{!y||y.open||(y.showModal(),Bt(y,`.${Oe.sheet__header} button`),Mt(y))},[]),b=n.useCallback(y=>{y.target===y.currentTarget&&s()},[s]);return U.isClient()?kt.createPortal(t.jsxs("dialog",{ref:d,className:x(Oe.sheet,_),"aria-labelledby":l,"data-testid":p,onCancel:y=>{y.preventDefault(),!(h.current&&!Ot(h.current))&&s()},onClick:b,children:[t.jsxs("header",{className:Oe.sheet__header,children:[t.jsx("h2",{id:l,className:Oe.sheet__title,children:e}),t.jsx(ye,{icon:t.jsx(D.XLg,{"aria-hidden":!0}),label:B("BottomSheet.closeLabel",a,u==null?void 0:u.close),variant:"ghost",size:"sm",onClick:s})]}),o&&t.jsx("div",{className:Oe.sheet__toolbar,children:o}),t.jsx("div",{className:Oe.sheet__body,children:r}),c&&t.jsx("div",{className:Oe.sheet__footer,children:c})]}),document.body):null},ia=n.memo(ws),ks=80,Na=40,js=300,Ns="hanui-combobox-NtZoV",$s="hanui-combobox__trigger-2riRR",Es="hanui-combobox__leadingIcon-it2xz",Ts="hanui-combobox__value-acDlr",Cs="hanui-combobox__clear-EXOsc",Is="hanui-combobox__chevron-g-QzQ",Rs="hanui-combobox__panel-srBxl",Ds="hanui-combobox__search-THjer",Ss="hanui-combobox__searchIcon-vr4Bg",Ls="hanui-combobox__searchInput-JPp5h",As="hanui-combobox__list-p-eCs",Fs="hanui-combobox__option-CLWh-",Ms="hanui-combobox__optionText-Zm0D6",Bs="hanui-combobox__optionLabel-WvT4W",Ps="hanui-combobox__optionDescription-8OEzi",Os="hanui-combobox__check-MKlLz",Hs="hanui-combobox__empty-mZwBq",zs="hanui-combobox__srName-9PNXF",H={combobox:Ns,combobox__trigger:$s,"combobox__trigger--empty":"hanui-combobox__trigger--empty-RxwCq","combobox__trigger--open":"hanui-combobox__trigger--open-rw1ZS","combobox__trigger--invalid":"hanui-combobox__trigger--invalid-iZgiN","combobox__trigger--clearable":"hanui-combobox__trigger--clearable-shq9I",combobox__leadingIcon:Es,combobox__value:Ts,combobox__clear:Cs,combobox__chevron:Is,"combobox__chevron--open":"hanui-combobox__chevron--open-9kj1j",combobox__panel:Rs,combobox__search:Ds,combobox__searchIcon:Ss,combobox__searchInput:Ls,combobox__list:As,"combobox__list--sheet":"hanui-combobox__list--sheet-r3MzB",combobox__option:Fs,"combobox__option--active":"hanui-combobox__option--active--75Vq","combobox__option--selected":"hanui-combobox__option--selected-DVFGy","combobox__option--disabled":"hanui-combobox__option--disabled-e6VjI",combobox__optionText:Ms,combobox__optionLabel:Bs,combobox__optionDescription:Ps,combobox__check:Os,combobox__empty:Hs,combobox__srName:zs},Ks=({options:e,value:a,onChange:s,labels:r,isSearchHidden:o,onSearch:c,isLoading:i,isDisabled:_,isClearable:p,icon:u,id:l,className:h,testId:d,"aria-describedby":b,"aria-invalid":y})=>{var pa;const{labels:g}=z(),m={get search(){var A;return B("Combobox.searchPlaceholder",r.searchPlaceholder,(A=g==null?void 0:g.combobox)==null?void 0:A.searchPlaceholder)},get empty(){var A;return B("Combobox.emptyMessage",r.emptyMessage,(A=g==null?void 0:g.combobox)==null?void 0:A.emptyMessage)},get loading(){var A;return B("Combobox.loadingMessage",r.loadingMessage,(A=g==null?void 0:g.combobox)==null?void 0:A.loadingMessage)},get clear(){var A;return B("Combobox.clearLabel",r.clearLabel,(A=g==null?void 0:g.combobox)==null?void 0:A.clearLabel)}},f=n.useId(),v=l??f,E=`${v}-listbox`,w=n.useRef(null),T=n.useRef(null),C=n.useRef(null),N=n.useRef(null),[k,I]=n.useState(null),$=k!==null,[j,M]=n.useState(""),[Y,G]=n.useState(null),K=n.useMemo(()=>{if(c||j.trim()==="")return e;const A=j.trim();return e.filter(be=>wt(be.label,A)||(be.description?wt(be.description,A):!1))},[e,j,c]),oe=e.find(A=>A.value===a)??null;n.useEffect(()=>{oe?G(oe.label):a===null&&G(null)},[oe,a]);const Me=(oe==null?void 0:oe.label)??Y;ms(j,$,c,js);const pe=n.useCallback(()=>{I(null),M("")},[]),Ht=n.useCallback(()=>{_||(I(window.matchMedia(Ft).matches?"popover":"sheet"),M(""))},[_]);n.useEffect(()=>{if(k!=="popover")return;const A=be=>{var le;(le=w.current)!=null&&le.contains(be.target)||pe()};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[k,pe]),n.useEffect(()=>{var A;k==="popover"&&((A=N.current)==null||A.focus({preventScroll:!0}))},[k]);const ct=A=>{A.isDisabled||(G(A.label),s(A.value),pe())},lt=n.useRef(!1);n.useEffect(()=>{var A;lt.current&&!$&&((A=T.current)==null||A.focus()),lt.current=$},[$]);const P=jt(T,C,{side:"bottom",align:"start",isOpen:$&&k==="popover"}),{activeIndex:W,setActiveIndex:me,listRef:dt,handleKeyDown:Va}=ea({count:K.length,isOpen:$,initialIndex:Math.max(e.findIndex(A=>A.value===a),0),onSelect:A=>{const be=K[A];be&&ct(be)},onClose:pe}),Qa=K.some(A=>!!A.description),Be=k==="popover"&&!Qa&&K.length>ks,{scrollRef:Ja,range:Pe,scrollToIndex:ua}=Ma(K.length,{rowHeight:Na,isEnabled:Be});n.useEffect(()=>{Be&&ua(W)},[W,Be,ua]);const Za=A=>{dt.current=A,Ja.current=A},en=Va,tn=()=>{s(null),G(null)},_a=o?null:t.jsxs("div",{className:H.combobox__search,children:[t.jsx(D.Search,{"aria-hidden":!0,className:H.combobox__searchIcon}),t.jsx("input",{ref:N,type:"text",role:"combobox",className:H.combobox__searchInput,value:j,placeholder:m.search,autoComplete:"off","aria-autocomplete":"list","aria-expanded":!0,"aria-controls":E,"aria-activedescendant":K[W]?`${v}-option-${W}`:void 0,"aria-label":m.search,onChange:A=>{M(A.target.value),me(0)},onKeyDown:en}),i&&t.jsx(aa,{size:"sm",label:""})]}),ha=A=>{const be=K.slice(Pe.start,Pe.end);return t.jsxs("ul",{ref:Za,id:E,role:"listbox",className:x(H.combobox__list,A&&H["combobox__list--sheet"]),children:[Be&&Pe.offset>0&&t.jsx("li",{"aria-hidden":!0,style:{height:Pe.offset}}),be.map((le,an)=>{const ut=Pe.start+an,nn=ut===W,zt=le.value===a;return t.jsxs("li",{id:`${v}-option-${ut}`,role:"option","data-index":ut,"aria-setsize":Be?K.length:void 0,"aria-posinset":Be?ut+1:void 0,"aria-selected":zt,"aria-disabled":le.isDisabled,className:x(H.combobox__option,nn&&H["combobox__option--active"],zt&&H["combobox__option--selected"],le.isDisabled&&H["combobox__option--disabled"]),onMouseEnter:()=>me(ut),onClick:()=>ct(le),children:[t.jsxs("span",{className:H.combobox__optionText,children:[t.jsx("span",{className:H.combobox__optionLabel,children:le.label}),le.description&&t.jsx("span",{className:H.combobox__optionDescription,children:le.description})]}),zt&&t.jsx(D.CheckLg,{"aria-hidden":!0,className:H.combobox__check})]},le.value)}),Be&&Pe.end<K.length&&t.jsx("li",{"aria-hidden":!0,style:{height:(K.length-Pe.end)*Na}}),K.length===0&&t.jsx("li",{className:H.combobox__empty,children:i?m.loading:m.empty})]})};return t.jsxs("div",{ref:w,className:x(H.combobox,h),"data-testid":d,children:[t.jsxs("button",{ref:T,id:v,type:"button",className:x(H.combobox__trigger,!Me&&H["combobox__trigger--empty"],$&&H["combobox__trigger--open"],y&&H["combobox__trigger--invalid"],p&&Me&&!_&&H["combobox__trigger--clearable"]),disabled:_,"aria-haspopup":"listbox","aria-expanded":$,"aria-controls":$?E:void 0,"aria-labelledby":Me?`${v}-name ${v}-value`:`${v}-name`,"aria-describedby":b,onClick:()=>$?pe():Ht(),children:[u&&t.jsx("span",{className:H.combobox__leadingIcon,"aria-hidden":!0,children:u}),t.jsx("span",{id:`${v}-name`,className:H.combobox__srName,children:r.placeholder}),t.jsx("span",{id:`${v}-value`,className:H.combobox__value,children:Me??r.placeholder}),t.jsx(D.CaretDownFill,{"aria-hidden":!0,className:x(H.combobox__chevron,$&&H["combobox__chevron--open"])})]}),p&&Me&&!_&&t.jsx("button",{type:"button",className:H.combobox__clear,"aria-label":m.clear,onClick:tn,children:t.jsx(D.XLg,{"aria-hidden":!0})}),k==="popover"&&t.jsxs("div",{ref:C,className:H.combobox__panel,style:{...P.style,width:(pa=T.current)==null?void 0:pa.offsetWidth,visibility:P.isPositioned?void 0:"hidden"},children:[_a,ha(!1)]}),k==="sheet"&&t.jsx(ia,{title:r.placeholder,closeLabel:r.closeLabel??(g==null?void 0:g.close),onClose:pe,toolbar:_a??void 0,children:ha(!0)})]})},Us=n.memo(Ks),qs="hanui-segmented-qo2Bw",Ys="hanui-segmented__item-mqRNZ",Xs="hanui-segmented__icon-C9CT-",Gs="hanui-segmented__label-NVXBv",Je={segmented:qs,"segmented--sm":"hanui-segmented--sm-7tUry","segmented--md":"hanui-segmented--md-PiSqt",segmented__item:Ys,"segmented__item--selected":"hanui-segmented__item--selected-r7CLj",segmented__icon:Xs,segmented__label:Gs},Ws=({options:e,value:a,onChange:s,label:r,isIconOnly:o,size:c="md",className:i,testId:_})=>{const p=n.useRef(null),u=l=>{var g,m;const h=l.key==="ArrowRight"||l.key==="ArrowDown"?1:l.key==="ArrowLeft"||l.key==="ArrowUp"?-1:0;if(h===0)return;l.preventDefault();const d=e.filter(f=>!f.isDisabled);if(d.length===0)return;const b=d.findIndex(f=>f.value===a),y=d[(b+h+d.length)%d.length];s(y.value),(m=(g=p.current)==null?void 0:g.querySelector(`[data-value="${y.value}"]`))==null||m.focus({preventScroll:!0})};return t.jsx("div",{ref:p,role:"radiogroup","aria-label":r,className:x(Je.segmented,Je[`segmented--${c}`],i),"data-testid":_,onKeyDown:u,children:e.map(l=>{const h=l.value===a;return t.jsxs("button",{type:"button",role:"radio","aria-checked":h,"aria-label":o?l.label:void 0,"data-value":l.value,disabled:l.isDisabled,tabIndex:h?0:-1,className:x(Je.segmented__item,h&&Je["segmented__item--selected"]),onClick:()=>!h&&s(l.value),children:[l.icon&&t.jsx("span",{className:Je.segmented__icon,"aria-hidden":!0,children:l.icon}),!o&&t.jsx("span",{className:Je.segmented__label,children:l.label})]},l.value)})})},Vs=n.memo(L(Ws,"SegmentedControl")),Qs="hanui-select-tiiPL",Js="hanui-trigger-rHQJz",Zs="hanui-trigger__icon-apCcx",er="hanui-trigger__srName-XLCxt",tr="hanui-trigger__value-ioH7K",ar="hanui-trigger__chevron-FtsIZ",nr="hanui-panel-rGOOd",sr="hanui-list-SOKf8",rr="hanui-option-ZDPef",or="hanui-option__label-SsoYB",ir="hanui-option__check-8CPSG",q={select:Qs,trigger:Js,"trigger--empty":"hanui-trigger--empty-cuinb","trigger--open":"hanui-trigger--open-1nsvu","trigger--invalid":"hanui-trigger--invalid-NtP0W","trigger--sm":"hanui-trigger--sm-Xnu1C",trigger__icon:Zs,trigger__srName:er,trigger__value:tr,trigger__chevron:ar,"trigger__chevron--open":"hanui-trigger__chevron--open-1P2P-",panel:nr,"panel--start":"hanui-panel--start-Fotwa","panel--end":"hanui-panel--end-ClVl2",list:sr,"list--sheet":"hanui-list--sheet-BIjCb",option:rr,"option--active":"hanui-option--active-R4lLF","option--selected":"hanui-option--selected-glQMj","option--disabled":"hanui-option--disabled-h4rdd",option__label:or,option__check:ir},cr=({options:e,value:a,onChange:s,label:r,placeholder:o,closeLabel:c,icon:i,size:_="md",align:p="start",isDisabled:u,id:l,className:h,testId:d,"aria-describedby":b,"aria-invalid":y})=>{const{labels:g}=z(),m=B("Select.placeholder",o,g==null?void 0:g.selectPlaceholder),f=n.useId(),v=l??f,E=`${v}-listbox`,w=P=>`${v}-option-${P}`,T=n.useRef(null),C=n.useRef(null),[N,k]=n.useState(null),I=N!==null,$=e.findIndex(P=>P.value===a),j=$>=0?e[$]:null,M=n.useCallback(()=>k(null),[]),Y=n.useCallback(()=>{u||e.length===0||k(window.matchMedia(Ft).matches?"popover":"sheet")},[u,e.length]),G=P=>{P.isDisabled||(s(P.value),M())},K=n.useRef(!1);n.useEffect(()=>{var P;K.current&&!I&&((P=C.current)==null||P.focus()),K.current=I},[I]),n.useEffect(()=>{if(N!=="popover")return;const P=W=>{var me;(me=T.current)!=null&&me.contains(W.target)||M()};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[N,M]);const{activeIndex:oe,setActiveIndex:Me,listRef:pe,handleKeyDown:Ht}=ea({count:e.length,isOpen:I,initialIndex:$>=0?$:0,onSelect:P=>{const W=e[P];W&&G(W)},onClose:M});n.useEffect(()=>{var P;N==="sheet"&&((P=pe.current)==null||P.focus({preventScroll:!0}))},[N,pe]);const ct=P=>{if(!I){["ArrowDown","ArrowUp","Enter"," "].includes(P.key)&&(P.preventDefault(),Y());return}Ht(P)},lt=P=>t.jsx("ul",{ref:pe,id:E,role:"listbox","aria-label":r,"aria-activedescendant":P&&e[oe]?w(oe):void 0,tabIndex:P?0:-1,className:x(q.list,P&&q["list--sheet"]),onKeyDown:P?ct:void 0,children:e.map((W,me)=>{const dt=W.value===a;return t.jsxs("li",{id:w(me),role:"option","data-index":me,"aria-selected":dt,"aria-disabled":W.isDisabled,className:x(q.option,me===oe&&q["option--active"],dt&&q["option--selected"],W.isDisabled&&q["option--disabled"]),onMouseEnter:()=>Me(me),onClick:()=>G(W),children:[t.jsx("span",{className:q.option__label,children:W.label}),dt&&t.jsx(D.CheckLg,{"aria-hidden":!0,className:q.option__check})]},W.value)})});return t.jsxs("span",{ref:T,className:x(q.select,h),"data-testid":d,children:[t.jsxs("button",{ref:C,id:v,type:"button",role:"combobox",className:x(q.trigger,q[`trigger--${_}`],!j&&q["trigger--empty"],I&&q["trigger--open"],y&&q["trigger--invalid"]),disabled:u,"aria-haspopup":"listbox","aria-expanded":I,"aria-controls":I?E:void 0,"aria-activedescendant":N==="popover"&&e[oe]?w(oe):void 0,"aria-labelledby":j?`${v}-name ${v}-value`:`${v}-name`,"aria-describedby":b,"aria-invalid":y,onClick:()=>I?M():Y(),onKeyDown:ct,children:[i&&t.jsx("span",{className:q.trigger__icon,"aria-hidden":!0,children:i}),t.jsx("span",{id:`${v}-name`,className:q.trigger__srName,children:r}),t.jsx("span",{id:`${v}-value`,className:q.trigger__value,children:(j==null?void 0:j.label)??m}),t.jsx(D.CaretDownFill,{"aria-hidden":!0,className:x(q.trigger__chevron,I&&q["trigger__chevron--open"])})]}),N==="popover"&&t.jsx("div",{className:x(q.panel,q[`panel--${p}`]),children:lt(!1)}),N==="sheet"&&t.jsx(ia,{title:r,closeLabel:c??(g==null?void 0:g.close),onClose:M,children:lt(!0)})]})},lr=n.memo(cr),dr="hanui-checkbox-FaFCj",ur="hanui-checkbox__input-nTHne",_r="hanui-checkbox__body-VAEW2",hr="hanui-checkbox__label-sSNZY",pr="hanui-checkbox__hint-ish-J",pt={checkbox:dr,checkbox__input:ur,checkbox__body:_r,checkbox__label:hr,checkbox__hint:pr},mr=n.forwardRef(({label:e,hint:a,className:s,testId:r,...o},c)=>t.jsxs("label",{className:x(pt.checkbox,s),"data-testid":r,children:[t.jsx("input",{ref:c,type:"checkbox",className:pt.checkbox__input,...o}),t.jsxs("span",{className:pt.checkbox__body,children:[t.jsx("span",{className:pt.checkbox__label,children:e}),a&&t.jsx("span",{className:pt.checkbox__hint,children:a})]})]})),br=n.memo(L(mr,"Checkbox")),gr="hanui-switch__input-Q2UQ4",fr="hanui-switch__label-gPZuO",xr="hanui-switch__hint-NRuzC",vr="hanui-switch__track-3417m",yr="hanui-switch__thumb-1LHta",wr="hanui-switch__text-32uMY",Ie={switch:"hanui-switch-KLH29",switch__input:gr,"switch--labelFirst":"hanui-switch--labelFirst-Grirk",switch__label:fr,switch__hint:xr,switch__track:vr,switch__thumb:yr,switch__text:wr},kr=n.forwardRef(({label:e,hint:a,isLabelFirst:s,className:r,id:o,testId:c,...i},_)=>t.jsxs("label",{className:x(Ie.switch,s&&Ie["switch--labelFirst"],r),"data-testid":c,children:[t.jsx("input",{ref:_,type:"checkbox",role:"switch",id:o,className:Ie.switch__input,...i}),t.jsx("span",{className:Ie.switch__track,"aria-hidden":!0,children:t.jsx("span",{className:Ie.switch__thumb})}),t.jsxs("span",{className:Ie.switch__text,children:[t.jsx("span",{className:Ie.switch__label,children:e}),a&&t.jsx("span",{className:Ie.switch__hint,children:a})]})]})),jr=n.memo(L(kr,"Switch")),Nr="hanui-radio-KoZak",$r="hanui-radio__input-gVMgh",Er="hanui-radio__body-oZWg6",Tr="hanui-radio__label-d-5ce",Cr="hanui-radio__hint-baVbs",Ir="hanui-radio__count-OtkUM",Ze={radio:Nr,radio__input:$r,radio__body:Er,radio__label:Tr,radio__hint:Cr,radio__count:Ir},Rr=n.forwardRef(({label:e,hint:a,count:s,className:r,testId:o,...c},i)=>t.jsxs("label",{className:x(Ze.radio,r),"data-testid":o,children:[t.jsx("input",{ref:i,type:"radio",className:Ze.radio__input,...c}),t.jsxs("span",{className:Ze.radio__body,children:[t.jsx("span",{className:Ze.radio__label,children:e}),a&&t.jsx("span",{className:Ze.radio__hint,children:a})]}),U.isDefined(s)&&t.jsx("span",{className:Ze.radio__count,children:s})]})),Dr=n.memo(L(Rr,"Radio")),Sr="hanui-radioCard-sndiC",Lr="hanui-radioCard__input-6vuoD",Ar="hanui-radioCard__indicator--x9LT",Fr="hanui-radioCard__body-CFqoi",et={radioCard:Sr,radioCard__input:Lr,"radioCard--selected":"hanui-radioCard--selected-Mi7ee",radioCard__indicator:Ar,"radioCard--disabled":"hanui-radioCard--disabled-YlYee",radioCard__body:Fr},Mr=({name:e,value:a,isSelected:s,isDisabled:r,onChange:o,children:c,className:i,id:_,testId:p})=>t.jsxs("label",{className:x(et.radioCard,s&&et["radioCard--selected"],r&&et["radioCard--disabled"],i),"data-testid":p,children:[t.jsx("input",{type:"radio",id:_,name:e,value:a,checked:s,disabled:r,onChange:()=>o(a),className:et.radioCard__input}),t.jsx("span",{className:et.radioCard__indicator,"aria-hidden":!0}),t.jsx("span",{className:et.radioCard__body,children:c})]}),Br=n.memo(Mr),Pr="hanui-range-RpDPh",Or="hanui-range__readout-itDMd",Hr="hanui-range__separator-u-ZJX",zr="hanui-range__track-bCh5Y",Kr="hanui-range__fill-VXMCE",Ur="hanui-range__input-TAN2I",qr="hanui-range__bounds-GIhFd",de={range:Pr,"range--disabled":"hanui-range--disabled-13hlc",range__readout:Or,range__separator:Hr,range__track:zr,range__fill:Kr,range__input:Ur,range__bounds:qr},Yr=({min:e,max:a,step:s=1,value:r,onChange:o,onCommit:c,formatValue:i=String,label:_,minLabel:p,maxLabel:u,isDisabled:l,className:h,testId:d})=>{var I,$;const{labels:b}=z(),y=B("RangeSlider.minLabel",p,(I=b==null?void 0:b.range)==null?void 0:I.min),g=B("RangeSlider.maxLabel",u,($=b==null?void 0:b.range)==null?void 0:$.max),[m,f]=r,v=n.useCallback(j=>o([Math.min(j,f),f]),[f,o]),E=n.useCallback(j=>o([m,Math.max(j,m)]),[m,o]),w=n.useCallback(()=>c==null?void 0:c([m,f]),[m,f,c]),T=a-e,C=T===0?0:U.normalize(m-e,T),N=T===0?0:U.normalize(f-e,T),k=C>50;return t.jsxs("div",{className:x(de.range,l&&de["range--disabled"],h),role:"group","aria-label":_,"data-testid":d,children:[t.jsxs("div",{className:de.range__readout,children:[t.jsx("span",{className:de.range__value,children:i(m)}),t.jsx("span",{className:de.range__separator,"aria-hidden":!0,children:"—"}),t.jsx("span",{className:de.range__value,children:i(f)})]}),t.jsxs("div",{className:de.range__track,children:[t.jsx("span",{className:de.range__fill,style:{left:`${C}%`,right:`${100-N}%`},"aria-hidden":!0}),t.jsx("input",{type:"range",className:de.range__input,style:{zIndex:k?4:3},min:e,max:a,step:s,value:m,disabled:l,"aria-label":`${_} — ${y}`,"aria-valuetext":i(m),onChange:j=>v(Number(j.target.value)),onPointerUp:w,onKeyUp:w}),t.jsx("input",{type:"range",className:de.range__input,style:{zIndex:k?3:4},min:e,max:a,step:s,value:f,disabled:l,"aria-label":`${_} — ${g}`,"aria-valuetext":i(f),onChange:j=>E(Number(j.target.value)),onPointerUp:w,onKeyUp:w})]}),t.jsxs("div",{className:de.range__bounds,"aria-hidden":!0,children:[t.jsx("span",{children:i(e)}),t.jsx("span",{children:i(a)})]})]})},Xr=n.memo(Yr),Gr="hanui-rating-neNnF",Wr="hanui-rating__legend-uYvFS",Vr="hanui-rating__stars-vJFLk",Qr="hanui-rating__star-BANFJ",Jr="hanui-rating__input-s2iiO",Zr="hanui-rating__srOnly-iSCoz",eo="hanui-rating__caption-13KFX",ke={rating:Gr,"rating--disabled":"hanui-rating--disabled-ZKjHa",rating__legend:Wr,rating__stars:Vr,rating__star:Qr,"rating__star--filled":"hanui-rating__star--filled-L3AkT",rating__input:Jr,rating__srOnly:Zr,rating__caption:eo},to=[1,2,3,4,5],ao=({value:e,onChange:a,label:s,ratingLabels:r,formatStarCount:o,isDisabled:c,className:i,testId:_})=>{var y;const{labels:p}=z(),u=r??((y=p==null?void 0:p.rating)==null?void 0:y.scale),l=n.useId(),[h,d]=n.useState(null),b=h??e;return t.jsxs("fieldset",{className:x(ke.rating,c&&ke["rating--disabled"],i),disabled:c,"data-testid":_,children:[t.jsx("legend",{className:ke.rating__legend,children:s}),t.jsx("div",{className:ke.rating__stars,onMouseLeave:()=>d(null),children:to.map(g=>{var m;return t.jsxs("label",{className:x(ke.rating__star,b!==null&&g<=b&&ke["rating__star--filled"]),onMouseEnter:()=>d(g),children:[t.jsx("input",{type:"radio",name:l,value:g,checked:e===g,onChange:()=>a(g),className:ke.rating__input}),t.jsx(D.StarFill,{"aria-hidden":!0}),t.jsxs("span",{className:ke.rating__srOnly,children:[St("RatingInput.formatStarCount",o??((m=p==null?void 0:p.rating)==null?void 0:m.starCount),g)," ","— ",(u==null?void 0:u[g])??""]})]},g)})}),b!==null&&t.jsx("span",{className:ke.rating__caption,"aria-hidden":!0,children:(u==null?void 0:u[b])??""})]})},no=n.memo(ao),so="hanui-stepper-8s5Ih",ro="hanui-stepper__button-h6g7d",oo="hanui-stepper__input-OQh5v",mt={stepper:so,stepper__button:ro,stepper__input:oo,"stepper--sm":"hanui-stepper--sm-RvrBP","stepper--md":"hanui-stepper--md-Cnjei"},io=({value:e,onChange:a,label:s,decreaseLabel:r,increaseLabel:o,min:c=1,max:i=99,isDisabled:_,size:p="md",className:u,testId:l})=>{var m,f,v;const{labels:h}=z(),d=B("QuantityStepper.label",s,(m=h==null?void 0:h.quantity)==null?void 0:m.label),[b,y]=n.useState(null),g=E=>{y(null);const w=Number(E.replace(/\D/g,""));w&&a(Math.min(Math.max(w,c),i))};return t.jsxs("div",{className:x(mt.stepper,mt[`stepper--${p}`],u),role:"group","aria-label":d,"data-testid":l,children:[t.jsx("button",{type:"button",className:mt.stepper__button,onClick:()=>a(Math.max(e-1,c)),disabled:_||e<=c,"aria-label":B("QuantityStepper.decreaseLabel",r,(f=h==null?void 0:h.quantity)==null?void 0:f.decrease),children:t.jsx(D.DashLg,{"aria-hidden":!0})}),t.jsx("input",{className:mt.stepper__input,value:b??String(e),onChange:E=>y(E.target.value.replace(/\D/g,"").slice(0,2)),onBlur:E=>g(E.target.value),onKeyDown:E=>{E.key==="Enter"&&(E.preventDefault(),g(E.target.value))},inputMode:"numeric",disabled:_,"aria-label":`${d} (${c}-${i})`}),t.jsx("button",{type:"button",className:mt.stepper__button,onClick:()=>a(Math.min(e+1,i)),disabled:_||e>=i,"aria-label":B("QuantityStepper.increaseLabel",o,(v=h==null?void 0:h.quantity)==null?void 0:v.increase),children:t.jsx(D.PlusLg,{"aria-hidden":!0})})]})},co=n.memo(io),lo="hanui-checkbox--dvpB",uo={checkbox:lo},_o=n.forwardRef(({label:e,isIndeterminate:a=!1,className:s,testId:r,...o},c)=>{const i=n.useRef(null);return n.useImperativeHandle(c,()=>i.current,[]),n.useEffect(()=>{i.current&&(i.current.indeterminate=a)},[a]),t.jsx("input",{ref:i,type:"checkbox","aria-label":e,"aria-checked":a?"mixed":void 0,className:x(uo.checkbox,s),"data-testid":r,...o})}),ho=n.memo(L(_o,"TableCheckbox")),po="hanui-wrapper-IAI4E",mo="hanui-wrapper__prefix-XKDlV",bo="hanui-wrapper__suffix-lT35q",go="hanui-input-pIS2u",He={wrapper:po,wrapper__prefix:mo,wrapper__suffix:bo,input:go,"input--hasPrefix":"hanui-input--hasPrefix-nsrWh","input--hasSuffix":"hanui-input--hasSuffix-OrE5A","input--technical":"hanui-input--technical---DCD"},fo=n.forwardRef(({prefix:e,suffix:a,isTechnical:s,className:r,testId:o,...c},i)=>t.jsxs("span",{className:x(He.wrapper,r),children:[e&&t.jsx("span",{className:He.wrapper__prefix,"aria-hidden":!0,children:e}),t.jsx("input",{ref:i,className:x(He.input,!!e&&He["input--hasPrefix"],!!a&&He["input--hasSuffix"],s&&He["input--technical"]),"data-testid":o,...c}),a&&t.jsx("span",{className:He.wrapper__suffix,"aria-hidden":!0,children:a})]})),ca=n.memo(L(fo,"Input")),xo="hanui-password-viMea",vo="hanui-password__field-WI1h1",yo="hanui-password__toggle-O6R2a",Xt={password:xo,password__field:vo,password__toggle:yo},wo=({className:e,showLabel:a,hideLabel:s,...r})=>{const{labels:o}=z(),[c,i]=n.useState(!1),_=c?B("PasswordInput.hideLabel",s,o==null?void 0:o.passwordHide):B("PasswordInput.showLabel",a,o==null?void 0:o.passwordShow);return t.jsxs("span",{className:Xt.password,children:[t.jsx(ca,{...r,className:`${Xt.password__field} ${e??""}`.trim(),type:c?"text":"password"}),t.jsx(ye,{className:Xt.password__toggle,icon:c?t.jsx(D.EyeSlashFill,{"aria-hidden":!0}):t.jsx(D.EyeFill,{"aria-hidden":!0}),label:_,variant:"ghost",size:"sm",onClick:()=>i(p=>!p)})]})},ko=n.memo(L(wo,"PasswordInput")),jo="hanui-tagInput-QraZR",No="hanui-tagInput__field-HeWrC",$o="hanui-tagInput__tag-D-ZWB",Eo="hanui-tagInput__remove-bpjGG",ze={tagInput:jo,tagInput__field:No,"tagInput--invalid":"hanui-tagInput--invalid-NQogL","tagInput--disabled":"hanui-tagInput--disabled--AJFF",tagInput__tag:$o,"tagInput__tag--duplicate":"hanui-tagInput__tag--duplicate-3-FMF",tagInput__remove:Eo},To=({values:e,onChange:a,label:s,placeholder:r,removeLabel:o,separators:c=["Enter",","],maxTags:i,isDisabled:_,id:p,className:u,testId:l,"aria-describedby":h,"aria-invalid":d})=>{const b=n.useId(),y=p??b,g=n.useRef(null),m=n.useRef(0);n.useEffect(()=>()=>{m.current&&window.clearTimeout(m.current)},[]);const f=At(),[v,E]=n.useState(""),[w,T]=n.useState(null),C=i!==void 0&&e.length>=i,N=$=>{const j=$.trim();if(j!==""){if(e.includes(j)){T(j),m.current&&window.clearTimeout(m.current),m.current=window.setTimeout(()=>T(null),1e3),f(`${j} zaten ekli`,"assertive"),E("");return}C||(a([...e,j]),E(""),f(`${j} eklendi`))}},k=$=>{a(e.filter(j=>j!==$)),f(`${$} kaldırıldı`)},I=$=>{if(c.includes($.key)){$.preventDefault(),N(v);return}if($.key==="Backspace"&&v===""){const j=e.at(-1);j!==void 0&&k(j)}};return t.jsxs("div",{className:x(ze.tagInput,_&&ze["tagInput--disabled"],d&&ze["tagInput--invalid"],u),"data-testid":l,onClick:()=>{var $;return($=g.current)==null?void 0:$.focus()},children:[e.map($=>t.jsxs("span",{className:x(ze.tagInput__tag,w===$&&ze["tagInput__tag--duplicate"]),children:[$,t.jsx("button",{type:"button",className:ze.tagInput__remove,"aria-label":`${$} — ${o}`,disabled:_,onClick:j=>{j.stopPropagation(),k($)},children:t.jsx(D.XLg,{"aria-hidden":!0})})]},$)),t.jsx("input",{ref:g,id:y,type:"text",className:ze.tagInput__field,value:v,placeholder:e.length===0?r:void 0,"aria-label":s,"aria-describedby":h,"aria-invalid":d,disabled:_||C,onChange:$=>E($.target.value),onKeyDown:I,onBlur:()=>N(v)})]})},Co=n.memo(L(To,"TagInput")),Io="hanui-textarea-zwJcB",Ro="hanui-wrapper-O8aJA",Do="hanui-counter-bHVh3",bt={textarea:Io,wrapper:Ro,"textarea--autoSize":"hanui-textarea--autoSize--F8yj",counter:Do,"counter--near":"hanui-counter--near-AZAQm"},So=n.forwardRef(({className:e,rows:a=4,isAutoSize:s,maxRows:r=12,hasCounter:o,maxLength:c,value:i,defaultValue:_,onChange:p,testId:u,...l},h)=>{const d=n.useRef(null),[b,y]=n.useState(String(_??"").length),g=i===void 0?b:String(i).length,m=n.useCallback(v=>{d.current=v,typeof h=="function"?h(v):h&&(h.current=v)},[h]);n.useLayoutEffect(()=>{const v=d.current;if(!s||!v)return;v.style.height="auto";const w=(Number.parseFloat(getComputedStyle(v).lineHeight)||20)*r;v.style.height=`${Math.min(v.scrollHeight,w)}px`,v.style.overflowY=v.scrollHeight>w?"auto":"hidden"},[s,r,i,g]);const f=c!==void 0&&g>=c*.9;return t.jsxs("div",{className:x(bt.wrapper,e),"data-testid":u,children:[t.jsx("textarea",{ref:m,rows:a,className:x(bt.textarea,s&&bt["textarea--autoSize"]),maxLength:c,value:i,defaultValue:_,onChange:v=>{y(v.target.value.length),p==null||p(v)},...l}),o&&c!==void 0&&t.jsxs("span",{className:x(bt.counter,f&&bt["counter--near"]),"aria-hidden":!0,children:[g," / ",c]})]})}),qa=n.memo(L(So,"Textarea")),Lo="hanui-dateField-UnUwe",Ao="hanui-range-nGuRH",Fo="hanui-range__row--debA",Mo="hanui-range__separator-fEqqr",Bo="hanui-range__field-tmoNH",Po="hanui-range__summary-L6v1T",Xe={dateField:Lo,range:Ao,range__row:Fo,range__separator:Mo,range__field:Bo,range__summary:Po},Vt=n.forwardRef(({type:e="date",className:a,testId:s,...r},o)=>t.jsx("input",{ref:o,type:e,className:x(Xe.dateField,a),"data-testid":s,...r})),Oo=n.memo(L(Vt,"DateField")),Ho=({value:e,onChange:a,startLabel:s,endLabel:r,separator:o="–",min:c,max:i,isSummaryVisible:_,isDisabled:p,className:u,testId:l})=>{const{labels:h}=z(),d=(()=>{if(!_||!(h!=null&&h.locale)||e.start===""||e.end==="")return null;try{const b=new Intl.DateTimeFormat(h.locale,{dateStyle:"medium"});return`${b.format(new Date(e.start))} ${o} ${b.format(new Date(e.end))}`}catch{return null}})();return t.jsxs("div",{className:x(Xe.range,u),"data-testid":l,children:[t.jsxs("div",{className:Xe.range__row,children:[t.jsx(Vt,{className:Xe.range__field,"aria-label":s,value:e.start,min:c,max:e.end||i,disabled:p,onChange:b=>a({...e,start:b.target.value})}),t.jsx("span",{className:Xe.range__separator,"aria-hidden":!0,children:o}),t.jsx(Vt,{className:Xe.range__field,"aria-label":r,value:e.end,min:e.start||c,max:i,disabled:p,onChange:b=>a({...e,end:b.target.value})})]}),d&&t.jsx("span",{className:Xe.range__summary,children:d})]})},zo=L(n.memo(Ho),"DateRange"),Ko="hanui-field-KKvre",Uo="hanui-field__label-9dlYd",qo="hanui-field__required-hbDJk",Yo="hanui-field__srOnly-2WQFH",Xo="hanui-field__hint-SQPiL",Go="hanui-field__error-gLlZ-",Wo="hanui-field__errorIcon-uA3o8",Re={field:Ko,field__label:Uo,"field__label--hidden":"hanui-field__label--hidden-ufuVt",field__required:qo,field__srOnly:Yo,field__hint:Xo,field__error:Go,field__errorIcon:Wo},Vo=({label:e,children:a,hint:s,error:r,isRequired:o,requiredLabel:c,isLabelHidden:i,className:_})=>{const{labels:p}=z(),u=n.useId(),l=`${u}-error`,h=`${u}-hint`;return t.jsxs("div",{className:x(Re.field,_),children:[t.jsxs("label",{htmlFor:u,className:x(Re.field__label,i&&Re["field__label--hidden"]),children:[e,o&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:Re.field__required,"aria-hidden":!0,children:"*"}),t.jsx("span",{className:Re.field__srOnly,children:B("Field.requiredLabel",c,p==null?void 0:p.required)})]})]}),a({id:u,required:o||void 0,"aria-invalid":r?!0:void 0,"aria-describedby":[r&&l,s&&h].filter(Boolean).join(" ")||void 0}),r&&t.jsxs("p",{id:l,className:Re.field__error,role:"alert",children:[t.jsx(D.ExclamationCircleFill,{"aria-hidden":!0,className:Re.field__errorIcon}),r]}),s&&t.jsx("p",{id:h,className:Re.field__hint,children:s})]})},Ya=n.memo(Vo),Qo="hanui-progress-99MrX",Jo="hanui-progress__track-Qbp9t",Zo="hanui-progress__fill-Bam55",ei="hanui-progress__value-3FYxj",ti="hanui-circle-9cn2w",ai="hanui-circle__svg-0IwkR",ni="hanui-circle__track-zY2qc",si="hanui-circle__fill-Jbde6",ri="hanui-circle__label-A3nJB",ee={progress:Qo,progress__track:Jo,"progress__track--sm":"hanui-progress__track--sm-dbHZq","progress__track--md":"hanui-progress__track--md-v1GdW","progress__track--indeterminate":"hanui-progress__track--indeterminate-8fMxl",progress__fill:Zo,"progress__fill--success":"hanui-progress__fill--success-IFuI5","progress__fill--warning":"hanui-progress__fill--warning-wIhgi","progress__fill--danger":"hanui-progress__fill--danger-cuqj0",progress__value:ei,circle:ti,circle__svg:ai,circle__track:ni,circle__fill:si,"circle__fill--success":"hanui-circle__fill--success-HTr0m","circle__fill--warning":"hanui-circle__fill--warning-Fkgj2","circle__fill--danger":"hanui-circle__fill--danger-4E3Z8","circle--indeterminate":"hanui-circle--indeterminate-cITY6",circle__label:ri},Xa=(e,a)=>!Number.isFinite(e)||!Number.isFinite(a)||a<=0?0:Math.min(100,Math.max(0,e/a*100)),oi=({value:e,max:a=100,label:s,valueText:r,isValueVisible:o,tone:c="brand",size:i="md",className:_,testId:p})=>{const u=e===void 0,l=u?0:Xa(e,a);return t.jsxs("div",{className:x(ee.progress,_),"data-testid":p,children:[t.jsx("div",{role:"progressbar","aria-label":s,"aria-valuenow":u?void 0:Math.round(l),"aria-valuemin":u?void 0:0,"aria-valuemax":u?void 0:100,"aria-valuetext":u?void 0:r,className:x(ee.progress__track,ee[`progress__track--${i}`],u&&ee["progress__track--indeterminate"]),children:t.jsx("span",{className:x(ee.progress__fill,ee[`progress__fill--${c}`]),style:u?void 0:{inlineSize:`${l}%`}})}),o&&!u&&t.jsx("span",{className:ee.progress__value,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},Ga=n.memo(L(oi,"Progress")),ii=({value:e,max:a=100,label:s,valueText:r,isValueVisible:o,tone:c="brand",size:i=44,className:_,testId:p})=>{const u=e===void 0,l=u?25:Xa(e,a),h=Math.max(3,Math.round(i*.1)),d=(i-h)/2,b=2*Math.PI*d;return t.jsxs("div",{className:x(ee.circle,u&&ee["circle--indeterminate"],_),style:{width:i,height:i},"data-testid":p,children:[t.jsxs("svg",{className:ee.circle__svg,width:i,height:i,viewBox:`0 0 ${i} ${i}`,role:"progressbar","aria-label":s,"aria-valuenow":u?void 0:Math.round(l),"aria-valuemin":u?void 0:0,"aria-valuemax":u?void 0:100,"aria-valuetext":u?void 0:r,children:[t.jsx("circle",{className:ee.circle__track,cx:i/2,cy:i/2,r:d,fill:"none",strokeWidth:h}),t.jsx("circle",{className:x(ee.circle__fill,ee[`circle__fill--${c}`]),cx:i/2,cy:i/2,r:d,fill:"none",strokeWidth:h,strokeDasharray:b,strokeDashoffset:b*(1-l/100)})]}),o&&!u&&t.jsx("span",{className:ee.circle__label,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},ci=L(n.memo(ii),"ProgressCircle"),li="hanui-upload-v1pRY",di="hanui-upload__drop-OpNbO",ui="hanui-upload__input-Tcg9-",_i="hanui-upload__icon-KpMkq",hi="hanui-upload__label-M4HJb",pi="hanui-upload__drag-ewSQw",mi="hanui-upload__hint-MZRJ6",bi="hanui-upload__error-7GkCC",gi="hanui-upload__list-lbViQ",fi="hanui-upload__file-Znp1Q",xi="hanui-upload__fileText-EtJcs",vi="hanui-upload__fileName-ArF8-",yi="hanui-upload__fileMeta-i6sO1",wi="hanui-upload__progress-JY2a5",X={upload:li,upload__drop:di,upload__input:ui,"upload__drop--dragging":"hanui-upload__drop--dragging-YztUx","upload__drop--invalid":"hanui-upload__drop--invalid-JhwnL","upload__drop--disabled":"hanui-upload__drop--disabled-zyfUv",upload__icon:_i,upload__label:hi,upload__drag:pi,upload__hint:mi,upload__error:bi,upload__list:gi,upload__file:fi,"upload__file--error":"hanui-upload__file--error-wpbtA",upload__fileText:xi,upload__fileName:vi,upload__fileMeta:yi,upload__progress:wi},Lt=1024,$a=Lt*Lt,Ea=e=>e<Lt?`${e} B`:e<$a?`${Math.round(e/Lt)} KB`:`${(e/$a).toFixed(1)} MB`,ki=({files:e,onSelect:a,onRemove:s,label:r,hint:o,accept:c,isMultiple:i,maxSize:_,removeLabel:p,dropLabel:u,sizeErrorText:l="{name} çok büyük (en fazla {max}).",isDisabled:h,error:d,children:b,className:y,testId:g})=>{const m=n.useId(),f=n.useId(),v=n.useRef(null),E=At(),[w,T]=n.useState(!1),[C,N]=n.useState([]),k=$=>{if(!$||$.length===0)return;const j=[...$],M=_===void 0?[]:j.filter(K=>K.size>_),Y=j.filter(K=>!M.includes(K)),G=M.map(K=>l.replace("{name}",K.name).replace("{max}",Ea(_??0)));N(G),Y.length>0&&(a(Y),E(`${Y.length} dosya eklendi`)),G.length>0&&E(G.join(" "),"assertive")},I=$=>{$.preventDefault(),T(!1),!h&&k($.dataTransfer.files)};return t.jsxs("div",{className:x(X.upload,y),"data-testid":g,children:[t.jsxs("label",{htmlFor:m,className:x(X.upload__drop,w&&X["upload__drop--dragging"],h&&X["upload__drop--disabled"],d&&X["upload__drop--invalid"]),onDragOver:$=>{$.preventDefault(),h||T(!0)},onDragLeave:()=>T(!1),onDrop:I,children:[t.jsx(D.CloudArrowUpFill,{"aria-hidden":!0,className:X.upload__icon}),t.jsx("span",{className:X.upload__label,children:r}),t.jsx("span",{className:X.upload__drag,children:u}),o&&t.jsx("span",{id:f,className:X.upload__hint,children:o}),t.jsx("input",{ref:v,id:m,type:"file",className:X.upload__input,accept:c,multiple:i,disabled:h,"aria-describedby":o?f:void 0,"aria-invalid":d?!0:void 0,onChange:$=>{k($.target.files),$.target.value=""}})]}),d&&t.jsxs("p",{className:X.upload__error,role:"alert",children:[t.jsx(D.ExclamationCircleFill,{"aria-hidden":!0}),d]}),C.map($=>t.jsxs("p",{className:X.upload__error,role:"alert",children:[t.jsx(D.ExclamationCircleFill,{"aria-hidden":!0}),$]},$)),e.length>0&&t.jsx("ul",{className:X.upload__list,children:e.map($=>t.jsxs("li",{className:x(X.upload__file,$.error&&X["upload__file--error"]),children:[t.jsxs("span",{className:X.upload__fileText,children:[t.jsx("span",{className:X.upload__fileName,children:$.name}),t.jsx("span",{className:X.upload__fileMeta,children:$.error??Ea($.size)})]}),$.progress!==void 0&&t.jsx(Ga,{value:$.progress,label:`${$.name} yükleniyor`,size:"sm",className:X.upload__progress}),t.jsx(ye,{icon:t.jsx(D.XLg,{"aria-hidden":!0}),label:`${$.name} — ${p}`,variant:"ghost",size:"sm",onClick:()=>s($.id)})]},$.id))}),b]})},ji=n.memo(L(ki,"FileUpload")),Ni="hanui-alert-gHI-9",$i="hanui-alert__icon-DhiCT",Ei="hanui-alert__body-52-z2",Ti="hanui-alert__title-I8BAh",Ci="hanui-alert__content-lhBEo",Ii="hanui-alert__action-1mTje",Ke={alert:Ni,alert__icon:$i,alert__body:Ei,alert__title:Ti,alert__content:Ci,alert__action:Ii,"alert--info":"hanui-alert--info-lsAVw","alert--success":"hanui-alert--success-RMJR6","alert--warning":"hanui-alert--warning-Rkgln","alert--danger":"hanui-alert--danger-9ei0Y"},Ri={info:t.jsx(D.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(D.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(D.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(D.XCircleFill,{"aria-hidden":!0})},Di=({children:e,tone:a="info",title:s,action:r,className:o,testId:c})=>t.jsxs("div",{className:x(Ke.alert,Ke[`alert--${a}`],o),role:a==="danger"||a==="warning"?"alert":void 0,"data-testid":c,children:[t.jsx("span",{className:Ke.alert__icon,children:Ri[a]}),t.jsxs("div",{className:Ke.alert__body,children:[s&&t.jsx("strong",{className:Ke.alert__title,children:s}),t.jsx("div",{className:Ke.alert__content,children:e})]}),r&&t.jsx("div",{className:Ke.alert__action,children:r})]}),Si=n.memo(Di),Li="hanui-avatar-qoh3P",Ai="hanui-avatar__image-uAyAX",Tt={avatar:Li,avatar__image:Ai,"avatar--sm":"hanui-avatar--sm-GGjU4","avatar--md":"hanui-avatar--md-xhXnK","avatar--lg":"hanui-avatar--lg-ULP-r","avatar--tone-0":"hanui-avatar--tone-0-mvjdw","avatar--tone-1":"hanui-avatar--tone-1-RYZOX","avatar--tone-2":"hanui-avatar--tone-2-vP-CS","avatar--tone-3":"hanui-avatar--tone-3-ivgnI","avatar--tone-4":"hanui-avatar--tone-4-V57r3","avatar--tone-5":"hanui-avatar--tone-5-65aPg"},Fi=(e,a)=>{const s=e.trim().split(/\s+/).filter(Boolean);if(s.length===0)return"?";const r=s.length===1?s[0].slice(0,2):`${s[0][0]}${s[s.length-1][0]}`;return a?r.toLocaleUpperCase(a):r.toLocaleUpperCase()},Mi=(e,a)=>{let s=5381;for(let r=0;r<e.length;r+=1)s=s*33^e.charCodeAt(r);return Math.abs(s)%a},Bi=6,Pi=({name:e,imageUrl:a,locale:s,size:r="md",className:o,testId:c})=>{const{labels:i}=z();return t.jsx("span",{className:x(Tt.avatar,Tt[`avatar--${r}`],!a&&Tt[`avatar--tone-${Mi(e,Bi)}`],o),role:"img","aria-label":e,"data-testid":c,children:a?t.jsx("img",{className:Tt.avatar__image,src:a,alt:""}):Fi(e,s??(i==null?void 0:i.locale))})},Oi=n.memo(Pi),Hi="hanui-badge-uLAaI",zi="hanui-badge__icon-R2goZ",Ct={badge:Hi,badge__icon:zi,"badge--neutral":"hanui-badge--neutral-6kddt","badge--soft":"hanui-badge--soft-gFeRF","badge--solid":"hanui-badge--solid-rtdHI","badge--outline":"hanui-badge--outline-QiAAz","badge--success":"hanui-badge--success-Oj11F","badge--danger":"hanui-badge--danger-X3nV0","badge--warning":"hanui-badge--warning-vAsx2","badge--info":"hanui-badge--info-mHOwk","badge--oem":"hanui-badge--oem-Nl-VX","badge--alt":"hanui-badge--alt-gQkww","badge--sale":"hanui-badge--sale-Li1tG","badge--action":"hanui-badge--action-7pUio","badge--link":"hanui-badge--link-zcNJZ"},Ki=({children:e,tone:a="neutral",variant:s="soft",icon:r,className:o,testId:c})=>t.jsxs("span",{className:x(Ct.badge,Ct[`badge--${a}`],Ct[`badge--${s}`],o),"data-testid":c,children:[r&&t.jsx("span",{className:Ct.badge__icon,children:r}),e]}),Ui=n.memo(Ki),qi="hanui-breadcrumb-amB9n",Yi="hanui-breadcrumb__item-Icv1S",Xi="hanui-breadcrumb__link-eVkPq",Gi="hanui-breadcrumb__current-8XjhU",Wi="hanui-breadcrumb__separator-vvaUi",gt={breadcrumb:qi,breadcrumb__item:Yi,breadcrumb__link:Xi,breadcrumb__current:Gi,breadcrumb__separator:Wi},Vi=({items:e,label:a,linkProps:s,className:r,testId:o})=>{const{labels:c}=z();return t.jsx("nav",{className:r,"aria-label":B("Breadcrumb.label",a,c==null?void 0:c.breadcrumb),"data-testid":o,children:t.jsx("ol",{className:x(gt.breadcrumb),children:e.map((i,_)=>{const p=_===e.length-1;return t.jsxs("li",{className:gt.breadcrumb__item,children:[i.href&&!p?t.jsx(he,{href:i.href,className:gt.breadcrumb__link,...s,children:i.label}):t.jsx("span",{className:gt.breadcrumb__current,"aria-current":"page",children:i.label}),!p&&t.jsx(D.CaretRightFill,{"aria-hidden":!0,className:gt.breadcrumb__separator})]},`${i.label}-${_}`)})})})},Qi=n.memo(Vi),Ji="hanui-card-CaHUG",Zi="hanui-media__frame-eBv-s",ec="hanui-media-eggk5",tc="hanui-media__link-ujyVV",ac="hanui-overlay-AVMTX",nc="hanui-body-DyI-6",sc="hanui-footer-2WNCZ",xe={card:Ji,"card--interactive":"hanui-card--interactive-C1pXZ",media__frame:Zi,media:ec,media__link:tc,"media__frame--cover":"hanui-media__frame--cover-ddl29","media__frame--contain":"hanui-media__frame--contain-5gosS","media__frame--inset":"hanui-media__frame--inset-oVQIn",overlay:ac,"overlay--top-left":"hanui-overlay--top-left-td1xA","overlay--top-right":"hanui-overlay--top-right-GqD9H","overlay--bottom-left":"hanui-overlay--bottom-left-T5Quw","overlay--bottom-right":"hanui-overlay--bottom-right-za3z3",body:nc,footer:sc},rc=({children:e,isInteractive:a,as:s="div",className:r,testId:o})=>t.jsx(s,{className:x(xe.card,a&&xe["card--interactive"],r),"data-testid":o,children:e}),oc=(e,a)=>e??(a===!1?"cover":"contain"),ic=L(n.memo(({children:e,ratio:a=1,href:s,linkProps:r,fit:o,isContained:c,className:i})=>{const _=t.jsx("span",{className:x(xe.media__frame,xe[`media__frame--${oc(o,c)}`]),style:{aspectRatio:a},children:e});return t.jsx("div",{className:x(xe.media,i),children:s?t.jsx(he,{href:s,className:xe.media__link,tabIndex:-1,"aria-hidden":!0,...r,children:_}):_})}),"CardMedia"),cc=L(n.memo(({children:e,position:a="top-left",className:s})=>t.jsx("div",{className:x(xe.overlay,xe[`overlay--${a}`],s),children:e})),"CardOverlay"),lc=L(n.memo(({children:e,className:a})=>t.jsx("div",{className:x(xe.body,a),children:e})),"CardBody"),dc=L(n.memo(({children:e,className:a})=>t.jsx("div",{className:x(xe.footer,a),children:e})),"CardFooter"),uc=n.memo(rc),_c="hanui-carousel-GJXkW",hc="hanui-carousel__controls-hm5ij",pc="hanui-carousel__arrowIcon-adFey",mc="hanui-carousel__track-mAux5",bc="hanui-carousel__dots-iU8RJ",gc="hanui-carousel__dot-JTLCB",De={carousel:_c,carousel__controls:hc,carousel__arrowIcon:pc,carousel__track:mc,carousel__dots:bc,carousel__dot:gc,"carousel__dot--active":"hanui-carousel__dot--active-riNMm"},fc=({children:e,label:a,previousLabel:s,nextLabel:r,formatDotLabel:o,itemWidth:c,itemMinWidth:i,className:_,testId:p})=>{const u=n.useRef(null),[l,h]=n.useState(!1),[d,b]=n.useState(!1),[y,g]=n.useState(0),[m,f]=n.useState(1),[v,E]=n.useState(!1),w=n.useCallback(()=>{const N=u.current;if(!N)return;const{scrollLeft:k,scrollWidth:I,clientWidth:$}=N;h(k>1),b(k+$<I-1),g($>0?Math.round(k/$):0),f($>0?Math.max(1,Math.ceil(I/$)):1),E(I>$&&N.querySelector("a, button, input, select, textarea, [tabindex]")===null)},[]);n.useEffect(()=>{const N=u.current;if(!N)return;w(),N.addEventListener("scroll",w,{passive:!0});const k=typeof ResizeObserver>"u"?null:new ResizeObserver(w);return k==null||k.observe(N),()=>{N.removeEventListener("scroll",w),k==null||k.disconnect()}},[w,e]);const T=()=>{var N;return typeof window<"u"&&((N=window.matchMedia)!=null&&N.call(window,"(prefers-reduced-motion: reduce)").matches)?"auto":"smooth"},C=N=>{var k;return(k=u.current)==null?void 0:k.scrollBy({left:N*u.current.clientWidth,behavior:T()})};return t.jsxs("section",{className:x(De.carousel,_),"aria-label":a,"data-testid":p,children:[t.jsxs("div",{className:De.carousel__controls,children:[t.jsx(ye,{icon:t.jsx(D.CaretLeftFill,{"aria-hidden":!0,className:De.carousel__arrowIcon}),label:s,variant:"outline",size:"sm",disabled:!l,onClick:()=>C(-1)}),t.jsx(ye,{icon:t.jsx(D.CaretRightFill,{"aria-hidden":!0,className:De.carousel__arrowIcon}),label:r,variant:"outline",size:"sm",disabled:!d,onClick:()=>C(1)})]}),t.jsx("div",{ref:u,className:De.carousel__track,style:{"--hanui-carousel-item-default":`${c??i??240}px`},tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?a:void 0,children:e}),o&&m>1&&t.jsx("div",{className:De.carousel__dots,children:Array.from({length:m},(N,k)=>t.jsx("button",{type:"button",className:x(De.carousel__dot,k===y&&De["carousel__dot--active"]),"aria-label":o(k+1,m),"aria-current":k===y?"true":void 0,onClick:()=>{var I;return(I=u.current)==null?void 0:I.scrollTo({left:k*u.current.clientWidth,behavior:T()})}},k))})]})},xc=n.memo(L(fc,"Carousel")),vc="hanui-copy-Yht5s",yc="hanui-copy__code-CYlCA",wc="hanui-copy__button-GDdH6",kc="hanui-copy__srOnly-WMTNN",tt={copy:vc,"copy--sm":"hanui-copy--sm-Tjqws",copy__code:yc,"copy--md":"hanui-copy--md-00rhU",copy__button:wc,"copy__button--done":"hanui-copy__button--done-MujUR",copy__srOnly:kc},jc=1600,Nc=({value:e,copyLabel:a,copiedLabel:s,copiedAnnouncement:r,size:o="sm",isReadOnly:c,className:i,testId:_})=>{var g,m,f;const{labels:p}=z(),[u,l]=n.useState(!1),h=n.useRef(null),d=n.useRef(void 0);n.useEffect(()=>()=>window.clearTimeout(d.current),[]);const b=n.useCallback(()=>{const v=h.current;if(!v)return;const E=document.createRange();E.selectNodeContents(v);const w=window.getSelection();w==null||w.removeAllRanges(),w==null||w.addRange(E)},[]),y=n.useCallback(async()=>{try{await navigator.clipboard.writeText(e),l(!0),d.current=window.setTimeout(()=>l(!1),jc)}catch{b()}},[e,b]);return t.jsxs("span",{className:x(tt.copy,tt[`copy--${o}`],i),"data-testid":_,children:[t.jsx("span",{className:tt.copy__code,ref:h,children:e}),!c&&t.jsx("button",{type:"button",className:x(tt.copy__button,u&&tt["copy__button--done"]),onClick:y,"aria-label":u?s??St("CopyField.copiedLabel",(g=p==null?void 0:p.copyField)==null?void 0:g.copied,e):a??St("CopyField.copyLabel",(m=p==null?void 0:p.copyField)==null?void 0:m.copy,e),children:u?t.jsx(D.ClipboardCheckFill,{"aria-hidden":!0}):t.jsx(D.ClipboardFill,{"aria-hidden":!0})}),t.jsx("span",{"aria-live":"polite",className:tt.copy__srOnly,children:u?B("CopyField.copiedAnnouncement",r,(f=p==null?void 0:p.copyField)==null?void 0:f.announcement):""})]})},$c=n.memo(Nc),Ec="hanui-divider-RJqCw",Tc="hanui-divider__label-M8sBA",It={divider:Ec,"divider--labelled":"hanui-divider--labelled-jZH1-",divider__label:Tc},Cc=({label:e,className:a})=>e?t.jsx("div",{role:"separator","aria-label":e,className:x(It.divider,It["divider--labelled"],a),children:t.jsx("span",{className:It.divider__label,children:e})}):t.jsx("hr",{className:x(It.divider,a)}),Ic=n.memo(Cc),Rc="hanui-directory-badEd",Dc="hanui-group-i6An9",Sc="hanui-group__header-rc19c",Lc="hanui-group__label-vQTcs",Ac="hanui-group__link-es5V7",Fc="hanui-group__meta-LtC-u",Mc="hanui-group__list-YxBCG",Bc="hanui-row-3LH7X",Pc="hanui-row__name-75Wbq",Oc="hanui-row__media-AxZEh",Hc="hanui-row__marker-RYHb-",zc="hanui-jump-vpGwB",Kc="hanui-jump__link-rRnT6",se={directory:Rc,group:Dc,group__header:Sc,group__label:Lc,group__link:Ac,group__meta:Fc,group__list:Mc,row:Bc,row__name:Pc,row__media:Oc,row__marker:Hc,jump:zc,jump__link:Kc},Uc=({children:e,className:a})=>t.jsx("div",{className:x(se.directory,a),children:e}),qc=L(n.memo(({label:e,href:a,linkProps:s,meta:r,children:o,id:c})=>t.jsxs("section",{className:se.group,id:c,children:[t.jsxs("header",{className:se.group__header,children:[t.jsx("h2",{className:se.group__label,children:a?t.jsx(he,{href:a,className:se.group__link,...s,children:e}):e}),r&&t.jsx("span",{className:se.group__meta,children:r})]}),t.jsx("ul",{className:se.group__list,children:o})]})),"DirectoryGroup"),Yc=L(n.memo(({href:e,name:a,media:s,marker:r,linkProps:o,className:c})=>t.jsx("li",{children:t.jsxs(he,{href:e,className:x(se.row,c),...o,children:[s&&t.jsx("span",{className:se.row__media,children:s}),t.jsx("span",{className:se.row__name,children:a}),r&&t.jsx("span",{className:se.row__marker,children:r})]})})),"DirectoryRow"),Xc=L(n.memo(({labels:e,toId:a,label:s})=>{const{labels:r}=z();return t.jsx("nav",{className:se.jump,"aria-label":B("DirectoryJump.label",s,r==null?void 0:r.directoryJump),children:e.map(o=>t.jsx("a",{href:`#${a(o)}`,className:se.jump__link,children:o},o))})}),"DirectoryJump"),Gc=n.memo(Uc),Wc="hanui-empty-47qZR",Vc="hanui-empty__icon-okfEc",Qc="hanui-empty__title-Z7Dzd",Jc="hanui-empty__description-6BoCk",Zc="hanui-empty__actions-ARk-k",Ue={empty:Wc,empty__icon:Vc,empty__title:Qc,empty__description:Jc,empty__actions:Zc,"empty--sm":"hanui-empty--sm-QXaXx","empty--error":"hanui-empty--error-4BBgp"},el=({title:e,description:a,icon:s,action:r,secondaryAction:o,tone:c="empty",size:i="md",className:_,testId:p})=>t.jsxs("div",{className:x(Ue.empty,Ue[`empty--${i}`],Ue[`empty--${c}`],_),role:c==="error"?"alert":void 0,"data-testid":p,children:[s&&t.jsx("span",{className:Ue.empty__icon,children:s}),t.jsx("h3",{className:Ue.empty__title,children:e}),a&&t.jsx("p",{className:Ue.empty__description,children:a}),(r||o)&&t.jsxs("div",{className:Ue.empty__actions,children:[r,o]})]}),tl=n.memo(el),al="hanui-header-yJwus",nl="hanui-header__top-UK4si",sl="hanui-header__breadcrumb-A2j0i",rl="hanui-header__text-HIo8U",ol="hanui-header__eyebrow-dZ9Zc",il="hanui-header__titleRow-KgDZj",cl="hanui-header__title-s1giF",ll="hanui-header__meta-UxuaD",dl="hanui-header__description-NXbbC",ul="hanui-header__actions-aShpt",ge={header:al,header__top:nl,header__breadcrumb:sl,header__text:rl,header__eyebrow:ol,header__titleRow:il,header__title:cl,header__meta:ll,header__description:dl,header__actions:ul},_l=({title:e,eyebrow:a,description:s,actions:r,breadcrumb:o,meta:c,children:i,as:_="h1",className:p,testId:u})=>t.jsxs("header",{className:x(ge.header,p),"data-testid":u,children:[o&&t.jsx("div",{className:ge.header__breadcrumb,children:o}),t.jsxs("div",{className:ge.header__top,children:[t.jsxs("div",{className:ge.header__text,children:[a&&t.jsx("span",{className:ge.header__eyebrow,children:a}),t.jsxs("div",{className:ge.header__titleRow,children:[t.jsx(_,{className:ge.header__title,children:e}),c&&t.jsx("span",{className:ge.header__meta,children:c})]}),s&&t.jsx("p",{className:ge.header__description,children:s})]}),r&&t.jsx("div",{className:ge.header__actions,children:r})]}),i]}),hl=n.memo(_l),pl="hanui-panel-Sv-1m",ml="hanui-panel__header-ysexh",bl="hanui-panel__heading-xLCsB",gl="hanui-panel__icon--yPQT",fl="hanui-panel__headingText--XqxW",xl="hanui-panel__title-6-6uC",vl="hanui-panel__description-qXTSM",yl="hanui-panel__actions-Ra-zy",wl="hanui-panel__body-lo5aX",kl="hanui-panel__footer-qLpR1",jl="hanui-panel__footerInner-r6VQI",Nl="hanui-form-o9UqJ",$l="hanui-row-vUGpa",V={panel:pl,panel__header:ml,panel__heading:bl,panel__icon:gl,panel__headingText:fl,panel__title:xl,panel__description:vl,panel__actions:yl,panel__body:wl,"panel__body--sm":"hanui-panel__body--sm-6XP6W","panel__body--lg":"hanui-panel__body--lg-RTK5B","panel__body--flush":"hanui-panel__body--flush-iK75R",panel__footer:kl,panel__footerInner:jl,form:Nl,"form--2":"hanui-form--2-HdwDc",row:$l},El=({children:e,title:a,description:s,actions:r,icon:o,isFlush:c,gap:i="md",footer:_,as:p="section",className:u,bodyClassName:l,testId:h})=>t.jsxs(p,{className:x(V.panel,u),"data-testid":h,children:[(a||r)&&t.jsxs("div",{className:V.panel__header,children:[t.jsxs("div",{className:V.panel__heading,children:[o&&t.jsx("span",{className:V.panel__icon,children:o}),t.jsxs("div",{className:V.panel__headingText,children:[a&&t.jsx("h2",{className:V.panel__title,children:a}),s&&t.jsx("p",{className:V.panel__description,children:s})]})]}),r&&t.jsx("div",{className:V.panel__actions,children:r})]}),t.jsx("div",{className:x(V.panel__body,V[`panel__body--${i}`],c&&V["panel__body--flush"],l),children:e}),_&&t.jsx("div",{className:V.panel__footer,children:t.jsx("div",{className:V.panel__footerInner,children:_})})]}),Tl=L(n.memo(({children:e,columns:a=1,className:s})=>t.jsx("div",{className:x(V.form,V[`form--${a}`],s),children:e})),"PanelForm"),Cl=L(n.memo(({children:e,className:a})=>t.jsx("div",{className:x(V.row,a),children:e})),"PanelRow"),Il=n.memo(El),Rl="hanui-price-Oc5Nr",Dl="hanui-price__current-2Xup2",Sl="hanui-price__currency-32NLN",Ll="hanui-price__list-MlQgT",Al="hanui-price__discount-5Yc6W",qe={price:Rl,price__current:Dl,price__currency:Sl,price__list:Ll,price__discount:Al,"price--sm":"hanui-price--sm-Hd8Oe","price--md":"hanui-price--md-JMxlK","price--lg":"hanui-price--lg-TFqIF","price--xl":"hanui-price--xl-EJBYq"},Fl=({value:e,currency:a,listValue:s,discountPercent:r,formatDiscount:o=u=>`%${u}`,isFormatted:c,size:i="md",className:_,testId:p})=>{const{labels:u}=z(),l=B("Price.currency",a,u==null?void 0:u.currency),h=d=>{if(!c||!(u!=null&&u.locale)||!/\d/.test(d))return d;const b=Number(d.replace(/[^\d.,-]/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."));if(!Number.isFinite(b))return d;try{return new Intl.NumberFormat(u.locale).format(b)}catch{return d}};return t.jsxs("span",{className:x(qe.price,qe[`price--${i}`],_),"data-testid":p,children:[t.jsxs("span",{className:qe.price__current,children:[h(e),t.jsx("span",{className:qe.price__currency,children:l})]}),s&&t.jsxs("s",{className:qe.price__list,children:[h(s),t.jsx("span",{className:qe.price__currency,children:l})]}),r!==void 0&&r>0&&t.jsx("span",{className:qe.price__discount,children:o(r)})]})},Ml=n.memo(Fl),Bl="hanui-rating-94dke",Pl="hanui-rating__stars-QkpVU",Ol="hanui-rating__empty-Wf6-K",Hl="hanui-rating__count-pIoEs",zl="hanui-rating__srOnly-E9h0d",at={rating:Bl,rating__stars:Pl,rating__empty:Ol,rating__count:Hl,rating__srOnly:zl,"rating--sm":"hanui-rating--sm-AtY7U","rating--md":"hanui-rating--md-Q0nxN"},Kl=({value:e,count:a,srLabel:s,size:r="sm",className:o,testId:c})=>{var p;const{labels:i}=z(),_=Math.round(e*2)/2;return t.jsxs("span",{className:x(at.rating,at[`rating--${r}`],o),"data-testid":c,children:[t.jsx("span",{className:at.rating__stars,"aria-hidden":!0,children:Array.from({length:5},(u,l)=>{const h=l+1;return _>=h?t.jsx(D.StarFill,{},l):_>=h-.5?t.jsx(D.StarHalf,{},l):t.jsx(D.StarFill,{className:at.rating__empty},l)})}),t.jsx("span",{className:at.rating__srOnly,children:s??St("Rating.srLabel",(p=i==null?void 0:i.rating)==null?void 0:p.srLabel,e,a)}),U.isDefined(a)&&t.jsxs("span",{className:at.rating__count,"aria-hidden":!0,children:["(",a,")"]})]})},Ul=n.memo(Kl),ql="hanui-header-a08Jh",Yl="hanui-header__text-ArJkA",Xl="hanui-header__overline-X5Epo",Gl="hanui-header__title-nQQQJ",Wl="hanui-header__description-08oCr",Vl="hanui-header__action-xsxQF",Ye={header:ql,header__text:Yl,header__overline:Xl,header__title:Gl,header__description:Wl,header__action:Vl,"header--sm":"hanui-header--sm-mIJWZ","header--lg":"hanui-header--lg-QBLIz"},Ql=({title:e,description:a,overline:s,action:r,as:o="h2",size:c="md",className:i,testId:_})=>t.jsxs("header",{className:x(Ye.header,Ye[`header--${c}`],i),"data-testid":_,children:[t.jsxs("div",{className:Ye.header__text,children:[s&&t.jsx("span",{className:Ye.header__overline,children:s}),t.jsx(o,{className:Ye.header__title,children:e}),a&&t.jsx("p",{className:Ye.header__description,children:a})]}),r&&t.jsx("div",{className:Ye.header__action,children:r})]}),Jl=n.memo(Ql),Zl="hanui-scrollArea-Ly-yT",Gt={scrollArea:Zl,"scrollArea--vertical":"hanui-scrollArea--vertical-2ujC7","scrollArea--horizontal":"hanui-scrollArea--horizontal-e9pu-","scrollArea--both":"hanui-scrollArea--both-lv-8W","scrollArea--fade":"hanui-scrollArea--fade-01Bbm"},ed=({children:e,label:a,axis:s="vertical",maxHeight:r,hasFade:o,className:c,testId:i})=>{const _=n.useRef(null),[p,u]=n.useState(!1),[l,h]=n.useState({start:!1,end:!1});return n.useEffect(()=>{const d=_.current;if(!d||typeof ResizeObserver>"u")return;const b=()=>{const g=d.scrollHeight>d.clientHeight,m=d.scrollWidth>d.clientWidth;u(s==="horizontal"?m:s==="vertical"?g:g||m);const f=s==="horizontal",v=f?d.clientWidth:d.clientHeight,E=f?d.scrollWidth:d.scrollHeight,w=Math.abs(f?d.scrollLeft:d.scrollTop);h({start:w>1,end:w+v<E-1})};b();const y=new ResizeObserver(b);y.observe(d);for(const g of d.children)y.observe(g);return d.addEventListener("scroll",b,{passive:!0}),()=>{y.disconnect(),d.removeEventListener("scroll",b)}},[s,e]),t.jsx("div",{ref:_,className:x(Gt.scrollArea,Gt[`scrollArea--${s}`],o&&Gt["scrollArea--fade"],c),style:r===void 0?void 0:{maxBlockSize:r},"data-fade-start":o&&l.start?"":void 0,"data-fade-end":o&&l.end?"":void 0,tabIndex:p?0:void 0,role:p?"region":void 0,"aria-label":p?a:void 0,"data-testid":i,children:e})},td=n.memo(L(ed,"ScrollArea")),ad="hanui-skeleton-n92if",nd="hanui-group-YMfwa",sd="hanui-card-XQs-Q",rd="hanui-card__media-YLJDv",od="hanui-card__body-msRvB",id="hanui-rows-EZ9Am",cd="hanui-row-se56N",ld="hanui-row__text-TD4iS",dd="hanui-table-L328g",ud="hanui-table__row-rSJTK",re={skeleton:ad,"skeleton--block":"hanui-skeleton--block-tOZ-a","skeleton--text":"hanui-skeleton--text-k-ROi","skeleton--circle":"hanui-skeleton--circle-x-mX3",group:nd,card:sd,card__media:rd,card__body:od,rows:id,row:cd,row__text:ld,table:dd,table__row:ud},Le=({width:e,height:a,variant:s="block",lines:r=1,className:o})=>{const c={width:U.isNumber(e)?`${e}px`:e,height:U.isNumber(a)?`${a}px`:a};return s==="text"&&r>1?t.jsx("span",{className:x(re.group,o),"aria-hidden":!0,children:Array.from({length:r},(i,_)=>t.jsx("span",{className:x(re.skeleton,re["skeleton--text"]),style:_===r-1?{width:"60%"}:void 0},_))}):t.jsx("span",{className:x(re.skeleton,re[`skeleton--${s}`],o),style:c,"aria-hidden":!0})},_d=n.memo(Le),hd=({count:e=1,className:a})=>t.jsx(t.Fragment,{children:Array.from({length:e},(s,r)=>t.jsxs("div",{className:x(re.card,a),"aria-hidden":!0,children:[t.jsx(Le,{className:re.card__media}),t.jsxs("div",{className:re.card__body,children:[t.jsx(Le,{variant:"text",width:"70%"}),t.jsx(Le,{variant:"text",width:"40%"})]})]},r))}),pd=({count:e=3,className:a})=>t.jsx("div",{className:x(re.rows,a),"aria-hidden":!0,children:Array.from({length:e},(s,r)=>t.jsxs("div",{className:re.row,children:[t.jsx(Le,{variant:"circle",width:36,height:36}),t.jsxs("div",{className:re.row__text,children:[t.jsx(Le,{variant:"text",width:"45%"}),t.jsx(Le,{variant:"text",width:"25%"})]})]},r))}),md=({count:e=5,columns:a=4,className:s})=>t.jsx("div",{className:x(re.table,s),"aria-hidden":!0,children:Array.from({length:e},(r,o)=>t.jsx("div",{className:re.table__row,children:Array.from({length:a},(c,i)=>t.jsx(Le,{variant:"text"},i))},o))}),bd=L(n.memo(hd),"SkeletonCard"),gd=L(n.memo(pd),"SkeletonRows"),fd=L(n.memo(md),"SkeletonTable"),xd="hanui-stat-Xb7wp",vd="hanui-stat__icon-MB8NU",yd="hanui-stat__label-kUX2m",wd="hanui-stat__value--6p13",kd="hanui-stat__unit-mjHVk",jd="hanui-stat__delta-YKpOu",Nd="hanui-stat__description-Yvw6J",$d="hanui-stat__srOnly-YKebA",ie={stat:xd,"stat--sm":"hanui-stat--sm-XnK8p","stat--plain":"hanui-stat--plain-N-3RC",stat__icon:vd,stat__label:yd,stat__value:wd,stat__unit:kd,stat__delta:jd,"stat__delta--positive":"hanui-stat__delta--positive-1AUAM","stat__delta--negative":"hanui-stat__delta--negative--WWEP",stat__description:Nd,stat__srOnly:$d},Ed={up:t.jsx(D.ArrowUpShort,{"aria-hidden":!0}),down:t.jsx(D.ArrowDownShort,{"aria-hidden":!0}),flat:t.jsx(D.DashLg,{"aria-hidden":!0})},Td={up:"artış",down:"azalış",flat:"değişim yok"},Cd=({label:e,value:a,unit:s,delta:r,trend:o,isUpPositive:c=!0,description:i,icon:_,variant:p="card",size:u="md",className:l,testId:h})=>{const d=o==="flat"?void 0:o==="up"===c;return t.jsxs("div",{className:x(ie.stat,ie[`stat--${u}`],ie[`stat--${p}`],l),"data-testid":h,children:[_&&t.jsx("span",{className:ie.stat__icon,"aria-hidden":!0,children:_}),t.jsx("span",{className:ie.stat__label,children:e}),t.jsxs("span",{className:ie.stat__value,children:[a,s&&t.jsx("span",{className:ie.stat__unit,children:s})]}),r&&o&&t.jsxs("span",{className:x(ie.stat__delta,d===!0&&ie["stat__delta--positive"],d===!1&&ie["stat__delta--negative"]),children:[Ed[o],r,t.jsx("span",{className:ie.stat__srOnly,children:Td[o]})]}),i&&t.jsx("span",{className:ie.stat__description,children:i})]})},Id=n.memo(L(Cd,"Stat")),Rd="hanui-hub-JoqOf",Dd="hanui-toast-U27Of",Sd="hanui-toast__icon-p-rgI",Ld="hanui-toast__text-rG4ji",Ad="hanui-toast__message-s6S2-",Fd="hanui-toast__description-0cYTx",Md="hanui-toast__action-fOXU5",Bd="hanui-toast__close-QxSNP",Te={hub:Rd,toast:Dd,"toast--info":"hanui-toast--info-S1QJr","toast--success":"hanui-toast--success-NUso7","toast--warning":"hanui-toast--warning-7mi-S","toast--danger":"hanui-toast--danger-IhFSz",toast__icon:Sd,toast__text:Ld,toast__message:Ad,toast__description:Fd,toast__action:Md,toast__close:Bd},Pd={info:t.jsx(D.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(D.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(D.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(D.XCircleFill,{"aria-hidden":!0})},Od={info:4e3,success:4e3,warning:6e3,danger:8e3};let Ta=0;const Qt=new Set;let Ve=[];const la=()=>Qt.forEach(e=>e(Ve)),Jt=e=>{Ve=Ve.filter(a=>a.id!==e),la()},ft=(e,a={})=>{Ta+=1;const s=Ta;return Ve=[...Ve,{...a,id:s,message:e}].slice(-3),la(),s},Hd={show:ft,info:(e,a)=>ft(e,{...a,tone:"info"}),success:(e,a)=>ft(e,{...a,tone:"success"}),warning:(e,a)=>ft(e,{...a,tone:"warning"}),error:(e,a)=>ft(e,{...a,tone:"danger"}),dismiss:Jt,clear:()=>{Ve=[],la()}},zd=({toast:e,closeLabel:a,onDismiss:s})=>{const r=e.tone??"info",o=e.duration??Od[r],[c,i]=n.useState(!1),_=n.useRef(o),p=n.useRef(0);return n.useEffect(()=>{if(o===0||c)return;p.current=Date.now();const u=window.setTimeout(()=>s(e.id),_.current);return()=>{window.clearTimeout(u),_.current=Math.max(0,_.current-(Date.now()-p.current))}},[o,c,s,e.id]),t.jsxs("div",{className:x(Te.toast,Te[`toast--${r}`]),role:r==="danger"?"alert":"status",onPointerEnter:()=>i(!0),onPointerLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),children:[t.jsx("span",{className:Te.toast__icon,"aria-hidden":!0,children:Pd[r]}),t.jsxs("div",{className:Te.toast__text,children:[t.jsx("span",{className:Te.toast__message,children:e.message}),e.description&&t.jsx("span",{className:Te.toast__description,children:e.description})]}),e.action&&t.jsx("button",{type:"button",className:Te.toast__action,onClick:()=>{var u;(u=e.action)==null||u.onClick(),s(e.id)},children:e.action.label}),t.jsx(ye,{icon:t.jsx(D.XLg,{"aria-hidden":!0}),label:a,variant:"ghost",size:"sm",className:Te.toast__close,onClick:()=>s(e.id)})]})},Kd=({closeLabel:e,regionLabel:a,className:s})=>{const{labels:r}=z(),[o,c]=n.useState([]);n.useEffect(()=>(Qt.add(c),c(Ve),()=>{Qt.delete(c)}),[]);const i=n.useCallback(l=>Jt(l),[]),_=n.useCallback(()=>{const l=o.at(-1);l&&Jt(l.id)},[o]);na(o.length>0,_);const[p,u]=n.useState(!1);return n.useEffect(()=>u(!0),[]),p?kt.createPortal(t.jsx("div",{className:x(Te.hub,s),role:"region","aria-label":B("ToastHub.regionLabel",a,r==null?void 0:r.notifications),"aria-live":"polite","aria-relevant":"additions",children:o.map(l=>t.jsx(zd,{toast:l,closeLabel:B("ToastHub.closeLabel",e,r==null?void 0:r.close),onDismiss:i},l.id))}),document.body):null},Wa=n.memo(L(Kd,"ToastHub")),Ud=()=>{const[e,a]=n.useState(!1);return n.useEffect(()=>a(!0),[]),e?t.jsx(Wa,{}):null},qd=n.memo(L(Ud,"ToastPortal")),Yd="hanui-accordion-h9jLC",Xd="hanui-accordion__item--YvzK",Gd="hanui-accordion__title-qZOLY",Wd="hanui-accordion__meta-PSlsO",Vd="hanui-accordion__marker-QcWcI",Qd="hanui-accordion__summary-QUhWh",Jd="hanui-accordion__panel--3EXE",Zd="hanui-accordion__content-fO64s",je={accordion:Yd,accordion__item:Xd,"accordion__item--disabled":"hanui-accordion__item--disabled-x1erZ",accordion__title:Gd,accordion__meta:Wd,accordion__marker:Vd,accordion__summary:Qd,accordion__panel:Jd,accordion__content:Zd},eu=({items:e,isSingle:a,defaultOpenIds:s,openIds:r,onChange:o,className:c,testId:i})=>{const _=n.useId(),[p,u]=n.useState(s??[]),l=r!==void 0,h=l?r:p,d=n.useCallback((b,y)=>{const g=y?a?[b]:[...h.filter(m=>m!==b),b]:h.filter(m=>m!==b);l||u(g),o==null||o(g)},[l,a,o,h]);return t.jsx("div",{className:x(je.accordion,c),"data-testid":i,children:e.map(b=>{const y=h.includes(b.id);return t.jsxs("details",{className:x(je.accordion__item,b.isDisabled&&je["accordion__item--disabled"]),open:y,onToggle:g=>{const m=g.currentTarget.open;m!==y&&d(b.id,m)},children:[t.jsxs("summary",{id:`${_}-${b.id}`,className:je.accordion__summary,"aria-disabled":b.isDisabled,tabIndex:b.isDisabled?-1:void 0,onClick:g=>b.isDisabled&&g.preventDefault(),children:[t.jsx(D.CaretRightFill,{"aria-hidden":!0,className:je.accordion__marker}),t.jsx("span",{className:je.accordion__title,children:b.title}),b.meta&&t.jsx("span",{className:je.accordion__meta,children:b.meta})]}),t.jsx("div",{className:je.accordion__panel,children:t.jsx("div",{className:je.accordion__content,children:b.content})})]},b.id)})})},tu=n.memo(L(eu,"Accordion")),au="hanui-steps-ntge1",nu="hanui-steps__item-GrU1x",su="hanui-steps__button-XBsnS",ru="hanui-steps__marker-g-GLE",ou="hanui-steps__text-Mkpkh",iu="hanui-steps__label-NSeFM",cu="hanui-steps__description-bQuNT",lu="hanui-steps__status-wWJfP",ue={steps:au,"steps--horizontal":"hanui-steps--horizontal-O-mkx","steps--vertical":"hanui-steps--vertical-agfwo",steps__item:nu,steps__button:su,steps__marker:ru,"steps__item--done":"hanui-steps__item--done-mvOuN","steps__item--current":"hanui-steps__item--current-Qzlal",steps__text:ou,steps__label:iu,steps__description:cu,steps__status:lu},du=(e,a)=>e<a?"done":e===a?"current":"upcoming",uu={done:"tamamlandı",current:"şu anki adım",upcoming:"sıradaki"},_u=({steps:e,currentIndex:a,onStepClick:s,label:r,orientation:o="horizontal",className:c,testId:i})=>t.jsx("ol",{className:x(ue.steps,ue[`steps--${o}`],c),"aria-label":r,"data-testid":i,children:e.map((_,p)=>{const u=du(p,a),l=!!s&&u==="done",h=t.jsxs(t.Fragment,{children:[t.jsx("span",{className:ue.steps__marker,"aria-hidden":!0,children:u==="done"?t.jsx(D.CheckLg,{}):p+1}),t.jsxs("span",{className:ue.steps__text,children:[t.jsx("span",{className:ue.steps__label,children:_.label}),_.description&&t.jsx("span",{className:ue.steps__description,children:_.description})]}),t.jsx("span",{className:ue.steps__status,children:uu[u]})]});return t.jsx("li",{className:x(ue.steps__item,ue[`steps__item--${u}`]),"aria-current":u==="current"?"step":void 0,children:l?t.jsx("button",{type:"button",className:ue.steps__button,onClick:()=>s==null?void 0:s(p),children:h}):t.jsx("span",{className:ue.steps__button,children:h})},_.id)})}),hu=n.memo(L(_u,"Steps")),pu="hanui-tabs-l4dFE",mu="hanui-tabs__list-HJvR8",bu="hanui-tabs__tab-7gDW7",gu="hanui-tabs__count-8JX8s",fu="hanui-tabs__panel-CPklY",nt={tabs:pu,tabs__list:mu,tabs__tab:bu,"tabs__tab--active":"hanui-tabs__tab--active-riqNp",tabs__count:gu,tabs__panel:fu},xu=({items:e,defaultTabId:a,activeId:s,onChange:r,ariaLabel:o,isManualActivation:c,className:i,testId:_})=>{var C;const p=n.useId(),[u,l]=n.useState(a??((C=e[0])==null?void 0:C.id)),h=U.isDefined(s),d=h?s:u,b=e.findIndex(N=>N.id===d),[y,g]=n.useState(b<0?0:b),m=n.useRef(null),f=e[b]??e[0],v=n.useRef(!1);n.useEffect(()=>{var N;if(!v.current){v.current=!0;return}Zt((N=m.current)==null?void 0:N.querySelector('[aria-selected="true"]'),{block:"nearest",inline:"nearest"})},[d]);const E=N=>{h||l(N),r==null||r(N)},w=N=>{var $;if(c&&(N.key==="Enter"||N.key===" ")){N.preventDefault(),E(e[y].id);return}const k=N.key==="ArrowRight"?1:N.key==="ArrowLeft"?-1:0;if(k===0)return;N.preventDefault();const I=((c?y:b)+k+e.length)%e.length;g(I),c||E(e[I].id),($=document.getElementById(`${p}-tab-${e[I].id}`))==null||$.focus()};if(e.length===0)return null;const T=U.isDefined(f==null?void 0:f.content);return t.jsxs("div",{className:x(nt.tabs,i),"data-testid":_,children:[t.jsx("div",{ref:m,className:nt.tabs__list,role:"tablist","aria-label":o,onKeyDown:w,children:e.map(N=>{var I;const k=N.id===f.id;return t.jsxs("button",{id:`${p}-tab-${N.id}`,type:"button",role:"tab","aria-selected":k,"aria-controls":T?`${p}-panel-${N.id}`:void 0,tabIndex:(c?((I=e[y])==null?void 0:I.id)===N.id:k)?0:-1,className:x(nt.tabs__tab,k&&nt["tabs__tab--active"]),onClick:()=>E(N.id),children:[N.label,U.isDefined(N.count)&&t.jsx("span",{className:nt.tabs__count,children:N.count})]},N.id)})}),T&&t.jsx("div",{id:`${p}-panel-${f.id}`,role:"tabpanel","aria-labelledby":`${p}-tab-${f.id}`,className:nt.tabs__panel,tabIndex:0,children:f.content})]})},vu=n.memo(xu),yu="hanui-tile-TGur-",wu="hanui-tile__medallion--Y0pz",ku="hanui-tile__label-mI1OQ",ju="hanui-tile__meta-22qnR",xt={tile:yu,tile__medallion:wu,tile__label:ku,tile__meta:ju,"tile--active":"hanui-tile--active-z0F2M"},Nu=({label:e,icon:a,href:s,meta:r,isActive:o,linkProps:c,className:i,testId:_})=>t.jsxs(he,{href:s,className:x(xt.tile,o&&xt["tile--active"],i),"aria-current":o?"page":void 0,"data-testid":_,...c,children:[t.jsx("span",{className:xt.tile__medallion,"aria-hidden":!0,children:a}),t.jsx("span",{className:xt.tile__label,children:e}),r&&t.jsx("span",{className:xt.tile__meta,children:r})]}),$u=n.memo(Nu),Eu="hanui-timeline-GxubZ",Tu="hanui-timeline__item-qMpF2",Cu="hanui-timeline__marker-MDk07",Iu="hanui-timeline__body-xJi7t",Ru="hanui-timeline__title-pKxZJ",Du="hanui-timeline__time-ITWYy",Su="hanui-timeline__description-4vrEy",Lu="hanui-timeline__srOnly-7K2We",Ne={timeline:Eu,timeline__item:Tu,timeline__marker:Cu,"timeline__item--done":"hanui-timeline__item--done-dqiOQ","timeline__item--current":"hanui-timeline__item--current-TGV5f","timeline__item--pending":"hanui-timeline__item--pending-VMZTS","timeline__item--failed":"hanui-timeline__item--failed-2BbfX",timeline__body:Iu,timeline__title:Ru,timeline__time:Du,timeline__description:Su,timeline__srOnly:Lu},Au={done:t.jsx(D.CheckLg,{}),failed:t.jsx(D.XLg,{}),current:null,pending:null},Fu={done:"tamamlandı",current:"şu an",pending:"bekliyor",failed:"başarısız"},Mu=({events:e,label:a,className:s,testId:r})=>t.jsx("ol",{className:x(Ne.timeline,s),"aria-label":a,"data-testid":r,children:e.map(o=>{const c=o.status??"done";return t.jsxs("li",{className:x(Ne.timeline__item,Ne[`timeline__item--${c}`]),"aria-current":c==="current"?"step":void 0,children:[t.jsx("span",{className:Ne.timeline__marker,"aria-hidden":!0,children:o.icon??Au[c]}),t.jsxs("div",{className:Ne.timeline__body,children:[t.jsxs("span",{className:Ne.timeline__title,children:[o.title,t.jsx("span",{className:Ne.timeline__srOnly,children:Fu[c]})]}),o.time&&t.jsx("span",{className:Ne.timeline__time,children:o.time}),o.description&&t.jsx("span",{className:Ne.timeline__description,children:o.description})]})]},o.id)})}),Bu=n.memo(L(Mu,"Timeline")),Pu="hanui-modal-3IDi9",Ou="hanui-modal__panel--qLSz",Hu="hanui-modal__header-meWm6",zu="hanui-modal__icon-df2dd",Ku="hanui-modal__heading-PwDS8",Uu="hanui-modal__title-80Sh6",qu="hanui-modal__description-fsCHI",Yu="hanui-modal__close-vFPbw",Xu="hanui-modal__body-PDF12",Gu="hanui-modal__footer-CCCkx",ae={modal:Pu,"modal--sm":"hanui-modal--sm-A7WsS","modal--lg":"hanui-modal--lg-z99Em",modal__panel:Ou,modal__header:Hu,modal__icon:zu,"modal__icon--neutral":"hanui-modal__icon--neutral-QSL7c","modal__icon--danger":"hanui-modal__icon--danger-6V90a","modal__icon--warning":"hanui-modal__icon--warning-a--FX","modal__icon--success":"hanui-modal__icon--success-YWxZs","modal__icon--info":"hanui-modal__icon--info-WRLah",modal__heading:Ku,modal__title:Uu,modal__description:qu,modal__close:Yu,modal__body:Xu,modal__footer:Gu},Wu=({isOpen:e,onClose:a,title:s,closeLabel:r,children:o,description:c,footer:i,icon:_,tone:p="neutral",size:u="md",isDismissable:l=!0,className:h,testId:d})=>{const{labels:b}=z(),y=n.useRef(null),g=n.useRef(null),m=n.useId(),f=n.useId();n.useEffect(()=>{const E=y.current;if(!E)return;if(!e){E.open&&E.close();return}const w=it();E.open||E.showModal(),Bt(E,`.${ae.modal__close}`),Mt(E);const{token:T,pop:C}=Pt();return g.current=T,()=>{C(),g.current=null,w()}},[e]),Nt(e),n.useEffect(()=>{const E=y.current;if(!E)return;const w=T=>{T.preventDefault(),l&&(g.current&&!Ot(g.current)||a())};return E.addEventListener("cancel",w),()=>E.removeEventListener("cancel",w)},[a,l]);const v=n.useCallback(E=>{l&&E.target===y.current&&a()},[l,a]);return t.jsx("dialog",{ref:y,className:x(ae.modal,ae[`modal--${u}`],h),"aria-labelledby":m,"aria-describedby":c?f:void 0,"data-testid":d,onClick:v,children:t.jsxs("div",{className:ae.modal__panel,children:[t.jsxs("header",{className:ae.modal__header,children:[_&&t.jsx("span",{className:x(ae.modal__icon,ae[`modal__icon--${p}`]),children:_}),t.jsxs("div",{className:ae.modal__heading,children:[t.jsx("h2",{id:m,className:ae.modal__title,children:s}),c&&t.jsx("p",{id:f,className:ae.modal__description,children:c})]}),l&&t.jsx(ye,{icon:t.jsx(D.XLg,{"aria-hidden":!0}),label:B("Modal.closeLabel",r,b==null?void 0:b.close),variant:"ghost",size:"sm",className:ae.modal__close,onClick:a})]}),o&&t.jsx("div",{className:ae.modal__body,children:o}),i&&t.jsx("footer",{className:ae.modal__footer,children:i})]})})},da=n.memo(Wu),Vu="hanui-palette-ag-P9",Qu="hanui-palette__search-G3aYv",Ju="hanui-palette__searchIcon-2UYj-",Zu="hanui-palette__input-vvLvt",e_="hanui-palette__list--KWiH",t_="hanui-palette__group-KPj5Q",a_="hanui-palette__item-UZzkp",n_="hanui-palette__icon-Fg0Lt",s_="hanui-palette__text-flfN9",r_="hanui-palette__label-8-UHe",o_="hanui-palette__description-eRlk9",i_="hanui-palette__shortcut-DwYKX",c_="hanui-palette__empty-vg-I3",J={palette:Vu,palette__search:Qu,palette__searchIcon:Ju,palette__input:Zu,palette__list:e_,palette__group:t_,palette__item:a_,"palette__item--active":"hanui-palette__item--active-XHcka",palette__icon:n_,palette__text:s_,palette__label:r_,palette__description:o_,palette__shortcut:i_,palette__empty:c_},l_=({isOpen:e,onClose:a,items:s,label:r,searchPlaceholder:o,emptyMessage:c,className:i,testId:_})=>{const p=n.useId(),u=`${p}-listbox`,l=n.useRef(null),h=n.useRef(null),d=n.useRef(null),[b,y]=n.useState(""),[g,m]=n.useState(0),f=n.useMemo(()=>{if(b.trim()==="")return s;const w=b.trim();return s.filter(T=>wt(T.label,w)||(T.description?wt(T.description,w):!1))},[s,b]);Nt(e),n.useEffect(()=>{var k;const w=l.current;if(!w)return;if(!e){w.open&&w.close();return}const T=it();w.open||w.showModal(),(k=h.current)==null||k.focus({preventScroll:!0}),y(""),m(0);const{token:C,pop:N}=Pt();return d.current=C,()=>{N(),d.current=null,T()}},[e]),n.useEffect(()=>{const w=l.current;if(!w)return;const T=C=>{C.preventDefault(),!(d.current&&!Ot(d.current))&&a()};return w.addEventListener("cancel",T),()=>w.removeEventListener("cancel",T)},[a]),n.useEffect(()=>{var w;Zt((w=l.current)==null?void 0:w.querySelector(`[data-index="${g}"]`),{block:"nearest"})},[g]);const v=w=>{w.onSelect(),a()},E=w=>{const T=f.length-1;switch(w.key){case"ArrowDown":w.preventDefault(),m(C=>C>=T?0:C+1);break;case"ArrowUp":w.preventDefault(),m(C=>C<=0?T:C-1);break;case"Home":w.preventDefault(),m(0);break;case"End":w.preventDefault(),m(T);break;case"Enter":{w.preventDefault();const C=f[g];C&&v(C);break}}};return t.jsxs("dialog",{ref:l,className:x(J.palette,i),"aria-label":r,"data-testid":_,onClick:w=>w.target===l.current&&a(),children:[t.jsxs("div",{className:J.palette__search,children:[t.jsx(D.Search,{"aria-hidden":!0,className:J.palette__searchIcon}),t.jsx("input",{ref:h,type:"text",role:"combobox",className:J.palette__input,value:b,placeholder:o,"aria-label":o,autoComplete:"off","aria-autocomplete":"list","aria-expanded":!0,"aria-controls":u,"aria-activedescendant":f[g]?`${p}-option-${g}`:void 0,onChange:w=>{y(w.target.value),m(0)},onKeyDown:E})]}),t.jsxs("ul",{id:u,role:"listbox","aria-label":r,className:J.palette__list,children:[f.map((w,T)=>{var N;const C=w.group!==void 0&&w.group!==((N=f[T-1])==null?void 0:N.group);return t.jsxs("li",{children:[C&&t.jsx("span",{className:J.palette__group,"aria-hidden":!0,children:w.group}),t.jsxs("div",{id:`${p}-option-${T}`,role:"option","data-index":T,"aria-selected":T===g,className:x(J.palette__item,T===g&&J["palette__item--active"]),onMouseEnter:()=>m(T),onClick:()=>v(w),children:[w.icon&&t.jsx("span",{className:J.palette__icon,"aria-hidden":!0,children:w.icon}),t.jsxs("span",{className:J.palette__text,children:[t.jsx("span",{className:J.palette__label,children:w.label}),w.description&&t.jsx("span",{className:J.palette__description,children:w.description})]}),w.shortcut&&t.jsx("kbd",{className:J.palette__shortcut,"aria-hidden":!0,children:w.shortcut})]})]},w.id)}),f.length===0&&t.jsx("li",{className:J.palette__empty,children:c})]})]})},d_=n.memo(L(l_,"CommandPalette")),u_={destructive:t.jsx(D.TrashFill,{"aria-hidden":!0}),warning:t.jsx(D.ExclamationTriangleFill,{"aria-hidden":!0}),neutral:t.jsx(D.QuestionCircleFill,{"aria-hidden":!0})},__={destructive:"danger",warning:"warning",neutral:"info"},h_={destructive:ve.DANGER,warning:ve.PRIMARY,neutral:ve.PRIMARY},p_=({isOpen:e,onClose:a,onConfirm:s,title:r,description:o,confirmLabel:c,cancelLabel:i,closeLabel:_,variant:p,kind:u,children:l})=>{const{labels:h}=z(),[d,b]=n.useState(!1),y=p??u??"neutral",g=async()=>{b(!0);try{await s()}finally{b(!1)}};return t.jsx(da,{isOpen:e,onClose:a,title:r,closeLabel:_??(h==null?void 0:h.close),description:o,icon:u_[y],tone:__[y],size:"sm",isDismissable:!d,footer:t.jsxs(t.Fragment,{children:[t.jsx(ot,{variant:ve.SECONDARY,size:Fe.MEDIUM,onClick:a,disabled:d,children:B("ConfirmDialog.cancelLabel",i,h==null?void 0:h.cancel)}),t.jsx(ot,{variant:h_[y],size:Fe.MEDIUM,onClick:g,isLoading:d,children:c})]}),children:l})},m_=n.memo(p_),b_="hanui-drawer-fgfi1",g_="hanui-drawer__header-BDcRe",f_="hanui-drawer__title-9M0e8",x_="hanui-drawer__close-Z30oW",v_="hanui-drawer__toolbar-vcsYi",y_="hanui-drawer__body-x12SX",w_="hanui-drawer__footer-PajTg",fe={drawer:b_,"drawer--sm":"hanui-drawer--sm-ywgof","drawer--md":"hanui-drawer--md-mN8Kg","drawer--lg":"hanui-drawer--lg-5H-oE","drawer--end":"hanui-drawer--end-q-sIP","drawer--start":"hanui-drawer--start-xqVlX",drawer__header:g_,drawer__title:f_,drawer__close:x_,drawer__toolbar:v_,drawer__body:y_,drawer__footer:w_},k_=({isOpen:e,onClose:a,title:s,closeLabel:r,children:o,side:c="end",size:i="md",footer:_,toolbar:p,className:u,testId:l})=>{const{labels:h}=z(),d=n.useRef(null),b=n.useRef(null),y=n.useId();n.useEffect(()=>{const m=d.current;if(!m)return;if(!e){m.open&&m.close();return}const f=it();m.open||m.showModal(),Bt(m,`.${fe.drawer__close}`),Mt(m);const{token:v,pop:E}=Pt();return b.current=v,()=>{E(),b.current=null,f()}},[e]),Nt(e),ta(),n.useEffect(()=>{const m=d.current;if(!m)return;const f=v=>{v.preventDefault(),!(b.current&&!Ot(b.current))&&a()};return m.addEventListener("cancel",f),()=>m.removeEventListener("cancel",f)},[a]);const g=n.useCallback(m=>{m.target===d.current&&a()},[a]);return t.jsxs("dialog",{ref:d,className:x(fe.drawer,fe[`drawer--${c}`],fe[`drawer--${i}`],u),"aria-labelledby":y,"data-testid":l,onClick:g,children:[t.jsxs("header",{className:fe.drawer__header,children:[t.jsx("h2",{id:y,className:fe.drawer__title,children:s}),t.jsx(ye,{icon:t.jsx(D.XLg,{"aria-hidden":!0}),label:B("Drawer.closeLabel",r,h==null?void 0:h.close),variant:"ghost",size:"sm",className:fe.drawer__close,onClick:a})]}),p&&t.jsx("div",{className:fe.drawer__toolbar,children:p}),t.jsx("div",{className:fe.drawer__body,children:o}),_&&t.jsx("div",{className:fe.drawer__footer,children:_})]})},j_=n.memo(L(k_,"Drawer")),N_="hanui-form-zpZn4",$_={form:N_},E_=({isOpen:e,onClose:a,onSubmit:s,title:r,label:o,submitLabel:c,cancelLabel:i,closeLabel:_,description:p,hint:u,placeholder:l,defaultValue:h="",isRequired:d,requiredLabel:b,inputMode:y="text",maxLength:g,rows:m=4})=>{const{labels:f}=z(),v=n.useId(),[E,w]=n.useState(h),[T,C]=n.useState(!1),N=n.useRef(!1);n.useEffect(()=>{e&&!N.current&&w(h),N.current=e},[e,h]);const k=E.trim(),I=!!d&&k==="",$=M=>y==="multiline"?t.jsx(qa,{...M,value:E,onChange:Y=>w(Y.target.value),placeholder:l,maxLength:g,rows:m}):t.jsx(ca,{...M,type:y==="number"?"number":"text",value:E,onChange:Y=>w(Y.target.value),placeholder:l,maxLength:g}),j=async()=>{if(!(I||T)){C(!0);try{await s(k),a()}catch{}finally{C(!1)}}};return t.jsx(da,{isOpen:e,onClose:a,title:r,closeLabel:_??(f==null?void 0:f.close),description:p,size:"sm",isDismissable:!T,footer:t.jsxs(t.Fragment,{children:[t.jsx(ot,{variant:ve.SECONDARY,size:Fe.MEDIUM,onClick:a,disabled:T,children:B("PromptDialog.cancelLabel",i,f==null?void 0:f.cancel)}),t.jsx(ot,{type:"submit",form:v,variant:ve.PRIMARY,size:Fe.MEDIUM,disabled:I,isLoading:T,children:B("PromptDialog.submitLabel",c,f==null?void 0:f.submit)})]}),children:t.jsx("form",{id:v,className:$_.form,onSubmit:M=>{M.preventDefault(),j()},children:t.jsx(Ya,{label:o,hint:u,isRequired:d,requiredLabel:b,children:$})})})},T_=n.memo(E_),C_="hanui-scroller-EtDmS",I_="hanui-table-uCv4q",st={scroller:C_,"scroller--frame":"hanui-scroller--frame-84zz6",table:I_,"table--compact":"hanui-table--compact-4KCVl","table--regular":"hanui-table--regular-hsA3-","table--spacious":"hanui-table--spacious-BBUX-","table--sticky-head":"hanui-table--sticky-head-FO2L4","table--row-hover":"hanui-table--row-hover--MAoe"},R_=L(n.memo(({hasFrame:e=!0,label:a,className:s,children:r,...o})=>t.jsx("div",{tabIndex:0,role:"region","aria-label":a,className:x(st.scroller,e&&st["scroller--frame"],s),...o,children:r})),"TableScroller"),D_=({density:e="regular",hasStickyHead:a,hasRowHover:s,className:r,children:o,...c})=>t.jsx("table",{className:x(st.table,st[`table--${e}`],a&&st["table--sticky-head"],s&&st["table--row-hover"],r),...c,children:o}),S_=n.memo(D_),L_="hanui-wrapper-KXCZg",A_="hanui-table-LF5Ow",F_="hanui-state-YPPb0",M_="hanui-state__message-wwbIW",B_="hanui-srOnly-Oia8c",P_="hanui-sort-3Q6Fx",O_="hanui-sort__arrow-MITWb",H_="hanui-sticky-KDEvQ",z_="hanui-bulkBar-62qk0",Z={wrapper:L_,"wrapper--capped":"hanui-wrapper--capped-M2QUJ",table:A_,state:F_,"state--error":"hanui-state--error-A492d",state__message:M_,"row--warning":"hanui-row--warning-BAUN2",srOnly:B_,sort:P_,sort__arrow:O_,"sort__arrow--ascending":"hanui-sort__arrow--ascending-85T5d","sort__arrow--descending":"hanui-sort__arrow--descending-gs3VU",sticky:H_,bulkBar:z_},K_=({columns:e,label:a,children:s,isLoading:r,error:o,emptyMessage:c,loadingMessage:i,hasViewportCap:_,onSort:p,bulkBar:u,className:l,testId:h})=>{var g,m;const{labels:d}=z(),b=n.Children.count(s),y=(f,v)=>t.jsx("tr",{children:t.jsx("td",{colSpan:e.length,className:x(Z.state,v&&Z[`state--${v}`]),children:f})});return t.jsxs("div",{className:x(Z.wrapper,_&&Z["wrapper--capped"],l),"data-testid":h,children:[u&&t.jsx("div",{className:Z.bulkBar,children:u}),t.jsxs("table",{className:Z.table,"aria-label":a,children:[t.jsx("thead",{children:t.jsx("tr",{children:e.map(f=>{const v=!!(f.isSortable&&p),E=f.ariaSort==="ascending"?"descending":"ascending";return t.jsx("th",{scope:"col","aria-sort":f.ariaSort,className:x(f.className,f.isSticky&&Z.sticky),children:v?t.jsxs("button",{type:"button",className:Z.sort,onClick:()=>p==null?void 0:p(f.key,E),children:[f.label,f.srLabel&&t.jsx("span",{className:Z.srOnly,children:f.srLabel}),t.jsx("span",{"aria-hidden":!0,className:x(Z.sort__arrow,f.ariaSort&&Z[`sort__arrow--${f.ariaSort}`]),children:f.ariaSort==="descending"?"▾":"▴"})]}):t.jsxs(t.Fragment,{children:[f.label,f.srLabel&&t.jsx("span",{className:Z.srOnly,children:f.srLabel})]})},f.key)})})}),t.jsx("tbody",{children:o?y(t.jsxs("span",{role:"alert",className:Z.state__message,children:[t.jsx(D.ExclamationCircleFill,{"aria-hidden":!0}),o]}),"error"):r?y(B("DataTable.loadingMessage",i,(g=d==null?void 0:d.dataTable)==null?void 0:g.loading)):b===0?y(B("DataTable.emptyMessage",c,(m=d==null?void 0:d.dataTable)==null?void 0:m.empty)):s})]})]})},U_=L(n.memo(({isWarning:e,className:a,children:s,...r})=>t.jsx("tr",{className:x(e&&Z["row--warning"],a),...r,children:s})),"DataTableRow"),q_=n.memo(K_),Y_="hanui-bar-b4PP4",X_="hanui-bar__hiddenSubmit-jeCyX",G_="hanui-bar__actions-rG69L",W_="hanui-field-f-rvu",yt={bar:Y_,bar__hiddenSubmit:X_,bar__actions:G_,field:W_,"field--wide":"hanui-field--wide-FA5gf"},V_=({onSubmit:e,children:a,actions:s,label:r,className:o,testId:c})=>{const{labels:i}=z();return t.jsxs("form",{className:x(yt.bar,o),"aria-label":B("FilterBar.label",r,i==null?void 0:i.filters),"data-testid":c,onSubmit:_=>{_.preventDefault(),e()},children:[a,t.jsx("button",{type:"submit",className:yt.bar__hiddenSubmit,tabIndex:-1,"aria-hidden":!0}),s&&t.jsx("div",{className:yt.bar__actions,children:s})]})},Q_=L(n.memo(({children:e,isWide:a,className:s})=>t.jsx("div",{className:x(yt.field,a&&yt["field--wide"],s),children:e})),"FilterBarField"),J_=n.memo(V_),Z_="hanui-pagination-K-L20",eh="hanui-pagination__list--9HqC",th="hanui-pagination__arrow-XIgoX",ah="hanui-pagination__page-TpoJM",nh="hanui-pagination__gap-qoDyI",$e={pagination:Z_,pagination__list:eh,pagination__arrow:th,pagination__page:ah,"pagination__page--active":"hanui-pagination__page--active-XHeaz",pagination__gap:nh},sh=(e,a)=>{if(a<=7)return Array.from({length:a},(c,i)=>i+1);const s=new Set([1,a,e]);e-1>1&&s.add(e-1),e+1<a&&s.add(e+1);const r=[...s].sort((c,i)=>c-i),o=[];return r.forEach((c,i)=>{i>0&&c-r[i-1]>1&&o.push("gap"),o.push(c)}),o},rh=({page:e,totalPages:a,label:s,previousLabel:r,nextLabel:o,buildHref:c,onPageChange:i,linkProps:_,formatAnnouncement:p,scrollTo:u,className:l,testId:h})=>{var T,C,N;const{labels:d}=z(),b=At(),y=n.useRef(e);n.useEffect(()=>{y.current!==e&&(y.current=e,p&&b(p(e,a)))},[e,a,p,b]);const g=n.useMemo(()=>sh(e,a),[e,a]);if(a<=1)return null;const m=k=>{u==="top"&&k!==e&&gn()},f=k=>{i&&(i(k),m(k))},v=_==null?void 0:_.onClick,E=(k,I)=>{v==null||v(k),!(k.defaultPrevented||k.button!==0)&&(k.metaKey||k.ctrlKey||k.shiftKey||k.altKey||m(I))},w=(k,I,$)=>{const j=k<1||k>a;return c&&!j?t.jsx(he,{href:c(k),className:$e.pagination__arrow,"aria-label":I,..._,onClick:M=>E(M,k),children:$}):t.jsx(ye,{className:$e.pagination__arrow,icon:$,label:I,variant:"outline",disabled:j,onClick:()=>f(k)})};return t.jsxs("nav",{className:x($e.pagination,l),"aria-label":B("Pagination.label",s,(T=d==null?void 0:d.pagination)==null?void 0:T.label),"data-testid":h,children:[w(e-1,B("Pagination.previousLabel",r,(C=d==null?void 0:d.pagination)==null?void 0:C.previous),t.jsx(D.CaretLeftFill,{"aria-hidden":!0})),t.jsx("ul",{className:$e.pagination__list,children:g.map((k,I)=>k==="gap"?t.jsx("li",{className:$e.pagination__gap,"aria-hidden":!0,children:"…"},`gap-${I}`):t.jsx("li",{children:c?t.jsx(he,{href:c(k),className:x($e.pagination__page,k===e&&$e["pagination__page--active"]),"aria-current":k===e?"page":void 0,..._,onClick:$=>E($,k),children:k}):t.jsx(ot,{variant:ve.SECONDARY,size:Fe.SMALL,className:x($e.pagination__page,k===e&&$e["pagination__page--active"]),"aria-current":k===e?"page":void 0,onClick:()=>f(k),children:k})},k))}),w(e+1,B("Pagination.nextLabel",o,(N=d==null?void 0:d.pagination)==null?void 0:N.next),t.jsx(D.CaretRightFill,{"aria-hidden":!0}))]})},oh=n.memo(rh);exports.ABOVE_MOBILE_MEDIA_QUERY=Ft;exports.ABOVE_TABLET_MEDIA_QUERY=Nn;exports.Accordion=tu;exports.Alert=Si;exports.Avatar=Oi;exports.Badge=Ui;exports.BottomSheet=ia;exports.Breadcrumb=Qi;exports.Button=ot;exports.COMPACT_DENSITY=on;exports.Card=uc;exports.CardBody=lc;exports.CardFooter=dc;exports.CardMedia=ic;exports.CardOverlay=cc;exports.Carousel=xc;exports.Checkbox=br;exports.Chip=Ua;exports.ChipGroup=ps;exports.Combobox=Us;exports.CommandPalette=d_;exports.ConfirmDialog=m_;exports.CopyField=$c;exports.DARK_THEME=Da;exports.DEFAULT_FONTS=cn;exports.DataTable=q_;exports.DataTableRow=U_;exports.DateField=Oo;exports.DateRange=zo;exports.Directory=Gc;exports.DirectoryGroup=qc;exports.DirectoryJump=Xc;exports.DirectoryRow=Yc;exports.Divider=Ic;exports.Drawer=j_;exports.EmptyState=tl;exports.Field=Ya;exports.FileUpload=ji;exports.FilterBar=J_;exports.FilterBarField=Q_;exports.HanuiProvider=dn;exports.IconButton=ye;exports.Input=ca;exports.LIGHT_THEME=Ra;exports.METRIC_TOKENS=rn;exports.MOBILE_BREAKPOINT=Ha;exports.Menu=ns;exports.Modal=da;exports.PageHeader=hl;exports.Pagination=oh;exports.Panel=Il;exports.PanelForm=Tl;exports.PanelRow=Cl;exports.PasswordInput=ko;exports.Popover=os;exports.Price=Ml;exports.Progress=Ga;exports.ProgressCircle=ci;exports.PromptDialog=T_;exports.QuantityStepper=co;exports.Radio=Dr;exports.RadioCard=Br;exports.RangeSlider=Xr;exports.Rating=Ul;exports.RatingInput=no;exports.ScrollArea=td;exports.SectionHeader=Jl;exports.SegmentedControl=Vs;exports.Select=lr;exports.Skeleton=_d;exports.SkeletonCard=bd;exports.SkeletonRows=gd;exports.SkeletonTable=fd;exports.Spinner=aa;exports.Stat=Id;exports.Steps=hu;exports.Switch=jr;exports.TABLET_BREAKPOINT=za;exports.TABLET_PORTRAIT_BREAKPOINT=jn;exports.Table=S_;exports.TableCheckbox=ho;exports.TableScroller=R_;exports.Tabs=vu;exports.TagInput=Co;exports.TextLink=zn;exports.Textarea=qa;exports.Tile=$u;exports.Timeline=Bu;exports.ToastHub=Wa;exports.ToastPortal=qd;exports.Tooltip=Qn;exports.UISize=Fe;exports.UIVariant=ve;exports.buildThemeCss=La;exports.initHanui=un;exports.isKeyboardOpeningElement=Ka;exports.matchesSearch=wt;exports.normalizeSearchTerm=Wt;exports.preventAutoKeyboard=Mt;exports.resolveTokens=ln;exports.toast=Hd;exports.useAnnounce=At;exports.useHanui=z;exports.useHanuiTheme=bn;exports.useListboxNavigation=ea;exports.usePositioning=jt;exports.useScrollLock=Nt;exports.useSheetViewport=ta;exports.useVirtualList=Ma;
|
|
21
|
+
`)},ta=e=>{if(!Y.isClient())return;const a=e?Ma(e):"",s=document.getElementById(xa);if(a===""){s==null||s.remove();return}const r=s??document.createElement("style");r.id=xa,r.textContent=a,s||document.head.appendChild(r)},Ba=n.createContext({}),P=()=>n.useContext(Ba),_n=({children:e,theme:a,linkComponent:s,labels:r})=>{const o=n.useMemo(()=>a?JSON.stringify(a):"",[a]);n.useEffect(()=>{ta(a)},[o]);const c=n.useRef(a);c.current=a;const i=n.useMemo(()=>({theme:c.current,linkComponent:s,labels:r}),[o,s,r]);return t.jsx(Ba.Provider,{value:i,children:e})},hn=(e={})=>{ta(e.theme),Y.isClient()&&(e.colorScheme&&document.documentElement.setAttribute(Fe,e.colorScheme),e.density&&document.documentElement.setAttribute(ea,e.density))},pn="hanui-live-region",mn=e=>{if(!Y.isClient())return null;const a=`${pn}-${e}`,s=document.getElementById(a);if(s)return s;const r=document.createElement("div");return r.id=a,r.setAttribute("aria-live",e),r.setAttribute("aria-atomic","true"),r.className="hanui-visually-hidden",document.body.appendChild(r),r},bn=(e,a)=>{e.textContent="",window.requestAnimationFrame(()=>{e.textContent=a})},Lt=()=>n.useCallback((e,a="polite")=>{const s=e.trim();if(s==="")return;const r=mn(a);r&&bn(r,s)},[]),ya=()=>{var e;return Y.isClient()&&((e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"},gn=()=>{if(!Y.isClient())return"system";const e=document.documentElement.getAttribute(Fe);return e==="dark"||e==="light"?e:"system"},fn=()=>{const[e,a]=n.useState("light"),[s,r]=n.useState("light"),[o,c]=n.useState(!1);n.useEffect(()=>{a(gn()),r(ya()),c(!0)},[]),n.useEffect(()=>{if(!Y.isClient()||!window.matchMedia)return;const _=window.matchMedia("(prefers-color-scheme: dark)"),l=()=>r(ya());return _.addEventListener("change",l),()=>_.removeEventListener("change",l)},[]);const i=e==="system"?s:e,u=n.useCallback(_=>{if(!Y.isClient())return;const l=document.documentElement;l.classList.add(va),_==="system"?l.removeAttribute(Fe):l.setAttribute(Fe,_),a(_),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>l.classList.remove(va))})},[]),p=n.useCallback(()=>u(i==="dark"?"light":"dark"),[i,u]);return{scheme:i,preference:e,setScheme:u,toggle:p,isReady:o}},xn=()=>{!Y.isClient()||typeof window.scrollTo!="function"||window.scrollTo({top:0,left:0,behavior:"instant"})},aa=(e,a)=>{typeof(e==null?void 0:e.scrollIntoView)=="function"&&e.scrollIntoView(a)},na=({count:e,isOpen:a,initialIndex:s=0,onSelect:r,onClose:o},{hasSpaceSelect:c=!1}={})=>{const[i,u]=n.useState(s),p=n.useRef(null);n.useEffect(()=>{a&&u(s)},[a,s]),n.useEffect(()=>{u(l=>l>=e?Math.max(0,e-1):l)},[e]),n.useEffect(()=>{var l;a&&aa((l=p.current)==null?void 0:l.querySelector(`[data-index="${i}"]`),{block:"nearest"})},[i,a,e]);const _=n.useCallback(l=>{const h=e-1;switch(l.key){case"ArrowDown":l.preventDefault(),u(d=>d>=h?0:d+1);break;case"ArrowUp":l.preventDefault(),u(d=>d<=0?h:d-1);break;case"Home":l.preventDefault(),u(0);break;case"End":l.preventDefault(),u(h);break;case" ":case"Enter":{if(l.key===" "&&!c)break;l.preventDefault(),e>0&&r(i);break}case"Escape":l.preventDefault(),o();break;case"Tab":o();break}},[i,e,c,o,r]);return{activeIndex:i,setActiveIndex:u,listRef:p,handleKeyDown:_}},zt={top:"bottom",bottom:"top",left:"right",right:"left"},wa=(e,a,s)=>s<a?a:Math.min(Math.max(e,a),s),Kt=(e,a,s,r,o)=>{const c=s==="top"||s==="bottom",i={top:e.top-a.height-o,bottom:e.top+e.height+o,left:e.left-a.width-o,right:e.left+e.width+o}[s],u=c?e.left:e.top,p=c?e.width:e.height,_=c?a.width:a.height,l={start:u,center:u+p/2-_/2,end:u+p-_}[r];return c?{top:i,left:l}:{top:l,left:i}},ja=(e,a,s,r,o)=>({top:e.top>=r,bottom:e.top+a.height<=o.height-r,left:e.left>=r,right:e.left+a.width<=o.width-r})[s],Nt=(e,a,{side:s="top",align:r="center",offset:o=8,padding:c=8,isOpen:i})=>{const[u,p]=n.useState({style:{position:"fixed",top:0,left:0},side:s,isPositioned:!1}),_=n.useRef(0),l=n.useCallback(()=>{const b=e.current,y=a.current;if(!b||!y)return;const f=b.getBoundingClientRect(),m=y.getBoundingClientRect(),g={width:window.innerWidth,height:window.innerHeight},j=Kt(f,m,s,r,o),$=ja(j,m,s,c,g)?s:ja(Kt(f,m,zt[s],r,o),m,zt[s],c,g)?zt[s]:s,w=Kt(f,m,$,r,o);p({style:{position:"fixed",top:Math.round(wa(w.top,c,g.height-m.height-c)),left:Math.round(wa(w.left,c,g.width-m.width-c))},side:$,isPositioned:!0})},[e,a,s,r,o,c]),h=n.useCallback(()=>{_.current||(_.current=window.requestAnimationFrame(()=>{_.current=0,l()}))},[l]);return(Y.isClient()?n.useLayoutEffect:n.useEffect)(()=>{var y,f;if(!i){p(m=>m.isPositioned?{...m,isPositioned:!1}:m);return}l(),window.addEventListener("resize",h),(y=window.visualViewport)==null||y.addEventListener("resize",h),(f=window.visualViewport)==null||f.addEventListener("scroll",h),document.addEventListener("scroll",h,!0);const b=typeof ResizeObserver>"u"?null:new ResizeObserver(h);return b&&a.current&&b.observe(a.current),b&&e.current&&b.observe(e.current),()=>{var m,g;window.removeEventListener("resize",h),(m=window.visualViewport)==null||m.removeEventListener("resize",h),(g=window.visualViewport)==null||g.removeEventListener("scroll",h),document.removeEventListener("scroll",h,!0),b==null||b.disconnect(),_.current&&(window.cancelAnimationFrame(_.current),_.current=0)}},[i,l,h,e,a]),u},vn=40,yn=6,Pa=(e,{rowHeight:a=vn,overscan:s=yn,isEnabled:r=!0}={})=>{const o=n.useRef(null),[c,i]=n.useState({start:0,end:e,totalHeight:e*a,offset:0}),u=n.useCallback(()=>{const _=o.current,l=!r||!_||_.clientHeight===0?{start:0,end:e,totalHeight:e*a,offset:0}:(()=>{const h=Math.ceil(_.clientHeight/a),d=Math.floor(_.scrollTop/a),b=Math.max(0,d-s),y=Math.min(e,d+h+s);return{start:b,end:y,totalHeight:e*a,offset:b*a}})();i(h=>h.start===l.start&&h.end===l.end&&h.totalHeight===l.totalHeight&&h.offset===l.offset?h:l)},[e,r,s,a]);n.useEffect(u),n.useEffect(()=>{const _=o.current;if(!_)return;_.addEventListener("scroll",u,{passive:!0});const l=typeof ResizeObserver>"u"?null:new ResizeObserver(u);return l==null||l.observe(_),()=>{_.removeEventListener("scroll",u),l==null||l.disconnect()}},[u]);const p=n.useCallback(_=>{const l=o.current;if(!l||!r)return;const h=_*a,d=h+a;h<l.scrollTop?l.scrollTop=h:d>l.scrollTop+l.clientHeight&&(l.scrollTop=d-l.clientHeight)},[r,a]);return{scrollRef:o,range:c,scrollToIndex:p,measure:u}};var ye=(e=>(e.PRIMARY="PRIMARY",e.CART="CART",e.SECONDARY="SECONDARY",e.OUTLINE="OUTLINE",e.DARK="DARK",e.LIGHT="LIGHT",e.GHOST="GHOST",e.DANGER="DANGER",e))(ye||{}),Pe=(e=>(e.SMALL="SMALL",e.MEDIUM="MEDIUM",e.LARGE="LARGE",e))(Pe||{});const Oa=640,wn=768,Ha=1024,jn=`(min-width: ${Ha+1}px)`,At=`(min-width: ${Oa+1}px)`,Vt=e=>e.replace(/İ/g,"i").replace(/I/g,"i").replace(/ı/g,"i").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ş/g,"s").replace(/ğ/g,"g").replace(/ç/g,"c").replace(/ø/g,"o").replace(/æ/g,"ae").replace(/ß/g,"ss").replace(/đ/g,"d").replace(/ł/g,"l").replace(/\s+/g," ").trim(),jt=(e,a)=>Vt(e).includes(Vt(a)),v=(...e)=>{let a="";for(const s of e)s&&(a=a===""?s:`${a} ${s}`);return a},A=(e,a)=>Object.assign(e,{displayName:a}),me=({children:e,...a})=>{const{linkComponent:s}=P();return s?t.jsx(s,{...a,children:e}):t.jsx("a",{...a,children:e})},ka=new Set,B=(e,...a)=>{for(const s of a)if(s!==void 0)return s;return process.env.NODE_ENV!=="production"&&!ka.has(e)&&(ka.add(e),console.error(`[hanui] Eksik metin: ${e}. Prop olarak geçin ya da <HanuiProvider labels={…}> içinde bir kez tanımlayın. Metinsiz bırakılan öğe ekran okuyucuda adsız kalır.`)),""},Ie=(e,a,...s)=>a?a(...s):B(e),kn="hanui-spinner-7pXwf",Nn="hanui-spinner__label-sZvSq",Ut={spinner:kn,spinner__label:Nn,"spinner--sm":"hanui-spinner--sm-uI0wH","spinner--md":"hanui-spinner--md--VmFK","spinner--lg":"hanui-spinner--lg-K9k-Z"},$n=({size:e="md",label:a,className:s})=>{const{labels:r}=P();return t.jsx("span",{className:v(Ut.spinner,Ut[`spinner--${e}`],s),role:"status",children:t.jsx("span",{className:Ut.spinner__label,children:a??B("Spinner.label",r==null?void 0:r.loading)})})},sa=n.memo($n),En="hanui-button-SRu4R",Tn="hanui-button__icon-giom6",Cn="hanui-button__spinner-vexVG",In="hanui-button__label-qiMHm",je={button:En,button__icon:Tn,button__spinner:Cn,button__label:In,"button--full":"hanui-button--full-CwPHR","button--loading":"hanui-button--loading-O-naJ","button--small":"hanui-button--small-TF9Hz","button--medium":"hanui-button--medium-JDjkH","button--large":"hanui-button--large-btadu","button--primary":"hanui-button--primary-ym7RJ","button--cart":"hanui-button--cart-5DVmR","button--secondary":"hanui-button--secondary-56m1d","button--outline":"hanui-button--outline-ZI8sw","button--dark":"hanui-button--dark-FGZgn","button--light":"hanui-button--light-YzEPs","button--ghost":"hanui-button--ghost-rijnZ","button--danger":"hanui-button--danger-TNGd2"},Rn=n.forwardRef(({variant:e=ye.PRIMARY,size:a=Pe.MEDIUM,isLoading:s,isFullWidth:r,startIcon:o,endIcon:c,className:i,children:u,disabled:p,href:_,isExternal:l,linkProps:h,testId:d,...b},y)=>{const f=v(je.button,je[`button--${e.toLowerCase()}`],je[`button--${a.toLowerCase()}`],r&&je["button--full"],s&&je["button--loading"],i),m=t.jsxs(t.Fragment,{children:[s&&t.jsx(sa,{size:"sm",className:je.button__spinner,label:""}),!s&&o&&t.jsx("span",{className:je.button__icon,children:o}),t.jsx("span",{className:je.button__label,children:u}),c&&t.jsx("span",{className:je.button__icon,children:c})]});return _&&l?t.jsx("a",{href:_,className:f,target:"_blank",rel:"noopener noreferrer","aria-label":b["aria-label"],"data-testid":d,children:m}):_?t.jsx(me,{href:_,className:f,"data-testid":d,...h,children:m}):t.jsx("button",{ref:y,className:f,disabled:p||s,"aria-busy":s,"data-testid":d,...b,children:m})}),it=n.memo(A(Rn,"Button")),Dn="hanui-iconButton-JdtwM",Yt={iconButton:Dn,"iconButton--sm":"hanui-iconButton--sm-wE6zE","iconButton--md":"hanui-iconButton--md-iTNNS","iconButton--ghost":"hanui-iconButton--ghost-w-8K3","iconButton--outline":"hanui-iconButton--outline-vEhcY","iconButton--solid":"hanui-iconButton--solid-NUszP","iconButton--cart":"hanui-iconButton--cart-nVsH-","iconButton--danger":"hanui-iconButton--danger-xKkEA"},Sn=n.forwardRef(({icon:e,label:a,variant:s="ghost",size:r="md",className:o,type:c="button",href:i,linkProps:u,testId:p,..._},l)=>{const h=v(Yt.iconButton,Yt[`iconButton--${s}`],Yt[`iconButton--${r}`],o);return i?t.jsx(me,{href:i,className:h,"aria-label":a,title:_.title,"data-testid":p,...u,children:e}):t.jsx("button",{ref:l,type:c,className:h,"aria-label":a,"data-testid":p,..._,children:e})}),we=n.memo(A(Sn,"IconButton")),Ln="hanui-link-WBmXY",An="hanui-link__label--OEu-",Fn="hanui-link__arrow-JKXm-",ht={link:Ln,link__label:An,link__arrow:Fn,"link--sm":"hanui-link--sm-a-3Dz","link--md":"hanui-link--md-lZdYP","link--brand":"hanui-link--brand-vr8sW","link--muted":"hanui-link--muted-EeN6l"},Mn=({href:e,children:a,hasArrow:s,tone:r="brand",size:o="md",className:c,linkProps:i,...u})=>t.jsxs(me,{href:e,className:v(ht.link,ht[`link--${r}`],ht[`link--${o}`],c),...i,...u,children:[t.jsx("span",{className:ht.link__label,children:a}),s&&t.jsx(R.ArrowRight,{"aria-hidden":!0,className:ht.link__arrow})]}),Bn=n.memo(Mn),ra=(e,a)=>{n.useEffect(()=>{if(!e)return;const s=r=>{r.key==="Escape"&&a()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,a])},oa=e=>{var s;const a=((s=e==null?void 0:e.closest)==null?void 0:s.call(e,"dialog"))??null;return a&&a.isConnected?{container:a,needsTopLayer:Pn(a)}:{container:document.body,needsTopLayer:!1}},Pn=e=>{try{return e.matches(":modal")}catch{return e.hasAttribute("open")}},ia={margin:0,right:"auto",bottom:"auto"},ca=e=>{if(!e||typeof e.showPopover!="function")return()=>{};try{e.showPopover()}catch{return()=>{}}return()=>{try{e.isConnected&&e.hidePopover()}catch{}}},On="hanui-tooltip-RG1g1",Hn="hanui-tooltip__trigger-nWZtO",zn="hanui-bubble-bcBNk",$t={tooltip:On,tooltip__trigger:Hn,bubble:zn,"bubble--top":"hanui-bubble--top-uWSZy","bubble--bottom":"hanui-bubble--bottom-jKokL","bubble--left":"hanui-bubble--left-WK4EM","bubble--right":"hanui-bubble--right-EQjUT"},Kn=120,Un=500,Yn=300,qn=({content:e,children:a,side:s,position:r,openDelay:o=Yn,className:c})=>{const[i,u]=n.useState(!1),p=n.useId(),_=s??r??"top",l=n.useRef(null),h=n.useRef(null),d=n.useRef(0),b=n.useRef(0),y=n.useMemo(()=>{if(!n.isValidElement(a))return!1;const N=a.type,k=a.props;return k.tabIndex!==void 0?!0:k.disabled===!0||typeof N!="string"?!1:N==="a"?k.href!==void 0:["button","input","select","textarea"].includes(N)},[a]),f=Nt(l,h,{side:_,align:"center",isOpen:i}),m=i&&Y.isClient()?oa(l.current):null;n.useEffect(()=>{if(!(!i||!(m!=null&&m.needsTopLayer)))return ca(h.current)},[i,m==null?void 0:m.needsTopLayer]);const g=n.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=0},[]),j=n.useCallback(N=>{g(),d.current=window.setTimeout(()=>u(!0),N)},[g]),$=n.useCallback((N=Kn)=>{g(),d.current=window.setTimeout(()=>u(!1),N)},[g]);n.useEffect(()=>g,[g]),n.useEffect(()=>()=>{b.current&&window.clearTimeout(b.current)},[]);const w=n.useCallback(()=>$(0),[$]);ra(i,w),n.useEffect(()=>{if(!i)return;const N=k=>{var T;k.pointerType!=="mouse"&&((T=l.current)!=null&&T.contains(k.target)||$(0))};return document.addEventListener("pointerdown",N),()=>document.removeEventListener("pointerdown",N)},[i,$]);const E=()=>{b.current&&window.clearTimeout(b.current),b.current=0},D=N=>{N.pointerType!=="mouse"&&(b.current=window.setTimeout(()=>u(!0),Un))};return t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:l,className:v($t.tooltip,c),tabIndex:y?void 0:0,onPointerEnter:N=>N.pointerType==="mouse"&&j(o),onPointerLeave:N=>{E(),N.pointerType==="mouse"&&$()},onPointerDown:D,onPointerUp:E,onPointerCancel:E,onFocus:()=>j(0),onBlur:()=>$(0),onContextMenu:N=>{(i||b.current)&&N.preventDefault()},children:t.jsx("span",{"aria-describedby":i?p:void 0,className:$t.tooltip__trigger,children:a})}),i&&m&&kt.createPortal(t.jsx("span",{ref:h,...m.needsTopLayer?{popover:"manual"}:{},id:p,role:"tooltip",className:v($t.bubble,$t[`bubble--${f.side}`]),style:{...f.style,...m.needsTopLayer?ia:{},visibility:f.isPositioned?"visible":"hidden"},onPointerEnter:g,onPointerLeave:()=>$(),children:e}),m.container)]})},Xn=n.memo(A(qn,"Tooltip")),Gn=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),Wn=e=>{if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const a=e.getAttribute("contenteditable");if(a===""||a==="true"||a==="plaintext-only")return!0;const s=e.tagName;return s==="TEXTAREA"?!0:s!=="INPUT"?!1:!Gn.has(e.type)},la=e=>{const a=e.ownerDocument.activeElement;!e.contains(a)||!Wn(a)||(a.blur(),e.tabIndex=-1,e.focus({preventScroll:!0}))},ct=()=>{const e=typeof document>"u"?null:document.activeElement;return()=>{e instanceof HTMLElement&&e.isConnected&&e.focus({preventScroll:!0})}},Vn=["a[href]","button:not(:disabled)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].map(e=>`${e}:not([inert]):not([aria-hidden="true"])`).join(", "),Ft=(e,a="[data-hanui-close]")=>{const s=e.querySelector("[data-hanui-autofocus]");if(s){s.focus({preventScroll:!0});return}const r=[...e.querySelectorAll(Vn)],o=r.find(c=>!c.matches(a))??r[0];if(o){o.focus({preventScroll:!0});return}e.tabIndex=-1,e.focus({preventScroll:!0})},Rt=[],Mt=()=>{const e=Symbol("hanui-modal");return Rt.push(e),{token:e,pop:()=>{const a=Rt.indexOf(e);a>=0&&Rt.splice(a,1)}}},Bt=e=>Rt.at(-1)===e,Qn="hanui-menu-1x-FU",Jn="hanui-menu__item-d1iil",Zn="hanui-menu__icon-kzLV2",pt={menu:Qn,"menu--top":"hanui-menu--top-gpo39","menu--bottom":"hanui-menu--bottom-6sL7b","menu--left":"hanui-menu--left-4w-O8","menu--right":"hanui-menu--right-XmM8G",menu__item:Jn,"menu__item--danger":"hanui-menu__item--danger-lIINY",menu__icon:Zn},es=e=>e.map((a,s)=>a.isDisabled?-1:s).filter(a=>a>=0),ts=({trigger:e,items:a,label:s,side:r="bottom",align:o="start",className:c,testId:i})=>{const u=n.useId(),p=n.useRef(null),_=n.useRef(null),l=n.useRef(null),h=n.useRef({text:"",at:0}),[d,b]=n.useState(!1),[y,f]=n.useState(0),m=Nt(p,_,{side:r,align:o,isOpen:d}),g=es(a),j=d&&Y.isClient()?oa(p.current):null;n.useEffect(()=>{if(!(!d||!(j!=null&&j.needsTopLayer)))return ca(_.current)},[d,j==null?void 0:j.needsTopLayer]);const $=n.useCallback(x=>{g.length!==0&&(l.current=ct(),f(x==="first"?g[0]:g[g.length-1]),b(!0))},[g]),w=n.useCallback(()=>{var x;b(!1),(x=l.current)==null||x.call(l),l.current=null},[]);n.useEffect(()=>{var x,C;d&&((C=(x=_.current)==null?void 0:x.querySelector(`[data-index="${y}"]`))==null||C.focus({preventScroll:!0}))},[d,y]),n.useEffect(()=>{if(!d)return;const x=C=>{var G,U;const K=C.target;(G=_.current)!=null&&G.contains(K)||(U=p.current)!=null&&U.contains(K)||w()};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[d,w]);const E=x=>{const K=(g.indexOf(y)+x+g.length)%g.length;f(g[K])},D=x=>{const C=Date.now(),K=C-h.current.at>500?x:h.current.text+x;h.current={text:K,at:C};const G=g.find(U=>a[U].label.toLocaleLowerCase("tr").startsWith(K.toLocaleLowerCase("tr")));G!==void 0&&f(G)},N=x=>{switch(x.key){case"ArrowDown":x.preventDefault(),E(1);break;case"ArrowUp":x.preventDefault(),E(-1);break;case"Home":x.preventDefault(),f(g[0]);break;case"End":x.preventDefault(),f(g[g.length-1]);break;case"Escape":x.preventDefault(),w();break;case"Tab":w();break;default:x.key.length===1&&!x.metaKey&&!x.ctrlKey&&D(x.key)}},k=x=>{if(x.key==="ArrowUp"){x.preventDefault(),$("last");return}["ArrowDown","Enter"," "].includes(x.key)&&(x.preventDefault(),$("first"))};if(!n.isValidElement(e))return null;const T=e.props,S=n.cloneElement(e,{ref:p,"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?u:void 0,onClick:x=>{var C;(C=T.onClick)==null||C.call(T,x),d?w():$("first")},onKeyDown:x=>{var C;(C=T.onKeyDown)==null||C.call(T,x),d||k(x)}});return t.jsxs(t.Fragment,{children:[S,d&&j&&kt.createPortal(t.jsx("div",{ref:_,id:u,role:"menu","aria-label":s,...j.needsTopLayer?{popover:"manual"}:{},className:v(pt.menu,pt[`menu--${m.side}`],c),style:{...m.style,...j.needsTopLayer?ia:{},visibility:m.isPositioned?"visible":"hidden"},"data-testid":i,onKeyDown:N,children:a.map((x,C)=>t.jsxs("button",{type:"button",role:"menuitem","data-index":C,tabIndex:C===y?0:-1,disabled:x.isDisabled,className:v(pt.menu__item,x.isDanger&&pt["menu__item--danger"]),onClick:()=>{x.onSelect(),w()},children:[x.icon&&t.jsx("span",{className:pt.menu__icon,"aria-hidden":!0,children:x.icon}),x.label]},x.id))}),j.container)]})},as=n.memo(A(ts,"Menu")),ns="hanui-popover-VxgiK",Na={popover:ns,"popover--top":"hanui-popover--top-OUYwo","popover--bottom":"hanui-popover--bottom-Q1K4X","popover--left":"hanui-popover--left-9Rsjx","popover--right":"hanui-popover--right-0TJeo"},ss=({trigger:e,children:a,label:s,side:r="bottom",align:o="start",isOpen:c,onOpenChange:i,className:u,testId:p})=>{const _=n.useId(),l=n.useRef(null),h=n.useRef(null),d=n.useRef(null),[b,y]=n.useState(!1),f=c!==void 0,m=f?c:b,g=Nt(l,h,{side:r,align:o,isOpen:m}),j=m&&Y.isClient()?oa(l.current):null;n.useEffect(()=>{if(!(!m||!(j!=null&&j.needsTopLayer)))return ca(h.current)},[m,j==null?void 0:j.needsTopLayer]);const $=n.useCallback(N=>{f||y(N),i==null||i(N)},[f,i]);n.useEffect(()=>{if(!m)return;d.current=ct();const N=h.current;return N&&Ft(N),()=>{var k;(k=d.current)==null||k.call(d),d.current=null}},[m]);const w=n.useCallback(()=>$(!1),[$]);if(ra(m,w),n.useEffect(()=>{if(!m)return;const N=k=>{var S,x;const T=k.target;(S=h.current)!=null&&S.contains(T)||(x=l.current)!=null&&x.contains(T)||$(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[m,$]),!n.isValidElement(e))return null;const E=e.props,D=n.cloneElement(e,{ref:l,"aria-expanded":m,"aria-haspopup":"dialog","aria-controls":m?_:void 0,onClick:N=>{var k;(k=E.onClick)==null||k.call(E,N),$(!m)}});return t.jsxs(t.Fragment,{children:[D,m&&j&&kt.createPortal(t.jsx("div",{ref:h,id:_,...j.needsTopLayer?{popover:"manual"}:{},role:"dialog","aria-label":s,className:v(Na.popover,Na[`popover--${g.side}`],u),style:{...g.style,...j.needsTopLayer?ia:{},visibility:g.isPositioned?"visible":"hidden"},"data-testid":p,onBlur:N=>{var T;const k=N.relatedTarget;k&&(N.currentTarget.contains(k)||(T=l.current)!=null&&T.contains(k)||k.closest('[role="listbox"],[role="menu"],[role="dialog"]')||$(!1))},children:a}),j.container)]})},rs=n.memo(A(ss,"Popover")),os="hanui-chip--NLgU",is="hanui-chip__icon-IjjSb",cs="hanui-chip__label-cT4hw",ls="hanui-chip__count-MBGO3",Re={chip:os,chip__icon:is,chip__label:cs,chip__count:ls,"chip--sm":"hanui-chip--sm-60H-S","chip--md":"hanui-chip--md--yAlm","chip--iconOnly":"hanui-chip--iconOnly-5LT1h","chip--selected":"hanui-chip--selected-FdpCr"},ds=n.forwardRef(({children:e,icon:a,endIcon:s,count:r,isSelected:o,size:c="md",label:i,href:u,linkProps:p,className:_,type:l="button",role:h,testId:d,...b},y)=>{const f=v(Re.chip,Re[`chip--${c}`],o&&Re["chip--selected"],!e&&Re["chip--iconOnly"],_),m=t.jsxs(t.Fragment,{children:[a&&t.jsx("span",{className:Re.chip__icon,"aria-hidden":!0,children:a}),e&&t.jsx("span",{className:Re.chip__label,children:e}),Y.isDefined(r)&&t.jsx("span",{className:Re.chip__count,children:r}),s&&t.jsx("span",{className:Re.chip__icon,"aria-hidden":!0,children:s})]});return u?t.jsx(me,{href:u,className:f,"aria-label":e?void 0:i,"aria-current":o?"page":void 0,"data-testid":d,...p,children:m}):t.jsx("button",{ref:y,type:l,role:h,className:f,"aria-label":e?void 0:i,"data-testid":d,...h==="radio"?{"aria-checked":!!o}:{"aria-pressed":!!o},...b,children:m})}),za=n.memo(A(ds,"Chip")),us="hanui-group-0tnVf",$a={group:us,"group--scrollable":"hanui-group--scrollable-PMu6V"},_s=({options:e,label:a,size:s="md",isScrollable:r,className:o,...c})=>{var h;const i=n.useRef(null),u=d=>c.isMultiple?c.value.includes(d):c.value===d,p=d=>{if(c.isMultiple){const b=c.value.includes(d)?c.value.filter(y=>y!==d):[...c.value,d];c.onChange(b);return}c.onChange(c.value===d?null:d)},_=d=>{var g,j;if(c.isMultiple)return;const b=d.key==="ArrowRight"||d.key==="ArrowDown"?1:d.key==="ArrowLeft"||d.key==="ArrowUp"?-1:0;if(b===0)return;d.preventDefault();const y=e.filter($=>!$.isDisabled);if(y.length===0)return;const f=y.findIndex($=>$.value===c.value),m=y[(f+b+y.length)%y.length];c.onChange(m.value),(j=(g=i.current)==null?void 0:g.querySelector(`[data-chip-value="${m.value}"]`))==null||j.focus()},l=c.isMultiple?null:c.value??((h=e.find(d=>!d.isDisabled))==null?void 0:h.value)??null;return t.jsx("div",{ref:i,className:v($a.group,r&&$a["group--scrollable"],o),role:c.isMultiple?"group":"radiogroup","aria-label":a,onKeyDown:_,children:e.map(d=>t.jsx(za,{size:s,icon:d.icon,count:d.count,isSelected:u(d.value),disabled:d.isDisabled,role:c.isMultiple?void 0:"radio",tabIndex:c.isMultiple||d.value===l?0:-1,"data-chip-value":d.value,onClick:()=>p(d.value),children:d.label},d.value))})},hs=n.memo(_s),ps=(e,a,s,r)=>{const o=n.useRef(s);o.current=s,n.useEffect(()=>{if(!a||!o.current)return;const c=window.setTimeout(()=>{var i;return(i=o.current)==null?void 0:i.call(o,e.trim())},r);return()=>window.clearTimeout(c)},[e,a,r])};let yt=0,Te=null;const ms=()=>{if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iP(hone|ad|od)/.test(e)?!0:/Macintosh/.test(e)&&navigator.maxTouchPoints>1},bs=()=>{if(yt+=1,yt>1)return;const{body:e,style:a}={body:document.body,style:document.documentElement.style},s=window.scrollY;Te={overflow:e.style.overflow,position:e.style.position,top:e.style.top,width:e.style.width,paddingRight:e.style.paddingRight,scrollY:s};const r=window.innerWidth-document.documentElement.clientWidth;r>0&&(e.style.paddingRight=`${r}px`),a.setProperty("scrollbar-gutter","stable"),e.style.overflow="hidden",ms()&&(e.style.position="fixed",e.style.top=`${-s}px`,e.style.width="100%")},gs=()=>{if(yt=Math.max(0,yt-1),yt>0||!Te)return;const{body:e}=document,{scrollY:a}=Te;e.style.overflow=Te.overflow,e.style.position=Te.position,e.style.top=Te.top,e.style.width=Te.width,e.style.paddingRight=Te.paddingRight,document.documentElement.style.removeProperty("scrollbar-gutter"),Te=null,window.scrollTo(0,a)},Pt=(e=!0)=>{n.useEffect(()=>{if(e)return bs(),gs},[e])},Ka="--hanui-sheet-height",Ua="--hanui-sheet-inset-bottom";let Et=0,ot=0;const fs=240,Ya=()=>{const e=window.visualViewport;if(!e||e.height<fs)return;const a=window.innerHeight-e.height-e.offsetTop,s=document.documentElement;s.style.setProperty(Ua,`${Math.max(0,Math.round(a))}px`),s.style.setProperty(Ka,`${Math.round(e.height)}px`)},Je=()=>{ot||(ot=window.requestAnimationFrame(()=>{ot=0,Ya()}))},Ea=()=>{ot&&(window.cancelAnimationFrame(ot),ot=0)},qa=(e=!0)=>{n.useEffect(()=>{if(!e)return;const a=window.visualViewport;if(a)return Et+=1,Et===1&&(a.addEventListener("resize",Je),a.addEventListener("scroll",Je),window.addEventListener("orientationchange",Je)),Ea(),Ya(),()=>{Et-=1,!(Et>0)&&(a.removeEventListener("resize",Je),a.removeEventListener("scroll",Je),window.removeEventListener("orientationchange",Je),Ea(),document.documentElement.style.removeProperty(Ua),document.documentElement.style.removeProperty(Ka))}},[e])},xs="hanui-sheet-GEvdE",vs="hanui-sheet__header-NJgw-",ys="hanui-sheet__title-f-b07",ws="hanui-sheet__toolbar-eyhmW",js="hanui-sheet__body-eJ2KB",ks="hanui-sheet__footer-NpsY5",ze={sheet:xs,sheet__header:vs,sheet__title:ys,sheet__toolbar:ws,sheet__body:js,sheet__footer:ks},Ns=({title:e,closeLabel:a,onClose:s,children:r,toolbar:o,footer:c,closeAbove:i=At,className:u,testId:p})=>{const{labels:_}=P(),l=n.useId(),h=n.useRef(null);qa(),Pt(),n.useEffect(()=>{const y=ct(),{token:f,pop:m}=Mt();return h.current=f,()=>{m(),h.current=null,y()}},[]),n.useEffect(()=>{const y=window.matchMedia(i),f=m=>{m.matches&&s()};return y.addEventListener("change",f),()=>y.removeEventListener("change",f)},[i,s]);const d=n.useCallback(y=>{!y||y.open||(y.showModal(),Ft(y,`.${ze.sheet__header} button`),la(y))},[]),b=n.useCallback(y=>{y.target===y.currentTarget&&s()},[s]);return Y.isClient()?kt.createPortal(t.jsxs("dialog",{ref:d,className:v(ze.sheet,u),"aria-labelledby":l,"data-testid":p,onCancel:y=>{y.preventDefault(),!(h.current&&!Bt(h.current))&&s()},onClick:b,children:[t.jsxs("header",{className:ze.sheet__header,children:[t.jsx("h2",{id:l,className:ze.sheet__title,children:e}),t.jsx(we,{icon:t.jsx(R.XLg,{"aria-hidden":!0}),label:B("BottomSheet.closeLabel",a,_==null?void 0:_.close),variant:"ghost",size:"sm",onClick:s})]}),o&&t.jsx("div",{className:ze.sheet__toolbar,children:o}),t.jsx("div",{className:ze.sheet__body,children:r}),c&&t.jsx("div",{className:ze.sheet__footer,children:c})]}),document.body):null},da=n.memo(Ns),$s=80,Ta=40,Es=300,Ts="hanui-combobox-NtZoV",Cs="hanui-combobox__trigger-2riRR",Is="hanui-combobox__leadingIcon-it2xz",Rs="hanui-combobox__value-acDlr",Ds="hanui-combobox__clear-EXOsc",Ss="hanui-combobox__chevron-g-QzQ",Ls="hanui-combobox__panel-srBxl",As="hanui-combobox__search-THjer",Fs="hanui-combobox__searchIcon-vr4Bg",Ms="hanui-combobox__searchInput-JPp5h",Bs="hanui-combobox__list-p-eCs",Ps="hanui-combobox__option-CLWh-",Os="hanui-combobox__optionText-Zm0D6",Hs="hanui-combobox__optionLabel-WvT4W",zs="hanui-combobox__optionDescription-8OEzi",Ks="hanui-combobox__check-MKlLz",Us="hanui-combobox__empty-mZwBq",Ys="hanui-combobox__srName-9PNXF",z={combobox:Ts,combobox__trigger:Cs,"combobox__trigger--empty":"hanui-combobox__trigger--empty-RxwCq","combobox__trigger--open":"hanui-combobox__trigger--open-rw1ZS","combobox__trigger--invalid":"hanui-combobox__trigger--invalid-iZgiN","combobox__trigger--clearable":"hanui-combobox__trigger--clearable-shq9I",combobox__leadingIcon:Is,combobox__value:Rs,combobox__clear:Ds,combobox__chevron:Ss,"combobox__chevron--open":"hanui-combobox__chevron--open-9kj1j",combobox__panel:Ls,combobox__search:As,combobox__searchIcon:Fs,combobox__searchInput:Ms,combobox__list:Bs,"combobox__list--sheet":"hanui-combobox__list--sheet-r3MzB",combobox__option:Ps,"combobox__option--active":"hanui-combobox__option--active--75Vq","combobox__option--selected":"hanui-combobox__option--selected-DVFGy","combobox__option--disabled":"hanui-combobox__option--disabled-e6VjI",combobox__optionText:Os,combobox__optionLabel:Hs,combobox__optionDescription:zs,combobox__check:Ks,combobox__empty:Us,combobox__srName:Ys},qs=({options:e,value:a,onChange:s,labels:r,isSearchHidden:o,onSearch:c,isLoading:i,isDisabled:u,isClearable:p,icon:_,id:l,className:h,testId:d,"aria-describedby":b,"aria-invalid":y})=>{var ga;const{labels:f}=P(),m={get search(){var F;return B("Combobox.searchPlaceholder",r.searchPlaceholder,(F=f==null?void 0:f.combobox)==null?void 0:F.searchPlaceholder)},get empty(){var F;return B("Combobox.emptyMessage",r.emptyMessage,(F=f==null?void 0:f.combobox)==null?void 0:F.emptyMessage)},get loading(){var F;return B("Combobox.loadingMessage",r.loadingMessage,(F=f==null?void 0:f.combobox)==null?void 0:F.loadingMessage)},get clear(){var F;return B("Combobox.clearLabel",r.clearLabel,(F=f==null?void 0:f.combobox)==null?void 0:F.clearLabel)}},g=n.useId(),j=l??g,$=`${j}-listbox`,w=n.useRef(null),E=n.useRef(null),D=n.useRef(null),N=n.useRef(null),[k,T]=n.useState(null),S=k!==null,[x,C]=n.useState(""),[K,G]=n.useState(null),U=n.useMemo(()=>{if(c||x.trim()==="")return e;const F=x.trim();return e.filter(ge=>jt(ge.label,F)||(ge.description?jt(ge.description,F):!1))},[e,x,c]),J=e.find(F=>F.value===a)??null;n.useEffect(()=>{J?G(J.label):a===null&&G(null)},[J,a]);const Z=(J==null?void 0:J.label)??K;ps(x,S,c,Es);const ne=n.useCallback(()=>{T(null),C("")},[]),Ot=n.useCallback(()=>{u||(T(window.matchMedia(At).matches?"popover":"sheet"),C(""))},[u]);n.useEffect(()=>{if(k!=="popover")return;const F=ge=>{var ue;(ue=w.current)!=null&&ue.contains(ge.target)||ne()};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[k,ne]),n.useEffect(()=>{var F;k==="popover"&&((F=N.current)==null||F.focus({preventScroll:!0}))},[k]);const lt=F=>{F.isDisabled||(G(F.label),s(F.value),ne())},dt=n.useRef(!1);n.useEffect(()=>{var F;dt.current&&!S&&((F=E.current)==null||F.focus()),dt.current=S},[S]);const O=Nt(E,D,{side:"bottom",align:"start",isOpen:S&&k==="popover"}),{activeIndex:W,setActiveIndex:be,listRef:ut,handleKeyDown:Ja}=na({count:U.length,isOpen:S,initialIndex:Math.max(e.findIndex(F=>F.value===a),0),onSelect:F=>{const ge=U[F];ge&<(ge)},onClose:ne}),Za=U.some(F=>!!F.description),Oe=k==="popover"&&!Za&&U.length>$s,{scrollRef:en,range:He,scrollToIndex:pa}=Pa(U.length,{rowHeight:Ta,isEnabled:Oe});n.useEffect(()=>{Oe&&pa(W)},[W,Oe,pa]);const tn=F=>{ut.current=F,en.current=F},an=Ja,nn=()=>{s(null),G(null)},ma=o?null:t.jsxs("div",{className:z.combobox__search,children:[t.jsx(R.Search,{"aria-hidden":!0,className:z.combobox__searchIcon}),t.jsx("input",{ref:N,type:"text",role:"combobox",className:z.combobox__searchInput,value:x,placeholder:m.search,autoComplete:"off","aria-autocomplete":"list","aria-expanded":!0,"aria-controls":$,"aria-activedescendant":U[W]?`${j}-option-${W}`:void 0,"aria-label":m.search,onChange:F=>{C(F.target.value),be(0)},onKeyDown:an}),i&&t.jsx(sa,{size:"sm",label:""})]}),ba=F=>{const ge=U.slice(He.start,He.end);return t.jsxs("ul",{ref:tn,id:$,role:"listbox",className:v(z.combobox__list,F&&z["combobox__list--sheet"]),children:[Oe&&He.offset>0&&t.jsx("li",{"aria-hidden":!0,style:{height:He.offset}}),ge.map((ue,sn)=>{const _t=He.start+sn,rn=_t===W,Ht=ue.value===a;return t.jsxs("li",{id:`${j}-option-${_t}`,role:"option","data-index":_t,"aria-setsize":Oe?U.length:void 0,"aria-posinset":Oe?_t+1:void 0,"aria-selected":Ht,"aria-disabled":ue.isDisabled,className:v(z.combobox__option,rn&&z["combobox__option--active"],Ht&&z["combobox__option--selected"],ue.isDisabled&&z["combobox__option--disabled"]),onMouseEnter:()=>be(_t),onClick:()=>lt(ue),children:[t.jsxs("span",{className:z.combobox__optionText,children:[t.jsx("span",{className:z.combobox__optionLabel,children:ue.label}),ue.description&&t.jsx("span",{className:z.combobox__optionDescription,children:ue.description})]}),Ht&&t.jsx(R.CheckLg,{"aria-hidden":!0,className:z.combobox__check})]},ue.value)}),Oe&&He.end<U.length&&t.jsx("li",{"aria-hidden":!0,style:{height:(U.length-He.end)*Ta}}),U.length===0&&t.jsx("li",{className:z.combobox__empty,children:i?m.loading:m.empty})]})};return t.jsxs("div",{ref:w,className:v(z.combobox,h),"data-testid":d,children:[t.jsxs("button",{ref:E,id:j,type:"button",className:v(z.combobox__trigger,!Z&&z["combobox__trigger--empty"],S&&z["combobox__trigger--open"],y&&z["combobox__trigger--invalid"],p&&Z&&!u&&z["combobox__trigger--clearable"]),disabled:u,"aria-haspopup":"listbox","aria-expanded":S,"aria-controls":S?$:void 0,"aria-labelledby":Z?`${j}-name ${j}-value`:`${j}-name`,"aria-describedby":b,onClick:()=>S?ne():Ot(),children:[_&&t.jsx("span",{className:z.combobox__leadingIcon,"aria-hidden":!0,children:_}),t.jsx("span",{id:`${j}-name`,className:z.combobox__srName,children:r.placeholder}),t.jsx("span",{id:`${j}-value`,className:z.combobox__value,children:Z??r.placeholder}),t.jsx(R.CaretDownFill,{"aria-hidden":!0,className:v(z.combobox__chevron,S&&z["combobox__chevron--open"])})]}),p&&Z&&!u&&t.jsx("button",{type:"button",className:z.combobox__clear,"aria-label":m.clear,onClick:nn,children:t.jsx(R.XLg,{"aria-hidden":!0})}),k==="popover"&&t.jsxs("div",{ref:D,className:z.combobox__panel,style:{...O.style,width:(ga=E.current)==null?void 0:ga.offsetWidth,visibility:O.isPositioned?void 0:"hidden"},children:[ma,ba(!1)]}),k==="sheet"&&t.jsx(da,{title:r.placeholder,closeLabel:r.closeLabel??(f==null?void 0:f.close),onClose:ne,toolbar:ma??void 0,children:ba(!0)})]})},Xs=n.memo(qs),Gs="hanui-segmented-qo2Bw",Ws="hanui-segmented__item-mqRNZ",Vs="hanui-segmented__icon-C9CT-",Qs="hanui-segmented__label-NVXBv",Ze={segmented:Gs,"segmented--sm":"hanui-segmented--sm-7tUry","segmented--md":"hanui-segmented--md-PiSqt",segmented__item:Ws,"segmented__item--selected":"hanui-segmented__item--selected-r7CLj",segmented__icon:Vs,segmented__label:Qs},Js=({options:e,value:a,onChange:s,label:r,isIconOnly:o,size:c="md",className:i,testId:u})=>{const p=n.useRef(null),_=l=>{var f,m;const h=l.key==="ArrowRight"||l.key==="ArrowDown"?1:l.key==="ArrowLeft"||l.key==="ArrowUp"?-1:0;if(h===0)return;l.preventDefault();const d=e.filter(g=>!g.isDisabled);if(d.length===0)return;const b=d.findIndex(g=>g.value===a),y=d[(b+h+d.length)%d.length];s(y.value),(m=(f=p.current)==null?void 0:f.querySelector(`[data-value="${y.value}"]`))==null||m.focus({preventScroll:!0})};return t.jsx("div",{ref:p,role:"radiogroup","aria-label":r,className:v(Ze.segmented,Ze[`segmented--${c}`],i),"data-testid":u,onKeyDown:_,children:e.map(l=>{const h=l.value===a;return t.jsxs("button",{type:"button",role:"radio","aria-checked":h,"aria-label":o?l.label:void 0,"data-value":l.value,disabled:l.isDisabled,tabIndex:h?0:-1,className:v(Ze.segmented__item,h&&Ze["segmented__item--selected"]),onClick:()=>!h&&s(l.value),children:[l.icon&&t.jsx("span",{className:Ze.segmented__icon,"aria-hidden":!0,children:l.icon}),!o&&t.jsx("span",{className:Ze.segmented__label,children:l.label})]},l.value)})})},Zs=n.memo(A(Js,"SegmentedControl")),er="hanui-select-tiiPL",tr="hanui-trigger-rHQJz",ar="hanui-trigger__icon-apCcx",nr="hanui-trigger__srName-XLCxt",sr="hanui-trigger__value-ioH7K",rr="hanui-trigger__chevron-FtsIZ",or="hanui-panel-rGOOd",ir="hanui-list-SOKf8",cr="hanui-option-ZDPef",lr="hanui-option__label-SsoYB",dr="hanui-option__check-8CPSG",q={select:er,trigger:tr,"trigger--empty":"hanui-trigger--empty-cuinb","trigger--open":"hanui-trigger--open-1nsvu","trigger--invalid":"hanui-trigger--invalid-NtP0W","trigger--sm":"hanui-trigger--sm-Xnu1C",trigger__icon:ar,trigger__srName:nr,trigger__value:sr,trigger__chevron:rr,"trigger__chevron--open":"hanui-trigger__chevron--open-1P2P-",panel:or,"panel--start":"hanui-panel--start-Fotwa","panel--end":"hanui-panel--end-ClVl2",list:ir,"list--sheet":"hanui-list--sheet-BIjCb",option:cr,"option--active":"hanui-option--active-R4lLF","option--selected":"hanui-option--selected-glQMj","option--disabled":"hanui-option--disabled-h4rdd",option__label:lr,option__check:dr},ur=({options:e,value:a,onChange:s,label:r,placeholder:o,closeLabel:c,icon:i,size:u="md",align:p="start",isDisabled:_,id:l,className:h,testId:d,"aria-describedby":b,"aria-invalid":y})=>{const{labels:f}=P(),m=B("Select.placeholder",o,f==null?void 0:f.selectPlaceholder),g=n.useId(),j=l??g,$=`${j}-listbox`,w=O=>`${j}-option-${O}`,E=n.useRef(null),D=n.useRef(null),[N,k]=n.useState(null),T=N!==null,S=e.findIndex(O=>O.value===a),x=S>=0?e[S]:null,C=n.useCallback(()=>k(null),[]),K=n.useCallback(()=>{_||e.length===0||k(window.matchMedia(At).matches?"popover":"sheet")},[_,e.length]),G=O=>{O.isDisabled||(s(O.value),C())},U=n.useRef(!1);n.useEffect(()=>{var O;U.current&&!T&&((O=D.current)==null||O.focus()),U.current=T},[T]),n.useEffect(()=>{if(N!=="popover")return;const O=W=>{var be;(be=E.current)!=null&&be.contains(W.target)||C()};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[N,C]);const{activeIndex:J,setActiveIndex:Z,listRef:ne,handleKeyDown:Ot}=na({count:e.length,isOpen:T,initialIndex:S>=0?S:0,onSelect:O=>{const W=e[O];W&&G(W)},onClose:C});n.useEffect(()=>{var O;N==="sheet"&&((O=ne.current)==null||O.focus({preventScroll:!0}))},[N,ne]);const lt=O=>{if(!T){["ArrowDown","ArrowUp","Enter"," "].includes(O.key)&&(O.preventDefault(),K());return}Ot(O)},dt=O=>t.jsx("ul",{ref:ne,id:$,role:"listbox","aria-label":r,"aria-activedescendant":O&&e[J]?w(J):void 0,tabIndex:O?0:-1,className:v(q.list,O&&q["list--sheet"]),onKeyDown:O?lt:void 0,children:e.map((W,be)=>{const ut=W.value===a;return t.jsxs("li",{id:w(be),role:"option","data-index":be,"aria-selected":ut,"aria-disabled":W.isDisabled,className:v(q.option,be===J&&q["option--active"],ut&&q["option--selected"],W.isDisabled&&q["option--disabled"]),onMouseEnter:()=>Z(be),onClick:()=>G(W),children:[t.jsx("span",{className:q.option__label,children:W.label}),ut&&t.jsx(R.CheckLg,{"aria-hidden":!0,className:q.option__check})]},W.value)})});return t.jsxs("span",{ref:E,className:v(q.select,h),"data-testid":d,children:[t.jsxs("button",{ref:D,id:j,type:"button",role:"combobox",className:v(q.trigger,q[`trigger--${u}`],!x&&q["trigger--empty"],T&&q["trigger--open"],y&&q["trigger--invalid"]),disabled:_,"aria-haspopup":"listbox","aria-expanded":T,"aria-controls":T?$:void 0,"aria-activedescendant":N==="popover"&&e[J]?w(J):void 0,"aria-labelledby":x?`${j}-name ${j}-value`:`${j}-name`,"aria-describedby":b,"aria-invalid":y,onClick:()=>T?C():K(),onKeyDown:lt,children:[i&&t.jsx("span",{className:q.trigger__icon,"aria-hidden":!0,children:i}),t.jsx("span",{id:`${j}-name`,className:q.trigger__srName,children:r}),t.jsx("span",{id:`${j}-value`,className:q.trigger__value,children:(x==null?void 0:x.label)??m}),t.jsx(R.CaretDownFill,{"aria-hidden":!0,className:v(q.trigger__chevron,T&&q["trigger__chevron--open"])})]}),N==="popover"&&t.jsx("div",{className:v(q.panel,q[`panel--${p}`]),children:dt(!1)}),N==="sheet"&&t.jsx(da,{title:r,closeLabel:c??(f==null?void 0:f.close),onClose:C,children:dt(!0)})]})},_r=n.memo(ur),hr="hanui-checkbox-FaFCj",pr="hanui-checkbox__input-nTHne",mr="hanui-checkbox__body-VAEW2",br="hanui-checkbox__label-sSNZY",gr="hanui-checkbox__hint-ish-J",mt={checkbox:hr,checkbox__input:pr,checkbox__body:mr,checkbox__label:br,checkbox__hint:gr},fr=n.forwardRef(({label:e,hint:a,className:s,testId:r,...o},c)=>t.jsxs("label",{className:v(mt.checkbox,s),"data-testid":r,children:[t.jsx("input",{ref:c,type:"checkbox",className:mt.checkbox__input,...o}),t.jsxs("span",{className:mt.checkbox__body,children:[t.jsx("span",{className:mt.checkbox__label,children:e}),a&&t.jsx("span",{className:mt.checkbox__hint,children:a})]})]})),xr=n.memo(A(fr,"Checkbox")),vr="hanui-switch__input-Q2UQ4",yr="hanui-switch__label-gPZuO",wr="hanui-switch__hint-NRuzC",jr="hanui-switch__track-3417m",kr="hanui-switch__thumb-1LHta",Nr="hanui-switch__text-32uMY",De={switch:"hanui-switch-KLH29",switch__input:vr,"switch--labelFirst":"hanui-switch--labelFirst-Grirk",switch__label:yr,switch__hint:wr,switch__track:jr,switch__thumb:kr,switch__text:Nr},$r=n.forwardRef(({label:e,hint:a,isLabelFirst:s,className:r,id:o,testId:c,...i},u)=>t.jsxs("label",{className:v(De.switch,s&&De["switch--labelFirst"],r),"data-testid":c,children:[t.jsx("input",{ref:u,type:"checkbox",role:"switch",id:o,className:De.switch__input,...i}),t.jsx("span",{className:De.switch__track,"aria-hidden":!0,children:t.jsx("span",{className:De.switch__thumb})}),t.jsxs("span",{className:De.switch__text,children:[t.jsx("span",{className:De.switch__label,children:e}),a&&t.jsx("span",{className:De.switch__hint,children:a})]})]})),Er=n.memo(A($r,"Switch")),Tr="hanui-radio-KoZak",Cr="hanui-radio__input-gVMgh",Ir="hanui-radio__body-oZWg6",Rr="hanui-radio__label-d-5ce",Dr="hanui-radio__hint-baVbs",Sr="hanui-radio__count-OtkUM",et={radio:Tr,radio__input:Cr,radio__body:Ir,radio__label:Rr,radio__hint:Dr,radio__count:Sr},Lr=n.forwardRef(({label:e,hint:a,count:s,className:r,testId:o,...c},i)=>t.jsxs("label",{className:v(et.radio,r),"data-testid":o,children:[t.jsx("input",{ref:i,type:"radio",className:et.radio__input,...c}),t.jsxs("span",{className:et.radio__body,children:[t.jsx("span",{className:et.radio__label,children:e}),a&&t.jsx("span",{className:et.radio__hint,children:a})]}),Y.isDefined(s)&&t.jsx("span",{className:et.radio__count,children:s})]})),Ar=n.memo(A(Lr,"Radio")),Fr="hanui-radioCard-sndiC",Mr="hanui-radioCard__input-6vuoD",Br="hanui-radioCard__indicator--x9LT",Pr="hanui-radioCard__body-CFqoi",tt={radioCard:Fr,radioCard__input:Mr,"radioCard--selected":"hanui-radioCard--selected-Mi7ee",radioCard__indicator:Br,"radioCard--disabled":"hanui-radioCard--disabled-YlYee",radioCard__body:Pr},Or=({name:e,value:a,isSelected:s,isDisabled:r,onChange:o,children:c,className:i,id:u,testId:p})=>t.jsxs("label",{className:v(tt.radioCard,s&&tt["radioCard--selected"],r&&tt["radioCard--disabled"],i),"data-testid":p,children:[t.jsx("input",{type:"radio",id:u,name:e,value:a,checked:s,disabled:r,onChange:()=>o(a),className:tt.radioCard__input}),t.jsx("span",{className:tt.radioCard__indicator,"aria-hidden":!0}),t.jsx("span",{className:tt.radioCard__body,children:c})]}),Hr=n.memo(Or),zr="hanui-range-RpDPh",Kr="hanui-range__readout-itDMd",Ur="hanui-range__separator-u-ZJX",Yr="hanui-range__track-bCh5Y",qr="hanui-range__fill-VXMCE",Xr="hanui-range__input-TAN2I",Gr="hanui-range__bounds-GIhFd",_e={range:zr,"range--disabled":"hanui-range--disabled-13hlc",range__readout:Kr,range__separator:Ur,range__track:Yr,range__fill:qr,range__input:Xr,range__bounds:Gr},Wr=({min:e,max:a,step:s=1,value:r,onChange:o,onCommit:c,formatValue:i=String,label:u,minLabel:p,maxLabel:_,isDisabled:l,className:h,testId:d})=>{var T,S;const{labels:b}=P(),y=B("RangeSlider.minLabel",p,(T=b==null?void 0:b.range)==null?void 0:T.min),f=B("RangeSlider.maxLabel",_,(S=b==null?void 0:b.range)==null?void 0:S.max),[m,g]=r,j=n.useCallback(x=>o([Math.min(x,g),g]),[g,o]),$=n.useCallback(x=>o([m,Math.max(x,m)]),[m,o]),w=n.useCallback(()=>c==null?void 0:c([m,g]),[m,g,c]),E=a-e,D=E===0?0:Y.normalize(m-e,E),N=E===0?0:Y.normalize(g-e,E),k=D>50;return t.jsxs("div",{className:v(_e.range,l&&_e["range--disabled"],h),role:"group","aria-label":u,"data-testid":d,children:[t.jsxs("div",{className:_e.range__readout,children:[t.jsx("span",{className:_e.range__value,children:i(m)}),t.jsx("span",{className:_e.range__separator,"aria-hidden":!0,children:"—"}),t.jsx("span",{className:_e.range__value,children:i(g)})]}),t.jsxs("div",{className:_e.range__track,children:[t.jsx("span",{className:_e.range__fill,style:{left:`${D}%`,right:`${100-N}%`},"aria-hidden":!0}),t.jsx("input",{type:"range",className:_e.range__input,style:{zIndex:k?4:3},min:e,max:a,step:s,value:m,disabled:l,"aria-label":`${u} — ${y}`,"aria-valuetext":i(m),onChange:x=>j(Number(x.target.value)),onPointerUp:w,onKeyUp:w}),t.jsx("input",{type:"range",className:_e.range__input,style:{zIndex:k?3:4},min:e,max:a,step:s,value:g,disabled:l,"aria-label":`${u} — ${f}`,"aria-valuetext":i(g),onChange:x=>$(Number(x.target.value)),onPointerUp:w,onKeyUp:w})]}),t.jsxs("div",{className:_e.range__bounds,"aria-hidden":!0,children:[t.jsx("span",{children:i(e)}),t.jsx("span",{children:i(a)})]})]})},Vr=n.memo(Wr),Qr="hanui-rating-neNnF",Jr="hanui-rating__legend-uYvFS",Zr="hanui-rating__stars-vJFLk",eo="hanui-rating__star-BANFJ",to="hanui-rating__input-s2iiO",ao="hanui-rating__srOnly-iSCoz",no="hanui-rating__caption-13KFX",ke={rating:Qr,"rating--disabled":"hanui-rating--disabled-ZKjHa",rating__legend:Jr,rating__stars:Zr,rating__star:eo,"rating__star--filled":"hanui-rating__star--filled-L3AkT",rating__input:to,rating__srOnly:ao,rating__caption:no},so=[1,2,3,4,5],ro=({value:e,onChange:a,label:s,ratingLabels:r,formatStarCount:o,isDisabled:c,className:i,testId:u})=>{var y;const{labels:p}=P(),_=r??((y=p==null?void 0:p.rating)==null?void 0:y.scale),l=n.useId(),[h,d]=n.useState(null),b=h??e;return t.jsxs("fieldset",{className:v(ke.rating,c&&ke["rating--disabled"],i),disabled:c,"data-testid":u,children:[t.jsx("legend",{className:ke.rating__legend,children:s}),t.jsx("div",{className:ke.rating__stars,onMouseLeave:()=>d(null),children:so.map(f=>{var m;return t.jsxs("label",{className:v(ke.rating__star,b!==null&&f<=b&&ke["rating__star--filled"]),onMouseEnter:()=>d(f),children:[t.jsx("input",{type:"radio",name:l,value:f,checked:e===f,onChange:()=>a(f),className:ke.rating__input}),t.jsx(R.StarFill,{"aria-hidden":!0}),t.jsxs("span",{className:ke.rating__srOnly,children:[Ie("RatingInput.formatStarCount",o??((m=p==null?void 0:p.rating)==null?void 0:m.starCount),f)," ","— ",(_==null?void 0:_[f])??""]})]},f)})}),b!==null&&t.jsx("span",{className:ke.rating__caption,"aria-hidden":!0,children:(_==null?void 0:_[b])??""})]})},oo=n.memo(ro),io="hanui-stepper-8s5Ih",co="hanui-stepper__button-h6g7d",lo="hanui-stepper__input-OQh5v",bt={stepper:io,stepper__button:co,stepper__input:lo,"stepper--sm":"hanui-stepper--sm-RvrBP","stepper--md":"hanui-stepper--md-Cnjei"},uo=({value:e,onChange:a,label:s,decreaseLabel:r,increaseLabel:o,min:c=1,max:i=99,isDisabled:u,size:p="md",className:_,testId:l})=>{var m,g,j;const{labels:h}=P(),d=B("QuantityStepper.label",s,(m=h==null?void 0:h.quantity)==null?void 0:m.label),[b,y]=n.useState(null),f=$=>{y(null);const w=Number($.replace(/\D/g,""));w&&a(Math.min(Math.max(w,c),i))};return t.jsxs("div",{className:v(bt.stepper,bt[`stepper--${p}`],_),role:"group","aria-label":d,"data-testid":l,children:[t.jsx("button",{type:"button",className:bt.stepper__button,onClick:()=>a(Math.max(e-1,c)),disabled:u||e<=c,"aria-label":B("QuantityStepper.decreaseLabel",r,(g=h==null?void 0:h.quantity)==null?void 0:g.decrease),children:t.jsx(R.DashLg,{"aria-hidden":!0})}),t.jsx("input",{className:bt.stepper__input,value:b??String(e),onChange:$=>y($.target.value.replace(/\D/g,"").slice(0,2)),onBlur:$=>f($.target.value),onKeyDown:$=>{$.key==="Enter"&&($.preventDefault(),f($.target.value))},inputMode:"numeric",disabled:u,role:"spinbutton","aria-valuenow":e,"aria-valuemin":c,"aria-valuemax":i,"aria-label":d}),t.jsx("button",{type:"button",className:bt.stepper__button,onClick:()=>a(Math.min(e+1,i)),disabled:u||e>=i,"aria-label":B("QuantityStepper.increaseLabel",o,(j=h==null?void 0:h.quantity)==null?void 0:j.increase),children:t.jsx(R.PlusLg,{"aria-hidden":!0})})]})},_o=n.memo(uo),ho="hanui-checkbox--dvpB",po={checkbox:ho},mo=n.forwardRef(({label:e,isIndeterminate:a=!1,className:s,testId:r,...o},c)=>{const i=n.useRef(null);return n.useImperativeHandle(c,()=>i.current,[]),n.useEffect(()=>{i.current&&(i.current.indeterminate=a)},[a]),t.jsx("input",{ref:i,type:"checkbox","aria-label":e,"aria-checked":a?"mixed":void 0,className:v(po.checkbox,s),"data-testid":r,...o})}),bo=n.memo(A(mo,"TableCheckbox")),go="hanui-wrapper-IAI4E",fo="hanui-wrapper__prefix-XKDlV",xo="hanui-wrapper__suffix-lT35q",vo="hanui-input-pIS2u",Ke={wrapper:go,wrapper__prefix:fo,wrapper__suffix:xo,input:vo,"input--hasPrefix":"hanui-input--hasPrefix-nsrWh","input--hasSuffix":"hanui-input--hasSuffix-OrE5A","input--technical":"hanui-input--technical---DCD"},yo=n.forwardRef(({prefix:e,suffix:a,isTechnical:s,className:r,testId:o,...c},i)=>t.jsxs("span",{className:v(Ke.wrapper,r),children:[e&&t.jsx("span",{className:Ke.wrapper__prefix,"aria-hidden":!0,children:e}),t.jsx("input",{ref:i,className:v(Ke.input,!!e&&Ke["input--hasPrefix"],!!a&&Ke["input--hasSuffix"],s&&Ke["input--technical"]),"data-testid":o,...c}),a&&t.jsx("span",{className:Ke.wrapper__suffix,"aria-hidden":!0,children:a})]})),ua=n.memo(A(yo,"Input")),wo="hanui-password-viMea",jo="hanui-password__field-WI1h1",ko="hanui-password__toggle-O6R2a",qt={password:wo,password__field:jo,password__toggle:ko},No=({className:e,showLabel:a,hideLabel:s,...r})=>{const{labels:o}=P(),[c,i]=n.useState(!1),u=c?B("PasswordInput.hideLabel",s,o==null?void 0:o.passwordHide):B("PasswordInput.showLabel",a,o==null?void 0:o.passwordShow);return t.jsxs("span",{className:qt.password,children:[t.jsx(ua,{...r,className:`${qt.password__field} ${e??""}`.trim(),type:c?"text":"password"}),t.jsx(we,{className:qt.password__toggle,icon:c?t.jsx(R.EyeSlashFill,{"aria-hidden":!0}):t.jsx(R.EyeFill,{"aria-hidden":!0}),label:u,variant:"ghost",size:"sm",onClick:()=>i(p=>!p)})]})},$o=n.memo(A(No,"PasswordInput")),Eo="hanui-tagInput-QraZR",To="hanui-tagInput__field-HeWrC",Co="hanui-tagInput__tag-D-ZWB",Io="hanui-tagInput__remove-bpjGG",Ue={tagInput:Eo,tagInput__field:To,"tagInput--invalid":"hanui-tagInput--invalid-NQogL","tagInput--disabled":"hanui-tagInput--disabled--AJFF",tagInput__tag:Co,"tagInput__tag--duplicate":"hanui-tagInput__tag--duplicate-3-FMF",tagInput__remove:Io},Ro=({values:e,onChange:a,label:s,placeholder:r,removeLabel:o,separators:c=["Enter",","],maxTags:i,isDisabled:u,id:p,className:_,testId:l,"aria-describedby":h,"aria-invalid":d})=>{const b=n.useId(),y=p??b,f=n.useRef(null),m=n.useRef(0);n.useEffect(()=>()=>{m.current&&window.clearTimeout(m.current)},[]);const{labels:g}=P(),j=Lt(),[$,w]=n.useState(""),[E,D]=n.useState(null),N=i!==void 0&&e.length>=i,k=x=>{var K;const C=x.trim();if(C!==""){if(e.includes(C)){D(C),m.current&&window.clearTimeout(m.current),m.current=window.setTimeout(()=>D(null),1e3),j(`${C} zaten ekli`,"assertive"),w("");return}N||(a([...e,C]),w(""),j(Ie("TagInput.added",(K=g==null?void 0:g.tagInput)==null?void 0:K.added,C)))}},T=x=>{var C;a(e.filter(K=>K!==x)),j(Ie("TagInput.removed",(C=g==null?void 0:g.tagInput)==null?void 0:C.removed,x))},S=x=>{if(c.includes(x.key)){x.preventDefault(),k($);return}if(x.key==="Backspace"&&$===""){const C=e.at(-1);C!==void 0&&T(C)}};return t.jsxs("div",{className:v(Ue.tagInput,u&&Ue["tagInput--disabled"],d&&Ue["tagInput--invalid"],_),"data-testid":l,onClick:()=>{var x;return(x=f.current)==null?void 0:x.focus()},children:[e.map(x=>t.jsxs("span",{className:v(Ue.tagInput__tag,E===x&&Ue["tagInput__tag--duplicate"]),children:[x,t.jsx("button",{type:"button",className:Ue.tagInput__remove,"aria-label":`${x} — ${o}`,disabled:u,onClick:C=>{C.stopPropagation(),T(x)},children:t.jsx(R.XLg,{"aria-hidden":!0})})]},x)),t.jsx("input",{ref:f,id:y,type:"text",className:Ue.tagInput__field,value:$,placeholder:e.length===0?r:void 0,"aria-label":s,"aria-describedby":h,"aria-invalid":d,disabled:u||N,onChange:x=>w(x.target.value),onKeyDown:S,onBlur:()=>k($)})]})},Do=n.memo(A(Ro,"TagInput")),So="hanui-textarea-zwJcB",Lo="hanui-wrapper-O8aJA",Ao="hanui-counter-bHVh3",gt={textarea:So,wrapper:Lo,"textarea--autoSize":"hanui-textarea--autoSize--F8yj",counter:Ao,"counter--near":"hanui-counter--near-AZAQm"},Fo=n.forwardRef(({className:e,rows:a=4,isAutoSize:s,maxRows:r=12,hasCounter:o,maxLength:c,value:i,defaultValue:u,onChange:p,testId:_,...l},h)=>{const d=n.useRef(null),[b,y]=n.useState(String(u??"").length),f=i===void 0?b:String(i).length,m=n.useCallback(j=>{d.current=j,typeof h=="function"?h(j):h&&(h.current=j)},[h]);n.useLayoutEffect(()=>{const j=d.current;if(!s||!j)return;j.style.height="auto";const w=(Number.parseFloat(getComputedStyle(j).lineHeight)||20)*r;j.style.height=`${Math.min(j.scrollHeight,w)}px`,j.style.overflowY=j.scrollHeight>w?"auto":"hidden"},[s,r,i,f]);const g=c!==void 0&&f>=c*.9;return t.jsxs("div",{className:v(gt.wrapper,e),"data-testid":_,children:[t.jsx("textarea",{ref:m,rows:a,className:v(gt.textarea,s&>["textarea--autoSize"]),maxLength:c,value:i,defaultValue:u,onChange:j=>{y(j.target.value.length),p==null||p(j)},...l}),o&&c!==void 0&&t.jsxs("span",{className:v(gt.counter,g&>["counter--near"]),"aria-hidden":!0,children:[f," / ",c]})]})}),Xa=n.memo(A(Fo,"Textarea")),Mo="hanui-dateField-UnUwe",Bo="hanui-range-nGuRH",Po="hanui-range__row--debA",Oo="hanui-range__separator-fEqqr",Ho="hanui-range__field-tmoNH",zo="hanui-range__summary-L6v1T",We={dateField:Mo,range:Bo,range__row:Po,range__separator:Oo,range__field:Ho,range__summary:zo},Qt=n.forwardRef(({type:e="date",className:a,testId:s,...r},o)=>t.jsx("input",{ref:o,type:e,className:v(We.dateField,a),"data-testid":s,...r})),Ko=n.memo(A(Qt,"DateField")),Uo=({value:e,onChange:a,startLabel:s,endLabel:r,separator:o="–",min:c,max:i,isSummaryVisible:u,isDisabled:p,className:_,testId:l})=>{const{labels:h}=P(),d=(()=>{if(!u||!(h!=null&&h.locale)||e.start===""||e.end==="")return null;try{const b=new Intl.DateTimeFormat(h.locale,{dateStyle:"medium"});return`${b.format(new Date(e.start))} ${o} ${b.format(new Date(e.end))}`}catch{return null}})();return t.jsxs("div",{className:v(We.range,_),"data-testid":l,children:[t.jsxs("div",{className:We.range__row,children:[t.jsx(Qt,{className:We.range__field,"aria-label":s,value:e.start,min:c,max:e.end||i,disabled:p,onChange:b=>a({...e,start:b.target.value})}),t.jsx("span",{className:We.range__separator,"aria-hidden":!0,children:o}),t.jsx(Qt,{className:We.range__field,"aria-label":r,value:e.end,min:e.start||c,max:i,disabled:p,onChange:b=>a({...e,end:b.target.value})})]}),d&&t.jsx("span",{className:We.range__summary,children:d})]})},Yo=A(n.memo(Uo),"DateRange"),qo="hanui-field-KKvre",Xo="hanui-field__label-9dlYd",Go="hanui-field__required-hbDJk",Wo="hanui-field__srOnly-2WQFH",Vo="hanui-field__hint-SQPiL",Qo="hanui-field__error-gLlZ-",Jo="hanui-field__errorIcon-uA3o8",Se={field:qo,field__label:Xo,"field__label--hidden":"hanui-field__label--hidden-ufuVt",field__required:Go,field__srOnly:Wo,field__hint:Vo,field__error:Qo,field__errorIcon:Jo},Zo=({label:e,children:a,hint:s,error:r,isRequired:o,requiredLabel:c,isLabelHidden:i,className:u})=>{const{labels:p}=P(),_=n.useId(),l=`${_}-error`,h=`${_}-hint`;return t.jsxs("div",{className:v(Se.field,u),children:[t.jsxs("label",{htmlFor:_,className:v(Se.field__label,i&&Se["field__label--hidden"]),children:[e,o&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:Se.field__required,"aria-hidden":!0,children:"*"}),t.jsx("span",{className:Se.field__srOnly,children:B("Field.requiredLabel",c,p==null?void 0:p.required)})]})]}),a({id:_,required:o||void 0,"aria-invalid":r?!0:void 0,"aria-describedby":[r&&l,s&&h].filter(Boolean).join(" ")||void 0}),r&&t.jsxs("p",{id:l,className:Se.field__error,role:"alert",children:[t.jsx(R.ExclamationCircleFill,{"aria-hidden":!0,className:Se.field__errorIcon}),r]}),s&&t.jsx("p",{id:h,className:Se.field__hint,children:s})]})},Ga=n.memo(Zo),ei="hanui-progress-99MrX",ti="hanui-progress__track-Qbp9t",ai="hanui-progress__fill-Bam55",ni="hanui-progress__value-3FYxj",si="hanui-circle-9cn2w",ri="hanui-circle__svg-0IwkR",oi="hanui-circle__track-zY2qc",ii="hanui-circle__fill-Jbde6",ci="hanui-circle__label-A3nJB",ae={progress:ei,progress__track:ti,"progress__track--sm":"hanui-progress__track--sm-dbHZq","progress__track--md":"hanui-progress__track--md-v1GdW","progress__track--indeterminate":"hanui-progress__track--indeterminate-8fMxl",progress__fill:ai,"progress__fill--success":"hanui-progress__fill--success-IFuI5","progress__fill--warning":"hanui-progress__fill--warning-wIhgi","progress__fill--danger":"hanui-progress__fill--danger-cuqj0",progress__value:ni,circle:si,circle__svg:ri,circle__track:oi,circle__fill:ii,"circle__fill--success":"hanui-circle__fill--success-HTr0m","circle__fill--warning":"hanui-circle__fill--warning-Fkgj2","circle__fill--danger":"hanui-circle__fill--danger-4E3Z8","circle--indeterminate":"hanui-circle--indeterminate-cITY6",circle__label:ci},Wa=(e,a)=>!Number.isFinite(e)||!Number.isFinite(a)||a<=0?0:Math.min(100,Math.max(0,e/a*100)),li=({value:e,max:a=100,label:s,valueText:r,isValueVisible:o,tone:c="brand",size:i="md",className:u,testId:p})=>{const _=e===void 0,l=_?0:Wa(e,a);return t.jsxs("div",{className:v(ae.progress,u),"data-testid":p,children:[t.jsx("div",{role:"progressbar","aria-label":s,"aria-valuenow":_?void 0:Math.round(l),"aria-valuemin":_?void 0:0,"aria-valuemax":_?void 0:100,"aria-valuetext":_?void 0:r,className:v(ae.progress__track,ae[`progress__track--${i}`],_&&ae["progress__track--indeterminate"]),children:t.jsx("span",{className:v(ae.progress__fill,ae[`progress__fill--${c}`]),style:_?void 0:{inlineSize:`${l}%`}})}),o&&!_&&t.jsx("span",{className:ae.progress__value,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},Va=n.memo(A(li,"Progress")),di=({value:e,max:a=100,label:s,valueText:r,isValueVisible:o,tone:c="brand",size:i=44,className:u,testId:p})=>{const _=e===void 0,l=_?25:Wa(e,a),h=Math.max(3,Math.round(i*.1)),d=(i-h)/2,b=2*Math.PI*d;return t.jsxs("div",{className:v(ae.circle,_&&ae["circle--indeterminate"],u),style:{width:i,height:i},"data-testid":p,children:[t.jsxs("svg",{className:ae.circle__svg,width:i,height:i,viewBox:`0 0 ${i} ${i}`,role:"progressbar","aria-label":s,"aria-valuenow":_?void 0:Math.round(l),"aria-valuemin":_?void 0:0,"aria-valuemax":_?void 0:100,"aria-valuetext":_?void 0:r,children:[t.jsx("circle",{className:ae.circle__track,cx:i/2,cy:i/2,r:d,fill:"none",strokeWidth:h}),t.jsx("circle",{className:v(ae.circle__fill,ae[`circle__fill--${c}`]),cx:i/2,cy:i/2,r:d,fill:"none",strokeWidth:h,strokeDasharray:b,strokeDashoffset:b*(1-l/100)})]}),o&&!_&&t.jsx("span",{className:ae.circle__label,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},ui=A(n.memo(di),"ProgressCircle"),_i="hanui-upload-v1pRY",hi="hanui-upload__drop-OpNbO",pi="hanui-upload__input-Tcg9-",mi="hanui-upload__icon-KpMkq",bi="hanui-upload__label-M4HJb",gi="hanui-upload__drag-ewSQw",fi="hanui-upload__hint-MZRJ6",xi="hanui-upload__error-7GkCC",vi="hanui-upload__list-lbViQ",yi="hanui-upload__file-Znp1Q",wi="hanui-upload__fileText-EtJcs",ji="hanui-upload__fileName-ArF8-",ki="hanui-upload__fileMeta-i6sO1",Ni="hanui-upload__progress-JY2a5",X={upload:_i,upload__drop:hi,upload__input:pi,"upload__drop--dragging":"hanui-upload__drop--dragging-YztUx","upload__drop--invalid":"hanui-upload__drop--invalid-JhwnL","upload__drop--disabled":"hanui-upload__drop--disabled-zyfUv",upload__icon:mi,upload__label:bi,upload__drag:gi,upload__hint:fi,upload__error:xi,upload__list:vi,upload__file:yi,"upload__file--error":"hanui-upload__file--error-wpbtA",upload__fileText:wi,upload__fileName:ji,upload__fileMeta:ki,upload__progress:Ni},St=1024,Ca=St*St,Xt=e=>e<St?`${e} B`:e<Ca?`${Math.round(e/St)} KB`:`${(e/Ca).toFixed(1)} MB`,$i=({files:e,onSelect:a,onRemove:s,label:r,hint:o,accept:c,isMultiple:i,maxSize:u,removeLabel:p,dropLabel:_,sizeErrorText:l,isDisabled:h,error:d,children:b,className:y,testId:f})=>{const m=n.useId(),g=n.useId(),j=n.useRef(null),{labels:$}=P(),w=Lt(),[E,D]=n.useState(!1),[N,k]=n.useState([]),T=x=>{var J;if(!x||x.length===0)return;const C=[...x],K=u===void 0?[]:C.filter(Z=>Z.size>u),G=C.filter(Z=>!K.includes(Z)),U=K.map(Z=>{var ne;return l===void 0?Ie("FileUpload.tooLarge",(ne=$==null?void 0:$.fileUpload)==null?void 0:ne.tooLarge,Z.name,Xt(u??0)):l.replace("{name}",Z.name).replace("{max}",Xt(u??0))});k(U),G.length>0&&(a(G),w(Ie("FileUpload.added",(J=$==null?void 0:$.fileUpload)==null?void 0:J.added,G.length))),U.length>0&&w(U.join(" "),"assertive")},S=x=>{x.preventDefault(),D(!1),!h&&T(x.dataTransfer.files)};return t.jsxs("div",{className:v(X.upload,y),"data-testid":f,children:[t.jsxs("label",{htmlFor:m,className:v(X.upload__drop,E&&X["upload__drop--dragging"],h&&X["upload__drop--disabled"],d&&X["upload__drop--invalid"]),onDragOver:x=>{x.preventDefault(),h||D(!0)},onDragLeave:()=>D(!1),onDrop:S,children:[t.jsx(R.CloudArrowUpFill,{"aria-hidden":!0,className:X.upload__icon}),t.jsx("span",{className:X.upload__label,children:r}),t.jsx("span",{className:X.upload__drag,children:_}),o&&t.jsx("span",{id:g,className:X.upload__hint,children:o}),t.jsx("input",{ref:j,id:m,type:"file",className:X.upload__input,accept:c,multiple:i,disabled:h,"aria-describedby":o?g:void 0,"aria-invalid":d?!0:void 0,onChange:x=>{T(x.target.files),x.target.value=""}})]}),d&&t.jsxs("p",{className:X.upload__error,role:"alert",children:[t.jsx(R.ExclamationCircleFill,{"aria-hidden":!0}),d]}),N.map(x=>t.jsxs("p",{className:X.upload__error,role:"alert",children:[t.jsx(R.ExclamationCircleFill,{"aria-hidden":!0}),x]},x)),e.length>0&&t.jsx("ul",{className:X.upload__list,children:e.map(x=>{var C;return t.jsxs("li",{className:v(X.upload__file,x.error&&X["upload__file--error"]),children:[t.jsxs("span",{className:X.upload__fileText,children:[t.jsx("span",{className:X.upload__fileName,children:x.name}),t.jsx("span",{className:X.upload__fileMeta,children:x.error??Xt(x.size)})]}),x.progress!==void 0&&t.jsx(Va,{value:x.progress,label:Ie("FileUpload.uploading",(C=$==null?void 0:$.fileUpload)==null?void 0:C.uploading,x.name),size:"sm",className:X.upload__progress}),t.jsx(we,{icon:t.jsx(R.XLg,{"aria-hidden":!0}),label:`${x.name} — ${p}`,variant:"ghost",size:"sm",onClick:()=>s(x.id)})]},x.id)})}),b]})},Ei=n.memo(A($i,"FileUpload")),Ti="hanui-alert-gHI-9",Ci="hanui-alert__icon-DhiCT",Ii="hanui-alert__body-52-z2",Ri="hanui-alert__title-I8BAh",Di="hanui-alert__content-lhBEo",Si="hanui-alert__action-1mTje",Ye={alert:Ti,alert__icon:Ci,alert__body:Ii,alert__title:Ri,alert__content:Di,alert__action:Si,"alert--info":"hanui-alert--info-lsAVw","alert--success":"hanui-alert--success-RMJR6","alert--warning":"hanui-alert--warning-Rkgln","alert--danger":"hanui-alert--danger-9ei0Y"},Li={info:t.jsx(R.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(R.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(R.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(R.XCircleFill,{"aria-hidden":!0})},Ai=({children:e,tone:a="info",title:s,action:r,className:o,testId:c})=>t.jsxs("div",{className:v(Ye.alert,Ye[`alert--${a}`],o),role:a==="danger"||a==="warning"?"alert":void 0,"data-testid":c,children:[t.jsx("span",{className:Ye.alert__icon,children:Li[a]}),t.jsxs("div",{className:Ye.alert__body,children:[s&&t.jsx("strong",{className:Ye.alert__title,children:s}),t.jsx("div",{className:Ye.alert__content,children:e})]}),r&&t.jsx("div",{className:Ye.alert__action,children:r})]}),Fi=n.memo(Ai),Mi="hanui-avatar-qoh3P",Bi="hanui-avatar__image-uAyAX",Tt={avatar:Mi,avatar__image:Bi,"avatar--sm":"hanui-avatar--sm-GGjU4","avatar--md":"hanui-avatar--md-xhXnK","avatar--lg":"hanui-avatar--lg-ULP-r","avatar--tone-0":"hanui-avatar--tone-0-mvjdw","avatar--tone-1":"hanui-avatar--tone-1-RYZOX","avatar--tone-2":"hanui-avatar--tone-2-vP-CS","avatar--tone-3":"hanui-avatar--tone-3-ivgnI","avatar--tone-4":"hanui-avatar--tone-4-V57r3","avatar--tone-5":"hanui-avatar--tone-5-65aPg"},Pi=(e,a)=>{const s=e.trim().split(/\s+/).filter(Boolean);if(s.length===0)return"?";const r=s.length===1?s[0].slice(0,2):`${s[0][0]}${s[s.length-1][0]}`;return a?r.toLocaleUpperCase(a):r.toLocaleUpperCase()},Oi=(e,a)=>{let s=5381;for(let r=0;r<e.length;r+=1)s=s*33^e.charCodeAt(r);return Math.abs(s)%a},Hi=6,zi=({name:e,imageUrl:a,locale:s,size:r="md",className:o,testId:c})=>{const{labels:i}=P();return t.jsx("span",{className:v(Tt.avatar,Tt[`avatar--${r}`],!a&&Tt[`avatar--tone-${Oi(e,Hi)}`],o),role:"img","aria-label":e,"data-testid":c,children:a?t.jsx("img",{className:Tt.avatar__image,src:a,alt:""}):Pi(e,s??(i==null?void 0:i.locale))})},Ki=n.memo(zi),Ui="hanui-badge-uLAaI",Yi="hanui-badge__icon-R2goZ",Ct={badge:Ui,badge__icon:Yi,"badge--neutral":"hanui-badge--neutral-6kddt","badge--soft":"hanui-badge--soft-gFeRF","badge--solid":"hanui-badge--solid-rtdHI","badge--outline":"hanui-badge--outline-QiAAz","badge--success":"hanui-badge--success-Oj11F","badge--danger":"hanui-badge--danger-X3nV0","badge--warning":"hanui-badge--warning-vAsx2","badge--info":"hanui-badge--info-mHOwk","badge--oem":"hanui-badge--oem-Nl-VX","badge--alt":"hanui-badge--alt-gQkww","badge--sale":"hanui-badge--sale-Li1tG","badge--action":"hanui-badge--action-7pUio","badge--link":"hanui-badge--link-zcNJZ"},qi=({children:e,tone:a="neutral",variant:s="soft",icon:r,className:o,testId:c})=>t.jsxs("span",{className:v(Ct.badge,Ct[`badge--${a}`],Ct[`badge--${s}`],o),"data-testid":c,children:[r&&t.jsx("span",{className:Ct.badge__icon,children:r}),e]}),Xi=n.memo(qi),Gi="hanui-breadcrumb-amB9n",Wi="hanui-breadcrumb__item-Icv1S",Vi="hanui-breadcrumb__link-eVkPq",Qi="hanui-breadcrumb__current-8XjhU",Ji="hanui-breadcrumb__separator-vvaUi",ft={breadcrumb:Gi,breadcrumb__item:Wi,breadcrumb__link:Vi,breadcrumb__current:Qi,breadcrumb__separator:Ji},Zi=({items:e,label:a,linkProps:s,className:r,testId:o})=>{const{labels:c}=P();return t.jsx("nav",{className:r,"aria-label":B("Breadcrumb.label",a,c==null?void 0:c.breadcrumb),"data-testid":o,children:t.jsx("ol",{className:v(ft.breadcrumb),children:e.map((i,u)=>{const p=u===e.length-1;return t.jsxs("li",{className:ft.breadcrumb__item,children:[i.href&&!p?t.jsx(me,{href:i.href,className:ft.breadcrumb__link,...s,children:i.label}):t.jsx("span",{className:ft.breadcrumb__current,"aria-current":"page",children:i.label}),!p&&t.jsx(R.CaretRightFill,{"aria-hidden":!0,className:ft.breadcrumb__separator})]},`${i.label}-${u}`)})})})},ec=n.memo(Zi),tc="hanui-card-CaHUG",ac="hanui-media__frame-eBv-s",nc="hanui-media-eggk5",sc="hanui-media__link-ujyVV",rc="hanui-overlay-AVMTX",oc="hanui-body-DyI-6",ic="hanui-footer-2WNCZ",ve={card:tc,"card--interactive":"hanui-card--interactive-C1pXZ",media__frame:ac,media:nc,media__link:sc,"media__frame--cover":"hanui-media__frame--cover-ddl29","media__frame--contain":"hanui-media__frame--contain-5gosS","media__frame--inset":"hanui-media__frame--inset-oVQIn",overlay:rc,"overlay--top-left":"hanui-overlay--top-left-td1xA","overlay--top-right":"hanui-overlay--top-right-GqD9H","overlay--bottom-left":"hanui-overlay--bottom-left-T5Quw","overlay--bottom-right":"hanui-overlay--bottom-right-za3z3",body:oc,footer:ic},cc=({children:e,isInteractive:a,as:s="div",className:r,testId:o})=>t.jsx(s,{className:v(ve.card,a&&ve["card--interactive"],r),"data-testid":o,children:e}),lc=(e,a)=>e??(a===!1?"cover":"contain"),dc=A(n.memo(({children:e,ratio:a=1,href:s,linkProps:r,fit:o,isContained:c,className:i})=>{const u=t.jsx("span",{className:v(ve.media__frame,ve[`media__frame--${lc(o,c)}`]),style:{aspectRatio:a},children:e});return t.jsx("div",{className:v(ve.media,i),children:s?t.jsx(me,{href:s,className:ve.media__link,tabIndex:-1,"aria-hidden":!0,...r,children:u}):u})}),"CardMedia"),uc=A(n.memo(({children:e,position:a="top-left",className:s})=>t.jsx("div",{className:v(ve.overlay,ve[`overlay--${a}`],s),children:e})),"CardOverlay"),_c=A(n.memo(({children:e,className:a})=>t.jsx("div",{className:v(ve.body,a),children:e})),"CardBody"),hc=A(n.memo(({children:e,className:a})=>t.jsx("div",{className:v(ve.footer,a),children:e})),"CardFooter"),pc=n.memo(cc),mc="hanui-carousel-GJXkW",bc="hanui-carousel__controls-hm5ij",gc="hanui-carousel__arrowIcon-adFey",fc="hanui-carousel__track-mAux5",xc="hanui-carousel__dots-iU8RJ",vc="hanui-carousel__dot-JTLCB",Le={carousel:mc,carousel__controls:bc,carousel__arrowIcon:gc,carousel__track:fc,carousel__dots:xc,carousel__dot:vc,"carousel__dot--active":"hanui-carousel__dot--active-riNMm"},yc=({children:e,label:a,previousLabel:s,nextLabel:r,formatDotLabel:o,itemWidth:c,itemMinWidth:i,className:u,testId:p})=>{const _=n.useRef(null),[l,h]=n.useState(!1),[d,b]=n.useState(!1),[y,f]=n.useState(0),[m,g]=n.useState(1),[j,$]=n.useState(!1),w=n.useCallback(()=>{const N=_.current;if(!N)return;const{scrollLeft:k,scrollWidth:T,clientWidth:S}=N;h(k>1),b(k+S<T-1),f(S>0?Math.round(k/S):0),g(S>0?Math.max(1,Math.ceil(T/S)):1),$(T>S&&N.querySelector("a, button, input, select, textarea, [tabindex]")===null)},[]);n.useEffect(()=>{const N=_.current;if(!N)return;w(),N.addEventListener("scroll",w,{passive:!0});const k=typeof ResizeObserver>"u"?null:new ResizeObserver(w);return k==null||k.observe(N),()=>{N.removeEventListener("scroll",w),k==null||k.disconnect()}},[w,e]);const E=()=>{var N;return typeof window<"u"&&((N=window.matchMedia)!=null&&N.call(window,"(prefers-reduced-motion: reduce)").matches)?"auto":"smooth"},D=N=>{var k;return(k=_.current)==null?void 0:k.scrollBy({left:N*_.current.clientWidth,behavior:E()})};return t.jsxs("section",{className:v(Le.carousel,u),"aria-label":a,"data-testid":p,children:[t.jsxs("div",{className:Le.carousel__controls,children:[t.jsx(we,{icon:t.jsx(R.CaretLeftFill,{"aria-hidden":!0,className:Le.carousel__arrowIcon}),label:s,variant:"outline",size:"sm",disabled:!l,onClick:()=>D(-1)}),t.jsx(we,{icon:t.jsx(R.CaretRightFill,{"aria-hidden":!0,className:Le.carousel__arrowIcon}),label:r,variant:"outline",size:"sm",disabled:!d,onClick:()=>D(1)})]}),t.jsx("div",{ref:_,className:Le.carousel__track,style:{"--hanui-carousel-item-default":`${c??i??240}px`},tabIndex:j?0:void 0,role:j?"group":void 0,"aria-label":j?a:void 0,children:e}),o&&m>1&&t.jsx("div",{className:Le.carousel__dots,children:Array.from({length:m},(N,k)=>t.jsx("button",{type:"button",className:v(Le.carousel__dot,k===y&&Le["carousel__dot--active"]),"aria-label":o(k+1,m),"aria-current":k===y?"true":void 0,onClick:()=>{var T;return(T=_.current)==null?void 0:T.scrollTo({left:k*_.current.clientWidth,behavior:E()})}},k))})]})},wc=n.memo(A(yc,"Carousel")),jc="hanui-copy-Yht5s",kc="hanui-copy__code-CYlCA",Nc="hanui-copy__button-GDdH6",$c="hanui-copy__srOnly-WMTNN",at={copy:jc,"copy--sm":"hanui-copy--sm-Tjqws",copy__code:kc,"copy--md":"hanui-copy--md-00rhU",copy__button:Nc,"copy__button--done":"hanui-copy__button--done-MujUR",copy__srOnly:$c},Ec=1600,Tc=({value:e,copyLabel:a,copiedLabel:s,copiedAnnouncement:r,size:o="sm",isReadOnly:c,className:i,testId:u})=>{var f,m,g;const{labels:p}=P(),[_,l]=n.useState(!1),h=n.useRef(null),d=n.useRef(void 0);n.useEffect(()=>()=>window.clearTimeout(d.current),[]);const b=n.useCallback(()=>{const j=h.current;if(!j)return;const $=document.createRange();$.selectNodeContents(j);const w=window.getSelection();w==null||w.removeAllRanges(),w==null||w.addRange($)},[]),y=n.useCallback(async()=>{try{await navigator.clipboard.writeText(e),l(!0),d.current=window.setTimeout(()=>l(!1),Ec)}catch{b()}},[e,b]);return t.jsxs("span",{className:v(at.copy,at[`copy--${o}`],i),"data-testid":u,children:[t.jsx("span",{className:at.copy__code,ref:h,children:e}),!c&&t.jsx("button",{type:"button",className:v(at.copy__button,_&&at["copy__button--done"]),onClick:y,"aria-label":_?s??Ie("CopyField.copiedLabel",(f=p==null?void 0:p.copyField)==null?void 0:f.copied,e):a??Ie("CopyField.copyLabel",(m=p==null?void 0:p.copyField)==null?void 0:m.copy,e),children:_?t.jsx(R.ClipboardCheckFill,{"aria-hidden":!0}):t.jsx(R.ClipboardFill,{"aria-hidden":!0})}),t.jsx("span",{"aria-live":"polite",className:at.copy__srOnly,children:_?B("CopyField.copiedAnnouncement",r,(g=p==null?void 0:p.copyField)==null?void 0:g.announcement):""})]})},Cc=n.memo(Tc),Ic="hanui-divider-RJqCw",Rc="hanui-divider__label-M8sBA",It={divider:Ic,"divider--labelled":"hanui-divider--labelled-jZH1-",divider__label:Rc},Dc=({label:e,className:a})=>e?t.jsx("div",{role:"separator","aria-label":e,className:v(It.divider,It["divider--labelled"],a),children:t.jsx("span",{className:It.divider__label,children:e})}):t.jsx("hr",{className:v(It.divider,a)}),Sc=n.memo(Dc),Lc="hanui-directory-badEd",Ac="hanui-group-i6An9",Fc="hanui-group__header-rc19c",Mc="hanui-group__label-vQTcs",Bc="hanui-group__link-es5V7",Pc="hanui-group__meta-LtC-u",Oc="hanui-group__list-YxBCG",Hc="hanui-row-3LH7X",zc="hanui-row__name-75Wbq",Kc="hanui-row__media-AxZEh",Uc="hanui-row__marker-RYHb-",Yc="hanui-jump-vpGwB",qc="hanui-jump__link-rRnT6",ie={directory:Lc,group:Ac,group__header:Fc,group__label:Mc,group__link:Bc,group__meta:Pc,group__list:Oc,row:Hc,row__name:zc,row__media:Kc,row__marker:Uc,jump:Yc,jump__link:qc},Xc=({children:e,className:a})=>t.jsx("div",{className:v(ie.directory,a),children:e}),Gc=A(n.memo(({label:e,href:a,linkProps:s,meta:r,children:o,id:c})=>t.jsxs("section",{className:ie.group,id:c,children:[t.jsxs("header",{className:ie.group__header,children:[t.jsx("h2",{className:ie.group__label,children:a?t.jsx(me,{href:a,className:ie.group__link,...s,children:e}):e}),r&&t.jsx("span",{className:ie.group__meta,children:r})]}),t.jsx("ul",{className:ie.group__list,children:o})]})),"DirectoryGroup"),Wc=A(n.memo(({href:e,name:a,media:s,marker:r,linkProps:o,className:c})=>t.jsx("li",{children:t.jsxs(me,{href:e,className:v(ie.row,c),...o,children:[s&&t.jsx("span",{className:ie.row__media,children:s}),t.jsx("span",{className:ie.row__name,children:a}),r&&t.jsx("span",{className:ie.row__marker,children:r})]})})),"DirectoryRow"),Vc=A(n.memo(({labels:e,toId:a,label:s})=>{const{labels:r}=P();return t.jsx("nav",{className:ie.jump,"aria-label":B("DirectoryJump.label",s,r==null?void 0:r.directoryJump),children:e.map(o=>t.jsx("a",{href:`#${a(o)}`,className:ie.jump__link,children:o},o))})}),"DirectoryJump"),Qc=n.memo(Xc),Jc="hanui-empty-47qZR",Zc="hanui-empty__icon-okfEc",el="hanui-empty__title-Z7Dzd",tl="hanui-empty__description-6BoCk",al="hanui-empty__actions-ARk-k",qe={empty:Jc,empty__icon:Zc,empty__title:el,empty__description:tl,empty__actions:al,"empty--sm":"hanui-empty--sm-QXaXx","empty--error":"hanui-empty--error-4BBgp"},nl=({title:e,description:a,icon:s,action:r,secondaryAction:o,tone:c="empty",size:i="md",className:u,testId:p})=>t.jsxs("div",{className:v(qe.empty,qe[`empty--${i}`],qe[`empty--${c}`],u),role:c==="error"?"alert":void 0,"data-testid":p,children:[s&&t.jsx("span",{className:qe.empty__icon,children:s}),t.jsx("h3",{className:qe.empty__title,children:e}),a&&t.jsx("p",{className:qe.empty__description,children:a}),(r||o)&&t.jsxs("div",{className:qe.empty__actions,children:[r,o]})]}),sl=n.memo(nl),rl="hanui-header-yJwus",ol="hanui-header__top-UK4si",il="hanui-header__breadcrumb-A2j0i",cl="hanui-header__text-HIo8U",ll="hanui-header__eyebrow-dZ9Zc",dl="hanui-header__titleRow-KgDZj",ul="hanui-header__title-s1giF",_l="hanui-header__meta-UxuaD",hl="hanui-header__description-NXbbC",pl="hanui-header__actions-aShpt",fe={header:rl,header__top:ol,header__breadcrumb:il,header__text:cl,header__eyebrow:ll,header__titleRow:dl,header__title:ul,header__meta:_l,header__description:hl,header__actions:pl},ml=({title:e,eyebrow:a,description:s,actions:r,breadcrumb:o,meta:c,children:i,as:u="h1",className:p,testId:_})=>t.jsxs("header",{className:v(fe.header,p),"data-testid":_,children:[o&&t.jsx("div",{className:fe.header__breadcrumb,children:o}),t.jsxs("div",{className:fe.header__top,children:[t.jsxs("div",{className:fe.header__text,children:[a&&t.jsx("span",{className:fe.header__eyebrow,children:a}),t.jsxs("div",{className:fe.header__titleRow,children:[t.jsx(u,{className:fe.header__title,children:e}),c&&t.jsx("span",{className:fe.header__meta,children:c})]}),s&&t.jsx("p",{className:fe.header__description,children:s})]}),r&&t.jsx("div",{className:fe.header__actions,children:r})]}),i]}),bl=n.memo(ml),gl="hanui-panel-Sv-1m",fl="hanui-panel__header-ysexh",xl="hanui-panel__heading-xLCsB",vl="hanui-panel__icon--yPQT",yl="hanui-panel__headingText--XqxW",wl="hanui-panel__title-6-6uC",jl="hanui-panel__description-qXTSM",kl="hanui-panel__actions-Ra-zy",Nl="hanui-panel__body-lo5aX",$l="hanui-panel__footer-qLpR1",El="hanui-panel__footerInner-r6VQI",Tl="hanui-form-o9UqJ",Cl="hanui-row-vUGpa",V={panel:gl,panel__header:fl,panel__heading:xl,panel__icon:vl,panel__headingText:yl,panel__title:wl,panel__description:jl,panel__actions:kl,panel__body:Nl,"panel__body--sm":"hanui-panel__body--sm-6XP6W","panel__body--lg":"hanui-panel__body--lg-RTK5B","panel__body--flush":"hanui-panel__body--flush-iK75R",panel__footer:$l,panel__footerInner:El,form:Tl,"form--2":"hanui-form--2-HdwDc",row:Cl},Il=({children:e,title:a,description:s,actions:r,icon:o,isFlush:c,gap:i="md",footer:u,as:p="section",className:_,bodyClassName:l,testId:h})=>t.jsxs(p,{className:v(V.panel,_),"data-testid":h,children:[(a||r)&&t.jsxs("div",{className:V.panel__header,children:[t.jsxs("div",{className:V.panel__heading,children:[o&&t.jsx("span",{className:V.panel__icon,children:o}),t.jsxs("div",{className:V.panel__headingText,children:[a&&t.jsx("h2",{className:V.panel__title,children:a}),s&&t.jsx("p",{className:V.panel__description,children:s})]})]}),r&&t.jsx("div",{className:V.panel__actions,children:r})]}),t.jsx("div",{className:v(V.panel__body,V[`panel__body--${i}`],c&&V["panel__body--flush"],l),children:e}),u&&t.jsx("div",{className:V.panel__footer,children:t.jsx("div",{className:V.panel__footerInner,children:u})})]}),Rl=A(n.memo(({children:e,columns:a=1,className:s})=>t.jsx("div",{className:v(V.form,V[`form--${a}`],s),children:e})),"PanelForm"),Dl=A(n.memo(({children:e,className:a})=>t.jsx("div",{className:v(V.row,a),children:e})),"PanelRow"),Sl=n.memo(Il),Ll="hanui-price-Oc5Nr",Al="hanui-price__current-2Xup2",Fl="hanui-price__currency-32NLN",Ml="hanui-price__list-MlQgT",Bl="hanui-price__discount-5Yc6W",Xe={price:Ll,price__current:Al,price__currency:Fl,price__list:Ml,price__discount:Bl,"price--sm":"hanui-price--sm-Hd8Oe","price--md":"hanui-price--md-JMxlK","price--lg":"hanui-price--lg-TFqIF","price--xl":"hanui-price--xl-EJBYq"},Pl=({value:e,currency:a,listValue:s,discountPercent:r,formatDiscount:o=_=>`%${_}`,isFormatted:c,size:i="md",className:u,testId:p})=>{const{labels:_}=P(),l=B("Price.currency",a,_==null?void 0:_.currency),h=d=>{if(!c||!(_!=null&&_.locale)||!/\d/.test(d))return d;const b=Number(d.replace(/[^\d.,-]/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."));if(!Number.isFinite(b))return d;try{return new Intl.NumberFormat(_.locale).format(b)}catch{return d}};return t.jsxs("span",{className:v(Xe.price,Xe[`price--${i}`],u),"data-testid":p,children:[t.jsxs("span",{className:Xe.price__current,children:[h(e),t.jsx("span",{className:Xe.price__currency,children:l})]}),s&&t.jsxs("s",{className:Xe.price__list,children:[h(s),t.jsx("span",{className:Xe.price__currency,children:l})]}),r!==void 0&&r>0&&t.jsx("span",{className:Xe.price__discount,children:o(r)})]})},Ol=n.memo(Pl),Hl="hanui-rating-94dke",zl="hanui-rating__stars-QkpVU",Kl="hanui-rating__empty-Wf6-K",Ul="hanui-rating__count-pIoEs",Yl="hanui-rating__srOnly-E9h0d",nt={rating:Hl,rating__stars:zl,rating__empty:Kl,rating__count:Ul,rating__srOnly:Yl,"rating--sm":"hanui-rating--sm-AtY7U","rating--md":"hanui-rating--md-Q0nxN"},ql=({value:e,count:a,srLabel:s,size:r="sm",className:o,testId:c})=>{var p;const{labels:i}=P(),u=Math.round(e*2)/2;return t.jsxs("span",{className:v(nt.rating,nt[`rating--${r}`],o),"data-testid":c,children:[t.jsx("span",{className:nt.rating__stars,"aria-hidden":!0,children:Array.from({length:5},(_,l)=>{const h=l+1;return u>=h?t.jsx(R.StarFill,{},l):u>=h-.5?t.jsx(R.StarHalf,{},l):t.jsx(R.StarFill,{className:nt.rating__empty},l)})}),t.jsx("span",{className:nt.rating__srOnly,children:s??Ie("Rating.srLabel",(p=i==null?void 0:i.rating)==null?void 0:p.srLabel,e,a)}),Y.isDefined(a)&&t.jsxs("span",{className:nt.rating__count,"aria-hidden":!0,children:["(",a,")"]})]})},Xl=n.memo(ql),Gl="hanui-header-a08Jh",Wl="hanui-header__text-ArJkA",Vl="hanui-header__overline-X5Epo",Ql="hanui-header__title-nQQQJ",Jl="hanui-header__description-08oCr",Zl="hanui-header__action-xsxQF",Ge={header:Gl,header__text:Wl,header__overline:Vl,header__title:Ql,header__description:Jl,header__action:Zl,"header--sm":"hanui-header--sm-mIJWZ","header--lg":"hanui-header--lg-QBLIz"},ed=({title:e,description:a,overline:s,action:r,as:o="h2",size:c="md",className:i,testId:u})=>t.jsxs("header",{className:v(Ge.header,Ge[`header--${c}`],i),"data-testid":u,children:[t.jsxs("div",{className:Ge.header__text,children:[s&&t.jsx("span",{className:Ge.header__overline,children:s}),t.jsx(o,{className:Ge.header__title,children:e}),a&&t.jsx("p",{className:Ge.header__description,children:a})]}),r&&t.jsx("div",{className:Ge.header__action,children:r})]}),td=n.memo(ed),ad="hanui-scrollArea-Ly-yT",Gt={scrollArea:ad,"scrollArea--vertical":"hanui-scrollArea--vertical-2ujC7","scrollArea--horizontal":"hanui-scrollArea--horizontal-e9pu-","scrollArea--both":"hanui-scrollArea--both-lv-8W","scrollArea--fade":"hanui-scrollArea--fade-01Bbm"},nd=({children:e,label:a,axis:s="vertical",maxHeight:r,hasFade:o,className:c,testId:i})=>{const u=n.useRef(null),[p,_]=n.useState(!1),[l,h]=n.useState({start:!1,end:!1});return n.useEffect(()=>{const d=u.current;if(!d||typeof ResizeObserver>"u")return;const b=()=>{const f=d.scrollHeight>d.clientHeight,m=d.scrollWidth>d.clientWidth;_(s==="horizontal"?m:s==="vertical"?f:f||m);const g=s==="horizontal",j=g?d.clientWidth:d.clientHeight,$=g?d.scrollWidth:d.scrollHeight,w=Math.abs(g?d.scrollLeft:d.scrollTop);h({start:w>1,end:w+j<$-1})};b();const y=new ResizeObserver(b);y.observe(d);for(const f of d.children)y.observe(f);return d.addEventListener("scroll",b,{passive:!0}),()=>{y.disconnect(),d.removeEventListener("scroll",b)}},[s,e]),t.jsx("div",{ref:u,className:v(Gt.scrollArea,Gt[`scrollArea--${s}`],o&&Gt["scrollArea--fade"],c),style:r===void 0?void 0:{maxBlockSize:r},"data-fade-start":o&&l.start?"":void 0,"data-fade-end":o&&l.end?"":void 0,tabIndex:p?0:void 0,role:p?"region":void 0,"aria-label":p?a:void 0,"data-testid":i,children:e})},sd=n.memo(A(nd,"ScrollArea")),rd="hanui-skeleton-n92if",od="hanui-group-YMfwa",id="hanui-card-XQs-Q",cd="hanui-card__media-YLJDv",ld="hanui-card__body-msRvB",dd="hanui-rows-EZ9Am",ud="hanui-row-se56N",_d="hanui-row__text-TD4iS",hd="hanui-table-L328g",pd="hanui-table__row-rSJTK",ce={skeleton:rd,"skeleton--block":"hanui-skeleton--block-tOZ-a","skeleton--text":"hanui-skeleton--text-k-ROi","skeleton--circle":"hanui-skeleton--circle-x-mX3",group:od,card:id,card__media:cd,card__body:ld,rows:dd,row:ud,row__text:_d,table:hd,table__row:pd},Me=({width:e,height:a,variant:s="block",lines:r=1,className:o})=>{const c={width:Y.isNumber(e)?`${e}px`:e,height:Y.isNumber(a)?`${a}px`:a};return s==="text"&&r>1?t.jsx("span",{className:v(ce.group,o),"aria-hidden":!0,children:Array.from({length:r},(i,u)=>t.jsx("span",{className:v(ce.skeleton,ce["skeleton--text"]),style:u===r-1?{width:"60%"}:void 0},u))}):t.jsx("span",{className:v(ce.skeleton,ce[`skeleton--${s}`],o),style:c,"aria-hidden":!0})},md=n.memo(Me),bd=({count:e=1,className:a})=>t.jsx(t.Fragment,{children:Array.from({length:e},(s,r)=>t.jsxs("div",{className:v(ce.card,a),"aria-hidden":!0,children:[t.jsx(Me,{className:ce.card__media}),t.jsxs("div",{className:ce.card__body,children:[t.jsx(Me,{variant:"text",width:"70%"}),t.jsx(Me,{variant:"text",width:"40%"})]})]},r))}),gd=({count:e=3,className:a})=>t.jsx("div",{className:v(ce.rows,a),"aria-hidden":!0,children:Array.from({length:e},(s,r)=>t.jsxs("div",{className:ce.row,children:[t.jsx(Me,{variant:"circle",width:36,height:36}),t.jsxs("div",{className:ce.row__text,children:[t.jsx(Me,{variant:"text",width:"45%"}),t.jsx(Me,{variant:"text",width:"25%"})]})]},r))}),fd=({count:e=5,columns:a=4,className:s})=>t.jsx("div",{className:v(ce.table,s),"aria-hidden":!0,children:Array.from({length:e},(r,o)=>t.jsx("div",{className:ce.table__row,children:Array.from({length:a},(c,i)=>t.jsx(Me,{variant:"text"},i))},o))}),xd=A(n.memo(bd),"SkeletonCard"),vd=A(n.memo(gd),"SkeletonRows"),yd=A(n.memo(fd),"SkeletonTable"),wd="hanui-stat-Xb7wp",jd="hanui-stat__icon-MB8NU",kd="hanui-stat__label-kUX2m",Nd="hanui-stat__value--6p13",$d="hanui-stat__unit-mjHVk",Ed="hanui-stat__delta-YKpOu",Td="hanui-stat__description-Yvw6J",Cd="hanui-stat__srOnly-YKebA",le={stat:wd,"stat--sm":"hanui-stat--sm-XnK8p","stat--plain":"hanui-stat--plain-N-3RC",stat__icon:jd,stat__label:kd,stat__value:Nd,stat__unit:$d,stat__delta:Ed,"stat__delta--positive":"hanui-stat__delta--positive-1AUAM","stat__delta--negative":"hanui-stat__delta--negative--WWEP",stat__description:Td,stat__srOnly:Cd},Id={up:t.jsx(R.ArrowUpShort,{"aria-hidden":!0}),down:t.jsx(R.ArrowDownShort,{"aria-hidden":!0}),flat:t.jsx(R.DashLg,{"aria-hidden":!0})},Ia={up:"increase",down:"decrease",flat:"unchanged"},Rd=({label:e,value:a,unit:s,delta:r,trend:o,isUpPositive:c=!0,description:i,icon:u,variant:p="card",size:_="md",className:l,testId:h})=>{var y;const{labels:d}=P(),b=o==="flat"?void 0:o==="up"===c;return t.jsxs("div",{className:v(le.stat,le[`stat--${_}`],le[`stat--${p}`],l),"data-testid":h,children:[u&&t.jsx("span",{className:le.stat__icon,"aria-hidden":!0,children:u}),t.jsx("span",{className:le.stat__label,children:e}),t.jsxs("span",{className:le.stat__value,children:[a,s&&t.jsx("span",{className:le.stat__unit,children:s})]}),r&&o&&t.jsxs("span",{className:v(le.stat__delta,b===!0&&le["stat__delta--positive"],b===!1&&le["stat__delta--negative"]),children:[Id[o],r,t.jsx("span",{className:le.stat__srOnly,children:B(`Stat.${Ia[o]}`,(y=d==null?void 0:d.stat)==null?void 0:y[Ia[o]])})]}),i&&t.jsx("span",{className:le.stat__description,children:i})]})},Dd=n.memo(A(Rd,"Stat")),Sd="hanui-hub-JoqOf",Ld="hanui-toast-U27Of",Ad="hanui-toast__icon-p-rgI",Fd="hanui-toast__text-rG4ji",Md="hanui-toast__message-s6S2-",Bd="hanui-toast__description-0cYTx",Pd="hanui-toast__action-fOXU5",Od="hanui-toast__close-QxSNP",Ce={hub:Sd,toast:Ld,"toast--info":"hanui-toast--info-S1QJr","toast--success":"hanui-toast--success-NUso7","toast--warning":"hanui-toast--warning-7mi-S","toast--danger":"hanui-toast--danger-IhFSz",toast__icon:Ad,toast__text:Fd,toast__message:Md,toast__description:Bd,toast__action:Pd,toast__close:Od},Hd={info:t.jsx(R.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(R.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(R.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(R.XCircleFill,{"aria-hidden":!0})},zd={info:4e3,success:4e3,warning:6e3,danger:8e3};let Ra=0;const Jt=new Set;let Qe=[];const _a=()=>Jt.forEach(e=>e(Qe)),Zt=e=>{Qe=Qe.filter(a=>a.id!==e),_a()},xt=(e,a={})=>{Ra+=1;const s=Ra;return Qe=[...Qe,{...a,id:s,message:e}].slice(-3),_a(),s},Kd={show:xt,info:(e,a)=>xt(e,{...a,tone:"info"}),success:(e,a)=>xt(e,{...a,tone:"success"}),warning:(e,a)=>xt(e,{...a,tone:"warning"}),error:(e,a)=>xt(e,{...a,tone:"danger"}),dismiss:Zt,clear:()=>{Qe=[],_a()}},Ud=({toast:e,closeLabel:a,onDismiss:s})=>{const r=e.tone??"info",o=e.duration??zd[r],[c,i]=n.useState(!1),u=n.useRef(o),p=n.useRef(0);return n.useEffect(()=>{if(o===0||c)return;p.current=Date.now();const _=window.setTimeout(()=>s(e.id),u.current);return()=>{window.clearTimeout(_),u.current=Math.max(0,u.current-(Date.now()-p.current))}},[o,c,s,e.id]),t.jsxs("div",{className:v(Ce.toast,Ce[`toast--${r}`]),role:r==="danger"?"alert":"status",onPointerEnter:()=>i(!0),onPointerLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),children:[t.jsx("span",{className:Ce.toast__icon,"aria-hidden":!0,children:Hd[r]}),t.jsxs("div",{className:Ce.toast__text,children:[t.jsx("span",{className:Ce.toast__message,children:e.message}),e.description&&t.jsx("span",{className:Ce.toast__description,children:e.description})]}),e.action&&t.jsx("button",{type:"button",className:Ce.toast__action,onClick:()=>{var _;(_=e.action)==null||_.onClick(),s(e.id)},children:e.action.label}),t.jsx(we,{icon:t.jsx(R.XLg,{"aria-hidden":!0}),label:a,variant:"ghost",size:"sm",className:Ce.toast__close,onClick:()=>s(e.id)})]})},Yd=({closeLabel:e,regionLabel:a,className:s})=>{const{labels:r}=P(),[o,c]=n.useState([]);n.useEffect(()=>(Jt.add(c),c(Qe),()=>{Jt.delete(c)}),[]);const i=n.useCallback(l=>Zt(l),[]),u=n.useCallback(()=>{const l=o.at(-1);l&&Zt(l.id)},[o]);ra(o.length>0,u);const[p,_]=n.useState(!1);return n.useEffect(()=>_(!0),[]),p?kt.createPortal(t.jsx("div",{className:v(Ce.hub,s),role:"region","aria-label":B("ToastHub.regionLabel",a,r==null?void 0:r.notifications),"aria-live":"polite","aria-relevant":"additions",children:o.map(l=>t.jsx(Ud,{toast:l,closeLabel:B("ToastHub.closeLabel",e,r==null?void 0:r.close),onDismiss:i},l.id))}),document.body):null},Qa=n.memo(A(Yd,"ToastHub")),qd=()=>{const[e,a]=n.useState(!1);return n.useEffect(()=>a(!0),[]),e?t.jsx(Qa,{}):null},Xd=n.memo(A(qd,"ToastPortal")),Gd="hanui-accordion-h9jLC",Wd="hanui-accordion__item--YvzK",Vd="hanui-accordion__title-qZOLY",Qd="hanui-accordion__meta-PSlsO",Jd="hanui-accordion__marker-QcWcI",Zd="hanui-accordion__summary-QUhWh",eu="hanui-accordion__panel--3EXE",tu="hanui-accordion__content-fO64s",Ne={accordion:Gd,accordion__item:Wd,"accordion__item--disabled":"hanui-accordion__item--disabled-x1erZ",accordion__title:Vd,accordion__meta:Qd,accordion__marker:Jd,accordion__summary:Zd,accordion__panel:eu,accordion__content:tu},au=({items:e,isSingle:a,defaultOpenIds:s,openIds:r,onChange:o,className:c,testId:i})=>{const u=n.useId(),[p,_]=n.useState(s??[]),l=r!==void 0,h=l?r:p,d=n.useCallback((b,y)=>{const f=y?a?[b]:[...h.filter(m=>m!==b),b]:h.filter(m=>m!==b);l||_(f),o==null||o(f)},[l,a,o,h]);return t.jsx("div",{className:v(Ne.accordion,c),"data-testid":i,children:e.map(b=>{const y=h.includes(b.id);return t.jsxs("details",{className:v(Ne.accordion__item,b.isDisabled&&Ne["accordion__item--disabled"]),open:y,onToggle:f=>{const m=f.currentTarget.open;m!==y&&d(b.id,m)},children:[t.jsxs("summary",{id:`${u}-${b.id}`,className:Ne.accordion__summary,"aria-disabled":b.isDisabled,tabIndex:b.isDisabled?-1:void 0,onClick:f=>b.isDisabled&&f.preventDefault(),children:[t.jsx(R.CaretRightFill,{"aria-hidden":!0,className:Ne.accordion__marker}),t.jsx("span",{className:Ne.accordion__title,children:b.title}),b.meta&&t.jsx("span",{className:Ne.accordion__meta,children:b.meta})]}),t.jsx("div",{className:Ne.accordion__panel,children:t.jsx("div",{className:Ne.accordion__content,children:b.content})})]},b.id)})})},nu=n.memo(A(au,"Accordion")),su="hanui-steps-ntge1",ru="hanui-steps__item-GrU1x",ou="hanui-steps__button-XBsnS",iu="hanui-steps__marker-g-GLE",cu="hanui-steps__text-Mkpkh",lu="hanui-steps__label-NSeFM",du="hanui-steps__description-bQuNT",uu="hanui-steps__status-wWJfP",he={steps:su,"steps--horizontal":"hanui-steps--horizontal-O-mkx","steps--vertical":"hanui-steps--vertical-agfwo",steps__item:ru,steps__button:ou,steps__marker:iu,"steps__item--done":"hanui-steps__item--done-mvOuN","steps__item--current":"hanui-steps__item--current-Qzlal",steps__text:cu,steps__label:lu,steps__description:du,steps__status:uu},_u=(e,a)=>e<a?"done":e===a?"current":"upcoming",Da={done:"completed",current:"current",upcoming:"upcoming"},hu=({steps:e,currentIndex:a,onStepClick:s,label:r,orientation:o="horizontal",className:c,testId:i})=>{const{labels:u}=P();return t.jsx("ol",{className:v(he.steps,he[`steps--${o}`],c),"aria-label":r,"data-testid":i,children:e.map((p,_)=>{var b;const l=_u(_,a),h=!!s&&l==="done",d=t.jsxs(t.Fragment,{children:[t.jsx("span",{className:he.steps__marker,"aria-hidden":!0,children:l==="done"?t.jsx(R.CheckLg,{}):_+1}),t.jsxs("span",{className:he.steps__text,children:[t.jsx("span",{className:he.steps__label,children:p.label}),p.description&&t.jsx("span",{className:he.steps__description,children:p.description})]}),t.jsx("span",{className:he.steps__status,children:B(`Steps.${Da[l]}`,(b=u==null?void 0:u.steps)==null?void 0:b[Da[l]])})]});return t.jsx("li",{className:v(he.steps__item,he[`steps__item--${l}`]),"aria-current":l==="current"?"step":void 0,children:h?t.jsx("button",{type:"button",className:he.steps__button,onClick:()=>s==null?void 0:s(_),children:d}):t.jsx("span",{className:he.steps__button,children:d})},p.id)})})},pu=n.memo(A(hu,"Steps")),mu="hanui-tabs-l4dFE",bu="hanui-tabs__list-HJvR8",gu="hanui-tabs__tab-7gDW7",fu="hanui-tabs__count-8JX8s",xu="hanui-tabs__panel-CPklY",st={tabs:mu,tabs__list:bu,tabs__tab:gu,"tabs__tab--active":"hanui-tabs__tab--active-riqNp",tabs__count:fu,tabs__panel:xu},vu=({items:e,defaultTabId:a,activeId:s,onChange:r,ariaLabel:o,isManualActivation:c,className:i,testId:u})=>{var D;const p=n.useId(),[_,l]=n.useState(a??((D=e[0])==null?void 0:D.id)),h=Y.isDefined(s),d=h?s:_,b=e.findIndex(N=>N.id===d),[y,f]=n.useState(b<0?0:b),m=n.useRef(null),g=e[b]??e[0],j=n.useRef(!1);n.useEffect(()=>{var N;if(!j.current){j.current=!0;return}aa((N=m.current)==null?void 0:N.querySelector('[aria-selected="true"]'),{block:"nearest",inline:"nearest"})},[d]);const $=N=>{h||l(N),r==null||r(N)},w=N=>{var S;if(c&&(N.key==="Enter"||N.key===" ")){N.preventDefault(),$(e[y].id);return}const k=N.key==="ArrowRight"?1:N.key==="ArrowLeft"?-1:0;if(k===0)return;N.preventDefault();const T=((c?y:b)+k+e.length)%e.length;f(T),c||$(e[T].id),(S=document.getElementById(`${p}-tab-${e[T].id}`))==null||S.focus()};if(e.length===0)return null;const E=Y.isDefined(g==null?void 0:g.content);return t.jsxs("div",{className:v(st.tabs,i),"data-testid":u,children:[t.jsx("div",{ref:m,className:st.tabs__list,role:"tablist","aria-label":o,onKeyDown:w,children:e.map(N=>{var T;const k=N.id===g.id;return t.jsxs("button",{id:`${p}-tab-${N.id}`,type:"button",role:"tab","aria-selected":k,"aria-controls":E?`${p}-panel-${N.id}`:void 0,tabIndex:(c?((T=e[y])==null?void 0:T.id)===N.id:k)?0:-1,className:v(st.tabs__tab,k&&st["tabs__tab--active"]),onClick:()=>$(N.id),children:[N.label,Y.isDefined(N.count)&&t.jsx("span",{className:st.tabs__count,children:N.count})]},N.id)})}),E&&t.jsx("div",{id:`${p}-panel-${g.id}`,role:"tabpanel","aria-labelledby":`${p}-tab-${g.id}`,className:st.tabs__panel,tabIndex:0,children:g.content})]})},yu=n.memo(vu),wu="hanui-tile-TGur-",ju="hanui-tile__medallion--Y0pz",ku="hanui-tile__label-mI1OQ",Nu="hanui-tile__meta-22qnR",vt={tile:wu,tile__medallion:ju,tile__label:ku,tile__meta:Nu,"tile--active":"hanui-tile--active-z0F2M"},$u=({label:e,icon:a,href:s,meta:r,isActive:o,linkProps:c,className:i,testId:u})=>t.jsxs(me,{href:s,className:v(vt.tile,o&&vt["tile--active"],i),"aria-current":o?"page":void 0,"data-testid":u,...c,children:[t.jsx("span",{className:vt.tile__medallion,"aria-hidden":!0,children:a}),t.jsx("span",{className:vt.tile__label,children:e}),r&&t.jsx("span",{className:vt.tile__meta,children:r})]}),Eu=n.memo($u),Tu="hanui-timeline-GxubZ",Cu="hanui-timeline__item-qMpF2",Iu="hanui-timeline__marker-MDk07",Ru="hanui-timeline__body-xJi7t",Du="hanui-timeline__title-pKxZJ",Su="hanui-timeline__time-ITWYy",Lu="hanui-timeline__description-4vrEy",Au="hanui-timeline__srOnly-7K2We",$e={timeline:Tu,timeline__item:Cu,timeline__marker:Iu,"timeline__item--done":"hanui-timeline__item--done-dqiOQ","timeline__item--current":"hanui-timeline__item--current-TGV5f","timeline__item--pending":"hanui-timeline__item--pending-VMZTS","timeline__item--failed":"hanui-timeline__item--failed-2BbfX",timeline__body:Ru,timeline__title:Du,timeline__time:Su,timeline__description:Lu,timeline__srOnly:Au},Fu={done:t.jsx(R.CheckLg,{}),failed:t.jsx(R.XLg,{}),current:null,pending:null},Wt={done:"completed",current:"current",pending:null,failed:"failed"},Mu=({events:e,label:a,className:s,testId:r})=>{const{labels:o}=P();return t.jsx("ol",{className:v($e.timeline,s),"aria-label":a,"data-testid":r,children:e.map(c=>{var u;const i=c.status??"done";return t.jsxs("li",{className:v($e.timeline__item,$e[`timeline__item--${i}`]),"aria-current":i==="current"?"step":void 0,children:[t.jsx("span",{className:$e.timeline__marker,"aria-hidden":!0,children:c.icon??Fu[i]}),t.jsxs("div",{className:$e.timeline__body,children:[t.jsxs("span",{className:$e.timeline__title,children:[c.title,t.jsx("span",{className:$e.timeline__srOnly,children:Wt[i]===null?null:B(`Timeline.${Wt[i]}`,(u=o==null?void 0:o.timeline)==null?void 0:u[Wt[i]])})]}),c.time&&t.jsx("span",{className:$e.timeline__time,children:c.time}),c.description&&t.jsx("span",{className:$e.timeline__description,children:c.description})]})]},c.id)})})},Bu=n.memo(A(Mu,"Timeline")),Pu="hanui-modal-3IDi9",Ou="hanui-modal__panel--qLSz",Hu="hanui-modal__header-meWm6",zu="hanui-modal__icon-df2dd",Ku="hanui-modal__heading-PwDS8",Uu="hanui-modal__title-80Sh6",Yu="hanui-modal__description-fsCHI",qu="hanui-modal__close-vFPbw",Xu="hanui-modal__body-PDF12",Gu="hanui-modal__footer-CCCkx",re={modal:Pu,"modal--sm":"hanui-modal--sm-A7WsS","modal--lg":"hanui-modal--lg-z99Em",modal__panel:Ou,modal__header:Hu,modal__icon:zu,"modal__icon--neutral":"hanui-modal__icon--neutral-QSL7c","modal__icon--danger":"hanui-modal__icon--danger-6V90a","modal__icon--warning":"hanui-modal__icon--warning-a--FX","modal__icon--success":"hanui-modal__icon--success-YWxZs","modal__icon--info":"hanui-modal__icon--info-WRLah",modal__heading:Ku,modal__title:Uu,modal__description:Yu,modal__close:qu,modal__body:Xu,modal__footer:Gu},Wu=({isOpen:e,onClose:a,title:s,closeLabel:r,children:o,description:c,footer:i,icon:u,tone:p="neutral",size:_="md",isDismissable:l=!0,className:h,testId:d})=>{const{labels:b}=P(),y=n.useRef(null),f=n.useRef(null),m=n.useId(),g=n.useId();n.useEffect(()=>{const $=y.current;if(!$)return;if(!e){$.open&&$.close();return}const w=ct();$.open||$.showModal(),Ft($,`.${re.modal__close}`),la($);const{token:E,pop:D}=Mt();return f.current=E,()=>{D(),f.current=null,w()}},[e]),Pt(e),n.useEffect(()=>{const $=y.current;if(!$)return;const w=E=>{E.preventDefault(),l&&(f.current&&!Bt(f.current)||a())};return $.addEventListener("cancel",w),()=>$.removeEventListener("cancel",w)},[a,l]);const j=n.useCallback($=>{l&&$.target===y.current&&a()},[l,a]);return t.jsx("dialog",{ref:y,className:v(re.modal,re[`modal--${_}`],h),"aria-labelledby":m,"aria-describedby":c?g:void 0,"data-testid":d,onClick:j,children:t.jsxs("div",{className:re.modal__panel,children:[t.jsxs("header",{className:re.modal__header,children:[u&&t.jsx("span",{className:v(re.modal__icon,re[`modal__icon--${p}`]),children:u}),t.jsxs("div",{className:re.modal__heading,children:[t.jsx("h2",{id:m,className:re.modal__title,children:s}),c&&t.jsx("p",{id:g,className:re.modal__description,children:c})]}),l&&t.jsx(we,{icon:t.jsx(R.XLg,{"aria-hidden":!0}),label:B("Modal.closeLabel",r,b==null?void 0:b.close),variant:"ghost",size:"sm",className:re.modal__close,onClick:a})]}),o&&t.jsx("div",{className:re.modal__body,children:o}),i&&t.jsx("footer",{className:re.modal__footer,children:i})]})})},ha=n.memo(Wu),Vu="hanui-palette-ag-P9",Qu="hanui-palette__search-G3aYv",Ju="hanui-palette__searchIcon-2UYj-",Zu="hanui-palette__input-vvLvt",e_="hanui-palette__list--KWiH",t_="hanui-palette__group-KPj5Q",a_="hanui-palette__item-UZzkp",n_="hanui-palette__icon-Fg0Lt",s_="hanui-palette__text-flfN9",r_="hanui-palette__label-8-UHe",o_="hanui-palette__description-eRlk9",i_="hanui-palette__shortcut-DwYKX",c_="hanui-palette__empty-vg-I3",ee={palette:Vu,palette__search:Qu,palette__searchIcon:Ju,palette__input:Zu,palette__list:e_,palette__group:t_,palette__item:a_,"palette__item--active":"hanui-palette__item--active-XHcka",palette__icon:n_,palette__text:s_,palette__label:r_,palette__description:o_,palette__shortcut:i_,palette__empty:c_},l_=({isOpen:e,onClose:a,items:s,label:r,searchPlaceholder:o,emptyMessage:c,className:i,testId:u})=>{const p=n.useId(),_=`${p}-listbox`,l=n.useRef(null),h=n.useRef(null),d=n.useRef(null),[b,y]=n.useState(""),[f,m]=n.useState(0),g=n.useMemo(()=>{if(b.trim()==="")return s;const w=b.trim();return s.filter(E=>jt(E.label,w)||(E.description?jt(E.description,w):!1))},[s,b]);Pt(e),n.useEffect(()=>{var k;const w=l.current;if(!w)return;if(!e){w.open&&w.close();return}const E=ct();w.open||w.showModal(),(k=h.current)==null||k.focus({preventScroll:!0}),y(""),m(0);const{token:D,pop:N}=Mt();return d.current=D,()=>{N(),d.current=null,E()}},[e]),n.useEffect(()=>{const w=l.current;if(!w)return;const E=D=>{D.preventDefault(),!(d.current&&!Bt(d.current))&&a()};return w.addEventListener("cancel",E),()=>w.removeEventListener("cancel",E)},[a]),n.useEffect(()=>{var w;aa((w=l.current)==null?void 0:w.querySelector(`[data-index="${f}"]`),{block:"nearest"})},[f]);const j=w=>{w.onSelect(),a()},$=w=>{const E=g.length-1;switch(w.key){case"ArrowDown":w.preventDefault(),m(D=>D>=E?0:D+1);break;case"ArrowUp":w.preventDefault(),m(D=>D<=0?E:D-1);break;case"Home":w.preventDefault(),m(0);break;case"End":w.preventDefault(),m(E);break;case"Enter":{w.preventDefault();const D=g[f];D&&j(D);break}}};return t.jsxs("dialog",{ref:l,className:v(ee.palette,i),"aria-label":r,"data-testid":u,onClick:w=>w.target===l.current&&a(),children:[t.jsxs("div",{className:ee.palette__search,children:[t.jsx(R.Search,{"aria-hidden":!0,className:ee.palette__searchIcon}),t.jsx("input",{ref:h,type:"text",role:"combobox",className:ee.palette__input,value:b,placeholder:o,"aria-label":o,autoComplete:"off","aria-autocomplete":"list","aria-expanded":!0,"aria-controls":_,"aria-activedescendant":g[f]?`${p}-option-${f}`:void 0,onChange:w=>{y(w.target.value),m(0)},onKeyDown:$})]}),t.jsxs("ul",{id:_,role:"listbox","aria-label":r,className:ee.palette__list,children:[g.map((w,E)=>{var N;const D=w.group!==void 0&&w.group!==((N=g[E-1])==null?void 0:N.group);return t.jsxs("li",{children:[D&&t.jsx("span",{className:ee.palette__group,"aria-hidden":!0,children:w.group}),t.jsxs("div",{id:`${p}-option-${E}`,role:"option","data-index":E,"aria-selected":E===f,className:v(ee.palette__item,E===f&&ee["palette__item--active"]),onMouseEnter:()=>m(E),onClick:()=>j(w),children:[w.icon&&t.jsx("span",{className:ee.palette__icon,"aria-hidden":!0,children:w.icon}),t.jsxs("span",{className:ee.palette__text,children:[t.jsx("span",{className:ee.palette__label,children:w.label}),w.description&&t.jsx("span",{className:ee.palette__description,children:w.description})]}),w.shortcut&&t.jsx("kbd",{className:ee.palette__shortcut,"aria-hidden":!0,children:w.shortcut})]})]},w.id)}),g.length===0&&t.jsx("li",{className:ee.palette__empty,children:c})]})]})},d_=n.memo(A(l_,"CommandPalette")),u_={destructive:t.jsx(R.TrashFill,{"aria-hidden":!0}),warning:t.jsx(R.ExclamationTriangleFill,{"aria-hidden":!0}),neutral:t.jsx(R.QuestionCircleFill,{"aria-hidden":!0})},__={destructive:"danger",warning:"warning",neutral:"info"},h_={destructive:ye.DANGER,warning:ye.PRIMARY,neutral:ye.PRIMARY},p_=({isOpen:e,onClose:a,onConfirm:s,title:r,description:o,confirmLabel:c,cancelLabel:i,closeLabel:u,variant:p,kind:_,children:l})=>{const{labels:h}=P(),[d,b]=n.useState(!1),y=p??_??"neutral",f=async()=>{b(!0);try{await s()}finally{b(!1)}};return t.jsx(ha,{isOpen:e,onClose:a,title:r,closeLabel:u??(h==null?void 0:h.close),description:o,icon:u_[y],tone:__[y],size:"sm",isDismissable:!d,footer:t.jsxs(t.Fragment,{children:[t.jsx(it,{variant:ye.SECONDARY,size:Pe.MEDIUM,onClick:a,disabled:d,children:B("ConfirmDialog.cancelLabel",i,h==null?void 0:h.cancel)}),t.jsx(it,{variant:h_[y],size:Pe.MEDIUM,onClick:f,isLoading:d,children:c})]}),children:l})},m_=n.memo(p_),b_="hanui-drawer-fgfi1",g_="hanui-drawer__header-BDcRe",f_="hanui-drawer__title-9M0e8",x_="hanui-drawer__close-Z30oW",v_="hanui-drawer__toolbar-vcsYi",y_="hanui-drawer__body-x12SX",w_="hanui-drawer__footer-PajTg",xe={drawer:b_,"drawer--sm":"hanui-drawer--sm-ywgof","drawer--md":"hanui-drawer--md-mN8Kg","drawer--lg":"hanui-drawer--lg-5H-oE","drawer--end":"hanui-drawer--end-q-sIP","drawer--start":"hanui-drawer--start-xqVlX",drawer__header:g_,drawer__title:f_,drawer__close:x_,drawer__toolbar:v_,drawer__body:y_,drawer__footer:w_},j_=({isOpen:e,onClose:a,title:s,closeLabel:r,children:o,side:c="end",size:i="md",footer:u,toolbar:p,className:_,testId:l})=>{const{labels:h}=P(),d=n.useRef(null),b=n.useRef(null),y=n.useId();n.useEffect(()=>{const m=d.current;if(!m)return;if(!e){m.open&&m.close();return}const g=ct();m.open||m.showModal(),Ft(m,`.${xe.drawer__close}`),la(m);const{token:j,pop:$}=Mt();return b.current=j,()=>{$(),b.current=null,g()}},[e]),Pt(e),qa(),n.useEffect(()=>{const m=d.current;if(!m)return;const g=j=>{j.preventDefault(),!(b.current&&!Bt(b.current))&&a()};return m.addEventListener("cancel",g),()=>m.removeEventListener("cancel",g)},[a]);const f=n.useCallback(m=>{m.target===d.current&&a()},[a]);return t.jsxs("dialog",{ref:d,className:v(xe.drawer,xe[`drawer--${c}`],xe[`drawer--${i}`],_),"aria-labelledby":y,"data-testid":l,onClick:f,children:[t.jsxs("header",{className:xe.drawer__header,children:[t.jsx("h2",{id:y,className:xe.drawer__title,children:s}),t.jsx(we,{icon:t.jsx(R.XLg,{"aria-hidden":!0}),label:B("Drawer.closeLabel",r,h==null?void 0:h.close),variant:"ghost",size:"sm",className:xe.drawer__close,onClick:a})]}),p&&t.jsx("div",{className:xe.drawer__toolbar,children:p}),t.jsx("div",{className:xe.drawer__body,children:o}),u&&t.jsx("div",{className:xe.drawer__footer,children:u})]})},k_=n.memo(A(j_,"Drawer")),N_="hanui-form-zpZn4",$_={form:N_},E_=({isOpen:e,onClose:a,onSubmit:s,title:r,label:o,submitLabel:c,cancelLabel:i,closeLabel:u,description:p,hint:_,placeholder:l,defaultValue:h="",isRequired:d,requiredLabel:b,inputMode:y="text",maxLength:f,rows:m=4})=>{const{labels:g}=P(),j=n.useId(),[$,w]=n.useState(h),[E,D]=n.useState(!1),N=n.useRef(!1);n.useEffect(()=>{e&&!N.current&&w(h),N.current=e},[e,h]);const k=$.trim(),T=!!d&&k==="",S=C=>y==="multiline"?t.jsx(Xa,{...C,value:$,onChange:K=>w(K.target.value),placeholder:l,maxLength:f,rows:m}):t.jsx(ua,{...C,type:y==="number"?"number":"text",value:$,onChange:K=>w(K.target.value),placeholder:l,maxLength:f}),x=async()=>{if(!(T||E)){D(!0);try{await s(k),a()}catch{}finally{D(!1)}}};return t.jsx(ha,{isOpen:e,onClose:a,title:r,closeLabel:u??(g==null?void 0:g.close),description:p,size:"sm",isDismissable:!E,footer:t.jsxs(t.Fragment,{children:[t.jsx(it,{variant:ye.SECONDARY,size:Pe.MEDIUM,onClick:a,disabled:E,children:B("PromptDialog.cancelLabel",i,g==null?void 0:g.cancel)}),t.jsx(it,{type:"submit",form:j,variant:ye.PRIMARY,size:Pe.MEDIUM,disabled:T,isLoading:E,children:B("PromptDialog.submitLabel",c,g==null?void 0:g.submit)})]}),children:t.jsx("form",{id:j,className:$_.form,onSubmit:C=>{C.preventDefault(),x()},children:t.jsx(Ga,{label:o,hint:_,isRequired:d,requiredLabel:b,children:S})})})},T_=n.memo(E_),C_="hanui-scroller-EtDmS",I_="hanui-table-uCv4q",rt={scroller:C_,"scroller--frame":"hanui-scroller--frame-84zz6",table:I_,"table--compact":"hanui-table--compact-4KCVl","table--regular":"hanui-table--regular-hsA3-","table--spacious":"hanui-table--spacious-BBUX-","table--sticky-head":"hanui-table--sticky-head-FO2L4","table--row-hover":"hanui-table--row-hover--MAoe"},R_=A(n.memo(({hasFrame:e=!0,label:a,className:s,children:r,...o})=>t.jsx("div",{tabIndex:0,role:"region","aria-label":a,className:v(rt.scroller,e&&rt["scroller--frame"],s),...o,children:r})),"TableScroller"),D_=({density:e="regular",hasStickyHead:a,hasRowHover:s,className:r,children:o,...c})=>t.jsx("table",{className:v(rt.table,rt[`table--${e}`],a&&rt["table--sticky-head"],s&&rt["table--row-hover"],r),...c,children:o}),S_=n.memo(D_),L_="hanui-wrapper-KXCZg",A_="hanui-table-LF5Ow",F_="hanui-state-YPPb0",M_="hanui-state__message-wwbIW",B_="hanui-srOnly-Oia8c",P_="hanui-sort-3Q6Fx",O_="hanui-sort__arrow-MITWb",H_="hanui-sticky-KDEvQ",z_="hanui-bulkBar-62qk0",te={wrapper:L_,"wrapper--capped":"hanui-wrapper--capped-M2QUJ",table:A_,state:F_,"state--error":"hanui-state--error-A492d",state__message:M_,"row--warning":"hanui-row--warning-BAUN2",srOnly:B_,sort:P_,sort__arrow:O_,"sort__arrow--ascending":"hanui-sort__arrow--ascending-85T5d","sort__arrow--descending":"hanui-sort__arrow--descending-gs3VU",sticky:H_,bulkBar:z_},K_=({columns:e,label:a,children:s,isLoading:r,error:o,emptyMessage:c,loadingMessage:i,hasViewportCap:u,onSort:p,bulkBar:_,className:l,testId:h})=>{var f,m;const{labels:d}=P(),b=n.Children.count(s),y=(g,j)=>t.jsx("tr",{children:t.jsx("td",{colSpan:e.length,className:v(te.state,j&&te[`state--${j}`]),children:g})});return t.jsxs("div",{className:v(te.wrapper,u&&te["wrapper--capped"],l),"data-testid":h,children:[_&&t.jsx("div",{className:te.bulkBar,children:_}),t.jsxs("table",{className:te.table,"aria-label":a,children:[t.jsx("thead",{children:t.jsx("tr",{children:e.map(g=>{const j=!!(g.isSortable&&p),$=g.ariaSort==="ascending"?"descending":"ascending";return t.jsx("th",{scope:"col","aria-sort":g.ariaSort,className:v(g.className,g.isSticky&&te.sticky),children:j?t.jsxs("button",{type:"button",className:te.sort,onClick:()=>p==null?void 0:p(g.key,$),children:[g.label,g.srLabel&&t.jsx("span",{className:te.srOnly,children:g.srLabel}),t.jsx("span",{"aria-hidden":!0,className:v(te.sort__arrow,g.ariaSort&&te[`sort__arrow--${g.ariaSort}`]),children:g.ariaSort==="descending"?"▾":"▴"})]}):t.jsxs(t.Fragment,{children:[g.label,g.srLabel&&t.jsx("span",{className:te.srOnly,children:g.srLabel})]})},g.key)})})}),t.jsx("tbody",{children:o?y(t.jsxs("span",{role:"alert",className:te.state__message,children:[t.jsx(R.ExclamationCircleFill,{"aria-hidden":!0}),o]}),"error"):r?y(B("DataTable.loadingMessage",i,(f=d==null?void 0:d.dataTable)==null?void 0:f.loading)):b===0?y(B("DataTable.emptyMessage",c,(m=d==null?void 0:d.dataTable)==null?void 0:m.empty)):s})]})]})},U_=A(n.memo(({isWarning:e,className:a,children:s,...r})=>t.jsx("tr",{className:v(e&&te["row--warning"],a),...r,children:s})),"DataTableRow"),Y_=n.memo(K_),q_="hanui-bar-b4PP4",X_="hanui-bar__hiddenSubmit-jeCyX",G_="hanui-bar__actions-rG69L",W_="hanui-field-f-rvu",wt={bar:q_,bar__hiddenSubmit:X_,bar__actions:G_,field:W_,"field--wide":"hanui-field--wide-FA5gf"},V_=({onSubmit:e,children:a,actions:s,label:r,className:o,testId:c})=>{const{labels:i}=P();return t.jsxs("form",{className:v(wt.bar,o),"aria-label":B("FilterBar.label",r,i==null?void 0:i.filters),"data-testid":c,onSubmit:u=>{u.preventDefault(),e()},children:[a,t.jsx("button",{type:"submit",className:wt.bar__hiddenSubmit,tabIndex:-1,"aria-hidden":!0}),s&&t.jsx("div",{className:wt.bar__actions,children:s})]})},Q_=A(n.memo(({children:e,isWide:a,className:s})=>t.jsx("div",{className:v(wt.field,a&&wt["field--wide"],s),children:e})),"FilterBarField"),J_=n.memo(V_),Z_="hanui-pagination-K-L20",eh="hanui-pagination__list--9HqC",th="hanui-pagination__arrow-XIgoX",ah="hanui-pagination__page-TpoJM",nh="hanui-pagination__gap-qoDyI",Ee={pagination:Z_,pagination__list:eh,pagination__arrow:th,pagination__page:ah,"pagination__page--active":"hanui-pagination__page--active-XHeaz",pagination__gap:nh},sh=(e,a)=>{if(a<=7)return Array.from({length:a},(c,i)=>i+1);const s=new Set([1,a,e]);e-1>1&&s.add(e-1),e+1<a&&s.add(e+1);const r=[...s].sort((c,i)=>c-i),o=[];return r.forEach((c,i)=>{i>0&&c-r[i-1]>1&&o.push("gap"),o.push(c)}),o},rh=({page:e,totalPages:a,label:s,previousLabel:r,nextLabel:o,buildHref:c,onPageChange:i,linkProps:u,formatAnnouncement:p,scrollTo:_,className:l,testId:h})=>{var E,D,N;const{labels:d}=P(),b=Lt(),y=n.useRef(e);n.useEffect(()=>{y.current!==e&&(y.current=e,p&&b(p(e,a)))},[e,a,p,b]);const f=n.useMemo(()=>sh(e,a),[e,a]);if(a<=1)return null;const m=k=>{_==="top"&&k!==e&&xn()},g=k=>{i&&(i(k),m(k))},j=u==null?void 0:u.onClick,$=(k,T)=>{j==null||j(k),!(k.defaultPrevented||k.button!==0)&&(k.metaKey||k.ctrlKey||k.shiftKey||k.altKey||m(T))},w=(k,T,S)=>{const x=k<1||k>a;return c&&!x?t.jsx(me,{href:c(k),className:Ee.pagination__arrow,"aria-label":T,...u,onClick:C=>$(C,k),children:S}):t.jsx(we,{className:Ee.pagination__arrow,icon:S,label:T,variant:"outline",disabled:x,onClick:()=>g(k)})};return t.jsxs("nav",{className:v(Ee.pagination,l),"aria-label":B("Pagination.label",s,(E=d==null?void 0:d.pagination)==null?void 0:E.label),"data-testid":h,children:[w(e-1,B("Pagination.previousLabel",r,(D=d==null?void 0:d.pagination)==null?void 0:D.previous),t.jsx(R.CaretLeftFill,{"aria-hidden":!0})),t.jsx("ul",{className:Ee.pagination__list,children:f.map((k,T)=>k==="gap"?t.jsx("li",{className:Ee.pagination__gap,"aria-hidden":!0,children:"…"},`gap-${T}`):t.jsx("li",{children:c?t.jsx(me,{href:c(k),className:v(Ee.pagination__page,k===e&&Ee["pagination__page--active"]),"aria-current":k===e?"page":void 0,...u,onClick:S=>$(S,k),children:k}):t.jsx(it,{variant:ye.SECONDARY,size:Pe.SMALL,className:v(Ee.pagination__page,k===e&&Ee["pagination__page--active"]),"aria-current":k===e?"page":void 0,onClick:()=>g(k),children:k})},k))}),w(e+1,B("Pagination.nextLabel",o,(N=d==null?void 0:d.pagination)==null?void 0:N.next),t.jsx(R.CaretRightFill,{"aria-hidden":!0}))]})},oh=n.memo(rh);exports.ABOVE_MOBILE_MEDIA_QUERY=At;exports.ABOVE_TABLET_MEDIA_QUERY=jn;exports.Accordion=nu;exports.Alert=Fi;exports.Avatar=Ki;exports.Badge=Xi;exports.BottomSheet=da;exports.Breadcrumb=ec;exports.Button=it;exports.COMPACT_DENSITY=ln;exports.Card=pc;exports.CardBody=_c;exports.CardFooter=hc;exports.CardMedia=dc;exports.CardOverlay=uc;exports.Carousel=wc;exports.Checkbox=xr;exports.Chip=za;exports.ChipGroup=hs;exports.Combobox=Xs;exports.CommandPalette=d_;exports.ConfirmDialog=m_;exports.CopyField=Cc;exports.DARK_THEME=Fa;exports.DEFAULT_FONTS=dn;exports.DENSITY_ATTRIBUTE=ea;exports.DataTable=Y_;exports.DataTableRow=U_;exports.DateField=Ko;exports.DateRange=Yo;exports.Directory=Qc;exports.DirectoryGroup=Gc;exports.DirectoryJump=Vc;exports.DirectoryRow=Wc;exports.Divider=Sc;exports.Drawer=k_;exports.EmptyState=sl;exports.Field=Ga;exports.FileUpload=Ei;exports.FilterBar=J_;exports.FilterBarField=Q_;exports.HanuiProvider=_n;exports.IconButton=we;exports.Input=ua;exports.LIGHT_THEME=Aa;exports.METRIC_TOKENS=cn;exports.MOBILE_BREAKPOINT=Oa;exports.Menu=as;exports.Modal=ha;exports.PageHeader=bl;exports.Pagination=oh;exports.Panel=Sl;exports.PanelForm=Rl;exports.PanelRow=Dl;exports.PasswordInput=$o;exports.Popover=rs;exports.Price=Ol;exports.Progress=Va;exports.ProgressCircle=ui;exports.PromptDialog=T_;exports.QuantityStepper=_o;exports.Radio=Ar;exports.RadioCard=Hr;exports.RangeSlider=Vr;exports.Rating=Xl;exports.RatingInput=oo;exports.ScrollArea=sd;exports.SectionHeader=td;exports.SegmentedControl=Zs;exports.Select=_r;exports.Skeleton=md;exports.SkeletonCard=xd;exports.SkeletonRows=vd;exports.SkeletonTable=yd;exports.Spinner=sa;exports.Stat=Dd;exports.Steps=pu;exports.Switch=Er;exports.TABLET_BREAKPOINT=Ha;exports.TABLET_PORTRAIT_BREAKPOINT=wn;exports.THEME_ATTRIBUTE=Fe;exports.Table=S_;exports.TableCheckbox=bo;exports.TableScroller=R_;exports.Tabs=yu;exports.TagInput=Do;exports.TextLink=Bn;exports.Textarea=Xa;exports.Tile=Eu;exports.Timeline=Bu;exports.ToastHub=Qa;exports.ToastPortal=Xd;exports.Tooltip=Xn;exports.UISize=Pe;exports.UIVariant=ye;exports.applyThemeConfig=ta;exports.buildThemeCss=Ma;exports.initHanui=hn;exports.matchesSearch=jt;exports.normalizeSearchTerm=Vt;exports.resolveTokens=un;exports.toast=Kd;exports.useAnnounce=Lt;exports.useHanui=P;exports.useHanuiTheme=fn;exports.useListboxNavigation=na;exports.usePositioning=Nt;exports.useVirtualList=Pa;
|
|
22
22
|
//# sourceMappingURL=index.cjs.map
|