@ahmetilhn/hanui 2.1.1 → 2.2.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 CHANGED
@@ -1,22 +1,22 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react"),z=require("@ahmetilhn/handy-utils"),E=require("react-bootstrap-icons"),yt=require("react-dom"),C={n0:"#ffffff",n25:"#fafbfc",n50:"#f6f7f9",n100:"#eef0f4",n150:"#e7eaef",n200:"#e2e6ec",n250:"#d6dce4",n300:"#c9d0da",n550:"#626c7a",n600:"#5a6472",n700:"#3a424f",n900:"#11151b"},ce={base:"#1f2937",two:"#2b3646",three:"#3a4658",ink:"#12161d",inkTwo:"#1c222b"},_e={base:"#f59e0b",hover:"#d98706",active:"#b87205",soft:"#f8cd80",dark:"#fbbf24",darkHover:"#f0af12",on:"#291500"},U={base:"#2f6fed",hover:"#1d54c4",active:"#17439c",text:"#1d54c4",tint:"#eaf1fe",line:"#bcd2fb",dark:"#5b93ff",darkHover:"#7aa8ff",darkTint:"#16243c",darkLine:"#2a3f63"},F={okBg:"#e8f4eb",okFg:"#1d6e31",okLine:"#a8dcb7",okBgDark:"#122817",okFgDark:"#34c759",okLineDark:"#22542f",warnBg:"#fdf0dd",warnFg:"#7a3e02",warnLine:"#ebc687",warnBgDark:"#2c2008",warnFgDark:"#f5c86b",warnLineDark:"#55401a",offBg:"#f1f2f5",offFg:"#3a424f",offLine:"#ccd2db",offBgDark:"#212630",offFgDark:"#a3adbb",offLineDark:"#333b47",badBg:"#f8ebeb",badFg:"#bb1e1e",badLine:"#e6a6a6",badBgDark:"#310f0f",badFgDark:"#e97575",badLineDark:"#621b1b",oemBg:"#eaf1fe",oemFg:"#16305c",oemLine:"#a9c6f9",oemBgDark:"#152139",oemFgDark:"#9dc0ff",oemLineDark:"#27395c",altBg:"#eeebfa",altFg:"#2e2661",altLine:"#c0b6ea",altBgDark:"#1d1a33",altFgDark:"#bfb3f5",altLineDark:"#332d56"},qe={base:"#dc2626",hover:"#bb1e1e",dark:"#e45b5b",darkHover:"#ef7a72",onDark:"#1a0b0a"},Re={red:"#dc2626",redDark:"#e35252",green:"#299d46",greenDark:"#4cd76c",greenHover:"#23883c",greenHoverDark:"#63e084",onGreen:"#06280f"},Dt={bg:"#e8f4eb",fg:"#1d6e31",bgDark:"#122817",fgDark:"#34c759"},xa={light:"#9a5f04",dark:"#f0b429"},A=(e,a)=>{const n=e.replace("#",""),r=n.length===3?n.split("").map(d=>d+d).join(""):n,o=parseInt(r.slice(0,2),16),i=parseInt(r.slice(2,4),16),c=parseInt(r.slice(4,6),16);return`rgba(${o}, ${i}, ${c}, ${a})`},ae="#000000",va={page:C.n50,surface:C.n0,"surface-2":C.n100,"surface-3":C.n150,"surface-inset":C.n25,border:C.n250,"border-strong":C.n300,text:C.n900,"text-2":C.n600,"text-3":C.n550,graphite:ce.base,"graphite-2":ce.two,"graphite-3":ce.three,action:ce.base,"action-hover":ce.two,"action-active":ce.three,"on-action":C.n0,"action-soft":C.n300,"on-action-soft":C.n700,amber:_e.base,"amber-hover":_e.hover,"amber-active":_e.active,"amber-soft":_e.soft,"on-amber":_e.on,blue:U.base,"blue-hover":U.hover,"blue-active":U.active,"blue-text":U.text,"blue-tint":U.tint,"blue-line":U.line,"ok-bg":F.okBg,"ok-fg":F.okFg,"ok-line":F.okLine,"warn-bg":F.warnBg,"warn-fg":F.warnFg,"warn-line":F.warnLine,"off-bg":F.offBg,"off-fg":F.offFg,"off-line":F.offLine,"bad-bg":F.badBg,"bad-fg":F.badFg,"bad-line":F.badLine,"oem-bg":F.oemBg,"oem-fg":F.oemFg,"oem-line":F.oemLine,"alt-bg":F.altBg,"alt-fg":F.altFg,"alt-line":F.altLine,"sale-bg":Dt.bg,"sale-fg":Dt.fg,"red-accent":Re.red,"green-accent":Re.green,"green-accent-hover":Re.greenHover,"on-green":Re.onGreen,star:xa.light,"danger-solid":qe.base,"danger-solid-hover":qe.hover,"on-danger":C.n0,"nav-bg":C.n0,"nav-bg-2":C.n100,"nav-fg":C.n900,"nav-fg-2":C.n600,"nav-fg-3":C.n550,"nav-line":C.n200,"nav-line-strong":C.n300,"nav-hover":C.n100,"footer-bg":C.n100,"shadow-xs":`0 1px 2px ${A(C.n900,.05)}`,"shadow-sm":`0 1px 2px ${A(C.n900,.05)}, 0 1px 3px ${A(C.n900,.04)}`,"shadow-md":`0 2px 4px ${A(C.n900,.04)}, 0 6px 16px ${A(C.n900,.07)}`,"shadow-lg":`0 4px 8px ${A(C.n900,.05)}, 0 16px 32px ${A(C.n900,.1)}`,"shadow-xl":`0 8px 16px ${A(C.n900,.06)}, 0 28px 56px ${A(C.n900,.13)}`,"shadow-up":`0 -2px 4px ${A(C.n900,.03)}, 0 -8px 24px ${A(C.n900,.08)}`,ring:`0 0 0 3px ${A(U.base,.28)}`,"ring-color":U.base,"ring-danger":`0 0 0 3px ${A(qe.base,.24)}`,"ring-ok":`0 0 0 4px ${A(F.okFg,.16)}`,scrim:A(C.n900,.6),"scrim-soft":A(C.n900,.32),glass:A(C.n0,.92),"glass-solid":C.n0,"on-scrim":C.n0,"skeleton-a":C.n100,"skeleton-b":C.n25,track:A(C.n900,.12),"media-bg":C.n100,"glow-1":A(U.base,.1),"glow-2":A(U.base,.06),"glow-amber":A(_e.base,.09)},ya={page:"#0e1116",surface:"#171b22","surface-2":"#1f242d","surface-3":"#262c36","surface-inset":"#13171d",border:"#262c36","border-strong":"#363e4a",text:"#e7eaee","text-2":"#9aa4b2","text-3":"#818b99",graphite:ce.ink,"graphite-2":ce.inkTwo,"graphite-3":ce.two,action:C.n150,"action-hover":C.n0,"action-active":C.n300,"on-action":C.n900,"action-soft":"#414a58","on-action-soft":C.n300,amber:_e.dark,"amber-hover":_e.darkHover,"amber-active":_e.base,"amber-soft":"#6d5316","on-amber":_e.on,blue:U.dark,"blue-hover":U.darkHover,"blue-active":U.base,"blue-text":U.dark,"blue-tint":U.darkTint,"blue-line":U.darkLine,"ok-bg":F.okBgDark,"ok-fg":F.okFgDark,"ok-line":F.okLineDark,"warn-bg":F.warnBgDark,"warn-fg":F.warnFgDark,"warn-line":F.warnLineDark,"off-bg":F.offBgDark,"off-fg":F.offFgDark,"off-line":F.offLineDark,"bad-bg":F.badBgDark,"bad-fg":F.badFgDark,"bad-line":F.badLineDark,"oem-bg":F.oemBgDark,"oem-fg":F.oemFgDark,"oem-line":F.oemLineDark,"alt-bg":F.altBgDark,"alt-fg":F.altFgDark,"alt-line":F.altLineDark,"sale-bg":Dt.bgDark,"sale-fg":Dt.fgDark,"red-accent":Re.redDark,"green-accent":Re.greenDark,"green-accent-hover":Re.greenHoverDark,"on-green":Re.onGreen,star:xa.dark,"danger-solid":qe.dark,"danger-solid-hover":qe.darkHover,"on-danger":qe.onDark,"nav-bg":ce.ink,"nav-bg-2":ce.inkTwo,"nav-fg":"#e7eaee","nav-fg-2":"#9aa4b2","nav-fg-3":"#818b99","nav-line":"#262c36","nav-line-strong":"#363e4a","nav-hover":A(C.n0,.07),"footer-bg":ce.ink,"shadow-xs":`0 1px 2px ${A(ae,.4)}`,"shadow-sm":`0 1px 2px ${A(ae,.4)}, 0 1px 3px ${A(ae,.3)}`,"shadow-md":`0 2px 4px ${A(ae,.35)}, 0 6px 16px ${A(ae,.45)}`,"shadow-lg":`0 4px 8px ${A(ae,.4)}, 0 16px 32px ${A(ae,.55)}`,"shadow-xl":`0 8px 16px ${A(ae,.45)}, 0 28px 56px ${A(ae,.6)}`,"shadow-up":`0 -2px 4px ${A(ae,.3)}, 0 -8px 24px ${A(ae,.45)}`,ring:`0 0 0 3px ${A(U.dark,.36)}`,"ring-color":U.dark,"ring-danger":`0 0 0 3px ${A(qe.dark,.32)}`,"ring-ok":`0 0 0 4px ${A(F.okFgDark,.2)}`,scrim:A(ae,.68),"scrim-soft":A(ae,.45),glass:A("#1f242d",.92),"glass-solid":"#1f242d","on-scrim":C.n0,"skeleton-a":"#1f242d","skeleton-b":"#262c36",track:A(C.n0,.14),"media-bg":"#1f242d","glow-1":A(U.base,.2),"glow-2":A(U.dark,.1),"glow-amber":A(_e.dark,.12)},Qa={"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"},Wa={"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"},Ja={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"},oa="--hanui-",ia="hanui-theme-overrides",Ye="data-hanui-theme",wa="data-hanui-density",ca="hanui-theme-switching",Va=(e,a)=>{const n=e==="dark"?ya:va,r=(e==="dark"?a==null?void 0:a.dark:a==null?void 0:a.light)??{};return{...n,...r}},ja=e=>{const a=[],n=(c,d=" ")=>Object.entries(c).map(([p,_])=>`${d}${oa}${p}: ${_};`).join(`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react"),z=require("@ahmetilhn/handy-utils"),E=require("react-bootstrap-icons"),kt=require("react-dom"),Ce={pine:"#00322a",mint:"#43ff9c",ink:"#00120f"},St={paper:"#eff4f1",slate:"#38594f",mist:"#8fb3a7"},T={n0:"#ffffff",n25:"#f9fbfa",n50:"#f4f8f7",n100:St.paper,n150:"#e8efec",n200:"#e3eae7",n250:"#d6e1dc",n300:"#c5d3cc",n550:"#506d63",n600:St.slate,n700:"#26403a",n900:Ce.ink},ee={base:Ce.pine,two:"#004d40",three:"#0f574a",dark:Ce.pine,darkTwo:"#002922",darkLine:"#0a4a3e",darkLineStrong:"#126554"},U={page:Ce.ink,surface:"#08211d",surfaceTwo:"#112d27",surfaceThree:"#1d3a33",inset:"#031614",border:"#193831",borderStrong:"#34564c",text:St.paper,textTwo:St.mist,textThree:"#799a8f",actionSoft:"#3f5a53"},zt={base:Ce.mint,hover:"#70ffb3",active:"#2ce883"},de={base:"#f59e0b",hover:"#d98706",active:"#b87205",soft:"#f8cd80",dark:"#fbbf24",darkHover:"#f0af12",on:"#291500",darkSoft:"#6d5316"},W={base:"#2f6fed",hover:"#1d54c4",active:"#17439c",text:"#1d54c4",tint:"#eaf1fe",line:"#bcd2fb",dark:"#5b93ff",darkHover:"#7aa8ff",darkTint:"#16243c",darkLine:"#2a3f63"},Za={green:"#1d9a64"},F={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:T.n700,offLine:"#cddad4",offBgDark:"#192e29",offFgDark:"#a2b9b0",offLineDark:"#2a423b",badBg:"#f8ebeb",badFg:"#bb1e1e",badLine:"#e6a6a6",badBgDark:"#310f0f",badFgDark:"#e97575",badLineDark:"#621b1b",oemBg:"#eaf1fe",oemFg:"#16305c",oemLine:"#a9c6f9",oemBgDark:"#152139",oemFgDark:"#9dc0ff",oemLineDark:"#27395c",altBg:"#eeebfa",altFg:"#2e2661",altLine:"#c0b6ea",altBgDark:"#1d1a33",altFgDark:"#bfb3f5",altLineDark:"#332d56"},Xe={base:"#dc2626",hover:"#bb1e1e",dark:"#e45b5b",darkHover:"#ef7a72",onDark:"#1a0b0a"},Le={red:"#dc2626",redDark:"#e35252",green:Za.green,greenDark:"#43d08a",greenHover:"#17814f",greenHoverDark:"#63e3a3",onGreen:"#02180f"},Rt={bg:F.okBg,fg:F.okFg,bgDark:F.okBgDark,fgDark:F.okFgDark},ka={light:"#9a5f04",dark:"#f0b429"},A=(e,a)=>{const n=e.replace("#",""),r=n.length===3?n.split("").map(d=>d+d).join(""):n,o=parseInt(r.slice(0,2),16),i=parseInt(r.slice(2,4),16),c=parseInt(r.slice(4,6),16);return`rgba(${o}, ${i}, ${c}, ${a})`},se="#000000",ja={page:T.n50,surface:T.n0,"surface-2":T.n100,"surface-3":T.n150,"surface-inset":T.n25,border:T.n250,"border-strong":T.n300,text:T.n900,"text-2":T.n600,"text-3":T.n550,graphite:ee.base,"graphite-2":ee.two,"graphite-3":ee.three,action:ee.base,"action-hover":ee.two,"action-active":ee.three,"on-action":T.n0,"action-soft":T.n300,"on-action-soft":T.n700,amber:de.base,"amber-hover":de.hover,"amber-active":de.active,"amber-soft":de.soft,"on-amber":de.on,blue:W.base,"blue-hover":W.hover,"blue-active":W.active,"blue-text":W.text,"blue-tint":W.tint,"blue-line":W.line,"ok-bg":F.okBg,"ok-fg":F.okFg,"ok-line":F.okLine,"warn-bg":F.warnBg,"warn-fg":F.warnFg,"warn-line":F.warnLine,"off-bg":F.offBg,"off-fg":F.offFg,"off-line":F.offLine,"bad-bg":F.badBg,"bad-fg":F.badFg,"bad-line":F.badLine,"oem-bg":F.oemBg,"oem-fg":F.oemFg,"oem-line":F.oemLine,"alt-bg":F.altBg,"alt-fg":F.altFg,"alt-line":F.altLine,"sale-bg":Rt.bg,"sale-fg":Rt.fg,"red-accent":Le.red,"green-accent":Le.green,"green-accent-hover":Le.greenHover,"on-green":Le.onGreen,star:ka.light,"danger-solid":Xe.base,"danger-solid-hover":Xe.hover,"on-danger":T.n0,"nav-bg":T.n0,"nav-bg-2":T.n100,"nav-fg":T.n900,"nav-fg-2":T.n600,"nav-fg-3":T.n550,"nav-line":T.n200,"nav-line-strong":T.n300,"nav-hover":T.n100,"footer-bg":T.n100,"shadow-xs":`0 1px 2px ${A(T.n900,.05)}`,"shadow-sm":`0 1px 2px ${A(T.n900,.05)}, 0 1px 3px ${A(T.n900,.04)}`,"shadow-md":`0 2px 4px ${A(T.n900,.04)}, 0 6px 16px ${A(T.n900,.07)}`,"shadow-lg":`0 4px 8px ${A(T.n900,.05)}, 0 16px 32px ${A(T.n900,.1)}`,"shadow-xl":`0 8px 16px ${A(T.n900,.06)}, 0 28px 56px ${A(T.n900,.13)}`,"shadow-up":`0 -2px 4px ${A(T.n900,.03)}, 0 -8px 24px ${A(T.n900,.08)}`,ring:`0 0 0 3px ${A(W.base,.28)}`,"ring-color":W.base,"ring-danger":`0 0 0 3px ${A(Xe.base,.24)}`,"ring-ok":`0 0 0 4px ${A(F.okFg,.16)}`,scrim:A(T.n900,.6),"scrim-soft":A(T.n900,.32),glass:A(T.n0,.92),"glass-solid":T.n0,"on-scrim":T.n0,"skeleton-a":T.n100,"skeleton-b":T.n25,track:A(T.n900,.12),"media-bg":T.n100,"glow-1":A(Ce.mint,.1),"glow-2":A(Ce.pine,.06),"glow-amber":A(de.base,.09)},Na={page:U.page,surface:U.surface,"surface-2":U.surfaceTwo,"surface-3":U.surfaceThree,"surface-inset":U.inset,border:U.border,"border-strong":U.borderStrong,text:U.text,"text-2":U.textTwo,"text-3":U.textThree,graphite:ee.dark,"graphite-2":ee.darkTwo,"graphite-3":ee.two,action:zt.base,"action-hover":zt.hover,"action-active":zt.active,"on-action":T.n900,"action-soft":U.actionSoft,"on-action-soft":T.n300,amber:de.dark,"amber-hover":de.darkHover,"amber-active":de.base,"amber-soft":de.darkSoft,"on-amber":de.on,blue:W.dark,"blue-hover":W.darkHover,"blue-active":W.base,"blue-text":W.dark,"blue-tint":W.darkTint,"blue-line":W.darkLine,"ok-bg":F.okBgDark,"ok-fg":F.okFgDark,"ok-line":F.okLineDark,"warn-bg":F.warnBgDark,"warn-fg":F.warnFgDark,"warn-line":F.warnLineDark,"off-bg":F.offBgDark,"off-fg":F.offFgDark,"off-line":F.offLineDark,"bad-bg":F.badBgDark,"bad-fg":F.badFgDark,"bad-line":F.badLineDark,"oem-bg":F.oemBgDark,"oem-fg":F.oemFgDark,"oem-line":F.oemLineDark,"alt-bg":F.altBgDark,"alt-fg":F.altFgDark,"alt-line":F.altLineDark,"sale-bg":Rt.bgDark,"sale-fg":Rt.fgDark,"red-accent":Le.redDark,"green-accent":Le.greenDark,"green-accent-hover":Le.greenHoverDark,"on-green":Le.onGreen,star:ka.dark,"danger-solid":Xe.dark,"danger-solid-hover":Xe.darkHover,"on-danger":Xe.onDark,"nav-bg":ee.dark,"nav-bg-2":ee.darkTwo,"nav-fg":U.text,"nav-fg-2":U.textTwo,"nav-fg-3":U.textThree,"nav-line":ee.darkLine,"nav-line-strong":ee.darkLineStrong,"nav-hover":A(T.n0,.07),"footer-bg":ee.dark,"shadow-xs":`0 1px 2px ${A(se,.4)}`,"shadow-sm":`0 1px 2px ${A(se,.4)}, 0 1px 3px ${A(se,.3)}`,"shadow-md":`0 2px 4px ${A(se,.35)}, 0 6px 16px ${A(se,.45)}`,"shadow-lg":`0 4px 8px ${A(se,.4)}, 0 16px 32px ${A(se,.55)}`,"shadow-xl":`0 8px 16px ${A(se,.45)}, 0 28px 56px ${A(se,.6)}`,"shadow-up":`0 -2px 4px ${A(se,.3)}, 0 -8px 24px ${A(se,.45)}`,ring:`0 0 0 3px ${A(W.dark,.36)}`,"ring-color":W.dark,"ring-danger":`0 0 0 3px ${A(Xe.dark,.32)}`,"ring-ok":`0 0 0 4px ${A(F.okFgDark,.2)}`,scrim:A(se,.68),"scrim-soft":A(se,.45),glass:A(U.surfaceTwo,.92),"glass-solid":U.surfaceTwo,"on-scrim":T.n0,"skeleton-a":U.surfaceTwo,"skeleton-b":U.surfaceThree,track:A(T.n0,.14),"media-bg":U.surfaceTwo,"glow-1":A(Ce.mint,.2),"glow-2":A(Ce.pine,.12),"glow-amber":A(de.dark,.12)},en={"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"},tn={"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"},an={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"},da="--hanui-",ua="hanui-theme-overrides",Ge="data-hanui-theme",$a="data-hanui-density",_a="hanui-theme-switching",nn=(e,a)=>{const n=e==="dark"?Na:ja,r=(e==="dark"?a==null?void 0:a.dark:a==null?void 0:a.light)??{};return{...n,...r}},Ea=e=>{const a=[],n=(c,d=" ")=>Object.entries(c).map(([p,_])=>`${d}${da}${p}: ${_};`).join(`
2
2
  `),r=e.fonts??{},o=Object.entries(r).filter(([,c])=>!!c);o.length>0&&a.push(`:root {
3
- ${o.map(([c,d])=>` ${oa}font-${c}: ${d};`).join(`
3
+ ${o.map(([c,d])=>` ${da}font-${c}: ${d};`).join(`
4
4
  `)}
5
5
  }`);const i=e.metrics??{};if(Object.keys(i).length>0){const c=n(i);a.push(`:root {
6
6
  ${c}
7
- }`),a.push(`:root[${wa}='compact'] {
7
+ }`),a.push(`:root[${$a}='compact'] {
8
8
  ${c}
9
9
  }`)}if(e.light&&Object.keys(e.light).length>0){const c=n(e.light);a.push(`:root {
10
10
  ${c}
11
- }`),a.push(`:root[${Ye}='light'] {
11
+ }`),a.push(`:root[${Ge}='light'] {
12
12
  ${c}
13
- }`)}if(e.dark&&Object.keys(e.dark).length>0){const c=n(e.dark);a.push(`:root[${Ye}='dark'] {
13
+ }`)}if(e.dark&&Object.keys(e.dark).length>0){const c=n(e.dark);a.push(`:root[${Ge}='dark'] {
14
14
  ${c}
15
15
  }`),a.push(`@media (prefers-color-scheme: dark) {
16
- :root:not([${Ye}]) {
16
+ :root:not([${Ge}]) {
17
17
  ${n(e.dark," ")}
18
18
  }
19
19
  }`)}return a.join(`
20
20
 
21
- `)},ka=e=>{if(!z.isClient())return;const a=e?ja(e):"",n=document.getElementById(ia);if(a===""){n==null||n.remove();return}const r=n??document.createElement("style");r.id=ia,r.textContent=a,n||document.head.appendChild(r)},Na=s.createContext({}),H=()=>s.useContext(Na),Za=({children:e,theme:a,linkComponent:n,labels:r})=>{const o=s.useMemo(()=>a?JSON.stringify(a):"",[a]);s.useEffect(()=>{ka(a)},[o]);const i=s.useRef(a);i.current=a;const c=s.useMemo(()=>({theme:i.current,linkComponent:n,labels:r}),[o,n,r]);return t.jsx(Na.Provider,{value:c,children:e})},en=(e={})=>{ka(e.theme),z.isClient()&&(e.colorScheme&&document.documentElement.setAttribute(Ye,e.colorScheme),e.density&&document.documentElement.setAttribute(wa,e.density))},tn="hanui-live-region",an=e=>{if(!z.isClient())return null;const a=`${tn}-${e}`,n=document.getElementById(a);if(n)return n;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},nn=(e,a)=>{e.textContent="",window.requestAnimationFrame(()=>{e.textContent=a})},Rt=()=>s.useCallback((e,a="polite")=>{const n=e.trim();if(n==="")return;const r=an(a);r&&nn(r,n)},[]),la=()=>{var e;return z.isClient()&&((e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"},sn=()=>{if(!z.isClient())return"system";const e=document.documentElement.getAttribute(Ye);return e==="dark"||e==="light"?e:"system"},rn=()=>{const[e,a]=s.useState("light"),[n,r]=s.useState("light"),[o,i]=s.useState(!1);s.useEffect(()=>{a(sn()),r(la()),i(!0)},[]),s.useEffect(()=>{if(!z.isClient()||!window.matchMedia)return;const _=window.matchMedia("(prefers-color-scheme: dark)"),l=()=>r(la());return _.addEventListener("change",l),()=>_.removeEventListener("change",l)},[]);const c=e==="system"?n:e,d=s.useCallback(_=>{if(!z.isClient())return;const l=document.documentElement;l.classList.add(ca),_==="system"?l.removeAttribute(Ye):l.setAttribute(Ye,_),a(_),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>l.classList.remove(ca))})},[]),p=s.useCallback(()=>d(c==="dark"?"light":"dark"),[c,d]);return{scheme:c,preference:e,setScheme:d,toggle:p,isReady:o}},Qt=(e,a)=>{typeof(e==null?void 0:e.scrollIntoView)=="function"&&e.scrollIntoView(a)},Wt=({count:e,isOpen:a,initialIndex:n=0,onSelect:r,onClose:o},{hasSpaceSelect:i=!1}={})=>{const[c,d]=s.useState(n),p=s.useRef(null);s.useEffect(()=>{a&&d(n)},[a,n]),s.useEffect(()=>{d(l=>l>=e?Math.max(0,e-1):l)},[e]),s.useEffect(()=>{var l;a&&Qt((l=p.current)==null?void 0:l.querySelector(`[data-index="${c}"]`),{block:"nearest"})},[c,a,e]);const _=s.useCallback(l=>{const h=e-1;switch(l.key){case"ArrowDown":l.preventDefault(),d(u=>u>=h?0:u+1);break;case"ArrowUp":l.preventDefault(),d(u=>u<=0?h:u-1);break;case"Home":l.preventDefault(),d(0);break;case"End":l.preventDefault(),d(h);break;case" ":case"Enter":{if(l.key===" "&&!i)break;l.preventDefault(),e>0&&r(c);break}case"Escape":l.preventDefault(),o();break;case"Tab":o();break}},[c,e,i,o,r]);return{activeIndex:c,setActiveIndex:d,listRef:p,handleKeyDown:_}},Pt={top:"bottom",bottom:"top",left:"right",right:"left"},da=(e,a,n)=>Math.min(Math.max(e,a),n),Ot=(e,a,n,r,o)=>{const i=n==="top"||n==="bottom",c={top:e.top-a.height-o,bottom:e.top+e.height+o,left:e.left-a.width-o,right:e.left+e.width+o}[n],d=i?e.left:e.top,p=i?e.width:e.height,_=i?a.width:a.height,l={start:d,center:d+p/2-_/2,end:d+p-_}[r];return i?{top:c,left:l}:{top:l,left:c}},ua=(e,a,n,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})[n],wt=(e,a,{side:n="top",align:r="center",offset:o=8,padding:i=8,isOpen:c})=>{const[d,p]=s.useState({style:{position:"fixed",top:0,left:0},side:n,isPositioned:!1}),_=s.useRef(0),l=s.useCallback(()=>{const b=e.current,y=a.current;if(!b||!y)return;const g=b.getBoundingClientRect(),m=y.getBoundingClientRect(),v={width:window.innerWidth,height:window.innerHeight},$=Ot(g,m,n,r,o),k=ua($,m,n,i,v)?n:ua(Ot(g,m,Pt[n],r,o),m,Pt[n],i,v)?Pt[n]:n,f=Ot(g,m,k,r,o);p({style:{position:"fixed",top:Math.round(da(f.top,i,v.height-m.height-i)),left:Math.round(da(f.left,i,v.width-m.width-i))},side:k,isPositioned:!0})},[e,a,n,r,o,i]),h=s.useCallback(()=>{_.current||(_.current=window.requestAnimationFrame(()=>{_.current=0,l()}))},[l]);return(z.isClient()?s.useLayoutEffect:s.useEffect)(()=>{if(!c){p(y=>y.isPositioned?{...y,isPositioned:!1}:y);return}l(),window.addEventListener("resize",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),()=>{window.removeEventListener("resize",h),document.removeEventListener("scroll",h,!0),b==null||b.disconnect(),_.current&&(window.cancelAnimationFrame(_.current),_.current=0)}},[c,l,h,e,a]),d},$a=(e,{rowHeight:a=40,overscan:n=6,isEnabled:r=!0}={})=>{const o=s.useRef(null),[i,c]=s.useState({start:0,end:e,totalHeight:e*a,offset:0}),d=s.useCallback(()=>{const _=o.current,l=!r||!_||_.clientHeight===0?{start:0,end:e,totalHeight:e*a,offset:0}:(()=>{const h=Math.ceil(_.clientHeight/a),u=Math.floor(_.scrollTop/a),b=Math.max(0,u-n),y=Math.min(e,u+h+n);return{start:b,end:y,totalHeight:e*a,offset:b*a}})();c(h=>h.start===l.start&&h.end===l.end&&h.totalHeight===l.totalHeight&&h.offset===l.offset?h:l)},[e,r,n,a]);s.useEffect(d),s.useEffect(()=>{const _=o.current;if(!_)return;_.addEventListener("scroll",d,{passive:!0});const l=typeof ResizeObserver>"u"?null:new ResizeObserver(d);return l==null||l.observe(_),()=>{_.removeEventListener("scroll",d),l==null||l.disconnect()}},[d]);const p=s.useCallback(_=>{const l=o.current;if(!l||!r)return;const h=_*a,u=h+a;h<l.scrollTop?l.scrollTop=h:u>l.scrollTop+l.clientHeight&&(l.scrollTop=u-l.clientHeight)},[r,a]);return{scrollRef:o,range:i,scrollToIndex:p,measure:d}};let gt=0,Ne=null;const on=()=>/iP(hone|ad|od)/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,cn=()=>{if(gt+=1,gt>1)return;const{body:e,style:a}={body:document.body,style:document.documentElement.style},n=window.scrollY;Ne={overflow:e.style.overflow,position:e.style.position,top:e.style.top,width:e.style.width,paddingRight:e.style.paddingRight,scrollY:n};const r=window.innerWidth-document.documentElement.clientWidth;r>0&&(e.style.paddingRight=`${r}px`),a.setProperty("scrollbar-gutter","stable"),e.style.overflow="hidden",on()&&(e.style.position="fixed",e.style.top=`${-n}px`,e.style.width="100%")},ln=()=>{if(gt=Math.max(0,gt-1),gt>0||!Ne)return;const{body:e}=document,{scrollY:a}=Ne;e.style.overflow=Ne.overflow,e.style.position=Ne.position,e.style.top=Ne.top,e.style.width=Ne.width,e.style.paddingRight=Ne.paddingRight,document.documentElement.style.removeProperty("scrollbar-gutter"),Ne=null,window.scrollTo(0,a)},jt=(e=!0)=>{s.useEffect(()=>{if(e)return cn(),ln},[e])},Ea="--hanui-sheet-height",Ca="--hanui-sheet-inset-bottom";let Nt=0,st=0;const dn=240,Ia=()=>{const e=window.visualViewport;if(!e||e.height<dn)return;const a=window.innerHeight-e.height-e.offsetTop,n=document.documentElement;n.style.setProperty(Ca,`${Math.max(0,Math.round(a))}px`),n.style.setProperty(Ea,`${Math.round(e.height)}px`)},We=()=>{st||(st=window.requestAnimationFrame(()=>{st=0,Ia()}))},_a=()=>{st&&(window.cancelAnimationFrame(st),st=0)},Da=(e=!0)=>{s.useEffect(()=>{if(!e)return;const a=window.visualViewport;if(a)return Nt+=1,Nt===1&&(a.addEventListener("resize",We),a.addEventListener("scroll",We),window.addEventListener("orientationchange",We)),_a(),Ia(),()=>{Nt-=1,!(Nt>0)&&(a.removeEventListener("resize",We),a.removeEventListener("scroll",We),window.removeEventListener("orientationchange",We),_a(),document.documentElement.style.removeProperty(Ca),document.documentElement.style.removeProperty(Ea))}},[e])};var ge=(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))(ge||{}),Le=(e=>(e.SMALL="SMALL",e.MEDIUM="MEDIUM",e.LARGE="LARGE",e))(Le||{});const Ta=640,un=768,Ra=1024,_n=`(min-width: ${Ra+1}px)`,St=`(min-width: ${Ta+1}px)`,qt=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(),vt=(e,a)=>qt(e).includes(qt(a)),hn=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),Sa=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 n=e.tagName;return n==="TEXTAREA"?!0:n!=="INPUT"?!1:!hn.has(e.type)},Lt=e=>{const a=e.ownerDocument.activeElement;!e.contains(a)||!Sa(a)||(a.blur(),e.tabIndex=-1,e.focus({preventScroll:!0}))},ot=()=>{const e=typeof document>"u"?null:document.activeElement;return()=>{e instanceof HTMLElement&&e.isConnected&&e.focus({preventScroll:!0})}},pn=["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(", "),At=(e,a="[data-hanui-close]")=>{const n=e.querySelector("[data-hanui-autofocus]");if(n){n.focus({preventScroll:!0});return}const r=[...e.querySelectorAll(pn)],o=r.find(i=>!i.matches(a))??r[0];if(o){o.focus({preventScroll:!0});return}e.tabIndex=-1,e.focus({preventScroll:!0})},ft=[],Ft=()=>{const e=Symbol("hanui-modal");return ft.push(e),{token:e,pop:()=>{const a=ft.indexOf(e);a>=0&&ft.splice(a,1)}}},Mt=e=>ft[ft.length-1]===e,x=(...e)=>{let a="";for(const n of e)n&&(a=a===""?n:`${a} ${n}`);return a},R=(e,a)=>Object.assign(e,{displayName:a}),fe=({children:e,...a})=>{const{linkComponent:n}=H();return n?t.jsx(n,{...a,children:e}):t.jsx("a",{...a,children:e})},ha=new Set,M=(e,...a)=>{for(const n of a)if(n!==void 0)return n;return process.env.NODE_ENV!=="production"&&!ha.has(e)&&(ha.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.`)),""},Tt=(e,a,...n)=>a?a(...n):M(e),mn="hanui-spinner-7pXwf",bn="hanui-spinner__label-sZvSq",Ht={spinner:mn,spinner__label:bn,"spinner--sm":"hanui-spinner--sm-uI0wH","spinner--md":"hanui-spinner--md--VmFK","spinner--lg":"hanui-spinner--lg-K9k-Z"},gn=({size:e="md",label:a,className:n})=>{const{labels:r}=H();return t.jsx("span",{className:x(Ht.spinner,Ht[`spinner--${e}`],n),role:"status",children:t.jsx("span",{className:Ht.spinner__label,children:a??M("Spinner.label",r==null?void 0:r.loading)})})},Jt=s.memo(gn),fn="hanui-button-SRu4R",xn="hanui-button__icon-giom6",vn="hanui-button__spinner-vexVG",yn="hanui-button__label-qiMHm",ve={button:fn,button__icon:xn,button__spinner:vn,button__label:yn,"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"},wn=s.forwardRef(({variant:e=ge.PRIMARY,size:a=Le.MEDIUM,isLoading:n,isFullWidth:r,startIcon:o,endIcon:i,className:c,children:d,disabled:p,href:_,isExternal:l,linkProps:h,testId:u,...b},y)=>{const g=x(ve.button,ve[`button--${e.toLowerCase()}`],ve[`button--${a.toLowerCase()}`],r&&ve["button--full"],n&&ve["button--loading"],c),m=t.jsxs(t.Fragment,{children:[n&&t.jsx(Jt,{size:"sm",className:ve.button__spinner,label:""}),!n&&o&&t.jsx("span",{className:ve.button__icon,children:o}),t.jsx("span",{className:ve.button__label,children:d}),i&&t.jsx("span",{className:ve.button__icon,children:i})]});return _&&l?t.jsx("a",{href:_,className:g,target:"_blank",rel:"noopener noreferrer","aria-label":b["aria-label"],"data-testid":u,children:m}):_?t.jsx(fe,{href:_,className:g,"data-testid":u,...h,children:m}):t.jsx("button",{ref:y,className:g,disabled:p||n,"aria-busy":n,"data-testid":u,...b,children:m})}),rt=s.memo(R(wn,"Button")),jn="hanui-iconButton-JdtwM",zt={iconButton:jn,"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"},kn=s.forwardRef(({icon:e,label:a,variant:n="ghost",size:r="md",className:o,type:i="button",href:c,linkProps:d,testId:p,..._},l)=>{const h=x(zt.iconButton,zt[`iconButton--${n}`],zt[`iconButton--${r}`],o);return c?t.jsx(fe,{href:c,className:h,"aria-label":a,title:_.title,"data-testid":p,...d,children:e}):t.jsx("button",{ref:l,type:i,className:h,"aria-label":a,"data-testid":p,..._,children:e})}),he=s.memo(R(kn,"IconButton")),Nn="hanui-link-WBmXY",$n="hanui-link__label--OEu-",En="hanui-link__arrow-JKXm-",lt={link:Nn,link__label:$n,link__arrow:En,"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"},Cn=({href:e,children:a,hasArrow:n,tone:r="brand",size:o="md",className:i,linkProps:c,...d})=>t.jsxs(fe,{href:e,className:x(lt.link,lt[`link--${r}`],lt[`link--${o}`],i),...c,...d,children:[t.jsx("span",{className:lt.link__label,children:a}),n&&t.jsx(E.ArrowRight,{"aria-hidden":!0,className:lt.link__arrow})]}),In=s.memo(Cn),Dn="hanui-tooltip-RG1g1",Tn="hanui-tooltip__trigger-nWZtO",Rn="hanui-bubble-bcBNk",$t={tooltip:Dn,tooltip__trigger:Tn,bubble:Rn,"bubble--top":"hanui-bubble--top-uWSZy","bubble--bottom":"hanui-bubble--bottom-jKokL","bubble--left":"hanui-bubble--left-WK4EM","bubble--right":"hanui-bubble--right-EQjUT"},Sn=120,Ln=500,An=({content:e,children:a,side:n,position:r,openDelay:o=300,className:i})=>{const[c,d]=s.useState(!1),p=s.useId(),_=n??r??"top",l=s.useRef(null),h=s.useRef(null),u=s.useRef(0),b=s.useRef(0),y=wt(l,h,{side:_,align:"center",isOpen:c}),g=s.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=0},[]),m=s.useCallback(f=>{g(),u.current=window.setTimeout(()=>d(!0),f)},[g]),v=s.useCallback((f=Sn)=>{g(),u.current=window.setTimeout(()=>d(!1),f)},[g]);s.useEffect(()=>g,[g]),s.useEffect(()=>{if(!c)return;const f=N=>{N.key==="Escape"&&v(0)};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[c,v]),s.useEffect(()=>{if(!c)return;const f=N=>{var j;N.pointerType!=="mouse"&&((j=l.current)!=null&&j.contains(N.target)||v(0))};return document.addEventListener("pointerdown",f),()=>document.removeEventListener("pointerdown",f)},[c,v]);const $=()=>{b.current&&window.clearTimeout(b.current),b.current=0},k=f=>{f.pointerType!=="mouse"&&(b.current=window.setTimeout(()=>d(!0),Ln))};return t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:l,className:x($t.tooltip,i),onPointerEnter:f=>f.pointerType==="mouse"&&m(o),onPointerLeave:f=>{$(),f.pointerType==="mouse"&&v()},onPointerDown:k,onPointerUp:$,onPointerCancel:$,onFocus:()=>m(0),onBlur:()=>v(0),onContextMenu:f=>{(c||b.current)&&f.preventDefault()},children:t.jsx("span",{"aria-describedby":c?p:void 0,className:$t.tooltip__trigger,children:a})}),c&&z.isClient()&&yt.createPortal(t.jsx("span",{ref:h,id:p,role:"tooltip",className:x($t.bubble,$t[`bubble--${y.side}`]),style:{...y.style,visibility:y.isPositioned?"visible":"hidden"},onPointerEnter:g,onPointerLeave:()=>v(),children:e}),document.body)]})},Fn=s.memo(R(An,"Tooltip")),Mn="hanui-menu-1x-FU",Bn="hanui-menu__item-d1iil",Pn="hanui-menu__icon-kzLV2",dt={menu:Mn,"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:Bn,"menu__item--danger":"hanui-menu__item--danger-lIINY",menu__icon:Pn},On=e=>e.map((a,n)=>a.isDisabled?-1:n).filter(a=>a>=0),Hn=({trigger:e,items:a,label:n,side:r="bottom",align:o="start",className:i,testId:c})=>{const d=s.useId(),p=s.useRef(null),_=s.useRef(null),l=s.useRef(null),h=s.useRef({text:"",at:0}),[u,b]=s.useState(!1),[y,g]=s.useState(0),m=wt(p,_,{side:r,align:o,isOpen:u}),v=On(a),$=s.useCallback(w=>{v.length!==0&&(l.current=ot(),g(w==="first"?v[0]:v[v.length-1]),b(!0))},[v]),k=s.useCallback(()=>{var w;b(!1),(w=l.current)==null||w.call(l),l.current=null},[]);s.useEffect(()=>{var w,L;u&&((L=(w=_.current)==null?void 0:w.querySelector(`[data-index="${y}"]`))==null||L.focus({preventScroll:!0}))},[u,y]),s.useEffect(()=>{if(!u)return;const w=L=>{var X,G;const P=L.target;(X=_.current)!=null&&X.contains(P)||(G=p.current)!=null&&G.contains(P)||k()};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[u,k]);const f=w=>{const P=(v.indexOf(y)+w+v.length)%v.length;g(v[P])},N=w=>{const L=Date.now(),P=L-h.current.at>500?w:h.current.text+w;h.current={text:P,at:L};const X=v.find(G=>a[G].label.toLocaleLowerCase("tr").startsWith(P.toLocaleLowerCase("tr")));X!==void 0&&g(X)},j=w=>{switch(w.key){case"ArrowDown":w.preventDefault(),f(1);break;case"ArrowUp":w.preventDefault(),f(-1);break;case"Home":w.preventDefault(),g(v[0]);break;case"End":w.preventDefault(),g(v[v.length-1]);break;case"Escape":w.preventDefault(),k();break;case"Tab":k();break;default:w.key.length===1&&!w.metaKey&&!w.ctrlKey&&N(w.key)}},T=w=>{if(w.key==="ArrowUp"){w.preventDefault(),$("last");return}["ArrowDown","Enter"," "].includes(w.key)&&(w.preventDefault(),$("first"))};if(!s.isValidElement(e))return null;const I=e.props,D=s.cloneElement(e,{ref:p,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?d:void 0,onClick:w=>{var L;(L=I.onClick)==null||L.call(I,w),u?k():$("first")},onKeyDown:w=>{var L;(L=I.onKeyDown)==null||L.call(I,w),u||T(w)}});return t.jsxs(t.Fragment,{children:[D,u&&z.isClient()&&yt.createPortal(t.jsx("div",{ref:_,id:d,role:"menu","aria-label":n,className:x(dt.menu,dt[`menu--${m.side}`],i),style:{...m.style,visibility:m.isPositioned?"visible":"hidden"},"data-testid":c,onKeyDown:j,children:a.map((w,L)=>t.jsxs("button",{type:"button",role:"menuitem","data-index":L,tabIndex:L===y?0:-1,disabled:w.isDisabled,className:x(dt.menu__item,w.isDanger&&dt["menu__item--danger"]),onClick:()=>{w.onSelect(),k()},onMouseEnter:()=>!w.isDisabled&&g(L),children:[w.icon&&t.jsx("span",{className:dt.menu__icon,"aria-hidden":!0,children:w.icon}),w.label]},w.id))}),document.body)]})},zn=s.memo(R(Hn,"Menu")),Kn="hanui-popover-VxgiK",pa={popover:Kn,"popover--top":"hanui-popover--top-OUYwo","popover--bottom":"hanui-popover--bottom-Q1K4X","popover--left":"hanui-popover--left-9Rsjx","popover--right":"hanui-popover--right-0TJeo"},Un=({trigger:e,children:a,label:n,side:r="bottom",align:o="start",isOpen:i,onOpenChange:c,className:d,testId:p})=>{const _=s.useId(),l=s.useRef(null),h=s.useRef(null),u=s.useRef(null),[b,y]=s.useState(!1),g=i!==void 0,m=g?i:b,v=wt(l,h,{side:r,align:o,isOpen:m}),$=s.useCallback(N=>{g||y(N),c==null||c(N)},[g,c]);if(s.useEffect(()=>{if(!m)return;u.current=ot();const N=h.current;return N&&At(N),()=>{var j;(j=u.current)==null||j.call(u),u.current=null}},[m]),s.useEffect(()=>{if(!m)return;const N=T=>{T.key==="Escape"&&$(!1)},j=T=>{var D,w;const I=T.target;(D=h.current)!=null&&D.contains(I)||(w=l.current)!=null&&w.contains(I)||$(!1)};return document.addEventListener("keydown",N),document.addEventListener("mousedown",j),()=>{document.removeEventListener("keydown",N),document.removeEventListener("mousedown",j)}},[m,$]),!s.isValidElement(e))return null;const k=e.props,f=s.cloneElement(e,{ref:l,"aria-expanded":m,"aria-haspopup":"dialog","aria-controls":m?_:void 0,onClick:N=>{var j;(j=k.onClick)==null||j.call(k,N),$(!m)}});return t.jsxs(t.Fragment,{children:[f,m&&z.isClient()&&yt.createPortal(t.jsx("div",{ref:h,id:_,role:"dialog","aria-label":n,className:x(pa.popover,pa[`popover--${v.side}`],d),style:{...v.style,visibility:v.isPositioned?"visible":"hidden"},"data-testid":p,onBlur:N=>{var j;N.currentTarget.contains(N.relatedTarget)||(j=l.current)!=null&&j.contains(N.relatedTarget)||$(!1)},children:a}),document.body)]})},qn=s.memo(R(Un,"Popover")),Yn="hanui-chip--NLgU",Xn="hanui-chip__icon-IjjSb",Gn="hanui-chip__label-cT4hw",Qn="hanui-chip__count-MBGO3",Ce={chip:Yn,chip__icon:Xn,chip__label:Gn,chip__count:Qn,"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"},Wn=s.forwardRef(({children:e,icon:a,endIcon:n,count:r,isSelected:o,size:i="md",label:c,href:d,linkProps:p,className:_,type:l="button",role:h,testId:u,...b},y)=>{const g=x(Ce.chip,Ce[`chip--${i}`],o&&Ce["chip--selected"],!e&&Ce["chip--iconOnly"],_),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}),z.isDefined(r)&&t.jsx("span",{className:Ce.chip__count,children:r}),n&&t.jsx("span",{className:Ce.chip__icon,"aria-hidden":!0,children:n})]});return d?t.jsx(fe,{href:d,className:g,"aria-label":e?void 0:c,"aria-current":o?"page":void 0,"data-testid":u,...p,children:m}):t.jsx("button",{ref:y,type:l,role:h,className:g,"aria-label":e?void 0:c,"data-testid":u,...h==="radio"?{"aria-checked":!!o}:{"aria-pressed":!!o},...b,children:m})}),La=s.memo(R(Wn,"Chip")),Jn="hanui-group-0tnVf",ma={group:Jn,"group--scrollable":"hanui-group--scrollable-PMu6V"},Vn=({options:e,label:a,size:n="md",isScrollable:r,className:o,...i})=>{var h;const c=s.useRef(null),d=u=>i.isMultiple?i.value.includes(u):i.value===u,p=u=>{if(i.isMultiple){const b=i.value.includes(u)?i.value.filter(y=>y!==u):[...i.value,u];i.onChange(b);return}i.onChange(i.value===u?null:u)},_=u=>{var v,$;if(i.isMultiple)return;const b=u.key==="ArrowRight"||u.key==="ArrowDown"?1:u.key==="ArrowLeft"||u.key==="ArrowUp"?-1:0;if(b===0)return;u.preventDefault();const y=e.filter(k=>!k.isDisabled);if(y.length===0)return;const g=y.findIndex(k=>k.value===i.value),m=y[(g+b+y.length)%y.length];i.onChange(m.value),($=(v=c.current)==null?void 0:v.querySelector(`[data-chip-value="${m.value}"]`))==null||$.focus()},l=i.isMultiple?null:i.value??((h=e.find(u=>!u.isDisabled))==null?void 0:h.value)??null;return t.jsx("div",{ref:c,className:x(ma.group,r&&ma["group--scrollable"],o),role:i.isMultiple?"group":"radiogroup","aria-label":a,onKeyDown:_,children:e.map(u=>t.jsx(La,{size:n,icon:u.icon,count:u.count,isSelected:d(u.value),disabled:u.isDisabled,role:i.isMultiple?void 0:"radio",tabIndex:i.isMultiple||u.value===l?0:-1,"data-chip-value":u.value,onClick:()=>p(u.value),children:u.label},u.value))})},Zn=s.memo(Vn),es="hanui-sheet-GEvdE",ts="hanui-sheet__header-NJgw-",as="hanui-sheet__title-f-b07",ns="hanui-sheet__toolbar-eyhmW",ss="hanui-sheet__body-eJ2KB",rs="hanui-sheet__footer-NpsY5",Me={sheet:es,sheet__header:ts,sheet__title:as,sheet__toolbar:ns,sheet__body:ss,sheet__footer:rs},os=({title:e,closeLabel:a,onClose:n,children:r,toolbar:o,footer:i,closeAbove:c=St,className:d,testId:p})=>{const{labels:_}=H(),l=s.useId(),h=s.useRef(null);Da(),jt(),s.useEffect(()=>{const y=ot(),{token:g,pop:m}=Ft();return h.current=g,()=>{m(),h.current=null,y()}},[]),s.useEffect(()=>{const y=window.matchMedia(c);return y.addEventListener("change",n),()=>y.removeEventListener("change",n)},[c,n]);const u=s.useCallback(y=>{!y||y.open||(y.showModal(),At(y,`.${Me.sheet__header} button`),Lt(y))},[]),b=s.useCallback(y=>{y.target===y.currentTarget&&n()},[n]);return z.isClient()?yt.createPortal(t.jsxs("dialog",{ref:u,className:x(Me.sheet,d),"aria-labelledby":l,"data-testid":p,onCancel:y=>{y.preventDefault(),!(h.current&&!Mt(h.current))&&n()},onClick:b,children:[t.jsxs("header",{className:Me.sheet__header,children:[t.jsx("h2",{id:l,className:Me.sheet__title,children:e}),t.jsx(he,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:M("BottomSheet.closeLabel",a,_==null?void 0:_.close),variant:"ghost",size:"sm",onClick:n})]}),o&&t.jsx("div",{className:Me.sheet__toolbar,children:o}),t.jsx("div",{className:Me.sheet__body,children:r}),i&&t.jsx("div",{className:Me.sheet__footer,children:i})]}),document.body):null},Vt=s.memo(os),is=80,ba=40,cs="hanui-combobox-NtZoV",ls="hanui-combobox__trigger-2riRR",ds="hanui-combobox__leadingIcon-it2xz",us="hanui-combobox__value-acDlr",_s="hanui-combobox__clear-EXOsc",hs="hanui-combobox__chevron-g-QzQ",ps="hanui-combobox__panel-srBxl",ms="hanui-combobox__search-THjer",bs="hanui-combobox__searchIcon-vr4Bg",gs="hanui-combobox__searchInput-JPp5h",fs="hanui-combobox__list-p-eCs",xs="hanui-combobox__option-CLWh-",vs="hanui-combobox__optionText-Zm0D6",ys="hanui-combobox__optionLabel-WvT4W",ws="hanui-combobox__optionDescription-8OEzi",js="hanui-combobox__check-MKlLz",ks="hanui-combobox__empty-mZwBq",O={combobox:cs,combobox__trigger:ls,"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:ds,combobox__value:us,combobox__clear:_s,combobox__chevron:hs,"combobox__chevron--open":"hanui-combobox__chevron--open-9kj1j",combobox__panel:ps,combobox__search:ms,combobox__searchIcon:bs,combobox__searchInput:gs,combobox__list:fs,"combobox__list--sheet":"hanui-combobox__list--sheet-r3MzB",combobox__option:xs,"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:vs,combobox__optionLabel:ys,combobox__optionDescription:ws,combobox__check:js,combobox__empty:ks},Ns=({options:e,value:a,onChange:n,labels:r,isSearchHidden:o,onSearch:i,isLoading:c,isDisabled:d,isClearable:p,icon:_,id:l,className:h,testId:u,"aria-describedby":b,"aria-invalid":y})=>{var ra;const{labels:g}=H(),m={get search(){var S;return M("Combobox.searchPlaceholder",r.searchPlaceholder,(S=g==null?void 0:g.combobox)==null?void 0:S.searchPlaceholder)},get empty(){var S;return M("Combobox.emptyMessage",r.emptyMessage,(S=g==null?void 0:g.combobox)==null?void 0:S.emptyMessage)},get loading(){var S;return M("Combobox.loadingMessage",r.loadingMessage,(S=g==null?void 0:g.combobox)==null?void 0:S.loadingMessage)},get clear(){var S;return M("Combobox.clearLabel",r.clearLabel,(S=g==null?void 0:g.combobox)==null?void 0:S.clearLabel)}},v=s.useId(),$=l??v,k=`${$}-listbox`,f=s.useRef(null),N=s.useRef(null),j=s.useRef(null),T=s.useRef(null),[I,D]=s.useState(null),w=I!==null,[L,P]=s.useState(""),[X,G]=s.useState(null),K=s.useMemo(()=>{if(i||L.trim()==="")return e;const S=L.trim();return e.filter(te=>vt(te.label,S)||(te.description?vt(te.description,S):!1))},[e,L,i]),oe=e.find(S=>S.value===a)??null;s.useEffect(()=>{oe?G(oe.label):a===null&&G(null)},[oe,a]);const Ge=(oe==null?void 0:oe.label)??X,xe=s.useRef(i);xe.current=i,s.useEffect(()=>{if(!w||!xe.current)return;const S=window.setTimeout(()=>{var te;return(te=xe.current)==null?void 0:te.call(xe,L.trim())},300);return()=>window.clearTimeout(S)},[L,w]);const Ee=s.useCallback(()=>{D(null),P("")},[]),kt=s.useCallback(()=>{d||(D(window.matchMedia(St).matches?"popover":"sheet"),P(""))},[d]);s.useEffect(()=>{if(I!=="popover")return;const S=te=>{var le;(le=f.current)!=null&&le.contains(te.target)||Ee()};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[I,Ee]),s.useEffect(()=>{var S;I==="popover"&&((S=T.current)==null||S.focus({preventScroll:!0}))},[I]);const it=S=>{S.isDisabled||(G(S.label),n(S.value),Ee())},B=s.useRef(!1);s.useEffect(()=>{var S;B.current&&!w&&((S=N.current)==null||S.focus()),B.current=w},[w]);const W=wt(N,j,{side:"bottom",align:"start",isOpen:w&&I==="popover"}),{activeIndex:ee,setActiveIndex:Qe,listRef:Oa,handleKeyDown:Ha}=Wt({count:K.length,isOpen:w,initialIndex:Math.max(e.findIndex(S=>S.value===a),0),onSelect:S=>{const te=K[S];te&&it(te)},onClose:Ee}),za=K.some(S=>!!S.description),Ae=I==="popover"&&!za&&K.length>is,{scrollRef:Ka,range:Fe,scrollToIndex:aa}=$a(K.length,{rowHeight:ba,isEnabled:Ae});s.useEffect(()=>{Ae&&aa(ee)},[ee,Ae,aa]);const Ua=S=>{Oa.current=S,Ka.current=S},qa=Ha,Ya=()=>{n(null),G(null)},na=o?null:t.jsxs("div",{className:O.combobox__search,children:[t.jsx(E.Search,{"aria-hidden":!0,className:O.combobox__searchIcon}),t.jsx("input",{ref:T,type:"text",role:"combobox",className:O.combobox__searchInput,value:L,placeholder:m.search,autoComplete:"off","aria-autocomplete":"list","aria-expanded":!0,"aria-controls":k,"aria-activedescendant":K[ee]?`${$}-option-${ee}`:void 0,"aria-label":m.search,onChange:S=>{P(S.target.value),Qe(0)},onKeyDown:qa}),c&&t.jsx(Jt,{size:"sm",label:""})]}),sa=S=>{const te=K.slice(Fe.start,Fe.end);return t.jsxs("ul",{ref:Ua,id:k,role:"listbox",className:x(O.combobox__list,S&&O["combobox__list--sheet"]),children:[Ae&&Fe.offset>0&&t.jsx("li",{"aria-hidden":!0,style:{height:Fe.offset}}),te.map((le,Xa)=>{const ct=Fe.start+Xa,Ga=ct===ee,Bt=le.value===a;return t.jsx("li",{children:t.jsxs("div",{id:`${$}-option-${ct}`,role:"option","data-index":ct,"aria-setsize":Ae?K.length:void 0,"aria-posinset":Ae?ct+1:void 0,"aria-selected":Bt,"aria-disabled":le.isDisabled,className:x(O.combobox__option,Ga&&O["combobox__option--active"],Bt&&O["combobox__option--selected"],le.isDisabled&&O["combobox__option--disabled"]),onMouseEnter:()=>Qe(ct),onClick:()=>it(le),children:[t.jsxs("span",{className:O.combobox__optionText,children:[t.jsx("span",{className:O.combobox__optionLabel,children:le.label}),le.description&&t.jsx("span",{className:O.combobox__optionDescription,children:le.description})]}),Bt&&t.jsx(E.CheckLg,{"aria-hidden":!0,className:O.combobox__check})]})},le.value)}),Ae&&Fe.end<K.length&&t.jsx("li",{"aria-hidden":!0,style:{height:(K.length-Fe.end)*ba}}),K.length===0&&t.jsx("li",{className:O.combobox__empty,children:c?m.loading:m.empty})]})};return t.jsxs("div",{ref:f,className:x(O.combobox,h),"data-testid":u,children:[t.jsxs("button",{ref:N,id:$,type:"button",className:x(O.combobox__trigger,!Ge&&O["combobox__trigger--empty"],w&&O["combobox__trigger--open"],y&&O["combobox__trigger--invalid"],p&&Ge&&!d&&O["combobox__trigger--clearable"]),disabled:d,"aria-haspopup":"listbox","aria-expanded":w,"aria-controls":w?k:void 0,"aria-label":r.placeholder,"aria-describedby":b,onClick:()=>w?Ee():kt(),children:[_&&t.jsx("span",{className:O.combobox__leadingIcon,"aria-hidden":!0,children:_}),t.jsx("span",{className:O.combobox__value,children:Ge??r.placeholder}),t.jsx(E.CaretDownFill,{"aria-hidden":!0,className:x(O.combobox__chevron,w&&O["combobox__chevron--open"])})]}),p&&Ge&&!d&&t.jsx("button",{type:"button",className:O.combobox__clear,"aria-label":m.clear,onClick:Ya,children:t.jsx(E.XLg,{"aria-hidden":!0})}),I==="popover"&&t.jsxs("div",{ref:j,className:O.combobox__panel,style:{...W.style,width:(ra=N.current)==null?void 0:ra.offsetWidth,visibility:W.isPositioned?void 0:"hidden"},children:[na,sa(!1)]}),I==="sheet"&&t.jsx(Vt,{title:r.placeholder,closeLabel:r.closeLabel??(g==null?void 0:g.close),onClose:Ee,toolbar:na??void 0,children:sa(!0)})]})},$s=s.memo(Ns),Es="hanui-segmented-qo2Bw",Cs="hanui-segmented__item-mqRNZ",Is="hanui-segmented__icon-C9CT-",Ds="hanui-segmented__label-NVXBv",Je={segmented:Es,"segmented--sm":"hanui-segmented--sm-7tUry","segmented--md":"hanui-segmented--md-PiSqt",segmented__item:Cs,"segmented__item--selected":"hanui-segmented__item--selected-r7CLj",segmented__icon:Is,segmented__label:Ds},Ts=({options:e,value:a,onChange:n,label:r,isIconOnly:o,size:i="md",className:c,testId:d})=>{const p=s.useRef(null),_=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 u=e.filter(v=>!v.isDisabled);if(u.length===0)return;const b=u.findIndex(v=>v.value===a),y=u[(b+h+u.length)%u.length];n(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--${i}`],c),"data-testid":d,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:x(Je.segmented__item,h&&Je["segmented__item--selected"]),onClick:()=>!h&&n(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)})})},Rs=s.memo(R(Ts,"SegmentedControl")),Ss="hanui-select-tiiPL",Ls="hanui-trigger-rHQJz",As="hanui-trigger__icon-apCcx",Fs="hanui-trigger__value-ioH7K",Ms="hanui-trigger__chevron-FtsIZ",Bs="hanui-panel-rGOOd",Ps="hanui-list-SOKf8",Os="hanui-option-ZDPef",Hs="hanui-option__label-SsoYB",zs="hanui-option__check-8CPSG",q={select:Ss,trigger:Ls,"trigger--empty":"hanui-trigger--empty-cuinb","trigger--open":"hanui-trigger--open-1nsvu","trigger--sm":"hanui-trigger--sm-Xnu1C",trigger__icon:As,trigger__value:Fs,trigger__chevron:Ms,"trigger__chevron--open":"hanui-trigger__chevron--open-1P2P-",panel:Bs,"panel--start":"hanui-panel--start-Fotwa","panel--end":"hanui-panel--end-ClVl2",list:Ps,"list--sheet":"hanui-list--sheet-BIjCb",option:Os,"option--active":"hanui-option--active-R4lLF","option--selected":"hanui-option--selected-glQMj","option--disabled":"hanui-option--disabled-h4rdd",option__label:Hs,option__check:zs},Ks=({options:e,value:a,onChange:n,label:r,placeholder:o,closeLabel:i,icon:c,size:d="md",align:p="start",isDisabled:_,id:l,className:h,testId:u,"aria-describedby":b,"aria-invalid":y})=>{const{labels:g}=H(),m=M("Select.placeholder",o,g==null?void 0:g.selectPlaceholder),v=s.useId(),$=l??v,k=`${$}-listbox`,f=B=>`${$}-option-${B}`,N=s.useRef(null),j=s.useRef(null),[T,I]=s.useState(null),D=T!==null,w=e.findIndex(B=>B.value===a),L=w>=0?e[w]:null,P=s.useCallback(()=>I(null),[]),X=s.useCallback(()=>{_||e.length===0||I(window.matchMedia(St).matches?"popover":"sheet")},[_,e.length]),G=B=>{B.isDisabled||(n(B.value),P())},K=s.useRef(!1);s.useEffect(()=>{var B;K.current&&!D&&((B=j.current)==null||B.focus()),K.current=D},[D]),s.useEffect(()=>{if(T!=="popover")return;const B=W=>{var ee;(ee=N.current)!=null&&ee.contains(W.target)||P()};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[T,P]);const{activeIndex:oe,setActiveIndex:Ge,listRef:xe,handleKeyDown:Ee}=Wt({count:e.length,isOpen:D,initialIndex:w>=0?w:0,onSelect:B=>{const W=e[B];W&&G(W)},onClose:P});s.useEffect(()=>{var B;T==="sheet"&&((B=xe.current)==null||B.focus({preventScroll:!0}))},[T,xe]);const kt=B=>{if(!D){["ArrowDown","ArrowUp","Enter"," "].includes(B.key)&&(B.preventDefault(),X());return}Ee(B)},it=B=>t.jsx("ul",{ref:xe,id:k,role:"listbox","aria-label":r,"aria-activedescendant":B&&e[oe]?f(oe):void 0,tabIndex:B?0:-1,className:x(q.list,B&&q["list--sheet"]),onKeyDown:B?kt:void 0,children:e.map((W,ee)=>{const Qe=W.value===a;return t.jsxs("li",{id:f(ee),role:"option","data-index":ee,"aria-selected":Qe,"aria-disabled":W.isDisabled,className:x(q.option,ee===oe&&q["option--active"],Qe&&q["option--selected"],W.isDisabled&&q["option--disabled"]),onMouseEnter:()=>Ge(ee),onClick:()=>G(W),children:[t.jsx("span",{className:q.option__label,children:W.label}),Qe&&t.jsx(E.CheckLg,{"aria-hidden":!0,className:q.option__check})]},W.value)})});return t.jsxs("span",{ref:N,className:x(q.select,h),"data-testid":u,children:[t.jsxs("button",{ref:j,id:$,type:"button",role:"combobox",className:x(q.trigger,q[`trigger--${d}`],!L&&q["trigger--empty"],D&&q["trigger--open"]),disabled:_,"aria-haspopup":"listbox","aria-expanded":D,"aria-controls":D?k:void 0,"aria-activedescendant":T==="popover"&&e[oe]?f(oe):void 0,"aria-label":r,"aria-describedby":b,"aria-invalid":y,onClick:()=>D?P():X(),onKeyDown:kt,children:[c&&t.jsx("span",{className:q.trigger__icon,"aria-hidden":!0,children:c}),t.jsx("span",{className:q.trigger__value,children:(L==null?void 0:L.label)??m}),t.jsx(E.CaretDownFill,{"aria-hidden":!0,className:x(q.trigger__chevron,D&&q["trigger__chevron--open"])})]}),T==="popover"&&t.jsx("div",{className:x(q.panel,q[`panel--${p}`]),children:it(!1)}),T==="sheet"&&t.jsx(Vt,{title:r,closeLabel:i??(g==null?void 0:g.close),onClose:P,children:it(!0)})]})},Us=s.memo(Ks),qs="hanui-checkbox-FaFCj",Ys="hanui-checkbox__input-nTHne",Xs="hanui-checkbox__body-VAEW2",Gs="hanui-checkbox__label-sSNZY",Qs="hanui-checkbox__hint-ish-J",ut={checkbox:qs,checkbox__input:Ys,checkbox__body:Xs,checkbox__label:Gs,checkbox__hint:Qs},Ws=s.forwardRef(({label:e,hint:a,className:n,testId:r,...o},i)=>t.jsxs("label",{className:x(ut.checkbox,n),"data-testid":r,children:[t.jsx("input",{ref:i,type:"checkbox",className:ut.checkbox__input,...o}),t.jsxs("span",{className:ut.checkbox__body,children:[t.jsx("span",{className:ut.checkbox__label,children:e}),a&&t.jsx("span",{className:ut.checkbox__hint,children:a})]})]})),Js=s.memo(R(Ws,"Checkbox")),Vs="hanui-switch__input-Q2UQ4",Zs="hanui-switch__label-gPZuO",er="hanui-switch__hint-NRuzC",tr="hanui-switch__track-3417m",ar="hanui-switch__thumb-1LHta",nr="hanui-switch__text-32uMY",Ie={switch:"hanui-switch-KLH29",switch__input:Vs,"switch--labelFirst":"hanui-switch--labelFirst-Grirk",switch__label:Zs,switch__hint:er,switch__track:tr,switch__thumb:ar,switch__text:nr},sr=s.forwardRef(({label:e,hint:a,isLabelFirst:n,className:r,id:o,testId:i,...c},d)=>t.jsxs("label",{className:x(Ie.switch,n&&Ie["switch--labelFirst"],r),"data-testid":i,children:[t.jsx("input",{ref:d,type:"checkbox",role:"switch",id:o,className:Ie.switch__input,...c}),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})]})]})),rr=s.memo(R(sr,"Switch")),or="hanui-radio-KoZak",ir="hanui-radio__input-gVMgh",cr="hanui-radio__body-oZWg6",lr="hanui-radio__label-d-5ce",dr="hanui-radio__hint-baVbs",ur="hanui-radio__count-OtkUM",Ve={radio:or,radio__input:ir,radio__body:cr,radio__label:lr,radio__hint:dr,radio__count:ur},_r=s.forwardRef(({label:e,hint:a,count:n,className:r,testId:o,...i},c)=>t.jsxs("label",{className:x(Ve.radio,r),"data-testid":o,children:[t.jsx("input",{ref:c,type:"radio",className:Ve.radio__input,...i}),t.jsxs("span",{className:Ve.radio__body,children:[t.jsx("span",{className:Ve.radio__label,children:e}),a&&t.jsx("span",{className:Ve.radio__hint,children:a})]}),z.isDefined(n)&&t.jsx("span",{className:Ve.radio__count,children:n})]})),hr=s.memo(R(_r,"Radio")),pr="hanui-radioCard-sndiC",mr="hanui-radioCard__input-6vuoD",br="hanui-radioCard__indicator--x9LT",gr="hanui-radioCard__body-CFqoi",Ze={radioCard:pr,radioCard__input:mr,"radioCard--selected":"hanui-radioCard--selected-Mi7ee",radioCard__indicator:br,"radioCard--disabled":"hanui-radioCard--disabled-YlYee",radioCard__body:gr},fr=({name:e,value:a,isSelected:n,isDisabled:r,onChange:o,children:i,className:c,id:d,testId:p})=>t.jsxs("label",{className:x(Ze.radioCard,n&&Ze["radioCard--selected"],r&&Ze["radioCard--disabled"],c),"data-testid":p,children:[t.jsx("input",{type:"radio",id:d,name:e,value:a,checked:n,disabled:r,onChange:()=>o(a),className:Ze.radioCard__input}),t.jsx("span",{className:Ze.radioCard__indicator,"aria-hidden":!0}),t.jsx("span",{className:Ze.radioCard__body,children:i})]}),xr=s.memo(fr),vr="hanui-range-RpDPh",yr="hanui-range__readout-itDMd",wr="hanui-range__separator-u-ZJX",jr="hanui-range__track-bCh5Y",kr="hanui-range__fill-VXMCE",Nr="hanui-range__input-TAN2I",$r="hanui-range__bounds-GIhFd",de={range:vr,"range--disabled":"hanui-range--disabled-13hlc",range__readout:yr,range__separator:wr,range__track:jr,range__fill:kr,range__input:Nr,range__bounds:$r},Er=({min:e,max:a,step:n=1,value:r,onChange:o,onCommit:i,formatValue:c=String,label:d,minLabel:p,maxLabel:_,isDisabled:l,className:h,testId:u})=>{var D,w;const{labels:b}=H(),y=M("RangeSlider.minLabel",p,(D=b==null?void 0:b.range)==null?void 0:D.min),g=M("RangeSlider.maxLabel",_,(w=b==null?void 0:b.range)==null?void 0:w.max),[m,v]=r,$=s.useCallback(L=>o([Math.min(L,v),v]),[v,o]),k=s.useCallback(L=>o([m,Math.max(L,m)]),[m,o]),f=s.useCallback(()=>i==null?void 0:i([m,v]),[m,v,i]),N=a-e,j=N===0?0:z.normalize(m-e,N),T=N===0?0:z.normalize(v-e,N),I=j>50;return t.jsxs("div",{className:x(de.range,l&&de["range--disabled"],h),role:"group","aria-label":d,"data-testid":u,children:[t.jsxs("div",{className:de.range__readout,children:[t.jsx("span",{className:de.range__value,children:c(m)}),t.jsx("span",{className:de.range__separator,"aria-hidden":!0,children:"—"}),t.jsx("span",{className:de.range__value,children:c(v)})]}),t.jsxs("div",{className:de.range__track,children:[t.jsx("span",{className:de.range__fill,style:{left:`${j}%`,right:`${100-T}%`},"aria-hidden":!0}),t.jsx("input",{type:"range",className:de.range__input,style:{zIndex:I?4:3},min:e,max:a,step:n,value:m,disabled:l,"aria-label":`${d} — ${y}`,"aria-valuetext":c(m),onChange:L=>$(Number(L.target.value)),onPointerUp:f,onKeyUp:f}),t.jsx("input",{type:"range",className:de.range__input,style:{zIndex:I?3:4},min:e,max:a,step:n,value:v,disabled:l,"aria-label":`${d} — ${g}`,"aria-valuetext":c(v),onChange:L=>k(Number(L.target.value)),onPointerUp:f,onKeyUp:f})]}),t.jsxs("div",{className:de.range__bounds,"aria-hidden":!0,children:[t.jsx("span",{children:c(e)}),t.jsx("span",{children:c(a)})]})]})},Cr=s.memo(Er),Ir="hanui-rating-neNnF",Dr="hanui-rating__legend-uYvFS",Tr="hanui-rating__stars-vJFLk",Rr="hanui-rating__star-BANFJ",Sr="hanui-rating__input-s2iiO",Lr="hanui-rating__srOnly-iSCoz",Ar="hanui-rating__caption-13KFX",ye={rating:Ir,"rating--disabled":"hanui-rating--disabled-ZKjHa",rating__legend:Dr,rating__stars:Tr,rating__star:Rr,"rating__star--filled":"hanui-rating__star--filled-L3AkT",rating__input:Sr,rating__srOnly:Lr,rating__caption:Ar},Fr=[1,2,3,4,5],Mr=({value:e,onChange:a,label:n,ratingLabels:r,formatStarCount:o,isDisabled:i,className:c,testId:d})=>{var y;const{labels:p}=H(),_=r??((y=p==null?void 0:p.rating)==null?void 0:y.scale),l=s.useId(),[h,u]=s.useState(null),b=h??e;return t.jsxs("fieldset",{className:x(ye.rating,i&&ye["rating--disabled"],c),disabled:i,"data-testid":d,children:[t.jsx("legend",{className:ye.rating__legend,children:n}),t.jsx("div",{className:ye.rating__stars,onMouseLeave:()=>u(null),children:Fr.map(g=>{var m;return t.jsxs("label",{className:x(ye.rating__star,b!==null&&g<=b&&ye["rating__star--filled"]),onMouseEnter:()=>u(g),children:[t.jsx("input",{type:"radio",name:l,value:g,checked:e===g,onChange:()=>a(g),className:ye.rating__input}),t.jsx(E.StarFill,{"aria-hidden":!0}),t.jsxs("span",{className:ye.rating__srOnly,children:[Tt("RatingInput.formatStarCount",o??((m=p==null?void 0:p.rating)==null?void 0:m.starCount),g)," ","— ",(_==null?void 0:_[g])??""]})]},g)})}),b!==null&&t.jsx("span",{className:ye.rating__caption,"aria-hidden":!0,children:(_==null?void 0:_[b])??""})]})},Br=s.memo(Mr),Pr="hanui-stepper-8s5Ih",Or="hanui-stepper__button-h6g7d",Hr="hanui-stepper__input-OQh5v",_t={stepper:Pr,stepper__button:Or,stepper__input:Hr,"stepper--sm":"hanui-stepper--sm-RvrBP","stepper--md":"hanui-stepper--md-Cnjei"},zr=({value:e,onChange:a,label:n,decreaseLabel:r,increaseLabel:o,min:i=1,max:c=99,isDisabled:d,size:p="md",className:_,testId:l})=>{var m,v,$;const{labels:h}=H(),u=M("QuantityStepper.label",n,(m=h==null?void 0:h.quantity)==null?void 0:m.label),[b,y]=s.useState(null),g=k=>{y(null);const f=Number(k.replace(/\D/g,""));f&&a(Math.min(Math.max(f,i),c))};return t.jsxs("div",{className:x(_t.stepper,_t[`stepper--${p}`],_),role:"group","aria-label":u,"data-testid":l,children:[t.jsx("button",{type:"button",className:_t.stepper__button,onClick:()=>a(Math.max(e-1,i)),disabled:d||e<=i,"aria-label":M("QuantityStepper.decreaseLabel",r,(v=h==null?void 0:h.quantity)==null?void 0:v.decrease),children:t.jsx(E.DashLg,{"aria-hidden":!0})}),t.jsx("input",{className:_t.stepper__input,value:b??String(e),onChange:k=>y(k.target.value.replace(/\D/g,"").slice(0,2)),onBlur:k=>g(k.target.value),onKeyDown:k=>{k.key==="Enter"&&(k.preventDefault(),g(k.target.value))},inputMode:"numeric",disabled:d,"aria-label":`${u} (${i}-${c})`}),t.jsx("button",{type:"button",className:_t.stepper__button,onClick:()=>a(Math.min(e+1,c)),disabled:d||e>=c,"aria-label":M("QuantityStepper.increaseLabel",o,($=h==null?void 0:h.quantity)==null?void 0:$.increase),children:t.jsx(E.PlusLg,{"aria-hidden":!0})})]})},Kr=s.memo(zr),Ur="hanui-checkbox--dvpB",qr={checkbox:Ur},Yr=s.forwardRef(({label:e,className:a,testId:n,...r},o)=>t.jsx("input",{ref:o,type:"checkbox","aria-label":e,className:x(qr.checkbox,a),"data-testid":n,...r})),Xr=s.memo(R(Yr,"TableCheckbox")),Gr="hanui-wrapper-IAI4E",Qr="hanui-wrapper__prefix-XKDlV",Wr="hanui-wrapper__suffix-lT35q",Jr="hanui-input-pIS2u",Be={wrapper:Gr,wrapper__prefix:Qr,wrapper__suffix:Wr,input:Jr,"input--hasPrefix":"hanui-input--hasPrefix-nsrWh","input--hasSuffix":"hanui-input--hasSuffix-OrE5A","input--technical":"hanui-input--technical---DCD"},Vr=s.forwardRef(({prefix:e,suffix:a,isTechnical:n,className:r,testId:o,...i},c)=>t.jsxs("span",{className:x(Be.wrapper,r),children:[e&&t.jsx("span",{className:Be.wrapper__prefix,"aria-hidden":!0,children:e}),t.jsx("input",{ref:c,className:x(Be.input,!!e&&Be["input--hasPrefix"],!!a&&Be["input--hasSuffix"],n&&Be["input--technical"]),"data-testid":o,...i}),a&&t.jsx("span",{className:Be.wrapper__suffix,"aria-hidden":!0,children:a})]})),Zt=s.memo(R(Vr,"Input")),Zr="hanui-password-viMea",eo="hanui-password__field-WI1h1",to="hanui-password__toggle-O6R2a",Kt={password:Zr,password__field:eo,password__toggle:to},ao=({className:e,showLabel:a,hideLabel:n,...r})=>{const{labels:o}=H(),[i,c]=s.useState(!1),d=i?M("PasswordInput.hideLabel",n,o==null?void 0:o.passwordHide):M("PasswordInput.showLabel",a,o==null?void 0:o.passwordShow);return t.jsxs("span",{className:Kt.password,children:[t.jsx(Zt,{...r,className:`${Kt.password__field} ${e??""}`.trim(),type:i?"text":"password"}),t.jsx(he,{className:Kt.password__toggle,icon:i?t.jsx(E.EyeSlashFill,{"aria-hidden":!0}):t.jsx(E.EyeFill,{"aria-hidden":!0}),label:d,variant:"ghost",size:"sm",onClick:()=>c(p=>!p)})]})},no=s.memo(R(ao,"PasswordInput")),so="hanui-tagInput-QraZR",ro="hanui-tagInput__field-HeWrC",oo="hanui-tagInput__tag-D-ZWB",io="hanui-tagInput__remove-bpjGG",Pe={tagInput:so,tagInput__field:ro,"tagInput--invalid":"hanui-tagInput--invalid-NQogL","tagInput--disabled":"hanui-tagInput--disabled--AJFF",tagInput__tag:oo,"tagInput__tag--duplicate":"hanui-tagInput__tag--duplicate-3-FMF",tagInput__remove:io},co=({values:e,onChange:a,label:n,placeholder:r,removeLabel:o,separators:i=["Enter",","],maxTags:c,isDisabled:d,id:p,className:_,testId:l,"aria-describedby":h,"aria-invalid":u})=>{const b=s.useId(),y=p??b,g=s.useRef(null),m=Rt(),[v,$]=s.useState(""),[k,f]=s.useState(null),N=c!==void 0&&e.length>=c,j=D=>{const w=D.trim();if(w!==""){if(e.includes(w)){f(w),window.setTimeout(()=>f(null),1e3),m(`${w} zaten ekli`,"assertive"),$("");return}N||(a([...e,w]),$(""),m(`${w} eklendi`))}},T=D=>{a(e.filter(w=>w!==D)),m(`${D} kaldırıldı`)},I=D=>{if(i.includes(D.key)){D.preventDefault(),j(v);return}D.key==="Backspace"&&v===""&&e.length>0&&T(e[e.length-1])};return t.jsxs("div",{className:x(Pe.tagInput,d&&Pe["tagInput--disabled"],u&&Pe["tagInput--invalid"],_),"data-testid":l,onClick:()=>{var D;return(D=g.current)==null?void 0:D.focus()},children:[e.map(D=>t.jsxs("span",{className:x(Pe.tagInput__tag,k===D&&Pe["tagInput__tag--duplicate"]),children:[D,t.jsx("button",{type:"button",className:Pe.tagInput__remove,"aria-label":`${D} — ${o}`,disabled:d,onClick:w=>{w.stopPropagation(),T(D)},children:t.jsx(E.XLg,{"aria-hidden":!0})})]},D)),t.jsx("input",{ref:g,id:y,type:"text",className:Pe.tagInput__field,value:v,placeholder:e.length===0?r:void 0,"aria-label":n,"aria-describedby":h,"aria-invalid":u,disabled:d||N,onChange:D=>$(D.target.value),onKeyDown:I,onBlur:()=>j(v)})]})},lo=s.memo(R(co,"TagInput")),uo="hanui-textarea-zwJcB",_o="hanui-wrapper-O8aJA",ho="hanui-counter-bHVh3",ht={textarea:uo,wrapper:_o,"textarea--autoSize":"hanui-textarea--autoSize--F8yj",counter:ho,"counter--near":"hanui-counter--near-AZAQm"},po=s.forwardRef(({className:e,rows:a=4,isAutoSize:n,maxRows:r=12,hasCounter:o,maxLength:i,value:c,defaultValue:d,onChange:p,testId:_,...l},h)=>{const u=s.useRef(null),[b,y]=s.useState(String(d??"").length),g=c===void 0?b:String(c).length,m=s.useCallback($=>{u.current=$,typeof h=="function"?h($):h&&(h.current=$)},[h]);s.useLayoutEffect(()=>{const $=u.current;if(!n||!$)return;$.style.height="auto";const f=(Number.parseFloat(getComputedStyle($).lineHeight)||20)*r;$.style.height=`${Math.min($.scrollHeight,f)}px`,$.style.overflowY=$.scrollHeight>f?"auto":"hidden"},[n,r,c,g]);const v=i!==void 0&&g>=i*.9;return t.jsxs("div",{className:x(ht.wrapper,e),"data-testid":_,children:[t.jsx("textarea",{ref:m,rows:a,className:x(ht.textarea,n&&ht["textarea--autoSize"]),maxLength:i,value:c,defaultValue:d,onChange:$=>{y($.target.value.length),p==null||p($)},...l}),o&&i!==void 0&&t.jsxs("span",{className:x(ht.counter,v&&ht["counter--near"]),"aria-hidden":!0,children:[g," / ",i]})]})}),Aa=s.memo(R(po,"Textarea")),mo="hanui-dateField-UnUwe",bo="hanui-range-nGuRH",go="hanui-range__row--debA",fo="hanui-range__separator-fEqqr",xo="hanui-range__field-tmoNH",vo="hanui-range__summary-L6v1T",Ue={dateField:mo,range:bo,range__row:go,range__separator:fo,range__field:xo,range__summary:vo},Yt=s.forwardRef(({type:e="date",className:a,testId:n,...r},o)=>t.jsx("input",{ref:o,type:e,className:x(Ue.dateField,a),"data-testid":n,...r})),yo=s.memo(R(Yt,"DateField")),wo=({value:e,onChange:a,startLabel:n,endLabel:r,separator:o="–",min:i,max:c,isSummaryVisible:d,isDisabled:p,className:_,testId:l})=>{const{labels:h}=H(),u=(()=>{if(!d||!(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(Ue.range,_),"data-testid":l,children:[t.jsxs("div",{className:Ue.range__row,children:[t.jsx(Yt,{className:Ue.range__field,"aria-label":n,value:e.start,min:i,max:e.end||c,disabled:p,onChange:b=>a({...e,start:b.target.value})}),t.jsx("span",{className:Ue.range__separator,"aria-hidden":!0,children:o}),t.jsx(Yt,{className:Ue.range__field,"aria-label":r,value:e.end,min:e.start||i,max:c,disabled:p,onChange:b=>a({...e,end:b.target.value})})]}),u&&t.jsx("span",{className:Ue.range__summary,children:u})]})},jo=R(s.memo(wo),"DateRange"),ko="hanui-field-KKvre",No="hanui-field__label-9dlYd",$o="hanui-field__required-hbDJk",Eo="hanui-field__srOnly-2WQFH",Co="hanui-field__hint-SQPiL",Io="hanui-field__error-gLlZ-",Do="hanui-field__errorIcon-uA3o8",De={field:ko,field__label:No,"field__label--hidden":"hanui-field__label--hidden-ufuVt",field__required:$o,field__srOnly:Eo,field__hint:Co,field__error:Io,field__errorIcon:Do},To=({label:e,children:a,hint:n,error:r,isRequired:o,requiredLabel:i,isLabelHidden:c,className:d})=>{const{labels:p}=H(),_=s.useId(),l=`${_}-error`,h=`${_}-hint`;return t.jsxs("div",{className:x(De.field,d),children:[t.jsxs("label",{htmlFor:_,className:x(De.field__label,c&&De["field__label--hidden"]),children:[e,o&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:De.field__required,"aria-hidden":!0,children:"*"}),t.jsx("span",{className:De.field__srOnly,children:M("Field.requiredLabel",i,p==null?void 0:p.required)})]})]}),a({id:_,required:o||void 0,"aria-invalid":r?!0:void 0,"aria-describedby":[r&&l,n&&h].filter(Boolean).join(" ")||void 0}),r&&t.jsxs("p",{id:l,className:De.field__error,role:"alert",children:[t.jsx(E.ExclamationCircleFill,{"aria-hidden":!0,className:De.field__errorIcon}),r]}),n&&t.jsx("p",{id:h,className:De.field__hint,children:n})]})},Fa=s.memo(To),Ro="hanui-progress-99MrX",So="hanui-progress__track-Qbp9t",Lo="hanui-progress__fill-Bam55",Ao="hanui-progress__value-3FYxj",Fo="hanui-circle-9cn2w",Mo="hanui-circle__svg-0IwkR",Bo="hanui-circle__track-zY2qc",Po="hanui-circle__fill-Jbde6",Oo="hanui-circle__label-A3nJB",Z={progress:Ro,progress__track:So,"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:Lo,"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:Ao,circle:Fo,circle__svg:Mo,circle__track:Bo,circle__fill:Po,"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:Oo},Ma=(e,a)=>!Number.isFinite(e)||!Number.isFinite(a)||a<=0?0:Math.min(100,Math.max(0,e/a*100)),Ho=({value:e,max:a=100,label:n,valueText:r,isValueVisible:o,tone:i="brand",size:c="md",className:d,testId:p})=>{const _=e===void 0,l=_?0:Ma(e,a);return t.jsxs("div",{className:x(Z.progress,d),"data-testid":p,children:[t.jsx("div",{role:"progressbar","aria-label":n,"aria-valuenow":_?void 0:Math.round(l),"aria-valuemin":_?void 0:0,"aria-valuemax":_?void 0:100,"aria-valuetext":_?void 0:r,className:x(Z.progress__track,Z[`progress__track--${c}`],_&&Z["progress__track--indeterminate"]),children:t.jsx("span",{className:x(Z.progress__fill,Z[`progress__fill--${i}`]),style:_?void 0:{inlineSize:`${l}%`}})}),o&&!_&&t.jsx("span",{className:Z.progress__value,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},Ba=s.memo(R(Ho,"Progress")),zo=({value:e,max:a=100,label:n,valueText:r,isValueVisible:o,tone:i="brand",size:c=44,className:d,testId:p})=>{const _=e===void 0,l=_?25:Ma(e,a),h=Math.max(3,Math.round(c*.1)),u=(c-h)/2,b=2*Math.PI*u;return t.jsxs("div",{className:x(Z.circle,_&&Z["circle--indeterminate"],d),style:{width:c,height:c},"data-testid":p,children:[t.jsxs("svg",{className:Z.circle__svg,width:c,height:c,viewBox:`0 0 ${c} ${c}`,role:"progressbar","aria-label":n,"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:Z.circle__track,cx:c/2,cy:c/2,r:u,fill:"none",strokeWidth:h}),t.jsx("circle",{className:x(Z.circle__fill,Z[`circle__fill--${i}`]),cx:c/2,cy:c/2,r:u,fill:"none",strokeWidth:h,strokeDasharray:b,strokeDashoffset:b*(1-l/100)})]}),o&&!_&&t.jsx("span",{className:Z.circle__label,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},Ko=R(s.memo(zo),"ProgressCircle"),Uo="hanui-upload-v1pRY",qo="hanui-upload__drop-OpNbO",Yo="hanui-upload__input-Tcg9-",Xo="hanui-upload__icon-KpMkq",Go="hanui-upload__label-M4HJb",Qo="hanui-upload__drag-ewSQw",Wo="hanui-upload__hint-MZRJ6",Jo="hanui-upload__error-7GkCC",Vo="hanui-upload__list-lbViQ",Zo="hanui-upload__file-Znp1Q",ei="hanui-upload__fileText-EtJcs",ti="hanui-upload__fileName-ArF8-",ai="hanui-upload__fileMeta-i6sO1",ni="hanui-upload__progress-JY2a5",Y={upload:Uo,upload__drop:qo,upload__input:Yo,"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:Xo,upload__label:Go,upload__drag:Qo,upload__hint:Wo,upload__error:Jo,upload__list:Vo,upload__file:Zo,"upload__file--error":"hanui-upload__file--error-wpbtA",upload__fileText:ei,upload__fileName:ti,upload__fileMeta:ai,upload__progress:ni},ga=e=>e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`,si=({files:e,onSelect:a,onRemove:n,label:r,hint:o,accept:i,isMultiple:c,maxSize:d,removeLabel:p,dropLabel:_,sizeErrorText:l="{name} çok büyük (en fazla {max}).",isDisabled:h,error:u,children:b,className:y,testId:g})=>{const m=s.useId(),v=s.useId(),$=s.useRef(null),k=Rt(),[f,N]=s.useState(!1),[j,T]=s.useState([]),I=w=>{if(!w||w.length===0)return;const L=[...w],P=d===void 0?[]:L.filter(K=>K.size>d),X=L.filter(K=>!P.includes(K)),G=P.map(K=>l.replace("{name}",K.name).replace("{max}",ga(d??0)));T(G),X.length>0&&(a(X),k(`${X.length} dosya eklendi`)),G.length>0&&k(G.join(" "),"assertive")},D=w=>{w.preventDefault(),N(!1),!h&&I(w.dataTransfer.files)};return t.jsxs("div",{className:x(Y.upload,y),"data-testid":g,children:[t.jsxs("label",{htmlFor:m,className:x(Y.upload__drop,f&&Y["upload__drop--dragging"],h&&Y["upload__drop--disabled"],u&&Y["upload__drop--invalid"]),onDragOver:w=>{w.preventDefault(),h||N(!0)},onDragLeave:()=>N(!1),onDrop:D,children:[t.jsx(E.CloudArrowUpFill,{"aria-hidden":!0,className:Y.upload__icon}),t.jsx("span",{className:Y.upload__label,children:r}),t.jsx("span",{className:Y.upload__drag,children:_}),o&&t.jsx("span",{id:v,className:Y.upload__hint,children:o}),t.jsx("input",{ref:$,id:m,type:"file",className:Y.upload__input,accept:i,multiple:c,disabled:h,"aria-describedby":o?v:void 0,"aria-invalid":u?!0:void 0,onChange:w=>{I(w.target.files),w.target.value=""}})]}),u&&t.jsxs("p",{className:Y.upload__error,role:"alert",children:[t.jsx(E.ExclamationCircleFill,{"aria-hidden":!0}),u]}),j.map(w=>t.jsxs("p",{className:Y.upload__error,role:"alert",children:[t.jsx(E.ExclamationCircleFill,{"aria-hidden":!0}),w]},w)),e.length>0&&t.jsx("ul",{className:Y.upload__list,children:e.map(w=>t.jsxs("li",{className:x(Y.upload__file,w.error&&Y["upload__file--error"]),children:[t.jsxs("span",{className:Y.upload__fileText,children:[t.jsx("span",{className:Y.upload__fileName,children:w.name}),t.jsx("span",{className:Y.upload__fileMeta,children:w.error??ga(w.size)})]}),w.progress!==void 0&&t.jsx(Ba,{value:w.progress,label:`${w.name} yükleniyor`,size:"sm",className:Y.upload__progress}),t.jsx(he,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:`${w.name} — ${p}`,variant:"ghost",size:"sm",onClick:()=>n(w.id)})]},w.id))}),b]})},ri=s.memo(R(si,"FileUpload")),oi="hanui-alert-gHI-9",ii="hanui-alert__icon-DhiCT",ci="hanui-alert__body-52-z2",li="hanui-alert__title-I8BAh",di="hanui-alert__content-lhBEo",ui="hanui-alert__action-1mTje",Oe={alert:oi,alert__icon:ii,alert__body:ci,alert__title:li,alert__content:di,alert__action:ui,"alert--info":"hanui-alert--info-lsAVw","alert--success":"hanui-alert--success-RMJR6","alert--warning":"hanui-alert--warning-Rkgln","alert--danger":"hanui-alert--danger-9ei0Y"},_i={info:t.jsx(E.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(E.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(E.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(E.XCircleFill,{"aria-hidden":!0})},hi=({children:e,tone:a="info",title:n,action:r,className:o,testId:i})=>t.jsxs("div",{className:x(Oe.alert,Oe[`alert--${a}`],o),role:a==="danger"||a==="warning"?"alert":void 0,"data-testid":i,children:[t.jsx("span",{className:Oe.alert__icon,children:_i[a]}),t.jsxs("div",{className:Oe.alert__body,children:[n&&t.jsx("strong",{className:Oe.alert__title,children:n}),t.jsx("div",{className:Oe.alert__content,children:e})]}),r&&t.jsx("div",{className:Oe.alert__action,children:r})]}),pi=s.memo(hi),mi="hanui-avatar-qoh3P",bi="hanui-avatar__image-uAyAX",Et={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"},gi=(e,a)=>{const n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return"?";const r=n.length===1?n[0].slice(0,2):`${n[0][0]}${n[n.length-1][0]}`;return a?r.toLocaleUpperCase(a):r.toLocaleUpperCase()},fi=(e,a)=>{let n=5381;for(let r=0;r<e.length;r+=1)n=n*33^e.charCodeAt(r);return Math.abs(n)%a},xi=6,vi=({name:e,imageUrl:a,locale:n,size:r="md",className:o,testId:i})=>{const{labels:c}=H();return t.jsx("span",{className:x(Et.avatar,Et[`avatar--${r}`],!a&&Et[`avatar--tone-${fi(e,xi)}`],o),"aria-hidden":!0,"data-testid":i,children:a?t.jsx("img",{className:Et.avatar__image,src:a,alt:""}):gi(e,n??(c==null?void 0:c.locale))})},yi=s.memo(vi),wi="hanui-badge-uLAaI",ji="hanui-badge__icon-R2goZ",Ct={badge:wi,badge__icon:ji,"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:n="soft",icon:r,className:o,testId:i})=>t.jsxs("span",{className:x(Ct.badge,Ct[`badge--${a}`],Ct[`badge--${n}`],o),"data-testid":i,children:[r&&t.jsx("span",{className:Ct.badge__icon,children:r}),e]}),Ni=s.memo(ki),$i="hanui-breadcrumb-amB9n",Ei="hanui-breadcrumb__item-Icv1S",Ci="hanui-breadcrumb__link-eVkPq",Ii="hanui-breadcrumb__current-8XjhU",Di="hanui-breadcrumb__separator-vvaUi",pt={breadcrumb:$i,breadcrumb__item:Ei,breadcrumb__link:Ci,breadcrumb__current:Ii,breadcrumb__separator:Di},Ti=({items:e,label:a,linkProps:n,className:r,testId:o})=>{const{labels:i}=H();return t.jsx("nav",{className:r,"aria-label":M("Breadcrumb.label",a,i==null?void 0:i.breadcrumb),"data-testid":o,children:t.jsx("ol",{className:x(pt.breadcrumb),children:e.map((c,d)=>{const p=d===e.length-1;return t.jsxs("li",{className:pt.breadcrumb__item,children:[c.href&&!p?t.jsx(fe,{href:c.href,className:pt.breadcrumb__link,...n,children:c.label}):t.jsx("span",{className:pt.breadcrumb__current,"aria-current":"page",children:c.label}),!p&&t.jsx(E.CaretRightFill,{"aria-hidden":!0,className:pt.breadcrumb__separator})]},`${c.label}-${d}`)})})})},Ri=s.memo(Ti),Si="hanui-card-CaHUG",Li="hanui-media__frame-eBv-s",Ai="hanui-media-eggk5",Fi="hanui-media__link-ujyVV",Mi="hanui-overlay-AVMTX",Bi="hanui-body-DyI-6",Pi="hanui-footer-2WNCZ",be={card:Si,"card--interactive":"hanui-card--interactive-C1pXZ",media__frame:Li,media:Ai,media__link:Fi,"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:Mi,"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:Bi,footer:Pi},Oi=({children:e,isInteractive:a,as:n="div",className:r,testId:o})=>t.jsx(n,{className:x(be.card,a&&be["card--interactive"],r),"data-testid":o,children:e}),Hi=(e,a)=>e??(a===!1?"cover":"contain"),zi=R(s.memo(({children:e,ratio:a=1,href:n,linkProps:r,fit:o,isContained:i,className:c})=>{const d=t.jsx("span",{className:x(be.media__frame,be[`media__frame--${Hi(o,i)}`]),style:{aspectRatio:a},children:e});return t.jsx("div",{className:x(be.media,c),children:n?t.jsx(fe,{href:n,className:be.media__link,tabIndex:-1,"aria-hidden":!0,...r,children:d}):d})}),"CardMedia"),Ki=R(s.memo(({children:e,position:a="top-left",className:n})=>t.jsx("div",{className:x(be.overlay,be[`overlay--${a}`],n),children:e})),"CardOverlay"),Ui=R(s.memo(({children:e,className:a})=>t.jsx("div",{className:x(be.body,a),children:e})),"CardBody"),qi=R(s.memo(({children:e,className:a})=>t.jsx("div",{className:x(be.footer,a),children:e})),"CardFooter"),Yi=s.memo(Oi),Xi="hanui-carousel-GJXkW",Gi="hanui-carousel__controls-hm5ij",Qi="hanui-carousel__arrowIcon-adFey",Wi="hanui-carousel__track-mAux5",Ji="hanui-carousel__dots-iU8RJ",Vi="hanui-carousel__dot-JTLCB",Te={carousel:Xi,carousel__controls:Gi,carousel__arrowIcon:Qi,carousel__track:Wi,carousel__dots:Ji,carousel__dot:Vi,"carousel__dot--active":"hanui-carousel__dot--active-riNMm"},Zi=({children:e,label:a,previousLabel:n,nextLabel:r,formatDotLabel:o,itemMinWidth:i=240,className:c,testId:d})=>{const p=s.useRef(null),[_,l]=s.useState(!1),[h,u]=s.useState(!1),[b,y]=s.useState(0),[g,m]=s.useState(1),[v,$]=s.useState(!1),k=s.useCallback(()=>{const N=p.current;if(!N)return;const{scrollLeft:j,scrollWidth:T,clientWidth:I}=N;l(j>1),u(j+I<T-1),y(I>0?Math.round(j/I):0),m(I>0?Math.max(1,Math.ceil(T/I)):1),$(T>I&&N.querySelector("a, button, input, select, textarea, [tabindex]")===null)},[]);s.useEffect(()=>{const N=p.current;if(!N)return;k(),N.addEventListener("scroll",k,{passive:!0});const j=typeof ResizeObserver>"u"?null:new ResizeObserver(k);return j==null||j.observe(N),()=>{N.removeEventListener("scroll",k),j==null||j.disconnect()}},[k,e]);const f=N=>{var j;return(j=p.current)==null?void 0:j.scrollBy({left:N*p.current.clientWidth,behavior:"smooth"})};return t.jsxs("section",{className:x(Te.carousel,c),"aria-label":a,"data-testid":d,children:[t.jsxs("div",{className:Te.carousel__controls,children:[t.jsx(he,{icon:t.jsx(E.CaretLeftFill,{"aria-hidden":!0,className:Te.carousel__arrowIcon}),label:n,variant:"outline",size:"sm",disabled:!_,onClick:()=>f(-1)}),t.jsx(he,{icon:t.jsx(E.CaretRightFill,{"aria-hidden":!0,className:Te.carousel__arrowIcon}),label:r,variant:"outline",size:"sm",disabled:!h,onClick:()=>f(1)})]}),t.jsx("div",{ref:p,className:Te.carousel__track,style:{"--hanui-carousel-item":`${i}px`},tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?a:void 0,children:e}),o&&g>1&&t.jsx("div",{className:Te.carousel__dots,children:Array.from({length:g},(N,j)=>t.jsx("button",{type:"button",className:x(Te.carousel__dot,j===b&&Te["carousel__dot--active"]),"aria-label":o(j+1,g),"aria-current":j===b?"true":void 0,onClick:()=>{var T;return(T=p.current)==null?void 0:T.scrollTo({left:j*p.current.clientWidth,behavior:"smooth"})}},j))})]})},ec=s.memo(R(Zi,"Carousel")),tc="hanui-copy-Yht5s",ac="hanui-copy__code-CYlCA",nc="hanui-copy__button-GDdH6",sc="hanui-copy__srOnly-WMTNN",et={copy:tc,"copy--sm":"hanui-copy--sm-Tjqws",copy__code:ac,"copy--md":"hanui-copy--md-00rhU",copy__button:nc,"copy__button--done":"hanui-copy__button--done-MujUR",copy__srOnly:sc},rc=1600,oc=({value:e,copyLabel:a,copiedLabel:n,copiedAnnouncement:r,size:o="sm",isReadOnly:i,className:c,testId:d})=>{var g,m,v;const{labels:p}=H(),[_,l]=s.useState(!1),h=s.useRef(null),u=s.useRef(void 0);s.useEffect(()=>()=>window.clearTimeout(u.current),[]);const b=s.useCallback(()=>{const $=h.current;if(!$)return;const k=document.createRange();k.selectNodeContents($);const f=window.getSelection();f==null||f.removeAllRanges(),f==null||f.addRange(k)},[]),y=s.useCallback(async()=>{try{await navigator.clipboard.writeText(e),l(!0),u.current=window.setTimeout(()=>l(!1),rc)}catch{b()}},[e,b]);return t.jsxs("span",{className:x(et.copy,et[`copy--${o}`],c),"data-testid":d,children:[t.jsx("span",{className:et.copy__code,ref:h,children:e}),!i&&t.jsx("button",{type:"button",className:x(et.copy__button,_&&et["copy__button--done"]),onClick:y,"aria-label":_?n??Tt("CopyField.copiedLabel",(g=p==null?void 0:p.copyField)==null?void 0:g.copied,e):a??Tt("CopyField.copyLabel",(m=p==null?void 0:p.copyField)==null?void 0:m.copy,e),children:_?t.jsx(E.ClipboardCheckFill,{"aria-hidden":!0}):t.jsx(E.ClipboardFill,{"aria-hidden":!0})}),t.jsx("span",{"aria-live":"polite",className:et.copy__srOnly,children:_?M("CopyField.copiedAnnouncement",r,(v=p==null?void 0:p.copyField)==null?void 0:v.announcement):""})]})},ic=s.memo(oc),cc="hanui-divider-RJqCw",lc="hanui-divider__label-M8sBA",It={divider:cc,"divider--labelled":"hanui-divider--labelled-jZH1-",divider__label:lc},dc=({label:e,className:a})=>e?t.jsx("div",{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)}),uc=s.memo(dc),_c="hanui-directory-badEd",hc="hanui-group-i6An9",pc="hanui-group__header-rc19c",mc="hanui-group__label-vQTcs",bc="hanui-group__link-es5V7",gc="hanui-group__meta-LtC-u",fc="hanui-group__list-YxBCG",xc="hanui-row-3LH7X",vc="hanui-row__name-75Wbq",yc="hanui-row__media-AxZEh",wc="hanui-row__marker-RYHb-",jc="hanui-jump-vpGwB",kc="hanui-jump__link-rRnT6",se={directory:_c,group:hc,group__header:pc,group__label:mc,group__link:bc,group__meta:gc,group__list:fc,row:xc,row__name:vc,row__media:yc,row__marker:wc,jump:jc,jump__link:kc},Nc=({children:e,className:a})=>t.jsx("div",{className:x(se.directory,a),children:e}),$c=R(s.memo(({label:e,href:a,linkProps:n,meta:r,children:o,id:i})=>t.jsxs("section",{className:se.group,id:i,children:[t.jsxs("header",{className:se.group__header,children:[t.jsx("h2",{className:se.group__label,children:a?t.jsx(fe,{href:a,className:se.group__link,...n,children:e}):e}),r&&t.jsx("span",{className:se.group__meta,children:r})]}),t.jsx("ul",{className:se.group__list,children:o})]})),"DirectoryGroup"),Ec=R(s.memo(({href:e,name:a,media:n,marker:r,linkProps:o,className:i})=>t.jsx("li",{children:t.jsxs(fe,{href:e,className:x(se.row,i),...o,children:[n&&t.jsx("span",{className:se.row__media,children:n}),t.jsx("span",{className:se.row__name,children:a}),r&&t.jsx("span",{className:se.row__marker,children:r})]})})),"DirectoryRow"),Cc=R(s.memo(({labels:e,toId:a,label:n})=>{const{labels:r}=H();return t.jsx("nav",{className:se.jump,"aria-label":M("DirectoryJump.label",n,r==null?void 0:r.directoryJump),children:e.map(o=>t.jsx("a",{href:`#${a(o)}`,className:se.jump__link,children:o},o))})}),"DirectoryJump"),Ic=s.memo(Nc),Dc="hanui-empty-47qZR",Tc="hanui-empty__icon-okfEc",Rc="hanui-empty__title-Z7Dzd",Sc="hanui-empty__description-6BoCk",Lc="hanui-empty__actions-ARk-k",He={empty:Dc,empty__icon:Tc,empty__title:Rc,empty__description:Sc,empty__actions:Lc,"empty--sm":"hanui-empty--sm-QXaXx","empty--error":"hanui-empty--error-4BBgp"},Ac=({title:e,description:a,icon:n,action:r,secondaryAction:o,tone:i="empty",size:c="md",className:d,testId:p})=>t.jsxs("div",{className:x(He.empty,He[`empty--${c}`],He[`empty--${i}`],d),role:i==="error"?"alert":void 0,"data-testid":p,children:[n&&t.jsx("span",{className:He.empty__icon,children:n}),t.jsx("h3",{className:He.empty__title,children:e}),a&&t.jsx("p",{className:He.empty__description,children:a}),(r||o)&&t.jsxs("div",{className:He.empty__actions,children:[r,o]})]}),Fc=s.memo(Ac),Mc="hanui-header-yJwus",Bc="hanui-header__top-UK4si",Pc="hanui-header__breadcrumb-A2j0i",Oc="hanui-header__text-HIo8U",Hc="hanui-header__eyebrow-dZ9Zc",zc="hanui-header__titleRow-KgDZj",Kc="hanui-header__title-s1giF",Uc="hanui-header__meta-UxuaD",qc="hanui-header__description-NXbbC",Yc="hanui-header__actions-aShpt",pe={header:Mc,header__top:Bc,header__breadcrumb:Pc,header__text:Oc,header__eyebrow:Hc,header__titleRow:zc,header__title:Kc,header__meta:Uc,header__description:qc,header__actions:Yc},Xc=({title:e,eyebrow:a,description:n,actions:r,breadcrumb:o,meta:i,children:c,as:d="h1",className:p,testId:_})=>t.jsxs("header",{className:x(pe.header,p),"data-testid":_,children:[o&&t.jsx("div",{className:pe.header__breadcrumb,children:o}),t.jsxs("div",{className:pe.header__top,children:[t.jsxs("div",{className:pe.header__text,children:[a&&t.jsx("span",{className:pe.header__eyebrow,children:a}),t.jsxs("div",{className:pe.header__titleRow,children:[t.jsx(d,{className:pe.header__title,children:e}),i&&t.jsx("span",{className:pe.header__meta,children:i})]}),n&&t.jsx("p",{className:pe.header__description,children:n})]}),r&&t.jsx("div",{className:pe.header__actions,children:r})]}),c]}),Gc=s.memo(Xc),Qc="hanui-panel-Sv-1m",Wc="hanui-panel__header-ysexh",Jc="hanui-panel__heading-xLCsB",Vc="hanui-panel__icon--yPQT",Zc="hanui-panel__headingText--XqxW",el="hanui-panel__title-6-6uC",tl="hanui-panel__description-qXTSM",al="hanui-panel__actions-Ra-zy",nl="hanui-panel__body-lo5aX",sl="hanui-panel__footer-qLpR1",rl="hanui-panel__footerInner-r6VQI",ol="hanui-form-o9UqJ",il="hanui-row-vUGpa",Q={panel:Qc,panel__header:Wc,panel__heading:Jc,panel__icon:Vc,panel__headingText:Zc,panel__title:el,panel__description:tl,panel__actions:al,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:sl,panel__footerInner:rl,form:ol,"form--2":"hanui-form--2-HdwDc",row:il},cl=({children:e,title:a,description:n,actions:r,icon:o,isFlush:i,gap:c="md",footer:d,as:p="section",className:_,bodyClassName:l,testId:h})=>t.jsxs(p,{className:x(Q.panel,_),"data-testid":h,children:[(a||r)&&t.jsxs("div",{className:Q.panel__header,children:[t.jsxs("div",{className:Q.panel__heading,children:[o&&t.jsx("span",{className:Q.panel__icon,children:o}),t.jsxs("div",{className:Q.panel__headingText,children:[a&&t.jsx("h2",{className:Q.panel__title,children:a}),n&&t.jsx("p",{className:Q.panel__description,children:n})]})]}),r&&t.jsx("div",{className:Q.panel__actions,children:r})]}),t.jsx("div",{className:x(Q.panel__body,Q[`panel__body--${c}`],i&&Q["panel__body--flush"],l),children:e}),d&&t.jsx("div",{className:Q.panel__footer,children:t.jsx("div",{className:Q.panel__footerInner,children:d})})]}),ll=R(s.memo(({children:e,columns:a=1,className:n})=>t.jsx("div",{className:x(Q.form,Q[`form--${a}`],n),children:e})),"PanelForm"),dl=R(s.memo(({children:e,className:a})=>t.jsx("div",{className:x(Q.row,a),children:e})),"PanelRow"),ul=s.memo(cl),_l="hanui-price-Oc5Nr",hl="hanui-price__current-2Xup2",pl="hanui-price__currency-32NLN",ml="hanui-price__list-MlQgT",bl="hanui-price__discount-5Yc6W",ze={price:_l,price__current:hl,price__currency:pl,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"},gl=({value:e,currency:a,listValue:n,discountPercent:r,formatDiscount:o=_=>`%${_}`,isFormatted:i,size:c="md",className:d,testId:p})=>{const{labels:_}=H(),l=M("Price.currency",a,_==null?void 0:_.currency),h=u=>{if(!i||!(_!=null&&_.locale)||!/\d/.test(u))return u;const b=Number(u.replace(/[^\d.,-]/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."));if(!Number.isFinite(b))return u;try{return new Intl.NumberFormat(_.locale).format(b)}catch{return u}};return t.jsxs("span",{className:x(ze.price,ze[`price--${c}`],d),"data-testid":p,children:[t.jsxs("span",{className:ze.price__current,children:[h(e),t.jsx("span",{className:ze.price__currency,children:l})]}),n&&t.jsxs("s",{className:ze.price__list,children:[h(n),t.jsx("span",{className:ze.price__currency,children:l})]}),r!==void 0&&r>0&&t.jsx("span",{className:ze.price__discount,children:o(r)})]})},fl=s.memo(gl),xl="hanui-rating-94dke",vl="hanui-rating__stars-QkpVU",yl="hanui-rating__empty-Wf6-K",wl="hanui-rating__count-pIoEs",jl="hanui-rating__srOnly-E9h0d",tt={rating:xl,rating__stars:vl,rating__empty:yl,rating__count:wl,rating__srOnly:jl,"rating--sm":"hanui-rating--sm-AtY7U","rating--md":"hanui-rating--md-Q0nxN"},kl=({value:e,count:a,srLabel:n,size:r="sm",className:o,testId:i})=>{var p;const{labels:c}=H(),d=Math.round(e*2)/2;return t.jsxs("span",{className:x(tt.rating,tt[`rating--${r}`],o),"data-testid":i,children:[t.jsx("span",{className:tt.rating__stars,"aria-hidden":!0,children:Array.from({length:5},(_,l)=>{const h=l+1;return d>=h?t.jsx(E.StarFill,{},l):d>=h-.5?t.jsx(E.StarHalf,{},l):t.jsx(E.StarFill,{className:tt.rating__empty},l)})}),t.jsx("span",{className:tt.rating__srOnly,children:n??Tt("Rating.srLabel",(p=c==null?void 0:c.rating)==null?void 0:p.srLabel,e,a)}),z.isDefined(a)&&t.jsxs("span",{className:tt.rating__count,"aria-hidden":!0,children:["(",a,")"]})]})},Nl=s.memo(kl),$l="hanui-header-a08Jh",El="hanui-header__text-ArJkA",Cl="hanui-header__overline-X5Epo",Il="hanui-header__title-nQQQJ",Dl="hanui-header__description-08oCr",Tl="hanui-header__action-xsxQF",Ke={header:$l,header__text:El,header__overline:Cl,header__title:Il,header__description:Dl,header__action:Tl,"header--sm":"hanui-header--sm-mIJWZ","header--lg":"hanui-header--lg-QBLIz"},Rl=({title:e,description:a,overline:n,action:r,as:o="h2",size:i="md",className:c,testId:d})=>t.jsxs("header",{className:x(Ke.header,Ke[`header--${i}`],c),"data-testid":d,children:[t.jsxs("div",{className:Ke.header__text,children:[n&&t.jsx("span",{className:Ke.header__overline,children:n}),t.jsx(o,{className:Ke.header__title,children:e}),a&&t.jsx("p",{className:Ke.header__description,children:a})]}),r&&t.jsx("div",{className:Ke.header__action,children:r})]}),Sl=s.memo(Rl),Ll="hanui-scrollArea-Ly-yT",Ut={scrollArea:Ll,"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"},Al=({children:e,label:a,axis:n="vertical",maxHeight:r,hasFade:o,className:i,testId:c})=>{const d=s.useRef(null),[p,_]=s.useState(!1),[l,h]=s.useState({start:!1,end:!1});return s.useEffect(()=>{const u=d.current;if(!u||typeof ResizeObserver>"u")return;const b=()=>{const g=u.scrollHeight>u.clientHeight,m=u.scrollWidth>u.clientWidth;_(n==="horizontal"?m:n==="vertical"?g:g||m);const v=n==="horizontal",$=v?u.clientWidth:u.clientHeight,k=v?u.scrollWidth:u.scrollHeight,f=Math.abs(v?u.scrollLeft:u.scrollTop);h({start:f>1,end:f+$<k-1})};b();const y=new ResizeObserver(b);y.observe(u);for(const g of u.children)y.observe(g);return u.addEventListener("scroll",b,{passive:!0}),()=>{y.disconnect(),u.removeEventListener("scroll",b)}},[n,e]),t.jsx("div",{ref:d,className:x(Ut.scrollArea,Ut[`scrollArea--${n}`],o&&Ut["scrollArea--fade"],i),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":c,children:e})},Fl=s.memo(R(Al,"ScrollArea")),Ml="hanui-skeleton-n92if",Bl="hanui-group-YMfwa",Pl="hanui-card-XQs-Q",Ol="hanui-card__media-YLJDv",Hl="hanui-card__body-msRvB",zl="hanui-rows-EZ9Am",Kl="hanui-row-se56N",Ul="hanui-row__text-TD4iS",ql="hanui-table-L328g",Yl="hanui-table__row-rSJTK",re={skeleton:Ml,"skeleton--block":"hanui-skeleton--block-tOZ-a","skeleton--text":"hanui-skeleton--text-k-ROi","skeleton--circle":"hanui-skeleton--circle-x-mX3",group:Bl,card:Pl,card__media:Ol,card__body:Hl,rows:zl,row:Kl,row__text:Ul,table:ql,table__row:Yl},Se=({width:e,height:a,variant:n="block",lines:r=1,className:o})=>{const i={width:z.isNumber(e)?`${e}px`:e,height:z.isNumber(a)?`${a}px`:a};return n==="text"&&r>1?t.jsx("span",{className:x(re.group,o),"aria-hidden":!0,children:Array.from({length:r},(c,d)=>t.jsx("span",{className:x(re.skeleton,re["skeleton--text"]),style:d===r-1?{width:"60%"}:void 0},d))}):t.jsx("span",{className:x(re.skeleton,re[`skeleton--${n}`],o),style:i,"aria-hidden":!0})},Xl=s.memo(Se),Gl=({count:e=1,className:a})=>t.jsx(t.Fragment,{children:Array.from({length:e},(n,r)=>t.jsxs("div",{className:x(re.card,a),"aria-hidden":!0,children:[t.jsx(Se,{className:re.card__media}),t.jsxs("div",{className:re.card__body,children:[t.jsx(Se,{variant:"text",width:"70%"}),t.jsx(Se,{variant:"text",width:"40%"})]})]},r))}),Ql=({count:e=3,className:a})=>t.jsx("div",{className:x(re.rows,a),"aria-hidden":!0,children:Array.from({length:e},(n,r)=>t.jsxs("div",{className:re.row,children:[t.jsx(Se,{variant:"circle",width:36,height:36}),t.jsxs("div",{className:re.row__text,children:[t.jsx(Se,{variant:"text",width:"45%"}),t.jsx(Se,{variant:"text",width:"25%"})]})]},r))}),Wl=({count:e=5,columns:a=4,className:n})=>t.jsx("div",{className:x(re.table,n),"aria-hidden":!0,children:Array.from({length:e},(r,o)=>t.jsx("div",{className:re.table__row,children:Array.from({length:a},(i,c)=>t.jsx(Se,{variant:"text"},c))},o))}),Jl=R(s.memo(Gl),"SkeletonCard"),Vl=R(s.memo(Ql),"SkeletonRows"),Zl=R(s.memo(Wl),"SkeletonTable"),ed="hanui-stat-Xb7wp",td="hanui-stat__icon-MB8NU",ad="hanui-stat__label-kUX2m",nd="hanui-stat__value--6p13",sd="hanui-stat__unit-mjHVk",rd="hanui-stat__delta-YKpOu",od="hanui-stat__description-Yvw6J",id="hanui-stat__srOnly-YKebA",ie={stat:ed,"stat--sm":"hanui-stat--sm-XnK8p","stat--plain":"hanui-stat--plain-N-3RC",stat__icon:td,stat__label:ad,stat__value:nd,stat__unit:sd,stat__delta:rd,"stat__delta--positive":"hanui-stat__delta--positive-1AUAM","stat__delta--negative":"hanui-stat__delta--negative--WWEP",stat__description:od,stat__srOnly:id},cd={up:t.jsx(E.ArrowUpShort,{"aria-hidden":!0}),down:t.jsx(E.ArrowDownShort,{"aria-hidden":!0}),flat:t.jsx(E.DashLg,{"aria-hidden":!0})},ld={up:"artış",down:"azalış",flat:"değişim yok"},dd=({label:e,value:a,unit:n,delta:r,trend:o,isUpPositive:i=!0,description:c,icon:d,variant:p="card",size:_="md",className:l,testId:h})=>{const u=o==="flat"?void 0:o==="up"===i;return t.jsxs("div",{className:x(ie.stat,ie[`stat--${_}`],ie[`stat--${p}`],l),"data-testid":h,children:[d&&t.jsx("span",{className:ie.stat__icon,"aria-hidden":!0,children:d}),t.jsx("span",{className:ie.stat__label,children:e}),t.jsxs("span",{className:ie.stat__value,children:[a,n&&t.jsx("span",{className:ie.stat__unit,children:n})]}),r&&o&&t.jsxs("span",{className:x(ie.stat__delta,u===!0&&ie["stat__delta--positive"],u===!1&&ie["stat__delta--negative"]),children:[cd[o],r,t.jsx("span",{className:ie.stat__srOnly,children:ld[o]})]}),c&&t.jsx("span",{className:ie.stat__description,children:c})]})},ud=s.memo(R(dd,"Stat")),_d="hanui-hub-JoqOf",hd="hanui-toast-U27Of",pd="hanui-toast__icon-p-rgI",md="hanui-toast__text-rG4ji",bd="hanui-toast__message-s6S2-",gd="hanui-toast__description-0cYTx",fd="hanui-toast__action-fOXU5",xd="hanui-toast__close-QxSNP",$e={hub:_d,toast:hd,"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:pd,toast__text:md,toast__message:bd,toast__description:gd,toast__action:fd,toast__close:xd},vd={info:t.jsx(E.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(E.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(E.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(E.XCircleFill,{"aria-hidden":!0})},yd={info:4e3,success:4e3,warning:6e3,danger:8e3};let fa=0;const Xt=new Set;let Xe=[];const ea=()=>Xt.forEach(e=>e(Xe)),Gt=e=>{Xe=Xe.filter(a=>a.id!==e),ea()},mt=(e,a={})=>{fa+=1;const n=fa;return Xe=[...Xe,{...a,id:n,message:e}].slice(-3),ea(),n},wd={show:mt,info:(e,a)=>mt(e,{...a,tone:"info"}),success:(e,a)=>mt(e,{...a,tone:"success"}),warning:(e,a)=>mt(e,{...a,tone:"warning"}),error:(e,a)=>mt(e,{...a,tone:"danger"}),dismiss:Gt,clear:()=>{Xe=[],ea()}},jd=({toast:e,closeLabel:a,onDismiss:n})=>{const r=e.tone??"info",o=e.duration??yd[r],[i,c]=s.useState(!1),d=s.useRef(o),p=s.useRef(0);return s.useEffect(()=>{if(o===0||i)return;p.current=Date.now();const _=window.setTimeout(()=>n(e.id),d.current);return()=>{window.clearTimeout(_),d.current=Math.max(0,d.current-(Date.now()-p.current))}},[o,i,n,e.id]),t.jsxs("div",{className:x($e.toast,$e[`toast--${r}`]),role:r==="danger"?"alert":"status",onPointerEnter:()=>c(!0),onPointerLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),children:[t.jsx("span",{className:$e.toast__icon,"aria-hidden":!0,children:vd[r]}),t.jsxs("div",{className:$e.toast__text,children:[t.jsx("span",{className:$e.toast__message,children:e.message}),e.description&&t.jsx("span",{className:$e.toast__description,children:e.description})]}),e.action&&t.jsx("button",{type:"button",className:$e.toast__action,onClick:()=>{var _;(_=e.action)==null||_.onClick(),n(e.id)},children:e.action.label}),t.jsx(he,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:a,variant:"ghost",size:"sm",className:$e.toast__close,onClick:()=>n(e.id)})]})},kd=({closeLabel:e,className:a})=>{const{labels:n}=H(),[r,o]=s.useState([]);s.useEffect(()=>(Xt.add(o),o(Xe),()=>{Xt.delete(o)}),[]);const i=s.useCallback(p=>Gt(p),[]);s.useEffect(()=>{if(r.length===0)return;const p=_=>{_.key==="Escape"&&Gt(r[r.length-1].id)};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[r]);const[c,d]=s.useState(!1);return s.useEffect(()=>d(!0),[]),c?yt.createPortal(t.jsx("div",{className:x($e.hub,a),children:r.map(p=>t.jsx(jd,{toast:p,closeLabel:M("ToastHub.closeLabel",e,n==null?void 0:n.close),onDismiss:i},p.id))}),document.body):null},Pa=s.memo(R(kd,"ToastHub")),Nd=()=>{const[e,a]=s.useState(!1);return s.useEffect(()=>a(!0),[]),e?t.jsx(Pa,{}):null},$d=s.memo(R(Nd,"ToastPortal")),Ed="hanui-accordion-h9jLC",Cd="hanui-accordion__item--YvzK",Id="hanui-accordion__title-qZOLY",Dd="hanui-accordion__meta-PSlsO",Td="hanui-accordion__marker-QcWcI",Rd="hanui-accordion__summary-QUhWh",Sd="hanui-accordion__panel--3EXE",Ld="hanui-accordion__content-fO64s",we={accordion:Ed,accordion__item:Cd,"accordion__item--disabled":"hanui-accordion__item--disabled-x1erZ",accordion__title:Id,accordion__meta:Dd,accordion__marker:Td,accordion__summary:Rd,accordion__panel:Sd,accordion__content:Ld},Ad=({items:e,isSingle:a,defaultOpenIds:n,openIds:r,onChange:o,className:i,testId:c})=>{const d=s.useId(),[p,_]=s.useState(n??[]),l=r!==void 0,h=l?r:p,u=s.useCallback((b,y)=>{const g=y?a?[b]:[...h.filter(m=>m!==b),b]:h.filter(m=>m!==b);l||_(g),o==null||o(g)},[l,a,o,h]);return t.jsx("div",{className:x(we.accordion,i),"data-testid":c,children:e.map(b=>{const y=h.includes(b.id);return t.jsxs("details",{className:x(we.accordion__item,b.isDisabled&&we["accordion__item--disabled"]),open:y,onToggle:g=>{const m=g.currentTarget.open;m!==y&&u(b.id,m)},children:[t.jsxs("summary",{id:`${d}-${b.id}`,className:we.accordion__summary,"aria-disabled":b.isDisabled,tabIndex:b.isDisabled?-1:void 0,onClick:g=>b.isDisabled&&g.preventDefault(),children:[t.jsx(E.CaretRightFill,{"aria-hidden":!0,className:we.accordion__marker}),t.jsx("span",{className:we.accordion__title,children:b.title}),b.meta&&t.jsx("span",{className:we.accordion__meta,children:b.meta})]}),t.jsx("div",{className:we.accordion__panel,children:t.jsx("div",{className:we.accordion__content,children:b.content})})]},b.id)})})},Fd=s.memo(R(Ad,"Accordion")),Md="hanui-steps-ntge1",Bd="hanui-steps__item-GrU1x",Pd="hanui-steps__button-XBsnS",Od="hanui-steps__marker-g-GLE",Hd="hanui-steps__text-Mkpkh",zd="hanui-steps__label-NSeFM",Kd="hanui-steps__description-bQuNT",Ud="hanui-steps__status-wWJfP",ue={steps:Md,"steps--horizontal":"hanui-steps--horizontal-O-mkx","steps--vertical":"hanui-steps--vertical-agfwo",steps__item:Bd,steps__button:Pd,steps__marker:Od,"steps__item--done":"hanui-steps__item--done-mvOuN","steps__item--current":"hanui-steps__item--current-Qzlal",steps__text:Hd,steps__label:zd,steps__description:Kd,steps__status:Ud},qd=(e,a)=>e<a?"done":e===a?"current":"upcoming",Yd={done:"tamamlandı",current:"şu anki adım",upcoming:"sıradaki"},Xd=({steps:e,currentIndex:a,onStepClick:n,label:r,orientation:o="horizontal",className:i,testId:c})=>t.jsx("ol",{className:x(ue.steps,ue[`steps--${o}`],i),"aria-label":r,"data-testid":c,children:e.map((d,p)=>{const _=qd(p,a),l=!!n&&_==="done",h=t.jsxs(t.Fragment,{children:[t.jsx("span",{className:ue.steps__marker,"aria-hidden":!0,children:_==="done"?t.jsx(E.CheckLg,{}):p+1}),t.jsxs("span",{className:ue.steps__text,children:[t.jsx("span",{className:ue.steps__label,children:d.label}),d.description&&t.jsx("span",{className:ue.steps__description,children:d.description})]}),t.jsx("span",{className:ue.steps__status,children:Yd[_]})]});return t.jsx("li",{className:x(ue.steps__item,ue[`steps__item--${_}`]),"aria-current":_==="current"?"step":void 0,children:l?t.jsx("button",{type:"button",className:ue.steps__button,onClick:()=>n==null?void 0:n(p),children:h}):t.jsx("span",{className:ue.steps__button,children:h})},d.id)})}),Gd=s.memo(R(Xd,"Steps")),Qd="hanui-tabs-l4dFE",Wd="hanui-tabs__list-HJvR8",Jd="hanui-tabs__tab-7gDW7",Vd="hanui-tabs__count-8JX8s",Zd="hanui-tabs__panel-CPklY",at={tabs:Qd,tabs__list:Wd,tabs__tab:Jd,"tabs__tab--active":"hanui-tabs__tab--active-riqNp",tabs__count:Vd,tabs__panel:Zd},eu=({items:e,defaultTabId:a,activeId:n,onChange:r,ariaLabel:o,isManualActivation:i,className:c,testId:d})=>{var N;const p=s.useId(),[_,l]=s.useState(a??((N=e[0])==null?void 0:N.id)),h=z.isDefined(n),u=h?n:_,b=e.findIndex(j=>j.id===u),[y,g]=s.useState(b<0?0:b),m=s.useRef(null),v=e[b]??e[0];s.useEffect(()=>{var j;Qt((j=m.current)==null?void 0:j.querySelector('[aria-selected="true"]'),{block:"nearest",inline:"nearest"})},[u]);const $=j=>{h||l(j),r==null||r(j)},k=j=>{var D;if(i&&(j.key==="Enter"||j.key===" ")){j.preventDefault(),$(e[y].id);return}const T=j.key==="ArrowRight"?1:j.key==="ArrowLeft"?-1:0;if(T===0)return;j.preventDefault();const I=((i?y:b)+T+e.length)%e.length;g(I),i||$(e[I].id),(D=document.getElementById(`${p}-tab-${e[I].id}`))==null||D.focus()};if(e.length===0)return null;const f=z.isDefined(v==null?void 0:v.content);return t.jsxs("div",{className:x(at.tabs,c),"data-testid":d,children:[t.jsx("div",{ref:m,className:at.tabs__list,role:"tablist","aria-label":o,onKeyDown:k,children:e.map(j=>{var I;const T=j.id===v.id;return t.jsxs("button",{id:`${p}-tab-${j.id}`,type:"button",role:"tab","aria-selected":T,"aria-controls":f?`${p}-panel-${j.id}`:void 0,tabIndex:(i?((I=e[y])==null?void 0:I.id)===j.id:T)?0:-1,className:x(at.tabs__tab,T&&at["tabs__tab--active"]),onClick:()=>$(j.id),children:[j.label,z.isDefined(j.count)&&t.jsx("span",{className:at.tabs__count,children:j.count})]},j.id)})}),f&&t.jsx("div",{id:`${p}-panel-${v.id}`,role:"tabpanel","aria-labelledby":`${p}-tab-${v.id}`,className:at.tabs__panel,tabIndex:0,children:v.content})]})},tu=s.memo(eu),au="hanui-tile-TGur-",nu="hanui-tile__medallion--Y0pz",su="hanui-tile__label-mI1OQ",ru="hanui-tile__meta-22qnR",bt={tile:au,tile__medallion:nu,tile__label:su,tile__meta:ru,"tile--active":"hanui-tile--active-z0F2M"},ou=({label:e,icon:a,href:n,meta:r,isActive:o,linkProps:i,className:c,testId:d})=>t.jsxs(fe,{href:n,className:x(bt.tile,o&&bt["tile--active"],c),"aria-current":o?"page":void 0,"data-testid":d,...i,children:[t.jsx("span",{className:bt.tile__medallion,"aria-hidden":!0,children:a}),t.jsx("span",{className:bt.tile__label,children:e}),r&&t.jsx("span",{className:bt.tile__meta,children:r})]}),iu=s.memo(ou),cu="hanui-timeline-GxubZ",lu="hanui-timeline__item-qMpF2",du="hanui-timeline__marker-MDk07",uu="hanui-timeline__body-xJi7t",_u="hanui-timeline__title-pKxZJ",hu="hanui-timeline__time-ITWYy",pu="hanui-timeline__description-4vrEy",mu="hanui-timeline__srOnly-7K2We",je={timeline:cu,timeline__item:lu,timeline__marker:du,"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:uu,timeline__title:_u,timeline__time:hu,timeline__description:pu,timeline__srOnly:mu},bu={done:t.jsx(E.CheckLg,{}),failed:t.jsx(E.XLg,{}),current:null,pending:null},gu={done:"tamamlandı",current:"şu an",pending:"bekliyor",failed:"başarısız"},fu=({events:e,label:a,className:n,testId:r})=>t.jsx("ol",{className:x(je.timeline,n),"aria-label":a,"data-testid":r,children:e.map(o=>{const i=o.status??"done";return t.jsxs("li",{className:x(je.timeline__item,je[`timeline__item--${i}`]),"aria-current":i==="current"?"step":void 0,children:[t.jsx("span",{className:je.timeline__marker,"aria-hidden":!0,children:o.icon??bu[i]}),t.jsxs("div",{className:je.timeline__body,children:[t.jsxs("span",{className:je.timeline__title,children:[o.title,t.jsx("span",{className:je.timeline__srOnly,children:gu[i]})]}),o.time&&t.jsx("span",{className:je.timeline__time,children:o.time}),o.description&&t.jsx("span",{className:je.timeline__description,children:o.description})]})]},o.id)})}),xu=s.memo(R(fu,"Timeline")),vu="hanui-modal-3IDi9",yu="hanui-modal__panel--qLSz",wu="hanui-modal__header-meWm6",ju="hanui-modal__icon-df2dd",ku="hanui-modal__heading-PwDS8",Nu="hanui-modal__title-80Sh6",$u="hanui-modal__description-fsCHI",Eu="hanui-modal__close-vFPbw",Cu="hanui-modal__body-PDF12",Iu="hanui-modal__footer-CCCkx",ne={modal:vu,"modal--sm":"hanui-modal--sm-A7WsS","modal--lg":"hanui-modal--lg-z99Em",modal__panel:yu,modal__header:wu,modal__icon:ju,"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:Nu,modal__description:$u,modal__close:Eu,modal__body:Cu,modal__footer:Iu},Du=({isOpen:e,onClose:a,title:n,closeLabel:r,children:o,description:i,footer:c,icon:d,tone:p="neutral",size:_="md",isDismissable:l=!0,className:h,testId:u})=>{const{labels:b}=H(),y=s.useRef(null),g=s.useRef(null),m=s.useId(),v=s.useId();s.useEffect(()=>{const k=y.current;if(!k)return;if(!e){k.open&&k.close();return}const f=ot();k.open||k.showModal(),At(k,`.${ne.modal__close}`),Lt(k);const{token:N,pop:j}=Ft();return g.current=N,()=>{j(),g.current=null,f()}},[e]),jt(e),s.useEffect(()=>{const k=y.current;if(!k)return;const f=N=>{N.preventDefault(),l&&(g.current&&!Mt(g.current)||a())};return k.addEventListener("cancel",f),()=>k.removeEventListener("cancel",f)},[a,l]);const $=s.useCallback(k=>{l&&k.target===y.current&&a()},[l,a]);return t.jsx("dialog",{ref:y,className:x(ne.modal,ne[`modal--${_}`],h),"aria-labelledby":m,"aria-describedby":i?v:void 0,"data-testid":u,onClick:$,children:t.jsxs("div",{className:ne.modal__panel,children:[t.jsxs("header",{className:ne.modal__header,children:[d&&t.jsx("span",{className:x(ne.modal__icon,ne[`modal__icon--${p}`]),children:d}),t.jsxs("div",{className:ne.modal__heading,children:[t.jsx("h2",{id:m,className:ne.modal__title,children:n}),i&&t.jsx("p",{id:v,className:ne.modal__description,children:i})]}),l&&t.jsx(he,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:M("Modal.closeLabel",r,b==null?void 0:b.close),variant:"ghost",size:"sm",className:ne.modal__close,onClick:a})]}),o&&t.jsx("div",{className:ne.modal__body,children:o}),c&&t.jsx("footer",{className:ne.modal__footer,children:c})]})})},ta=s.memo(Du),Tu="hanui-palette-ag-P9",Ru="hanui-palette__search-G3aYv",Su="hanui-palette__searchIcon-2UYj-",Lu="hanui-palette__input-vvLvt",Au="hanui-palette__list--KWiH",Fu="hanui-palette__group-KPj5Q",Mu="hanui-palette__item-UZzkp",Bu="hanui-palette__icon-Fg0Lt",Pu="hanui-palette__text-flfN9",Ou="hanui-palette__label-8-UHe",Hu="hanui-palette__description-eRlk9",zu="hanui-palette__shortcut-DwYKX",Ku="hanui-palette__empty-vg-I3",J={palette:Tu,palette__search:Ru,palette__searchIcon:Su,palette__input:Lu,palette__list:Au,palette__group:Fu,palette__item:Mu,"palette__item--active":"hanui-palette__item--active-XHcka",palette__icon:Bu,palette__text:Pu,palette__label:Ou,palette__description:Hu,palette__shortcut:zu,palette__empty:Ku},Uu=({isOpen:e,onClose:a,items:n,label:r,searchPlaceholder:o,emptyMessage:i,className:c,testId:d})=>{const p=s.useId(),_=`${p}-listbox`,l=s.useRef(null),h=s.useRef(null),u=s.useRef(null),[b,y]=s.useState(""),[g,m]=s.useState(0),v=s.useMemo(()=>{if(b.trim()==="")return n;const f=b.trim();return n.filter(N=>vt(N.label,f)||(N.description?vt(N.description,f):!1))},[n,b]);jt(e),s.useEffect(()=>{var I;const f=l.current;if(!f)return;if(!e){f.open&&f.close();return}const N=ot();f.open||f.showModal(),(I=h.current)==null||I.focus({preventScroll:!0}),y(""),m(0);const{token:j,pop:T}=Ft();return u.current=j,()=>{T(),u.current=null,N()}},[e]),s.useEffect(()=>{const f=l.current;if(!f)return;const N=j=>{j.preventDefault(),!(u.current&&!Mt(u.current))&&a()};return f.addEventListener("cancel",N),()=>f.removeEventListener("cancel",N)},[a]),s.useEffect(()=>{var f;Qt((f=l.current)==null?void 0:f.querySelector(`[data-index="${g}"]`),{block:"nearest"})},[g]);const $=f=>{f.onSelect(),a()},k=f=>{const N=v.length-1;switch(f.key){case"ArrowDown":f.preventDefault(),m(j=>j>=N?0:j+1);break;case"ArrowUp":f.preventDefault(),m(j=>j<=0?N:j-1);break;case"Home":f.preventDefault(),m(0);break;case"End":f.preventDefault(),m(N);break;case"Enter":{f.preventDefault();const j=v[g];j&&$(j);break}}};return t.jsxs("dialog",{ref:l,className:x(J.palette,c),"aria-label":r,"data-testid":d,onClick:f=>f.target===l.current&&a(),children:[t.jsxs("div",{className:J.palette__search,children:[t.jsx(E.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":_,"aria-activedescendant":v[g]?`${p}-option-${g}`:void 0,onChange:f=>{y(f.target.value),m(0)},onKeyDown:k})]}),t.jsxs("ul",{id:_,role:"listbox","aria-label":r,className:J.palette__list,children:[v.map((f,N)=>{var T;const j=f.group!==void 0&&f.group!==((T=v[N-1])==null?void 0:T.group);return t.jsxs("li",{children:[j&&t.jsx("span",{className:J.palette__group,"aria-hidden":!0,children:f.group}),t.jsxs("div",{id:`${p}-option-${N}`,role:"option","data-index":N,"aria-selected":N===g,className:x(J.palette__item,N===g&&J["palette__item--active"]),onMouseEnter:()=>m(N),onClick:()=>$(f),children:[f.icon&&t.jsx("span",{className:J.palette__icon,"aria-hidden":!0,children:f.icon}),t.jsxs("span",{className:J.palette__text,children:[t.jsx("span",{className:J.palette__label,children:f.label}),f.description&&t.jsx("span",{className:J.palette__description,children:f.description})]}),f.shortcut&&t.jsx("kbd",{className:J.palette__shortcut,"aria-hidden":!0,children:f.shortcut})]})]},f.id)}),v.length===0&&t.jsx("li",{className:J.palette__empty,children:i})]})]})},qu=s.memo(R(Uu,"CommandPalette")),Yu={destructive:t.jsx(E.TrashFill,{"aria-hidden":!0}),warning:t.jsx(E.ExclamationTriangleFill,{"aria-hidden":!0}),neutral:t.jsx(E.QuestionCircleFill,{"aria-hidden":!0})},Xu={destructive:"danger",warning:"warning",neutral:"info"},Gu={destructive:ge.DANGER,warning:ge.PRIMARY,neutral:ge.PRIMARY},Qu=({isOpen:e,onClose:a,onConfirm:n,title:r,description:o,confirmLabel:i,cancelLabel:c,closeLabel:d,variant:p,kind:_,children:l})=>{const{labels:h}=H(),[u,b]=s.useState(!1),y=p??_??"neutral",g=async()=>{b(!0);try{await n()}finally{b(!1)}};return t.jsx(ta,{isOpen:e,onClose:a,title:r,closeLabel:d??(h==null?void 0:h.close),description:o,icon:Yu[y],tone:Xu[y],size:"sm",isDismissable:!u,footer:t.jsxs(t.Fragment,{children:[t.jsx(rt,{variant:ge.SECONDARY,size:Le.MEDIUM,onClick:a,disabled:u,children:M("ConfirmDialog.cancelLabel",c,h==null?void 0:h.cancel)}),t.jsx(rt,{variant:Gu[y],size:Le.MEDIUM,onClick:g,isLoading:u,children:i})]}),children:l})},Wu=s.memo(Qu),Ju="hanui-drawer-fgfi1",Vu="hanui-drawer__header-BDcRe",Zu="hanui-drawer__title-9M0e8",e_="hanui-drawer__close-Z30oW",t_="hanui-drawer__toolbar-vcsYi",a_="hanui-drawer__body-x12SX",n_="hanui-drawer__footer-PajTg",me={drawer:Ju,"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:Vu,drawer__title:Zu,drawer__close:e_,drawer__toolbar:t_,drawer__body:a_,drawer__footer:n_},s_=({isOpen:e,onClose:a,title:n,closeLabel:r,children:o,side:i="end",size:c="md",footer:d,toolbar:p,className:_,testId:l})=>{const{labels:h}=H(),u=s.useRef(null),b=s.useRef(null),y=s.useId();s.useEffect(()=>{const m=u.current;if(!m)return;if(!e){m.open&&m.close();return}const v=ot();m.open||m.showModal(),At(m,`.${me.drawer__close}`),Lt(m);const{token:$,pop:k}=Ft();return b.current=$,()=>{k(),b.current=null,v()}},[e]),jt(e),s.useEffect(()=>{const m=u.current;if(!m)return;const v=$=>{$.preventDefault(),!(b.current&&!Mt(b.current))&&a()};return m.addEventListener("cancel",v),()=>m.removeEventListener("cancel",v)},[a]);const g=s.useCallback(m=>{m.target===u.current&&a()},[a]);return t.jsxs("dialog",{ref:u,className:x(me.drawer,me[`drawer--${i}`],me[`drawer--${c}`],_),"aria-labelledby":y,"data-testid":l,onClick:g,children:[t.jsxs("header",{className:me.drawer__header,children:[t.jsx("h2",{id:y,className:me.drawer__title,children:n}),t.jsx(he,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:M("Drawer.closeLabel",r,h==null?void 0:h.close),variant:"ghost",size:"sm",className:me.drawer__close,onClick:a})]}),p&&t.jsx("div",{className:me.drawer__toolbar,children:p}),t.jsx("div",{className:me.drawer__body,children:o}),d&&t.jsx("div",{className:me.drawer__footer,children:d})]})},r_=s.memo(R(s_,"Drawer")),o_="hanui-form-zpZn4",i_={form:o_},c_=({isOpen:e,onClose:a,onSubmit:n,title:r,label:o,submitLabel:i,cancelLabel:c,closeLabel:d,description:p,hint:_,placeholder:l,defaultValue:h="",isRequired:u,requiredLabel:b,inputMode:y="text",maxLength:g,rows:m=4})=>{const{labels:v}=H(),$=s.useId(),[k,f]=s.useState(h),[N,j]=s.useState(!1),T=s.useRef(!1);s.useEffect(()=>{e&&!T.current&&f(h),T.current=e},[e,h]);const I=k.trim(),D=!!u&&I==="",w=P=>y==="multiline"?t.jsx(Aa,{...P,value:k,onChange:X=>f(X.target.value),placeholder:l,maxLength:g,rows:m}):t.jsx(Zt,{...P,type:y==="number"?"number":"text",value:k,onChange:X=>f(X.target.value),placeholder:l,maxLength:g}),L=async()=>{if(!(D||N)){j(!0);try{await n(I),a()}catch{}finally{j(!1)}}};return t.jsx(ta,{isOpen:e,onClose:a,title:r,closeLabel:d??(v==null?void 0:v.close),description:p,size:"sm",isDismissable:!N,footer:t.jsxs(t.Fragment,{children:[t.jsx(rt,{variant:ge.SECONDARY,size:Le.MEDIUM,onClick:a,disabled:N,children:M("PromptDialog.cancelLabel",c,v==null?void 0:v.cancel)}),t.jsx(rt,{type:"submit",form:$,variant:ge.PRIMARY,size:Le.MEDIUM,disabled:D,isLoading:N,children:M("PromptDialog.submitLabel",i,v==null?void 0:v.submit)})]}),children:t.jsx("form",{id:$,className:i_.form,onSubmit:P=>{P.preventDefault(),L()},children:t.jsx(Fa,{label:o,hint:_,isRequired:u,requiredLabel:b,children:w})})})},l_=s.memo(c_),d_="hanui-scroller-EtDmS",u_="hanui-table-uCv4q",nt={scroller:d_,"scroller--frame":"hanui-scroller--frame-84zz6",table:u_,"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(s.memo(({hasFrame:e=!0,className:a,children:n,...r})=>t.jsx("div",{className:x(nt.scroller,e&&nt["scroller--frame"],a),...r,children:n})),"TableScroller"),h_=({density:e="regular",hasStickyHead:a,hasRowHover:n,className:r,children:o,...i})=>t.jsx("table",{className:x(nt.table,nt[`table--${e}`],a&&nt["table--sticky-head"],n&&nt["table--row-hover"],r),...i,children:o}),p_=s.memo(h_),m_="hanui-wrapper-KXCZg",b_="hanui-table-LF5Ow",g_="hanui-state-YPPb0",f_="hanui-state__message-wwbIW",x_="hanui-srOnly-Oia8c",v_="hanui-sort-3Q6Fx",y_="hanui-sort__arrow-MITWb",w_="hanui-sticky-KDEvQ",j_="hanui-bulkBar-62qk0",V={wrapper:m_,"wrapper--capped":"hanui-wrapper--capped-M2QUJ",table:b_,state:g_,"state--error":"hanui-state--error-A492d",state__message:f_,"row--warning":"hanui-row--warning-BAUN2",srOnly:x_,sort:v_,sort__arrow:y_,"sort__arrow--ascending":"hanui-sort__arrow--ascending-85T5d","sort__arrow--descending":"hanui-sort__arrow--descending-gs3VU",sticky:w_,bulkBar:j_},k_=({columns:e,children:a,isLoading:n,error:r,emptyMessage:o,loadingMessage:i,hasViewportCap:c,onSort:d,bulkBar:p,className:_,testId:l})=>{var y,g;const{labels:h}=H(),u=s.Children.count(a),b=(m,v)=>t.jsx("tr",{children:t.jsx("td",{colSpan:e.length,className:x(V.state,v&&V[`state--${v}`]),children:m})});return t.jsxs("div",{className:x(V.wrapper,c&&V["wrapper--capped"],_),"data-testid":l,children:[p&&t.jsx("div",{className:V.bulkBar,children:p}),t.jsxs("table",{className:V.table,children:[t.jsx("thead",{children:t.jsx("tr",{children:e.map(m=>{const v=!!(m.isSortable&&d),$=m.ariaSort==="ascending"?"descending":"ascending";return t.jsx("th",{scope:"col","aria-sort":m.ariaSort,className:x(m.className,m.isSticky&&V.sticky),children:v?t.jsxs("button",{type:"button",className:V.sort,onClick:()=>d==null?void 0:d(m.key,$),children:[m.label,m.srLabel&&t.jsx("span",{className:V.srOnly,children:m.srLabel}),t.jsx("span",{"aria-hidden":!0,className:x(V.sort__arrow,m.ariaSort&&V[`sort__arrow--${m.ariaSort}`]),children:m.ariaSort==="descending"?"▾":"▴"})]}):t.jsxs(t.Fragment,{children:[m.label,m.srLabel&&t.jsx("span",{className:V.srOnly,children:m.srLabel})]})},m.key)})})}),t.jsx("tbody",{children:r?b(t.jsxs("span",{role:"alert",className:V.state__message,children:[t.jsx(E.ExclamationCircleFill,{"aria-hidden":!0}),r]}),"error"):n?b(M("DataTable.loadingMessage",i,(y=h==null?void 0:h.dataTable)==null?void 0:y.loading)):u===0?b(M("DataTable.emptyMessage",o,(g=h==null?void 0:h.dataTable)==null?void 0:g.empty)):a})]})]})},N_=R(s.memo(({isWarning:e,className:a,children:n,...r})=>t.jsx("tr",{className:x(e&&V["row--warning"],a),...r,children:n})),"DataTableRow"),$_=s.memo(k_),E_="hanui-bar-b4PP4",C_="hanui-bar__hiddenSubmit-jeCyX",I_="hanui-bar__actions-rG69L",D_="hanui-field-f-rvu",xt={bar:E_,bar__hiddenSubmit:C_,bar__actions:I_,field:D_,"field--wide":"hanui-field--wide-FA5gf"},T_=({onSubmit:e,children:a,actions:n,label:r,className:o,testId:i})=>{const{labels:c}=H();return t.jsxs("form",{className:x(xt.bar,o),"aria-label":M("FilterBar.label",r,c==null?void 0:c.filters),"data-testid":i,onSubmit:d=>{d.preventDefault(),e()},children:[a,t.jsx("button",{type:"submit",className:xt.bar__hiddenSubmit,tabIndex:-1,"aria-hidden":!0}),n&&t.jsx("div",{className:xt.bar__actions,children:n})]})},R_=R(s.memo(({children:e,isWide:a,className:n})=>t.jsx("div",{className:x(xt.field,a&&xt["field--wide"],n),children:e})),"FilterBarField"),S_=s.memo(T_),L_="hanui-pagination-K-L20",A_="hanui-pagination__list--9HqC",F_="hanui-pagination__arrow-XIgoX",M_="hanui-pagination__page-TpoJM",B_="hanui-pagination__gap-qoDyI",ke={pagination:L_,pagination__list:A_,pagination__arrow:F_,pagination__page:M_,"pagination__page--active":"hanui-pagination__page--active-XHeaz",pagination__gap:B_},P_=(e,a)=>{if(a<=7)return Array.from({length:a},(i,c)=>c+1);const n=new Set([1,a,e]);e-1>1&&n.add(e-1),e+1<a&&n.add(e+1);const r=[...n].sort((i,c)=>i-c),o=[];return r.forEach((i,c)=>{c>0&&i-r[c-1]>1&&o.push("gap"),o.push(i)}),o},O_=({page:e,totalPages:a,label:n,previousLabel:r,nextLabel:o,buildHref:i,onPageChange:c,linkProps:d,formatAnnouncement:p,className:_,testId:l})=>{var m,v,$;const{labels:h}=H(),u=Rt(),b=s.useRef(e);s.useEffect(()=>{b.current!==e&&(b.current=e,p&&u(p(e,a)))},[e,a,p,u]);const y=s.useMemo(()=>P_(e,a),[e,a]);if(a<=1)return null;const g=k=>{c&&c(k)};return t.jsxs("nav",{className:x(ke.pagination,_),"aria-label":M("Pagination.label",n,(m=h==null?void 0:h.pagination)==null?void 0:m.label),"data-testid":l,children:[t.jsx(he,{className:ke.pagination__arrow,icon:t.jsx(E.CaretLeftFill,{"aria-hidden":!0}),label:M("Pagination.previousLabel",r,(v=h==null?void 0:h.pagination)==null?void 0:v.previous),variant:"outline",disabled:e<=1,onClick:()=>g(e-1)}),t.jsx("ul",{className:ke.pagination__list,children:y.map((k,f)=>k==="gap"?t.jsx("li",{className:ke.pagination__gap,"aria-hidden":!0,children:"…"},`gap-${f}`):t.jsx("li",{children:i?t.jsx(fe,{href:i(k),className:x(ke.pagination__page,k===e&&ke["pagination__page--active"]),"aria-current":k===e?"page":void 0,...d,children:k}):t.jsx(rt,{variant:ge.SECONDARY,size:Le.SMALL,className:x(ke.pagination__page,k===e&&ke["pagination__page--active"]),"aria-current":k===e?"page":void 0,onClick:()=>g(k),children:k})},k))}),t.jsx(he,{className:ke.pagination__arrow,icon:t.jsx(E.CaretRightFill,{"aria-hidden":!0}),label:M("Pagination.nextLabel",o,($=h==null?void 0:h.pagination)==null?void 0:$.next),variant:"outline",disabled:e>=a,onClick:()=>g(e+1)})]})},H_=s.memo(O_);exports.ABOVE_MOBILE_MEDIA_QUERY=St;exports.ABOVE_TABLET_MEDIA_QUERY=_n;exports.Accordion=Fd;exports.Alert=pi;exports.Avatar=yi;exports.Badge=Ni;exports.BottomSheet=Vt;exports.Breadcrumb=Ri;exports.Button=rt;exports.COMPACT_DENSITY=Wa;exports.Card=Yi;exports.CardBody=Ui;exports.CardFooter=qi;exports.CardMedia=zi;exports.CardOverlay=Ki;exports.Carousel=ec;exports.Checkbox=Js;exports.Chip=La;exports.ChipGroup=Zn;exports.Combobox=$s;exports.CommandPalette=qu;exports.ConfirmDialog=Wu;exports.CopyField=ic;exports.DARK_THEME=ya;exports.DEFAULT_FONTS=Ja;exports.DataTable=$_;exports.DataTableRow=N_;exports.DateField=yo;exports.DateRange=jo;exports.Directory=Ic;exports.DirectoryGroup=$c;exports.DirectoryJump=Cc;exports.DirectoryRow=Ec;exports.Divider=uc;exports.Drawer=r_;exports.EmptyState=Fc;exports.Field=Fa;exports.FileUpload=ri;exports.FilterBar=S_;exports.FilterBarField=R_;exports.HanuiProvider=Za;exports.IconButton=he;exports.Input=Zt;exports.LIGHT_THEME=va;exports.METRIC_TOKENS=Qa;exports.MOBILE_BREAKPOINT=Ta;exports.Menu=zn;exports.Modal=ta;exports.PageHeader=Gc;exports.Pagination=H_;exports.Panel=ul;exports.PanelForm=ll;exports.PanelRow=dl;exports.PasswordInput=no;exports.Popover=qn;exports.Price=fl;exports.Progress=Ba;exports.ProgressCircle=Ko;exports.PromptDialog=l_;exports.QuantityStepper=Kr;exports.Radio=hr;exports.RadioCard=xr;exports.RangeSlider=Cr;exports.Rating=Nl;exports.RatingInput=Br;exports.ScrollArea=Fl;exports.SectionHeader=Sl;exports.SegmentedControl=Rs;exports.Select=Us;exports.Skeleton=Xl;exports.SkeletonCard=Jl;exports.SkeletonRows=Vl;exports.SkeletonTable=Zl;exports.Spinner=Jt;exports.Stat=ud;exports.Steps=Gd;exports.Switch=rr;exports.TABLET_BREAKPOINT=Ra;exports.TABLET_PORTRAIT_BREAKPOINT=un;exports.Table=p_;exports.TableCheckbox=Xr;exports.TableScroller=__;exports.Tabs=tu;exports.TagInput=lo;exports.TextLink=In;exports.Textarea=Aa;exports.Tile=iu;exports.Timeline=xu;exports.ToastHub=Pa;exports.ToastPortal=$d;exports.Tooltip=Fn;exports.UISize=Le;exports.UIVariant=ge;exports.buildThemeCss=ja;exports.initHanui=en;exports.isKeyboardOpeningElement=Sa;exports.matchesSearch=vt;exports.normalizeSearchTerm=qt;exports.preventAutoKeyboard=Lt;exports.resolveTokens=Va;exports.toast=wd;exports.useAnnounce=Rt;exports.useHanui=H;exports.useHanuiTheme=rn;exports.useListboxNavigation=Wt;exports.usePositioning=wt;exports.useScrollLock=jt;exports.useSheetViewport=Da;exports.useVirtualList=$a;
21
+ `)},Ca=e=>{if(!z.isClient())return;const a=e?Ea(e):"",n=document.getElementById(ua);if(a===""){n==null||n.remove();return}const r=n??document.createElement("style");r.id=ua,r.textContent=a,n||document.head.appendChild(r)},Ia=s.createContext({}),H=()=>s.useContext(Ia),sn=({children:e,theme:a,linkComponent:n,labels:r})=>{const o=s.useMemo(()=>a?JSON.stringify(a):"",[a]);s.useEffect(()=>{Ca(a)},[o]);const i=s.useRef(a);i.current=a;const c=s.useMemo(()=>({theme:i.current,linkComponent:n,labels:r}),[o,n,r]);return t.jsx(Ia.Provider,{value:c,children:e})},rn=(e={})=>{Ca(e.theme),z.isClient()&&(e.colorScheme&&document.documentElement.setAttribute(Ge,e.colorScheme),e.density&&document.documentElement.setAttribute($a,e.density))},on="hanui-live-region",cn=e=>{if(!z.isClient())return null;const a=`${on}-${e}`,n=document.getElementById(a);if(n)return n;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},ln=(e,a)=>{e.textContent="",window.requestAnimationFrame(()=>{e.textContent=a})},At=()=>s.useCallback((e,a="polite")=>{const n=e.trim();if(n==="")return;const r=cn(a);r&&ln(r,n)},[]),ha=()=>{var e;return z.isClient()&&((e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"},dn=()=>{if(!z.isClient())return"system";const e=document.documentElement.getAttribute(Ge);return e==="dark"||e==="light"?e:"system"},un=()=>{const[e,a]=s.useState("light"),[n,r]=s.useState("light"),[o,i]=s.useState(!1);s.useEffect(()=>{a(dn()),r(ha()),i(!0)},[]),s.useEffect(()=>{if(!z.isClient()||!window.matchMedia)return;const _=window.matchMedia("(prefers-color-scheme: dark)"),l=()=>r(ha());return _.addEventListener("change",l),()=>_.removeEventListener("change",l)},[]);const c=e==="system"?n:e,d=s.useCallback(_=>{if(!z.isClient())return;const l=document.documentElement;l.classList.add(_a),_==="system"?l.removeAttribute(Ge):l.setAttribute(Ge,_),a(_),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>l.classList.remove(_a))})},[]),p=s.useCallback(()=>d(c==="dark"?"light":"dark"),[c,d]);return{scheme:c,preference:e,setScheme:d,toggle:p,isReady:o}},Zt=(e,a)=>{typeof(e==null?void 0:e.scrollIntoView)=="function"&&e.scrollIntoView(a)},ea=({count:e,isOpen:a,initialIndex:n=0,onSelect:r,onClose:o},{hasSpaceSelect:i=!1}={})=>{const[c,d]=s.useState(n),p=s.useRef(null);s.useEffect(()=>{a&&d(n)},[a,n]),s.useEffect(()=>{d(l=>l>=e?Math.max(0,e-1):l)},[e]),s.useEffect(()=>{var l;a&&Zt((l=p.current)==null?void 0:l.querySelector(`[data-index="${c}"]`),{block:"nearest"})},[c,a,e]);const _=s.useCallback(l=>{const h=e-1;switch(l.key){case"ArrowDown":l.preventDefault(),d(u=>u>=h?0:u+1);break;case"ArrowUp":l.preventDefault(),d(u=>u<=0?h:u-1);break;case"Home":l.preventDefault(),d(0);break;case"End":l.preventDefault(),d(h);break;case" ":case"Enter":{if(l.key===" "&&!i)break;l.preventDefault(),e>0&&r(c);break}case"Escape":l.preventDefault(),o();break;case"Tab":o();break}},[c,e,i,o,r]);return{activeIndex:c,setActiveIndex:d,listRef:p,handleKeyDown:_}},Kt={top:"bottom",bottom:"top",left:"right",right:"left"},pa=(e,a,n)=>Math.min(Math.max(e,a),n),Ut=(e,a,n,r,o)=>{const i=n==="top"||n==="bottom",c={top:e.top-a.height-o,bottom:e.top+e.height+o,left:e.left-a.width-o,right:e.left+e.width+o}[n],d=i?e.left:e.top,p=i?e.width:e.height,_=i?a.width:a.height,l={start:d,center:d+p/2-_/2,end:d+p-_}[r];return i?{top:c,left:l}:{top:l,left:c}},ma=(e,a,n,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})[n],jt=(e,a,{side:n="top",align:r="center",offset:o=8,padding:i=8,isOpen:c})=>{const[d,p]=s.useState({style:{position:"fixed",top:0,left:0},side:n,isPositioned:!1}),_=s.useRef(0),l=s.useCallback(()=>{const b=e.current,y=a.current;if(!b||!y)return;const g=b.getBoundingClientRect(),m=y.getBoundingClientRect(),v={width:window.innerWidth,height:window.innerHeight},$=Ut(g,m,n,r,o),j=ma($,m,n,i,v)?n:ma(Ut(g,m,Kt[n],r,o),m,Kt[n],i,v)?Kt[n]:n,f=Ut(g,m,j,r,o);p({style:{position:"fixed",top:Math.round(pa(f.top,i,v.height-m.height-i)),left:Math.round(pa(f.left,i,v.width-m.width-i))},side:j,isPositioned:!0})},[e,a,n,r,o,i]),h=s.useCallback(()=>{_.current||(_.current=window.requestAnimationFrame(()=>{_.current=0,l()}))},[l]);return(z.isClient()?s.useLayoutEffect:s.useEffect)(()=>{if(!c){p(y=>y.isPositioned?{...y,isPositioned:!1}:y);return}l(),window.addEventListener("resize",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),()=>{window.removeEventListener("resize",h),document.removeEventListener("scroll",h,!0),b==null||b.disconnect(),_.current&&(window.cancelAnimationFrame(_.current),_.current=0)}},[c,l,h,e,a]),d},Ta=(e,{rowHeight:a=40,overscan:n=6,isEnabled:r=!0}={})=>{const o=s.useRef(null),[i,c]=s.useState({start:0,end:e,totalHeight:e*a,offset:0}),d=s.useCallback(()=>{const _=o.current,l=!r||!_||_.clientHeight===0?{start:0,end:e,totalHeight:e*a,offset:0}:(()=>{const h=Math.ceil(_.clientHeight/a),u=Math.floor(_.scrollTop/a),b=Math.max(0,u-n),y=Math.min(e,u+h+n);return{start:b,end:y,totalHeight:e*a,offset:b*a}})();c(h=>h.start===l.start&&h.end===l.end&&h.totalHeight===l.totalHeight&&h.offset===l.offset?h:l)},[e,r,n,a]);s.useEffect(d),s.useEffect(()=>{const _=o.current;if(!_)return;_.addEventListener("scroll",d,{passive:!0});const l=typeof ResizeObserver>"u"?null:new ResizeObserver(d);return l==null||l.observe(_),()=>{_.removeEventListener("scroll",d),l==null||l.disconnect()}},[d]);const p=s.useCallback(_=>{const l=o.current;if(!l||!r)return;const h=_*a,u=h+a;h<l.scrollTop?l.scrollTop=h:u>l.scrollTop+l.clientHeight&&(l.scrollTop=u-l.clientHeight)},[r,a]);return{scrollRef:o,range:i,scrollToIndex:p,measure:d}};let xt=0,$e=null;const _n=()=>/iP(hone|ad|od)/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,hn=()=>{if(xt+=1,xt>1)return;const{body:e,style:a}={body:document.body,style:document.documentElement.style},n=window.scrollY;$e={overflow:e.style.overflow,position:e.style.position,top:e.style.top,width:e.style.width,paddingRight:e.style.paddingRight,scrollY:n};const r=window.innerWidth-document.documentElement.clientWidth;r>0&&(e.style.paddingRight=`${r}px`),a.setProperty("scrollbar-gutter","stable"),e.style.overflow="hidden",_n()&&(e.style.position="fixed",e.style.top=`${-n}px`,e.style.width="100%")},pn=()=>{if(xt=Math.max(0,xt-1),xt>0||!$e)return;const{body:e}=document,{scrollY:a}=$e;e.style.overflow=$e.overflow,e.style.position=$e.position,e.style.top=$e.top,e.style.width=$e.width,e.style.paddingRight=$e.paddingRight,document.documentElement.style.removeProperty("scrollbar-gutter"),$e=null,window.scrollTo(0,a)},Nt=(e=!0)=>{s.useEffect(()=>{if(e)return hn(),pn},[e])},Da="--hanui-sheet-height",Sa="--hanui-sheet-inset-bottom";let Et=0,ot=0;const mn=240,Ra=()=>{const e=window.visualViewport;if(!e||e.height<mn)return;const a=window.innerHeight-e.height-e.offsetTop,n=document.documentElement;n.style.setProperty(Sa,`${Math.max(0,Math.round(a))}px`),n.style.setProperty(Da,`${Math.round(e.height)}px`)},Ve=()=>{ot||(ot=window.requestAnimationFrame(()=>{ot=0,Ra()}))},ba=()=>{ot&&(window.cancelAnimationFrame(ot),ot=0)},La=(e=!0)=>{s.useEffect(()=>{if(!e)return;const a=window.visualViewport;if(a)return Et+=1,Et===1&&(a.addEventListener("resize",Ve),a.addEventListener("scroll",Ve),window.addEventListener("orientationchange",Ve)),ba(),Ra(),()=>{Et-=1,!(Et>0)&&(a.removeEventListener("resize",Ve),a.removeEventListener("scroll",Ve),window.removeEventListener("orientationchange",Ve),ba(),document.documentElement.style.removeProperty(Sa),document.documentElement.style.removeProperty(Da))}},[e])};var fe=(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))(fe||{}),Fe=(e=>(e.SMALL="SMALL",e.MEDIUM="MEDIUM",e.LARGE="LARGE",e))(Fe||{});const Aa=640,bn=768,Fa=1024,gn=`(min-width: ${Fa+1}px)`,Ft=`(min-width: ${Aa+1}px)`,Qt=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)=>Qt(e).includes(Qt(a)),fn=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),Ma=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 n=e.tagName;return n==="TEXTAREA"?!0:n!=="INPUT"?!1:!fn.has(e.type)},Mt=e=>{const a=e.ownerDocument.activeElement;!e.contains(a)||!Ma(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})}},xn=["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 n=e.querySelector("[data-hanui-autofocus]");if(n){n.focus({preventScroll:!0});return}const r=[...e.querySelectorAll(xn)],o=r.find(i=>!i.matches(a))??r[0];if(o){o.focus({preventScroll:!0});return}e.tabIndex=-1,e.focus({preventScroll:!0})},vt=[],Pt=()=>{const e=Symbol("hanui-modal");return vt.push(e),{token:e,pop:()=>{const a=vt.indexOf(e);a>=0&&vt.splice(a,1)}}},Ot=e=>vt[vt.length-1]===e,x=(...e)=>{let a="";for(const n of e)n&&(a=a===""?n:`${a} ${n}`);return a},S=(e,a)=>Object.assign(e,{displayName:a}),xe=({children:e,...a})=>{const{linkComponent:n}=H();return n?t.jsx(n,{...a,children:e}):t.jsx("a",{...a,children:e})},ga=new Set,M=(e,...a)=>{for(const n of a)if(n!==void 0)return n;return process.env.NODE_ENV!=="production"&&!ga.has(e)&&(ga.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.`)),""},Lt=(e,a,...n)=>a?a(...n):M(e),vn="hanui-spinner-7pXwf",yn="hanui-spinner__label-sZvSq",qt={spinner:vn,spinner__label:yn,"spinner--sm":"hanui-spinner--sm-uI0wH","spinner--md":"hanui-spinner--md--VmFK","spinner--lg":"hanui-spinner--lg-K9k-Z"},wn=({size:e="md",label:a,className:n})=>{const{labels:r}=H();return t.jsx("span",{className:x(qt.spinner,qt[`spinner--${e}`],n),role:"status",children:t.jsx("span",{className:qt.spinner__label,children:a??M("Spinner.label",r==null?void 0:r.loading)})})},ta=s.memo(wn),kn="hanui-button-SRu4R",jn="hanui-button__icon-giom6",Nn="hanui-button__spinner-vexVG",$n="hanui-button__label-qiMHm",ye={button:kn,button__icon:jn,button__spinner:Nn,button__label:$n,"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"},En=s.forwardRef(({variant:e=fe.PRIMARY,size:a=Fe.MEDIUM,isLoading:n,isFullWidth:r,startIcon:o,endIcon:i,className:c,children:d,disabled:p,href:_,isExternal:l,linkProps:h,testId:u,...b},y)=>{const g=x(ye.button,ye[`button--${e.toLowerCase()}`],ye[`button--${a.toLowerCase()}`],r&&ye["button--full"],n&&ye["button--loading"],c),m=t.jsxs(t.Fragment,{children:[n&&t.jsx(ta,{size:"sm",className:ye.button__spinner,label:""}),!n&&o&&t.jsx("span",{className:ye.button__icon,children:o}),t.jsx("span",{className:ye.button__label,children:d}),i&&t.jsx("span",{className:ye.button__icon,children:i})]});return _&&l?t.jsx("a",{href:_,className:g,target:"_blank",rel:"noopener noreferrer","aria-label":b["aria-label"],"data-testid":u,children:m}):_?t.jsx(xe,{href:_,className:g,"data-testid":u,...h,children:m}):t.jsx("button",{ref:y,className:g,disabled:p||n,"aria-busy":n,"data-testid":u,...b,children:m})}),it=s.memo(S(En,"Button")),Cn="hanui-iconButton-JdtwM",Yt={iconButton:Cn,"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"},In=s.forwardRef(({icon:e,label:a,variant:n="ghost",size:r="md",className:o,type:i="button",href:c,linkProps:d,testId:p,..._},l)=>{const h=x(Yt.iconButton,Yt[`iconButton--${n}`],Yt[`iconButton--${r}`],o);return c?t.jsx(xe,{href:c,className:h,"aria-label":a,title:_.title,"data-testid":p,...d,children:e}):t.jsx("button",{ref:l,type:i,className:h,"aria-label":a,"data-testid":p,..._,children:e})}),pe=s.memo(S(In,"IconButton")),Tn="hanui-link-WBmXY",Dn="hanui-link__label--OEu-",Sn="hanui-link__arrow-JKXm-",ut={link:Tn,link__label:Dn,link__arrow:Sn,"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"},Rn=({href:e,children:a,hasArrow:n,tone:r="brand",size:o="md",className:i,linkProps:c,...d})=>t.jsxs(xe,{href:e,className:x(ut.link,ut[`link--${r}`],ut[`link--${o}`],i),...c,...d,children:[t.jsx("span",{className:ut.link__label,children:a}),n&&t.jsx(E.ArrowRight,{"aria-hidden":!0,className:ut.link__arrow})]}),Ln=s.memo(Rn),An="hanui-tooltip-RG1g1",Fn="hanui-tooltip__trigger-nWZtO",Mn="hanui-bubble-bcBNk",Ct={tooltip:An,tooltip__trigger:Fn,bubble:Mn,"bubble--top":"hanui-bubble--top-uWSZy","bubble--bottom":"hanui-bubble--bottom-jKokL","bubble--left":"hanui-bubble--left-WK4EM","bubble--right":"hanui-bubble--right-EQjUT"},Bn=120,Pn=500,On=({content:e,children:a,side:n,position:r,openDelay:o=300,className:i})=>{const[c,d]=s.useState(!1),p=s.useId(),_=n??r??"top",l=s.useRef(null),h=s.useRef(null),u=s.useRef(0),b=s.useRef(0),y=jt(l,h,{side:_,align:"center",isOpen:c}),g=s.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=0},[]),m=s.useCallback(f=>{g(),u.current=window.setTimeout(()=>d(!0),f)},[g]),v=s.useCallback((f=Bn)=>{g(),u.current=window.setTimeout(()=>d(!1),f)},[g]);s.useEffect(()=>g,[g]),s.useEffect(()=>{if(!c)return;const f=N=>{N.key==="Escape"&&v(0)};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[c,v]),s.useEffect(()=>{if(!c)return;const f=N=>{var k;N.pointerType!=="mouse"&&((k=l.current)!=null&&k.contains(N.target)||v(0))};return document.addEventListener("pointerdown",f),()=>document.removeEventListener("pointerdown",f)},[c,v]);const $=()=>{b.current&&window.clearTimeout(b.current),b.current=0},j=f=>{f.pointerType!=="mouse"&&(b.current=window.setTimeout(()=>d(!0),Pn))};return t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:l,className:x(Ct.tooltip,i),onPointerEnter:f=>f.pointerType==="mouse"&&m(o),onPointerLeave:f=>{$(),f.pointerType==="mouse"&&v()},onPointerDown:j,onPointerUp:$,onPointerCancel:$,onFocus:()=>m(0),onBlur:()=>v(0),onContextMenu:f=>{(c||b.current)&&f.preventDefault()},children:t.jsx("span",{"aria-describedby":c?p:void 0,className:Ct.tooltip__trigger,children:a})}),c&&z.isClient()&&kt.createPortal(t.jsx("span",{ref:h,id:p,role:"tooltip",className:x(Ct.bubble,Ct[`bubble--${y.side}`]),style:{...y.style,visibility:y.isPositioned?"visible":"hidden"},onPointerEnter:g,onPointerLeave:()=>v(),children:e}),document.body)]})},Hn=s.memo(S(On,"Tooltip")),zn="hanui-menu-1x-FU",Kn="hanui-menu__item-d1iil",Un="hanui-menu__icon-kzLV2",_t={menu:zn,"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:Kn,"menu__item--danger":"hanui-menu__item--danger-lIINY",menu__icon:Un},qn=e=>e.map((a,n)=>a.isDisabled?-1:n).filter(a=>a>=0),Yn=({trigger:e,items:a,label:n,side:r="bottom",align:o="start",className:i,testId:c})=>{const d=s.useId(),p=s.useRef(null),_=s.useRef(null),l=s.useRef(null),h=s.useRef({text:"",at:0}),[u,b]=s.useState(!1),[y,g]=s.useState(0),m=jt(p,_,{side:r,align:o,isOpen:u}),v=qn(a),$=s.useCallback(w=>{v.length!==0&&(l.current=ct(),g(w==="first"?v[0]:v[v.length-1]),b(!0))},[v]),j=s.useCallback(()=>{var w;b(!1),(w=l.current)==null||w.call(l),l.current=null},[]);s.useEffect(()=>{var w,L;u&&((L=(w=_.current)==null?void 0:w.querySelector(`[data-index="${y}"]`))==null||L.focus({preventScroll:!0}))},[u,y]),s.useEffect(()=>{if(!u)return;const w=L=>{var X,G;const P=L.target;(X=_.current)!=null&&X.contains(P)||(G=p.current)!=null&&G.contains(P)||j()};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[u,j]);const f=w=>{const P=(v.indexOf(y)+w+v.length)%v.length;g(v[P])},N=w=>{const L=Date.now(),P=L-h.current.at>500?w:h.current.text+w;h.current={text:P,at:L};const X=v.find(G=>a[G].label.toLocaleLowerCase("tr").startsWith(P.toLocaleLowerCase("tr")));X!==void 0&&g(X)},k=w=>{switch(w.key){case"ArrowDown":w.preventDefault(),f(1);break;case"ArrowUp":w.preventDefault(),f(-1);break;case"Home":w.preventDefault(),g(v[0]);break;case"End":w.preventDefault(),g(v[v.length-1]);break;case"Escape":w.preventDefault(),j();break;case"Tab":j();break;default:w.key.length===1&&!w.metaKey&&!w.ctrlKey&&N(w.key)}},D=w=>{if(w.key==="ArrowUp"){w.preventDefault(),$("last");return}["ArrowDown","Enter"," "].includes(w.key)&&(w.preventDefault(),$("first"))};if(!s.isValidElement(e))return null;const C=e.props,I=s.cloneElement(e,{ref:p,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?d:void 0,onClick:w=>{var L;(L=C.onClick)==null||L.call(C,w),u?j():$("first")},onKeyDown:w=>{var L;(L=C.onKeyDown)==null||L.call(C,w),u||D(w)}});return t.jsxs(t.Fragment,{children:[I,u&&z.isClient()&&kt.createPortal(t.jsx("div",{ref:_,id:d,role:"menu","aria-label":n,className:x(_t.menu,_t[`menu--${m.side}`],i),style:{...m.style,visibility:m.isPositioned?"visible":"hidden"},"data-testid":c,onKeyDown:k,children:a.map((w,L)=>t.jsxs("button",{type:"button",role:"menuitem","data-index":L,tabIndex:L===y?0:-1,disabled:w.isDisabled,className:x(_t.menu__item,w.isDanger&&_t["menu__item--danger"]),onClick:()=>{w.onSelect(),j()},onMouseEnter:()=>!w.isDisabled&&g(L),children:[w.icon&&t.jsx("span",{className:_t.menu__icon,"aria-hidden":!0,children:w.icon}),w.label]},w.id))}),document.body)]})},Xn=s.memo(S(Yn,"Menu")),Gn="hanui-popover-VxgiK",fa={popover:Gn,"popover--top":"hanui-popover--top-OUYwo","popover--bottom":"hanui-popover--bottom-Q1K4X","popover--left":"hanui-popover--left-9Rsjx","popover--right":"hanui-popover--right-0TJeo"},Qn=({trigger:e,children:a,label:n,side:r="bottom",align:o="start",isOpen:i,onOpenChange:c,className:d,testId:p})=>{const _=s.useId(),l=s.useRef(null),h=s.useRef(null),u=s.useRef(null),[b,y]=s.useState(!1),g=i!==void 0,m=g?i:b,v=jt(l,h,{side:r,align:o,isOpen:m}),$=s.useCallback(N=>{g||y(N),c==null||c(N)},[g,c]);if(s.useEffect(()=>{if(!m)return;u.current=ct();const N=h.current;return N&&Bt(N),()=>{var k;(k=u.current)==null||k.call(u),u.current=null}},[m]),s.useEffect(()=>{if(!m)return;const N=D=>{D.key==="Escape"&&$(!1)},k=D=>{var I,w;const C=D.target;(I=h.current)!=null&&I.contains(C)||(w=l.current)!=null&&w.contains(C)||$(!1)};return document.addEventListener("keydown",N),document.addEventListener("mousedown",k),()=>{document.removeEventListener("keydown",N),document.removeEventListener("mousedown",k)}},[m,$]),!s.isValidElement(e))return null;const j=e.props,f=s.cloneElement(e,{ref:l,"aria-expanded":m,"aria-haspopup":"dialog","aria-controls":m?_:void 0,onClick:N=>{var k;(k=j.onClick)==null||k.call(j,N),$(!m)}});return t.jsxs(t.Fragment,{children:[f,m&&z.isClient()&&kt.createPortal(t.jsx("div",{ref:h,id:_,role:"dialog","aria-label":n,className:x(fa.popover,fa[`popover--${v.side}`],d),style:{...v.style,visibility:v.isPositioned?"visible":"hidden"},"data-testid":p,onBlur:N=>{var k;N.currentTarget.contains(N.relatedTarget)||(k=l.current)!=null&&k.contains(N.relatedTarget)||$(!1)},children:a}),document.body)]})},Wn=s.memo(S(Qn,"Popover")),Jn="hanui-chip--NLgU",Vn="hanui-chip__icon-IjjSb",Zn="hanui-chip__label-cT4hw",es="hanui-chip__count-MBGO3",Te={chip:Jn,chip__icon:Vn,chip__label:Zn,chip__count:es,"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"},ts=s.forwardRef(({children:e,icon:a,endIcon:n,count:r,isSelected:o,size:i="md",label:c,href:d,linkProps:p,className:_,type:l="button",role:h,testId:u,...b},y)=>{const g=x(Te.chip,Te[`chip--${i}`],o&&Te["chip--selected"],!e&&Te["chip--iconOnly"],_),m=t.jsxs(t.Fragment,{children:[a&&t.jsx("span",{className:Te.chip__icon,"aria-hidden":!0,children:a}),e&&t.jsx("span",{className:Te.chip__label,children:e}),z.isDefined(r)&&t.jsx("span",{className:Te.chip__count,children:r}),n&&t.jsx("span",{className:Te.chip__icon,"aria-hidden":!0,children:n})]});return d?t.jsx(xe,{href:d,className:g,"aria-label":e?void 0:c,"aria-current":o?"page":void 0,"data-testid":u,...p,children:m}):t.jsx("button",{ref:y,type:l,role:h,className:g,"aria-label":e?void 0:c,"data-testid":u,...h==="radio"?{"aria-checked":!!o}:{"aria-pressed":!!o},...b,children:m})}),Ba=s.memo(S(ts,"Chip")),as="hanui-group-0tnVf",xa={group:as,"group--scrollable":"hanui-group--scrollable-PMu6V"},ns=({options:e,label:a,size:n="md",isScrollable:r,className:o,...i})=>{var h;const c=s.useRef(null),d=u=>i.isMultiple?i.value.includes(u):i.value===u,p=u=>{if(i.isMultiple){const b=i.value.includes(u)?i.value.filter(y=>y!==u):[...i.value,u];i.onChange(b);return}i.onChange(i.value===u?null:u)},_=u=>{var v,$;if(i.isMultiple)return;const b=u.key==="ArrowRight"||u.key==="ArrowDown"?1:u.key==="ArrowLeft"||u.key==="ArrowUp"?-1:0;if(b===0)return;u.preventDefault();const y=e.filter(j=>!j.isDisabled);if(y.length===0)return;const g=y.findIndex(j=>j.value===i.value),m=y[(g+b+y.length)%y.length];i.onChange(m.value),($=(v=c.current)==null?void 0:v.querySelector(`[data-chip-value="${m.value}"]`))==null||$.focus()},l=i.isMultiple?null:i.value??((h=e.find(u=>!u.isDisabled))==null?void 0:h.value)??null;return t.jsx("div",{ref:c,className:x(xa.group,r&&xa["group--scrollable"],o),role:i.isMultiple?"group":"radiogroup","aria-label":a,onKeyDown:_,children:e.map(u=>t.jsx(Ba,{size:n,icon:u.icon,count:u.count,isSelected:d(u.value),disabled:u.isDisabled,role:i.isMultiple?void 0:"radio",tabIndex:i.isMultiple||u.value===l?0:-1,"data-chip-value":u.value,onClick:()=>p(u.value),children:u.label},u.value))})},ss=s.memo(ns),rs="hanui-sheet-GEvdE",os="hanui-sheet__header-NJgw-",is="hanui-sheet__title-f-b07",cs="hanui-sheet__toolbar-eyhmW",ls="hanui-sheet__body-eJ2KB",ds="hanui-sheet__footer-NpsY5",Pe={sheet:rs,sheet__header:os,sheet__title:is,sheet__toolbar:cs,sheet__body:ls,sheet__footer:ds},us=({title:e,closeLabel:a,onClose:n,children:r,toolbar:o,footer:i,closeAbove:c=Ft,className:d,testId:p})=>{const{labels:_}=H(),l=s.useId(),h=s.useRef(null);La(),Nt(),s.useEffect(()=>{const y=ct(),{token:g,pop:m}=Pt();return h.current=g,()=>{m(),h.current=null,y()}},[]),s.useEffect(()=>{const y=window.matchMedia(c);return y.addEventListener("change",n),()=>y.removeEventListener("change",n)},[c,n]);const u=s.useCallback(y=>{!y||y.open||(y.showModal(),Bt(y,`.${Pe.sheet__header} button`),Mt(y))},[]),b=s.useCallback(y=>{y.target===y.currentTarget&&n()},[n]);return z.isClient()?kt.createPortal(t.jsxs("dialog",{ref:u,className:x(Pe.sheet,d),"aria-labelledby":l,"data-testid":p,onCancel:y=>{y.preventDefault(),!(h.current&&!Ot(h.current))&&n()},onClick:b,children:[t.jsxs("header",{className:Pe.sheet__header,children:[t.jsx("h2",{id:l,className:Pe.sheet__title,children:e}),t.jsx(pe,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:M("BottomSheet.closeLabel",a,_==null?void 0:_.close),variant:"ghost",size:"sm",onClick:n})]}),o&&t.jsx("div",{className:Pe.sheet__toolbar,children:o}),t.jsx("div",{className:Pe.sheet__body,children:r}),i&&t.jsx("div",{className:Pe.sheet__footer,children:i})]}),document.body):null},aa=s.memo(us),_s=80,va=40,hs="hanui-combobox-NtZoV",ps="hanui-combobox__trigger-2riRR",ms="hanui-combobox__leadingIcon-it2xz",bs="hanui-combobox__value-acDlr",gs="hanui-combobox__clear-EXOsc",fs="hanui-combobox__chevron-g-QzQ",xs="hanui-combobox__panel-srBxl",vs="hanui-combobox__search-THjer",ys="hanui-combobox__searchIcon-vr4Bg",ws="hanui-combobox__searchInput-JPp5h",ks="hanui-combobox__list-p-eCs",js="hanui-combobox__option-CLWh-",Ns="hanui-combobox__optionText-Zm0D6",$s="hanui-combobox__optionLabel-WvT4W",Es="hanui-combobox__optionDescription-8OEzi",Cs="hanui-combobox__check-MKlLz",Is="hanui-combobox__empty-mZwBq",O={combobox:hs,combobox__trigger:ps,"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:ms,combobox__value:bs,combobox__clear:gs,combobox__chevron:fs,"combobox__chevron--open":"hanui-combobox__chevron--open-9kj1j",combobox__panel:xs,combobox__search:vs,combobox__searchIcon:ys,combobox__searchInput:ws,combobox__list:ks,"combobox__list--sheet":"hanui-combobox__list--sheet-r3MzB",combobox__option:js,"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:Ns,combobox__optionLabel:$s,combobox__optionDescription:Es,combobox__check:Cs,combobox__empty:Is},Ts=({options:e,value:a,onChange:n,labels:r,isSearchHidden:o,onSearch:i,isLoading:c,isDisabled:d,isClearable:p,icon:_,id:l,className:h,testId:u,"aria-describedby":b,"aria-invalid":y})=>{var la;const{labels:g}=H(),m={get search(){var R;return M("Combobox.searchPlaceholder",r.searchPlaceholder,(R=g==null?void 0:g.combobox)==null?void 0:R.searchPlaceholder)},get empty(){var R;return M("Combobox.emptyMessage",r.emptyMessage,(R=g==null?void 0:g.combobox)==null?void 0:R.emptyMessage)},get loading(){var R;return M("Combobox.loadingMessage",r.loadingMessage,(R=g==null?void 0:g.combobox)==null?void 0:R.loadingMessage)},get clear(){var R;return M("Combobox.clearLabel",r.clearLabel,(R=g==null?void 0:g.combobox)==null?void 0:R.clearLabel)}},v=s.useId(),$=l??v,j=`${$}-listbox`,f=s.useRef(null),N=s.useRef(null),k=s.useRef(null),D=s.useRef(null),[C,I]=s.useState(null),w=C!==null,[L,P]=s.useState(""),[X,G]=s.useState(null),K=s.useMemo(()=>{if(i||L.trim()==="")return e;const R=L.trim();return e.filter(ne=>wt(ne.label,R)||(ne.description?wt(ne.description,R):!1))},[e,L,i]),ce=e.find(R=>R.value===a)??null;s.useEffect(()=>{ce?G(ce.label):a===null&&G(null)},[ce,a]);const We=(ce==null?void 0:ce.label)??X,ve=s.useRef(i);ve.current=i,s.useEffect(()=>{if(!w||!ve.current)return;const R=window.setTimeout(()=>{var ne;return(ne=ve.current)==null?void 0:ne.call(ve,L.trim())},300);return()=>window.clearTimeout(R)},[L,w]);const Ie=s.useCallback(()=>{I(null),P("")},[]),$t=s.useCallback(()=>{d||(I(window.matchMedia(Ft).matches?"popover":"sheet"),P(""))},[d]);s.useEffect(()=>{if(C!=="popover")return;const R=ne=>{var ue;(ue=f.current)!=null&&ue.contains(ne.target)||Ie()};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[C,Ie]),s.useEffect(()=>{var R;C==="popover"&&((R=D.current)==null||R.focus({preventScroll:!0}))},[C]);const lt=R=>{R.isDisabled||(G(R.label),n(R.value),Ie())},B=s.useRef(!1);s.useEffect(()=>{var R;B.current&&!w&&((R=N.current)==null||R.focus()),B.current=w},[w]);const J=jt(N,k,{side:"bottom",align:"start",isOpen:w&&C==="popover"}),{activeIndex:ae,setActiveIndex:Je,listRef:Ua,handleKeyDown:qa}=ea({count:K.length,isOpen:w,initialIndex:Math.max(e.findIndex(R=>R.value===a),0),onSelect:R=>{const ne=K[R];ne&&lt(ne)},onClose:Ie}),Ya=K.some(R=>!!R.description),Me=C==="popover"&&!Ya&&K.length>_s,{scrollRef:Xa,range:Be,scrollToIndex:oa}=Ta(K.length,{rowHeight:va,isEnabled:Me});s.useEffect(()=>{Me&&oa(ae)},[ae,Me,oa]);const Ga=R=>{Ua.current=R,Xa.current=R},Qa=qa,Wa=()=>{n(null),G(null)},ia=o?null:t.jsxs("div",{className:O.combobox__search,children:[t.jsx(E.Search,{"aria-hidden":!0,className:O.combobox__searchIcon}),t.jsx("input",{ref:D,type:"text",role:"combobox",className:O.combobox__searchInput,value:L,placeholder:m.search,autoComplete:"off","aria-autocomplete":"list","aria-expanded":!0,"aria-controls":j,"aria-activedescendant":K[ae]?`${$}-option-${ae}`:void 0,"aria-label":m.search,onChange:R=>{P(R.target.value),Je(0)},onKeyDown:Qa}),c&&t.jsx(ta,{size:"sm",label:""})]}),ca=R=>{const ne=K.slice(Be.start,Be.end);return t.jsxs("ul",{ref:Ga,id:j,role:"listbox",className:x(O.combobox__list,R&&O["combobox__list--sheet"]),children:[Me&&Be.offset>0&&t.jsx("li",{"aria-hidden":!0,style:{height:Be.offset}}),ne.map((ue,Ja)=>{const dt=Be.start+Ja,Va=dt===ae,Ht=ue.value===a;return t.jsx("li",{children:t.jsxs("div",{id:`${$}-option-${dt}`,role:"option","data-index":dt,"aria-setsize":Me?K.length:void 0,"aria-posinset":Me?dt+1:void 0,"aria-selected":Ht,"aria-disabled":ue.isDisabled,className:x(O.combobox__option,Va&&O["combobox__option--active"],Ht&&O["combobox__option--selected"],ue.isDisabled&&O["combobox__option--disabled"]),onMouseEnter:()=>Je(dt),onClick:()=>lt(ue),children:[t.jsxs("span",{className:O.combobox__optionText,children:[t.jsx("span",{className:O.combobox__optionLabel,children:ue.label}),ue.description&&t.jsx("span",{className:O.combobox__optionDescription,children:ue.description})]}),Ht&&t.jsx(E.CheckLg,{"aria-hidden":!0,className:O.combobox__check})]})},ue.value)}),Me&&Be.end<K.length&&t.jsx("li",{"aria-hidden":!0,style:{height:(K.length-Be.end)*va}}),K.length===0&&t.jsx("li",{className:O.combobox__empty,children:c?m.loading:m.empty})]})};return t.jsxs("div",{ref:f,className:x(O.combobox,h),"data-testid":u,children:[t.jsxs("button",{ref:N,id:$,type:"button",className:x(O.combobox__trigger,!We&&O["combobox__trigger--empty"],w&&O["combobox__trigger--open"],y&&O["combobox__trigger--invalid"],p&&We&&!d&&O["combobox__trigger--clearable"]),disabled:d,"aria-haspopup":"listbox","aria-expanded":w,"aria-controls":w?j:void 0,"aria-label":r.placeholder,"aria-describedby":b,onClick:()=>w?Ie():$t(),children:[_&&t.jsx("span",{className:O.combobox__leadingIcon,"aria-hidden":!0,children:_}),t.jsx("span",{className:O.combobox__value,children:We??r.placeholder}),t.jsx(E.CaretDownFill,{"aria-hidden":!0,className:x(O.combobox__chevron,w&&O["combobox__chevron--open"])})]}),p&&We&&!d&&t.jsx("button",{type:"button",className:O.combobox__clear,"aria-label":m.clear,onClick:Wa,children:t.jsx(E.XLg,{"aria-hidden":!0})}),C==="popover"&&t.jsxs("div",{ref:k,className:O.combobox__panel,style:{...J.style,width:(la=N.current)==null?void 0:la.offsetWidth,visibility:J.isPositioned?void 0:"hidden"},children:[ia,ca(!1)]}),C==="sheet"&&t.jsx(aa,{title:r.placeholder,closeLabel:r.closeLabel??(g==null?void 0:g.close),onClose:Ie,toolbar:ia??void 0,children:ca(!0)})]})},Ds=s.memo(Ts),Ss="hanui-segmented-qo2Bw",Rs="hanui-segmented__item-mqRNZ",Ls="hanui-segmented__icon-C9CT-",As="hanui-segmented__label-NVXBv",Ze={segmented:Ss,"segmented--sm":"hanui-segmented--sm-7tUry","segmented--md":"hanui-segmented--md-PiSqt",segmented__item:Rs,"segmented__item--selected":"hanui-segmented__item--selected-r7CLj",segmented__icon:Ls,segmented__label:As},Fs=({options:e,value:a,onChange:n,label:r,isIconOnly:o,size:i="md",className:c,testId:d})=>{const p=s.useRef(null),_=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 u=e.filter(v=>!v.isDisabled);if(u.length===0)return;const b=u.findIndex(v=>v.value===a),y=u[(b+h+u.length)%u.length];n(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(Ze.segmented,Ze[`segmented--${i}`],c),"data-testid":d,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:x(Ze.segmented__item,h&&Ze["segmented__item--selected"]),onClick:()=>!h&&n(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)})})},Ms=s.memo(S(Fs,"SegmentedControl")),Bs="hanui-select-tiiPL",Ps="hanui-trigger-rHQJz",Os="hanui-trigger__icon-apCcx",Hs="hanui-trigger__value-ioH7K",zs="hanui-trigger__chevron-FtsIZ",Ks="hanui-panel-rGOOd",Us="hanui-list-SOKf8",qs="hanui-option-ZDPef",Ys="hanui-option__label-SsoYB",Xs="hanui-option__check-8CPSG",q={select:Bs,trigger:Ps,"trigger--empty":"hanui-trigger--empty-cuinb","trigger--open":"hanui-trigger--open-1nsvu","trigger--sm":"hanui-trigger--sm-Xnu1C",trigger__icon:Os,trigger__value:Hs,trigger__chevron:zs,"trigger__chevron--open":"hanui-trigger__chevron--open-1P2P-",panel:Ks,"panel--start":"hanui-panel--start-Fotwa","panel--end":"hanui-panel--end-ClVl2",list:Us,"list--sheet":"hanui-list--sheet-BIjCb",option:qs,"option--active":"hanui-option--active-R4lLF","option--selected":"hanui-option--selected-glQMj","option--disabled":"hanui-option--disabled-h4rdd",option__label:Ys,option__check:Xs},Gs=({options:e,value:a,onChange:n,label:r,placeholder:o,closeLabel:i,icon:c,size:d="md",align:p="start",isDisabled:_,id:l,className:h,testId:u,"aria-describedby":b,"aria-invalid":y})=>{const{labels:g}=H(),m=M("Select.placeholder",o,g==null?void 0:g.selectPlaceholder),v=s.useId(),$=l??v,j=`${$}-listbox`,f=B=>`${$}-option-${B}`,N=s.useRef(null),k=s.useRef(null),[D,C]=s.useState(null),I=D!==null,w=e.findIndex(B=>B.value===a),L=w>=0?e[w]:null,P=s.useCallback(()=>C(null),[]),X=s.useCallback(()=>{_||e.length===0||C(window.matchMedia(Ft).matches?"popover":"sheet")},[_,e.length]),G=B=>{B.isDisabled||(n(B.value),P())},K=s.useRef(!1);s.useEffect(()=>{var B;K.current&&!I&&((B=k.current)==null||B.focus()),K.current=I},[I]),s.useEffect(()=>{if(D!=="popover")return;const B=J=>{var ae;(ae=N.current)!=null&&ae.contains(J.target)||P()};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[D,P]);const{activeIndex:ce,setActiveIndex:We,listRef:ve,handleKeyDown:Ie}=ea({count:e.length,isOpen:I,initialIndex:w>=0?w:0,onSelect:B=>{const J=e[B];J&&G(J)},onClose:P});s.useEffect(()=>{var B;D==="sheet"&&((B=ve.current)==null||B.focus({preventScroll:!0}))},[D,ve]);const $t=B=>{if(!I){["ArrowDown","ArrowUp","Enter"," "].includes(B.key)&&(B.preventDefault(),X());return}Ie(B)},lt=B=>t.jsx("ul",{ref:ve,id:j,role:"listbox","aria-label":r,"aria-activedescendant":B&&e[ce]?f(ce):void 0,tabIndex:B?0:-1,className:x(q.list,B&&q["list--sheet"]),onKeyDown:B?$t:void 0,children:e.map((J,ae)=>{const Je=J.value===a;return t.jsxs("li",{id:f(ae),role:"option","data-index":ae,"aria-selected":Je,"aria-disabled":J.isDisabled,className:x(q.option,ae===ce&&q["option--active"],Je&&q["option--selected"],J.isDisabled&&q["option--disabled"]),onMouseEnter:()=>We(ae),onClick:()=>G(J),children:[t.jsx("span",{className:q.option__label,children:J.label}),Je&&t.jsx(E.CheckLg,{"aria-hidden":!0,className:q.option__check})]},J.value)})});return t.jsxs("span",{ref:N,className:x(q.select,h),"data-testid":u,children:[t.jsxs("button",{ref:k,id:$,type:"button",role:"combobox",className:x(q.trigger,q[`trigger--${d}`],!L&&q["trigger--empty"],I&&q["trigger--open"]),disabled:_,"aria-haspopup":"listbox","aria-expanded":I,"aria-controls":I?j:void 0,"aria-activedescendant":D==="popover"&&e[ce]?f(ce):void 0,"aria-label":r,"aria-describedby":b,"aria-invalid":y,onClick:()=>I?P():X(),onKeyDown:$t,children:[c&&t.jsx("span",{className:q.trigger__icon,"aria-hidden":!0,children:c}),t.jsx("span",{className:q.trigger__value,children:(L==null?void 0:L.label)??m}),t.jsx(E.CaretDownFill,{"aria-hidden":!0,className:x(q.trigger__chevron,I&&q["trigger__chevron--open"])})]}),D==="popover"&&t.jsx("div",{className:x(q.panel,q[`panel--${p}`]),children:lt(!1)}),D==="sheet"&&t.jsx(aa,{title:r,closeLabel:i??(g==null?void 0:g.close),onClose:P,children:lt(!0)})]})},Qs=s.memo(Gs),Ws="hanui-checkbox-FaFCj",Js="hanui-checkbox__input-nTHne",Vs="hanui-checkbox__body-VAEW2",Zs="hanui-checkbox__label-sSNZY",er="hanui-checkbox__hint-ish-J",ht={checkbox:Ws,checkbox__input:Js,checkbox__body:Vs,checkbox__label:Zs,checkbox__hint:er},tr=s.forwardRef(({label:e,hint:a,className:n,testId:r,...o},i)=>t.jsxs("label",{className:x(ht.checkbox,n),"data-testid":r,children:[t.jsx("input",{ref:i,type:"checkbox",className:ht.checkbox__input,...o}),t.jsxs("span",{className:ht.checkbox__body,children:[t.jsx("span",{className:ht.checkbox__label,children:e}),a&&t.jsx("span",{className:ht.checkbox__hint,children:a})]})]})),ar=s.memo(S(tr,"Checkbox")),nr="hanui-switch__input-Q2UQ4",sr="hanui-switch__label-gPZuO",rr="hanui-switch__hint-NRuzC",or="hanui-switch__track-3417m",ir="hanui-switch__thumb-1LHta",cr="hanui-switch__text-32uMY",De={switch:"hanui-switch-KLH29",switch__input:nr,"switch--labelFirst":"hanui-switch--labelFirst-Grirk",switch__label:sr,switch__hint:rr,switch__track:or,switch__thumb:ir,switch__text:cr},lr=s.forwardRef(({label:e,hint:a,isLabelFirst:n,className:r,id:o,testId:i,...c},d)=>t.jsxs("label",{className:x(De.switch,n&&De["switch--labelFirst"],r),"data-testid":i,children:[t.jsx("input",{ref:d,type:"checkbox",role:"switch",id:o,className:De.switch__input,...c}),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})]})]})),dr=s.memo(S(lr,"Switch")),ur="hanui-radio-KoZak",_r="hanui-radio__input-gVMgh",hr="hanui-radio__body-oZWg6",pr="hanui-radio__label-d-5ce",mr="hanui-radio__hint-baVbs",br="hanui-radio__count-OtkUM",et={radio:ur,radio__input:_r,radio__body:hr,radio__label:pr,radio__hint:mr,radio__count:br},gr=s.forwardRef(({label:e,hint:a,count:n,className:r,testId:o,...i},c)=>t.jsxs("label",{className:x(et.radio,r),"data-testid":o,children:[t.jsx("input",{ref:c,type:"radio",className:et.radio__input,...i}),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})]}),z.isDefined(n)&&t.jsx("span",{className:et.radio__count,children:n})]})),fr=s.memo(S(gr,"Radio")),xr="hanui-radioCard-sndiC",vr="hanui-radioCard__input-6vuoD",yr="hanui-radioCard__indicator--x9LT",wr="hanui-radioCard__body-CFqoi",tt={radioCard:xr,radioCard__input:vr,"radioCard--selected":"hanui-radioCard--selected-Mi7ee",radioCard__indicator:yr,"radioCard--disabled":"hanui-radioCard--disabled-YlYee",radioCard__body:wr},kr=({name:e,value:a,isSelected:n,isDisabled:r,onChange:o,children:i,className:c,id:d,testId:p})=>t.jsxs("label",{className:x(tt.radioCard,n&&tt["radioCard--selected"],r&&tt["radioCard--disabled"],c),"data-testid":p,children:[t.jsx("input",{type:"radio",id:d,name:e,value:a,checked:n,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:i})]}),jr=s.memo(kr),Nr="hanui-range-RpDPh",$r="hanui-range__readout-itDMd",Er="hanui-range__separator-u-ZJX",Cr="hanui-range__track-bCh5Y",Ir="hanui-range__fill-VXMCE",Tr="hanui-range__input-TAN2I",Dr="hanui-range__bounds-GIhFd",_e={range:Nr,"range--disabled":"hanui-range--disabled-13hlc",range__readout:$r,range__separator:Er,range__track:Cr,range__fill:Ir,range__input:Tr,range__bounds:Dr},Sr=({min:e,max:a,step:n=1,value:r,onChange:o,onCommit:i,formatValue:c=String,label:d,minLabel:p,maxLabel:_,isDisabled:l,className:h,testId:u})=>{var I,w;const{labels:b}=H(),y=M("RangeSlider.minLabel",p,(I=b==null?void 0:b.range)==null?void 0:I.min),g=M("RangeSlider.maxLabel",_,(w=b==null?void 0:b.range)==null?void 0:w.max),[m,v]=r,$=s.useCallback(L=>o([Math.min(L,v),v]),[v,o]),j=s.useCallback(L=>o([m,Math.max(L,m)]),[m,o]),f=s.useCallback(()=>i==null?void 0:i([m,v]),[m,v,i]),N=a-e,k=N===0?0:z.normalize(m-e,N),D=N===0?0:z.normalize(v-e,N),C=k>50;return t.jsxs("div",{className:x(_e.range,l&&_e["range--disabled"],h),role:"group","aria-label":d,"data-testid":u,children:[t.jsxs("div",{className:_e.range__readout,children:[t.jsx("span",{className:_e.range__value,children:c(m)}),t.jsx("span",{className:_e.range__separator,"aria-hidden":!0,children:"—"}),t.jsx("span",{className:_e.range__value,children:c(v)})]}),t.jsxs("div",{className:_e.range__track,children:[t.jsx("span",{className:_e.range__fill,style:{left:`${k}%`,right:`${100-D}%`},"aria-hidden":!0}),t.jsx("input",{type:"range",className:_e.range__input,style:{zIndex:C?4:3},min:e,max:a,step:n,value:m,disabled:l,"aria-label":`${d} — ${y}`,"aria-valuetext":c(m),onChange:L=>$(Number(L.target.value)),onPointerUp:f,onKeyUp:f}),t.jsx("input",{type:"range",className:_e.range__input,style:{zIndex:C?3:4},min:e,max:a,step:n,value:v,disabled:l,"aria-label":`${d} — ${g}`,"aria-valuetext":c(v),onChange:L=>j(Number(L.target.value)),onPointerUp:f,onKeyUp:f})]}),t.jsxs("div",{className:_e.range__bounds,"aria-hidden":!0,children:[t.jsx("span",{children:c(e)}),t.jsx("span",{children:c(a)})]})]})},Rr=s.memo(Sr),Lr="hanui-rating-neNnF",Ar="hanui-rating__legend-uYvFS",Fr="hanui-rating__stars-vJFLk",Mr="hanui-rating__star-BANFJ",Br="hanui-rating__input-s2iiO",Pr="hanui-rating__srOnly-iSCoz",Or="hanui-rating__caption-13KFX",we={rating:Lr,"rating--disabled":"hanui-rating--disabled-ZKjHa",rating__legend:Ar,rating__stars:Fr,rating__star:Mr,"rating__star--filled":"hanui-rating__star--filled-L3AkT",rating__input:Br,rating__srOnly:Pr,rating__caption:Or},Hr=[1,2,3,4,5],zr=({value:e,onChange:a,label:n,ratingLabels:r,formatStarCount:o,isDisabled:i,className:c,testId:d})=>{var y;const{labels:p}=H(),_=r??((y=p==null?void 0:p.rating)==null?void 0:y.scale),l=s.useId(),[h,u]=s.useState(null),b=h??e;return t.jsxs("fieldset",{className:x(we.rating,i&&we["rating--disabled"],c),disabled:i,"data-testid":d,children:[t.jsx("legend",{className:we.rating__legend,children:n}),t.jsx("div",{className:we.rating__stars,onMouseLeave:()=>u(null),children:Hr.map(g=>{var m;return t.jsxs("label",{className:x(we.rating__star,b!==null&&g<=b&&we["rating__star--filled"]),onMouseEnter:()=>u(g),children:[t.jsx("input",{type:"radio",name:l,value:g,checked:e===g,onChange:()=>a(g),className:we.rating__input}),t.jsx(E.StarFill,{"aria-hidden":!0}),t.jsxs("span",{className:we.rating__srOnly,children:[Lt("RatingInput.formatStarCount",o??((m=p==null?void 0:p.rating)==null?void 0:m.starCount),g)," ","— ",(_==null?void 0:_[g])??""]})]},g)})}),b!==null&&t.jsx("span",{className:we.rating__caption,"aria-hidden":!0,children:(_==null?void 0:_[b])??""})]})},Kr=s.memo(zr),Ur="hanui-stepper-8s5Ih",qr="hanui-stepper__button-h6g7d",Yr="hanui-stepper__input-OQh5v",pt={stepper:Ur,stepper__button:qr,stepper__input:Yr,"stepper--sm":"hanui-stepper--sm-RvrBP","stepper--md":"hanui-stepper--md-Cnjei"},Xr=({value:e,onChange:a,label:n,decreaseLabel:r,increaseLabel:o,min:i=1,max:c=99,isDisabled:d,size:p="md",className:_,testId:l})=>{var m,v,$;const{labels:h}=H(),u=M("QuantityStepper.label",n,(m=h==null?void 0:h.quantity)==null?void 0:m.label),[b,y]=s.useState(null),g=j=>{y(null);const f=Number(j.replace(/\D/g,""));f&&a(Math.min(Math.max(f,i),c))};return t.jsxs("div",{className:x(pt.stepper,pt[`stepper--${p}`],_),role:"group","aria-label":u,"data-testid":l,children:[t.jsx("button",{type:"button",className:pt.stepper__button,onClick:()=>a(Math.max(e-1,i)),disabled:d||e<=i,"aria-label":M("QuantityStepper.decreaseLabel",r,(v=h==null?void 0:h.quantity)==null?void 0:v.decrease),children:t.jsx(E.DashLg,{"aria-hidden":!0})}),t.jsx("input",{className:pt.stepper__input,value:b??String(e),onChange:j=>y(j.target.value.replace(/\D/g,"").slice(0,2)),onBlur:j=>g(j.target.value),onKeyDown:j=>{j.key==="Enter"&&(j.preventDefault(),g(j.target.value))},inputMode:"numeric",disabled:d,"aria-label":`${u} (${i}-${c})`}),t.jsx("button",{type:"button",className:pt.stepper__button,onClick:()=>a(Math.min(e+1,c)),disabled:d||e>=c,"aria-label":M("QuantityStepper.increaseLabel",o,($=h==null?void 0:h.quantity)==null?void 0:$.increase),children:t.jsx(E.PlusLg,{"aria-hidden":!0})})]})},Gr=s.memo(Xr),Qr="hanui-checkbox--dvpB",Wr={checkbox:Qr},Jr=s.forwardRef(({label:e,className:a,testId:n,...r},o)=>t.jsx("input",{ref:o,type:"checkbox","aria-label":e,className:x(Wr.checkbox,a),"data-testid":n,...r})),Vr=s.memo(S(Jr,"TableCheckbox")),Zr="hanui-wrapper-IAI4E",eo="hanui-wrapper__prefix-XKDlV",to="hanui-wrapper__suffix-lT35q",ao="hanui-input-pIS2u",Oe={wrapper:Zr,wrapper__prefix:eo,wrapper__suffix:to,input:ao,"input--hasPrefix":"hanui-input--hasPrefix-nsrWh","input--hasSuffix":"hanui-input--hasSuffix-OrE5A","input--technical":"hanui-input--technical---DCD"},no=s.forwardRef(({prefix:e,suffix:a,isTechnical:n,className:r,testId:o,...i},c)=>t.jsxs("span",{className:x(Oe.wrapper,r),children:[e&&t.jsx("span",{className:Oe.wrapper__prefix,"aria-hidden":!0,children:e}),t.jsx("input",{ref:c,className:x(Oe.input,!!e&&Oe["input--hasPrefix"],!!a&&Oe["input--hasSuffix"],n&&Oe["input--technical"]),"data-testid":o,...i}),a&&t.jsx("span",{className:Oe.wrapper__suffix,"aria-hidden":!0,children:a})]})),na=s.memo(S(no,"Input")),so="hanui-password-viMea",ro="hanui-password__field-WI1h1",oo="hanui-password__toggle-O6R2a",Xt={password:so,password__field:ro,password__toggle:oo},io=({className:e,showLabel:a,hideLabel:n,...r})=>{const{labels:o}=H(),[i,c]=s.useState(!1),d=i?M("PasswordInput.hideLabel",n,o==null?void 0:o.passwordHide):M("PasswordInput.showLabel",a,o==null?void 0:o.passwordShow);return t.jsxs("span",{className:Xt.password,children:[t.jsx(na,{...r,className:`${Xt.password__field} ${e??""}`.trim(),type:i?"text":"password"}),t.jsx(pe,{className:Xt.password__toggle,icon:i?t.jsx(E.EyeSlashFill,{"aria-hidden":!0}):t.jsx(E.EyeFill,{"aria-hidden":!0}),label:d,variant:"ghost",size:"sm",onClick:()=>c(p=>!p)})]})},co=s.memo(S(io,"PasswordInput")),lo="hanui-tagInput-QraZR",uo="hanui-tagInput__field-HeWrC",_o="hanui-tagInput__tag-D-ZWB",ho="hanui-tagInput__remove-bpjGG",He={tagInput:lo,tagInput__field:uo,"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:ho},po=({values:e,onChange:a,label:n,placeholder:r,removeLabel:o,separators:i=["Enter",","],maxTags:c,isDisabled:d,id:p,className:_,testId:l,"aria-describedby":h,"aria-invalid":u})=>{const b=s.useId(),y=p??b,g=s.useRef(null),m=At(),[v,$]=s.useState(""),[j,f]=s.useState(null),N=c!==void 0&&e.length>=c,k=I=>{const w=I.trim();if(w!==""){if(e.includes(w)){f(w),window.setTimeout(()=>f(null),1e3),m(`${w} zaten ekli`,"assertive"),$("");return}N||(a([...e,w]),$(""),m(`${w} eklendi`))}},D=I=>{a(e.filter(w=>w!==I)),m(`${I} kaldırıldı`)},C=I=>{if(i.includes(I.key)){I.preventDefault(),k(v);return}I.key==="Backspace"&&v===""&&e.length>0&&D(e[e.length-1])};return t.jsxs("div",{className:x(He.tagInput,d&&He["tagInput--disabled"],u&&He["tagInput--invalid"],_),"data-testid":l,onClick:()=>{var I;return(I=g.current)==null?void 0:I.focus()},children:[e.map(I=>t.jsxs("span",{className:x(He.tagInput__tag,j===I&&He["tagInput__tag--duplicate"]),children:[I,t.jsx("button",{type:"button",className:He.tagInput__remove,"aria-label":`${I} — ${o}`,disabled:d,onClick:w=>{w.stopPropagation(),D(I)},children:t.jsx(E.XLg,{"aria-hidden":!0})})]},I)),t.jsx("input",{ref:g,id:y,type:"text",className:He.tagInput__field,value:v,placeholder:e.length===0?r:void 0,"aria-label":n,"aria-describedby":h,"aria-invalid":u,disabled:d||N,onChange:I=>$(I.target.value),onKeyDown:C,onBlur:()=>k(v)})]})},mo=s.memo(S(po,"TagInput")),bo="hanui-textarea-zwJcB",go="hanui-wrapper-O8aJA",fo="hanui-counter-bHVh3",mt={textarea:bo,wrapper:go,"textarea--autoSize":"hanui-textarea--autoSize--F8yj",counter:fo,"counter--near":"hanui-counter--near-AZAQm"},xo=s.forwardRef(({className:e,rows:a=4,isAutoSize:n,maxRows:r=12,hasCounter:o,maxLength:i,value:c,defaultValue:d,onChange:p,testId:_,...l},h)=>{const u=s.useRef(null),[b,y]=s.useState(String(d??"").length),g=c===void 0?b:String(c).length,m=s.useCallback($=>{u.current=$,typeof h=="function"?h($):h&&(h.current=$)},[h]);s.useLayoutEffect(()=>{const $=u.current;if(!n||!$)return;$.style.height="auto";const f=(Number.parseFloat(getComputedStyle($).lineHeight)||20)*r;$.style.height=`${Math.min($.scrollHeight,f)}px`,$.style.overflowY=$.scrollHeight>f?"auto":"hidden"},[n,r,c,g]);const v=i!==void 0&&g>=i*.9;return t.jsxs("div",{className:x(mt.wrapper,e),"data-testid":_,children:[t.jsx("textarea",{ref:m,rows:a,className:x(mt.textarea,n&&mt["textarea--autoSize"]),maxLength:i,value:c,defaultValue:d,onChange:$=>{y($.target.value.length),p==null||p($)},...l}),o&&i!==void 0&&t.jsxs("span",{className:x(mt.counter,v&&mt["counter--near"]),"aria-hidden":!0,children:[g," / ",i]})]})}),Pa=s.memo(S(xo,"Textarea")),vo="hanui-dateField-UnUwe",yo="hanui-range-nGuRH",wo="hanui-range__row--debA",ko="hanui-range__separator-fEqqr",jo="hanui-range__field-tmoNH",No="hanui-range__summary-L6v1T",Ye={dateField:vo,range:yo,range__row:wo,range__separator:ko,range__field:jo,range__summary:No},Wt=s.forwardRef(({type:e="date",className:a,testId:n,...r},o)=>t.jsx("input",{ref:o,type:e,className:x(Ye.dateField,a),"data-testid":n,...r})),$o=s.memo(S(Wt,"DateField")),Eo=({value:e,onChange:a,startLabel:n,endLabel:r,separator:o="–",min:i,max:c,isSummaryVisible:d,isDisabled:p,className:_,testId:l})=>{const{labels:h}=H(),u=(()=>{if(!d||!(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(Ye.range,_),"data-testid":l,children:[t.jsxs("div",{className:Ye.range__row,children:[t.jsx(Wt,{className:Ye.range__field,"aria-label":n,value:e.start,min:i,max:e.end||c,disabled:p,onChange:b=>a({...e,start:b.target.value})}),t.jsx("span",{className:Ye.range__separator,"aria-hidden":!0,children:o}),t.jsx(Wt,{className:Ye.range__field,"aria-label":r,value:e.end,min:e.start||i,max:c,disabled:p,onChange:b=>a({...e,end:b.target.value})})]}),u&&t.jsx("span",{className:Ye.range__summary,children:u})]})},Co=S(s.memo(Eo),"DateRange"),Io="hanui-field-KKvre",To="hanui-field__label-9dlYd",Do="hanui-field__required-hbDJk",So="hanui-field__srOnly-2WQFH",Ro="hanui-field__hint-SQPiL",Lo="hanui-field__error-gLlZ-",Ao="hanui-field__errorIcon-uA3o8",Se={field:Io,field__label:To,"field__label--hidden":"hanui-field__label--hidden-ufuVt",field__required:Do,field__srOnly:So,field__hint:Ro,field__error:Lo,field__errorIcon:Ao},Fo=({label:e,children:a,hint:n,error:r,isRequired:o,requiredLabel:i,isLabelHidden:c,className:d})=>{const{labels:p}=H(),_=s.useId(),l=`${_}-error`,h=`${_}-hint`;return t.jsxs("div",{className:x(Se.field,d),children:[t.jsxs("label",{htmlFor:_,className:x(Se.field__label,c&&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:M("Field.requiredLabel",i,p==null?void 0:p.required)})]})]}),a({id:_,required:o||void 0,"aria-invalid":r?!0:void 0,"aria-describedby":[r&&l,n&&h].filter(Boolean).join(" ")||void 0}),r&&t.jsxs("p",{id:l,className:Se.field__error,role:"alert",children:[t.jsx(E.ExclamationCircleFill,{"aria-hidden":!0,className:Se.field__errorIcon}),r]}),n&&t.jsx("p",{id:h,className:Se.field__hint,children:n})]})},Oa=s.memo(Fo),Mo="hanui-progress-99MrX",Bo="hanui-progress__track-Qbp9t",Po="hanui-progress__fill-Bam55",Oo="hanui-progress__value-3FYxj",Ho="hanui-circle-9cn2w",zo="hanui-circle__svg-0IwkR",Ko="hanui-circle__track-zY2qc",Uo="hanui-circle__fill-Jbde6",qo="hanui-circle__label-A3nJB",te={progress:Mo,progress__track:Bo,"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:Po,"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:Oo,circle:Ho,circle__svg:zo,circle__track:Ko,circle__fill:Uo,"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:qo},Ha=(e,a)=>!Number.isFinite(e)||!Number.isFinite(a)||a<=0?0:Math.min(100,Math.max(0,e/a*100)),Yo=({value:e,max:a=100,label:n,valueText:r,isValueVisible:o,tone:i="brand",size:c="md",className:d,testId:p})=>{const _=e===void 0,l=_?0:Ha(e,a);return t.jsxs("div",{className:x(te.progress,d),"data-testid":p,children:[t.jsx("div",{role:"progressbar","aria-label":n,"aria-valuenow":_?void 0:Math.round(l),"aria-valuemin":_?void 0:0,"aria-valuemax":_?void 0:100,"aria-valuetext":_?void 0:r,className:x(te.progress__track,te[`progress__track--${c}`],_&&te["progress__track--indeterminate"]),children:t.jsx("span",{className:x(te.progress__fill,te[`progress__fill--${i}`]),style:_?void 0:{inlineSize:`${l}%`}})}),o&&!_&&t.jsx("span",{className:te.progress__value,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},za=s.memo(S(Yo,"Progress")),Xo=({value:e,max:a=100,label:n,valueText:r,isValueVisible:o,tone:i="brand",size:c=44,className:d,testId:p})=>{const _=e===void 0,l=_?25:Ha(e,a),h=Math.max(3,Math.round(c*.1)),u=(c-h)/2,b=2*Math.PI*u;return t.jsxs("div",{className:x(te.circle,_&&te["circle--indeterminate"],d),style:{width:c,height:c},"data-testid":p,children:[t.jsxs("svg",{className:te.circle__svg,width:c,height:c,viewBox:`0 0 ${c} ${c}`,role:"progressbar","aria-label":n,"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:te.circle__track,cx:c/2,cy:c/2,r:u,fill:"none",strokeWidth:h}),t.jsx("circle",{className:x(te.circle__fill,te[`circle__fill--${i}`]),cx:c/2,cy:c/2,r:u,fill:"none",strokeWidth:h,strokeDasharray:b,strokeDashoffset:b*(1-l/100)})]}),o&&!_&&t.jsx("span",{className:te.circle__label,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},Go=S(s.memo(Xo),"ProgressCircle"),Qo="hanui-upload-v1pRY",Wo="hanui-upload__drop-OpNbO",Jo="hanui-upload__input-Tcg9-",Vo="hanui-upload__icon-KpMkq",Zo="hanui-upload__label-M4HJb",ei="hanui-upload__drag-ewSQw",ti="hanui-upload__hint-MZRJ6",ai="hanui-upload__error-7GkCC",ni="hanui-upload__list-lbViQ",si="hanui-upload__file-Znp1Q",ri="hanui-upload__fileText-EtJcs",oi="hanui-upload__fileName-ArF8-",ii="hanui-upload__fileMeta-i6sO1",ci="hanui-upload__progress-JY2a5",Y={upload:Qo,upload__drop:Wo,upload__input:Jo,"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:Vo,upload__label:Zo,upload__drag:ei,upload__hint:ti,upload__error:ai,upload__list:ni,upload__file:si,"upload__file--error":"hanui-upload__file--error-wpbtA",upload__fileText:ri,upload__fileName:oi,upload__fileMeta:ii,upload__progress:ci},ya=e=>e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`,li=({files:e,onSelect:a,onRemove:n,label:r,hint:o,accept:i,isMultiple:c,maxSize:d,removeLabel:p,dropLabel:_,sizeErrorText:l="{name} çok büyük (en fazla {max}).",isDisabled:h,error:u,children:b,className:y,testId:g})=>{const m=s.useId(),v=s.useId(),$=s.useRef(null),j=At(),[f,N]=s.useState(!1),[k,D]=s.useState([]),C=w=>{if(!w||w.length===0)return;const L=[...w],P=d===void 0?[]:L.filter(K=>K.size>d),X=L.filter(K=>!P.includes(K)),G=P.map(K=>l.replace("{name}",K.name).replace("{max}",ya(d??0)));D(G),X.length>0&&(a(X),j(`${X.length} dosya eklendi`)),G.length>0&&j(G.join(" "),"assertive")},I=w=>{w.preventDefault(),N(!1),!h&&C(w.dataTransfer.files)};return t.jsxs("div",{className:x(Y.upload,y),"data-testid":g,children:[t.jsxs("label",{htmlFor:m,className:x(Y.upload__drop,f&&Y["upload__drop--dragging"],h&&Y["upload__drop--disabled"],u&&Y["upload__drop--invalid"]),onDragOver:w=>{w.preventDefault(),h||N(!0)},onDragLeave:()=>N(!1),onDrop:I,children:[t.jsx(E.CloudArrowUpFill,{"aria-hidden":!0,className:Y.upload__icon}),t.jsx("span",{className:Y.upload__label,children:r}),t.jsx("span",{className:Y.upload__drag,children:_}),o&&t.jsx("span",{id:v,className:Y.upload__hint,children:o}),t.jsx("input",{ref:$,id:m,type:"file",className:Y.upload__input,accept:i,multiple:c,disabled:h,"aria-describedby":o?v:void 0,"aria-invalid":u?!0:void 0,onChange:w=>{C(w.target.files),w.target.value=""}})]}),u&&t.jsxs("p",{className:Y.upload__error,role:"alert",children:[t.jsx(E.ExclamationCircleFill,{"aria-hidden":!0}),u]}),k.map(w=>t.jsxs("p",{className:Y.upload__error,role:"alert",children:[t.jsx(E.ExclamationCircleFill,{"aria-hidden":!0}),w]},w)),e.length>0&&t.jsx("ul",{className:Y.upload__list,children:e.map(w=>t.jsxs("li",{className:x(Y.upload__file,w.error&&Y["upload__file--error"]),children:[t.jsxs("span",{className:Y.upload__fileText,children:[t.jsx("span",{className:Y.upload__fileName,children:w.name}),t.jsx("span",{className:Y.upload__fileMeta,children:w.error??ya(w.size)})]}),w.progress!==void 0&&t.jsx(za,{value:w.progress,label:`${w.name} yükleniyor`,size:"sm",className:Y.upload__progress}),t.jsx(pe,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:`${w.name} — ${p}`,variant:"ghost",size:"sm",onClick:()=>n(w.id)})]},w.id))}),b]})},di=s.memo(S(li,"FileUpload")),ui="hanui-alert-gHI-9",_i="hanui-alert__icon-DhiCT",hi="hanui-alert__body-52-z2",pi="hanui-alert__title-I8BAh",mi="hanui-alert__content-lhBEo",bi="hanui-alert__action-1mTje",ze={alert:ui,alert__icon:_i,alert__body:hi,alert__title:pi,alert__content:mi,alert__action:bi,"alert--info":"hanui-alert--info-lsAVw","alert--success":"hanui-alert--success-RMJR6","alert--warning":"hanui-alert--warning-Rkgln","alert--danger":"hanui-alert--danger-9ei0Y"},gi={info:t.jsx(E.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(E.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(E.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(E.XCircleFill,{"aria-hidden":!0})},fi=({children:e,tone:a="info",title:n,action:r,className:o,testId:i})=>t.jsxs("div",{className:x(ze.alert,ze[`alert--${a}`],o),role:a==="danger"||a==="warning"?"alert":void 0,"data-testid":i,children:[t.jsx("span",{className:ze.alert__icon,children:gi[a]}),t.jsxs("div",{className:ze.alert__body,children:[n&&t.jsx("strong",{className:ze.alert__title,children:n}),t.jsx("div",{className:ze.alert__content,children:e})]}),r&&t.jsx("div",{className:ze.alert__action,children:r})]}),xi=s.memo(fi),vi="hanui-avatar-qoh3P",yi="hanui-avatar__image-uAyAX",It={avatar:vi,avatar__image:yi,"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"},wi=(e,a)=>{const n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return"?";const r=n.length===1?n[0].slice(0,2):`${n[0][0]}${n[n.length-1][0]}`;return a?r.toLocaleUpperCase(a):r.toLocaleUpperCase()},ki=(e,a)=>{let n=5381;for(let r=0;r<e.length;r+=1)n=n*33^e.charCodeAt(r);return Math.abs(n)%a},ji=6,Ni=({name:e,imageUrl:a,locale:n,size:r="md",className:o,testId:i})=>{const{labels:c}=H();return t.jsx("span",{className:x(It.avatar,It[`avatar--${r}`],!a&&It[`avatar--tone-${ki(e,ji)}`],o),"aria-hidden":!0,"data-testid":i,children:a?t.jsx("img",{className:It.avatar__image,src:a,alt:""}):wi(e,n??(c==null?void 0:c.locale))})},$i=s.memo(Ni),Ei="hanui-badge-uLAaI",Ci="hanui-badge__icon-R2goZ",Tt={badge:Ei,badge__icon:Ci,"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"},Ii=({children:e,tone:a="neutral",variant:n="soft",icon:r,className:o,testId:i})=>t.jsxs("span",{className:x(Tt.badge,Tt[`badge--${a}`],Tt[`badge--${n}`],o),"data-testid":i,children:[r&&t.jsx("span",{className:Tt.badge__icon,children:r}),e]}),Ti=s.memo(Ii),Di="hanui-breadcrumb-amB9n",Si="hanui-breadcrumb__item-Icv1S",Ri="hanui-breadcrumb__link-eVkPq",Li="hanui-breadcrumb__current-8XjhU",Ai="hanui-breadcrumb__separator-vvaUi",bt={breadcrumb:Di,breadcrumb__item:Si,breadcrumb__link:Ri,breadcrumb__current:Li,breadcrumb__separator:Ai},Fi=({items:e,label:a,linkProps:n,className:r,testId:o})=>{const{labels:i}=H();return t.jsx("nav",{className:r,"aria-label":M("Breadcrumb.label",a,i==null?void 0:i.breadcrumb),"data-testid":o,children:t.jsx("ol",{className:x(bt.breadcrumb),children:e.map((c,d)=>{const p=d===e.length-1;return t.jsxs("li",{className:bt.breadcrumb__item,children:[c.href&&!p?t.jsx(xe,{href:c.href,className:bt.breadcrumb__link,...n,children:c.label}):t.jsx("span",{className:bt.breadcrumb__current,"aria-current":"page",children:c.label}),!p&&t.jsx(E.CaretRightFill,{"aria-hidden":!0,className:bt.breadcrumb__separator})]},`${c.label}-${d}`)})})})},Mi=s.memo(Fi),Bi="hanui-card-CaHUG",Pi="hanui-media__frame-eBv-s",Oi="hanui-media-eggk5",Hi="hanui-media__link-ujyVV",zi="hanui-overlay-AVMTX",Ki="hanui-body-DyI-6",Ui="hanui-footer-2WNCZ",ge={card:Bi,"card--interactive":"hanui-card--interactive-C1pXZ",media__frame:Pi,media:Oi,media__link:Hi,"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:zi,"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:Ki,footer:Ui},qi=({children:e,isInteractive:a,as:n="div",className:r,testId:o})=>t.jsx(n,{className:x(ge.card,a&&ge["card--interactive"],r),"data-testid":o,children:e}),Yi=(e,a)=>e??(a===!1?"cover":"contain"),Xi=S(s.memo(({children:e,ratio:a=1,href:n,linkProps:r,fit:o,isContained:i,className:c})=>{const d=t.jsx("span",{className:x(ge.media__frame,ge[`media__frame--${Yi(o,i)}`]),style:{aspectRatio:a},children:e});return t.jsx("div",{className:x(ge.media,c),children:n?t.jsx(xe,{href:n,className:ge.media__link,tabIndex:-1,"aria-hidden":!0,...r,children:d}):d})}),"CardMedia"),Gi=S(s.memo(({children:e,position:a="top-left",className:n})=>t.jsx("div",{className:x(ge.overlay,ge[`overlay--${a}`],n),children:e})),"CardOverlay"),Qi=S(s.memo(({children:e,className:a})=>t.jsx("div",{className:x(ge.body,a),children:e})),"CardBody"),Wi=S(s.memo(({children:e,className:a})=>t.jsx("div",{className:x(ge.footer,a),children:e})),"CardFooter"),Ji=s.memo(qi),Vi="hanui-carousel-GJXkW",Zi="hanui-carousel__controls-hm5ij",ec="hanui-carousel__arrowIcon-adFey",tc="hanui-carousel__track-mAux5",ac="hanui-carousel__dots-iU8RJ",nc="hanui-carousel__dot-JTLCB",Re={carousel:Vi,carousel__controls:Zi,carousel__arrowIcon:ec,carousel__track:tc,carousel__dots:ac,carousel__dot:nc,"carousel__dot--active":"hanui-carousel__dot--active-riNMm"},sc=({children:e,label:a,previousLabel:n,nextLabel:r,formatDotLabel:o,itemMinWidth:i=240,className:c,testId:d})=>{const p=s.useRef(null),[_,l]=s.useState(!1),[h,u]=s.useState(!1),[b,y]=s.useState(0),[g,m]=s.useState(1),[v,$]=s.useState(!1),j=s.useCallback(()=>{const N=p.current;if(!N)return;const{scrollLeft:k,scrollWidth:D,clientWidth:C}=N;l(k>1),u(k+C<D-1),y(C>0?Math.round(k/C):0),m(C>0?Math.max(1,Math.ceil(D/C)):1),$(D>C&&N.querySelector("a, button, input, select, textarea, [tabindex]")===null)},[]);s.useEffect(()=>{const N=p.current;if(!N)return;j(),N.addEventListener("scroll",j,{passive:!0});const k=typeof ResizeObserver>"u"?null:new ResizeObserver(j);return k==null||k.observe(N),()=>{N.removeEventListener("scroll",j),k==null||k.disconnect()}},[j,e]);const f=N=>{var k;return(k=p.current)==null?void 0:k.scrollBy({left:N*p.current.clientWidth,behavior:"smooth"})};return t.jsxs("section",{className:x(Re.carousel,c),"aria-label":a,"data-testid":d,children:[t.jsxs("div",{className:Re.carousel__controls,children:[t.jsx(pe,{icon:t.jsx(E.CaretLeftFill,{"aria-hidden":!0,className:Re.carousel__arrowIcon}),label:n,variant:"outline",size:"sm",disabled:!_,onClick:()=>f(-1)}),t.jsx(pe,{icon:t.jsx(E.CaretRightFill,{"aria-hidden":!0,className:Re.carousel__arrowIcon}),label:r,variant:"outline",size:"sm",disabled:!h,onClick:()=>f(1)})]}),t.jsx("div",{ref:p,className:Re.carousel__track,style:{"--hanui-carousel-item":`${i}px`},tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?a:void 0,children:e}),o&&g>1&&t.jsx("div",{className:Re.carousel__dots,children:Array.from({length:g},(N,k)=>t.jsx("button",{type:"button",className:x(Re.carousel__dot,k===b&&Re["carousel__dot--active"]),"aria-label":o(k+1,g),"aria-current":k===b?"true":void 0,onClick:()=>{var D;return(D=p.current)==null?void 0:D.scrollTo({left:k*p.current.clientWidth,behavior:"smooth"})}},k))})]})},rc=s.memo(S(sc,"Carousel")),oc="hanui-copy-Yht5s",ic="hanui-copy__code-CYlCA",cc="hanui-copy__button-GDdH6",lc="hanui-copy__srOnly-WMTNN",at={copy:oc,"copy--sm":"hanui-copy--sm-Tjqws",copy__code:ic,"copy--md":"hanui-copy--md-00rhU",copy__button:cc,"copy__button--done":"hanui-copy__button--done-MujUR",copy__srOnly:lc},dc=1600,uc=({value:e,copyLabel:a,copiedLabel:n,copiedAnnouncement:r,size:o="sm",isReadOnly:i,className:c,testId:d})=>{var g,m,v;const{labels:p}=H(),[_,l]=s.useState(!1),h=s.useRef(null),u=s.useRef(void 0);s.useEffect(()=>()=>window.clearTimeout(u.current),[]);const b=s.useCallback(()=>{const $=h.current;if(!$)return;const j=document.createRange();j.selectNodeContents($);const f=window.getSelection();f==null||f.removeAllRanges(),f==null||f.addRange(j)},[]),y=s.useCallback(async()=>{try{await navigator.clipboard.writeText(e),l(!0),u.current=window.setTimeout(()=>l(!1),dc)}catch{b()}},[e,b]);return t.jsxs("span",{className:x(at.copy,at[`copy--${o}`],c),"data-testid":d,children:[t.jsx("span",{className:at.copy__code,ref:h,children:e}),!i&&t.jsx("button",{type:"button",className:x(at.copy__button,_&&at["copy__button--done"]),onClick:y,"aria-label":_?n??Lt("CopyField.copiedLabel",(g=p==null?void 0:p.copyField)==null?void 0:g.copied,e):a??Lt("CopyField.copyLabel",(m=p==null?void 0:p.copyField)==null?void 0:m.copy,e),children:_?t.jsx(E.ClipboardCheckFill,{"aria-hidden":!0}):t.jsx(E.ClipboardFill,{"aria-hidden":!0})}),t.jsx("span",{"aria-live":"polite",className:at.copy__srOnly,children:_?M("CopyField.copiedAnnouncement",r,(v=p==null?void 0:p.copyField)==null?void 0:v.announcement):""})]})},_c=s.memo(uc),hc="hanui-divider-RJqCw",pc="hanui-divider__label-M8sBA",Dt={divider:hc,"divider--labelled":"hanui-divider--labelled-jZH1-",divider__label:pc},mc=({label:e,className:a})=>e?t.jsx("div",{className:x(Dt.divider,Dt["divider--labelled"],a),children:t.jsx("span",{className:Dt.divider__label,children:e})}):t.jsx("hr",{className:x(Dt.divider,a)}),bc=s.memo(mc),gc="hanui-directory-badEd",fc="hanui-group-i6An9",xc="hanui-group__header-rc19c",vc="hanui-group__label-vQTcs",yc="hanui-group__link-es5V7",wc="hanui-group__meta-LtC-u",kc="hanui-group__list-YxBCG",jc="hanui-row-3LH7X",Nc="hanui-row__name-75Wbq",$c="hanui-row__media-AxZEh",Ec="hanui-row__marker-RYHb-",Cc="hanui-jump-vpGwB",Ic="hanui-jump__link-rRnT6",oe={directory:gc,group:fc,group__header:xc,group__label:vc,group__link:yc,group__meta:wc,group__list:kc,row:jc,row__name:Nc,row__media:$c,row__marker:Ec,jump:Cc,jump__link:Ic},Tc=({children:e,className:a})=>t.jsx("div",{className:x(oe.directory,a),children:e}),Dc=S(s.memo(({label:e,href:a,linkProps:n,meta:r,children:o,id:i})=>t.jsxs("section",{className:oe.group,id:i,children:[t.jsxs("header",{className:oe.group__header,children:[t.jsx("h2",{className:oe.group__label,children:a?t.jsx(xe,{href:a,className:oe.group__link,...n,children:e}):e}),r&&t.jsx("span",{className:oe.group__meta,children:r})]}),t.jsx("ul",{className:oe.group__list,children:o})]})),"DirectoryGroup"),Sc=S(s.memo(({href:e,name:a,media:n,marker:r,linkProps:o,className:i})=>t.jsx("li",{children:t.jsxs(xe,{href:e,className:x(oe.row,i),...o,children:[n&&t.jsx("span",{className:oe.row__media,children:n}),t.jsx("span",{className:oe.row__name,children:a}),r&&t.jsx("span",{className:oe.row__marker,children:r})]})})),"DirectoryRow"),Rc=S(s.memo(({labels:e,toId:a,label:n})=>{const{labels:r}=H();return t.jsx("nav",{className:oe.jump,"aria-label":M("DirectoryJump.label",n,r==null?void 0:r.directoryJump),children:e.map(o=>t.jsx("a",{href:`#${a(o)}`,className:oe.jump__link,children:o},o))})}),"DirectoryJump"),Lc=s.memo(Tc),Ac="hanui-empty-47qZR",Fc="hanui-empty__icon-okfEc",Mc="hanui-empty__title-Z7Dzd",Bc="hanui-empty__description-6BoCk",Pc="hanui-empty__actions-ARk-k",Ke={empty:Ac,empty__icon:Fc,empty__title:Mc,empty__description:Bc,empty__actions:Pc,"empty--sm":"hanui-empty--sm-QXaXx","empty--error":"hanui-empty--error-4BBgp"},Oc=({title:e,description:a,icon:n,action:r,secondaryAction:o,tone:i="empty",size:c="md",className:d,testId:p})=>t.jsxs("div",{className:x(Ke.empty,Ke[`empty--${c}`],Ke[`empty--${i}`],d),role:i==="error"?"alert":void 0,"data-testid":p,children:[n&&t.jsx("span",{className:Ke.empty__icon,children:n}),t.jsx("h3",{className:Ke.empty__title,children:e}),a&&t.jsx("p",{className:Ke.empty__description,children:a}),(r||o)&&t.jsxs("div",{className:Ke.empty__actions,children:[r,o]})]}),Hc=s.memo(Oc),zc="hanui-header-yJwus",Kc="hanui-header__top-UK4si",Uc="hanui-header__breadcrumb-A2j0i",qc="hanui-header__text-HIo8U",Yc="hanui-header__eyebrow-dZ9Zc",Xc="hanui-header__titleRow-KgDZj",Gc="hanui-header__title-s1giF",Qc="hanui-header__meta-UxuaD",Wc="hanui-header__description-NXbbC",Jc="hanui-header__actions-aShpt",me={header:zc,header__top:Kc,header__breadcrumb:Uc,header__text:qc,header__eyebrow:Yc,header__titleRow:Xc,header__title:Gc,header__meta:Qc,header__description:Wc,header__actions:Jc},Vc=({title:e,eyebrow:a,description:n,actions:r,breadcrumb:o,meta:i,children:c,as:d="h1",className:p,testId:_})=>t.jsxs("header",{className:x(me.header,p),"data-testid":_,children:[o&&t.jsx("div",{className:me.header__breadcrumb,children:o}),t.jsxs("div",{className:me.header__top,children:[t.jsxs("div",{className:me.header__text,children:[a&&t.jsx("span",{className:me.header__eyebrow,children:a}),t.jsxs("div",{className:me.header__titleRow,children:[t.jsx(d,{className:me.header__title,children:e}),i&&t.jsx("span",{className:me.header__meta,children:i})]}),n&&t.jsx("p",{className:me.header__description,children:n})]}),r&&t.jsx("div",{className:me.header__actions,children:r})]}),c]}),Zc=s.memo(Vc),el="hanui-panel-Sv-1m",tl="hanui-panel__header-ysexh",al="hanui-panel__heading-xLCsB",nl="hanui-panel__icon--yPQT",sl="hanui-panel__headingText--XqxW",rl="hanui-panel__title-6-6uC",ol="hanui-panel__description-qXTSM",il="hanui-panel__actions-Ra-zy",cl="hanui-panel__body-lo5aX",ll="hanui-panel__footer-qLpR1",dl="hanui-panel__footerInner-r6VQI",ul="hanui-form-o9UqJ",_l="hanui-row-vUGpa",Q={panel:el,panel__header:tl,panel__heading:al,panel__icon:nl,panel__headingText:sl,panel__title:rl,panel__description:ol,panel__actions:il,panel__body:cl,"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:ll,panel__footerInner:dl,form:ul,"form--2":"hanui-form--2-HdwDc",row:_l},hl=({children:e,title:a,description:n,actions:r,icon:o,isFlush:i,gap:c="md",footer:d,as:p="section",className:_,bodyClassName:l,testId:h})=>t.jsxs(p,{className:x(Q.panel,_),"data-testid":h,children:[(a||r)&&t.jsxs("div",{className:Q.panel__header,children:[t.jsxs("div",{className:Q.panel__heading,children:[o&&t.jsx("span",{className:Q.panel__icon,children:o}),t.jsxs("div",{className:Q.panel__headingText,children:[a&&t.jsx("h2",{className:Q.panel__title,children:a}),n&&t.jsx("p",{className:Q.panel__description,children:n})]})]}),r&&t.jsx("div",{className:Q.panel__actions,children:r})]}),t.jsx("div",{className:x(Q.panel__body,Q[`panel__body--${c}`],i&&Q["panel__body--flush"],l),children:e}),d&&t.jsx("div",{className:Q.panel__footer,children:t.jsx("div",{className:Q.panel__footerInner,children:d})})]}),pl=S(s.memo(({children:e,columns:a=1,className:n})=>t.jsx("div",{className:x(Q.form,Q[`form--${a}`],n),children:e})),"PanelForm"),ml=S(s.memo(({children:e,className:a})=>t.jsx("div",{className:x(Q.row,a),children:e})),"PanelRow"),bl=s.memo(hl),gl="hanui-price-Oc5Nr",fl="hanui-price__current-2Xup2",xl="hanui-price__currency-32NLN",vl="hanui-price__list-MlQgT",yl="hanui-price__discount-5Yc6W",Ue={price:gl,price__current:fl,price__currency:xl,price__list:vl,price__discount:yl,"price--sm":"hanui-price--sm-Hd8Oe","price--md":"hanui-price--md-JMxlK","price--lg":"hanui-price--lg-TFqIF","price--xl":"hanui-price--xl-EJBYq"},wl=({value:e,currency:a,listValue:n,discountPercent:r,formatDiscount:o=_=>`%${_}`,isFormatted:i,size:c="md",className:d,testId:p})=>{const{labels:_}=H(),l=M("Price.currency",a,_==null?void 0:_.currency),h=u=>{if(!i||!(_!=null&&_.locale)||!/\d/.test(u))return u;const b=Number(u.replace(/[^\d.,-]/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."));if(!Number.isFinite(b))return u;try{return new Intl.NumberFormat(_.locale).format(b)}catch{return u}};return t.jsxs("span",{className:x(Ue.price,Ue[`price--${c}`],d),"data-testid":p,children:[t.jsxs("span",{className:Ue.price__current,children:[h(e),t.jsx("span",{className:Ue.price__currency,children:l})]}),n&&t.jsxs("s",{className:Ue.price__list,children:[h(n),t.jsx("span",{className:Ue.price__currency,children:l})]}),r!==void 0&&r>0&&t.jsx("span",{className:Ue.price__discount,children:o(r)})]})},kl=s.memo(wl),jl="hanui-rating-94dke",Nl="hanui-rating__stars-QkpVU",$l="hanui-rating__empty-Wf6-K",El="hanui-rating__count-pIoEs",Cl="hanui-rating__srOnly-E9h0d",nt={rating:jl,rating__stars:Nl,rating__empty:$l,rating__count:El,rating__srOnly:Cl,"rating--sm":"hanui-rating--sm-AtY7U","rating--md":"hanui-rating--md-Q0nxN"},Il=({value:e,count:a,srLabel:n,size:r="sm",className:o,testId:i})=>{var p;const{labels:c}=H(),d=Math.round(e*2)/2;return t.jsxs("span",{className:x(nt.rating,nt[`rating--${r}`],o),"data-testid":i,children:[t.jsx("span",{className:nt.rating__stars,"aria-hidden":!0,children:Array.from({length:5},(_,l)=>{const h=l+1;return d>=h?t.jsx(E.StarFill,{},l):d>=h-.5?t.jsx(E.StarHalf,{},l):t.jsx(E.StarFill,{className:nt.rating__empty},l)})}),t.jsx("span",{className:nt.rating__srOnly,children:n??Lt("Rating.srLabel",(p=c==null?void 0:c.rating)==null?void 0:p.srLabel,e,a)}),z.isDefined(a)&&t.jsxs("span",{className:nt.rating__count,"aria-hidden":!0,children:["(",a,")"]})]})},Tl=s.memo(Il),Dl="hanui-header-a08Jh",Sl="hanui-header__text-ArJkA",Rl="hanui-header__overline-X5Epo",Ll="hanui-header__title-nQQQJ",Al="hanui-header__description-08oCr",Fl="hanui-header__action-xsxQF",qe={header:Dl,header__text:Sl,header__overline:Rl,header__title:Ll,header__description:Al,header__action:Fl,"header--sm":"hanui-header--sm-mIJWZ","header--lg":"hanui-header--lg-QBLIz"},Ml=({title:e,description:a,overline:n,action:r,as:o="h2",size:i="md",className:c,testId:d})=>t.jsxs("header",{className:x(qe.header,qe[`header--${i}`],c),"data-testid":d,children:[t.jsxs("div",{className:qe.header__text,children:[n&&t.jsx("span",{className:qe.header__overline,children:n}),t.jsx(o,{className:qe.header__title,children:e}),a&&t.jsx("p",{className:qe.header__description,children:a})]}),r&&t.jsx("div",{className:qe.header__action,children:r})]}),Bl=s.memo(Ml),Pl="hanui-scrollArea-Ly-yT",Gt={scrollArea:Pl,"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"},Ol=({children:e,label:a,axis:n="vertical",maxHeight:r,hasFade:o,className:i,testId:c})=>{const d=s.useRef(null),[p,_]=s.useState(!1),[l,h]=s.useState({start:!1,end:!1});return s.useEffect(()=>{const u=d.current;if(!u||typeof ResizeObserver>"u")return;const b=()=>{const g=u.scrollHeight>u.clientHeight,m=u.scrollWidth>u.clientWidth;_(n==="horizontal"?m:n==="vertical"?g:g||m);const v=n==="horizontal",$=v?u.clientWidth:u.clientHeight,j=v?u.scrollWidth:u.scrollHeight,f=Math.abs(v?u.scrollLeft:u.scrollTop);h({start:f>1,end:f+$<j-1})};b();const y=new ResizeObserver(b);y.observe(u);for(const g of u.children)y.observe(g);return u.addEventListener("scroll",b,{passive:!0}),()=>{y.disconnect(),u.removeEventListener("scroll",b)}},[n,e]),t.jsx("div",{ref:d,className:x(Gt.scrollArea,Gt[`scrollArea--${n}`],o&&Gt["scrollArea--fade"],i),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":c,children:e})},Hl=s.memo(S(Ol,"ScrollArea")),zl="hanui-skeleton-n92if",Kl="hanui-group-YMfwa",Ul="hanui-card-XQs-Q",ql="hanui-card__media-YLJDv",Yl="hanui-card__body-msRvB",Xl="hanui-rows-EZ9Am",Gl="hanui-row-se56N",Ql="hanui-row__text-TD4iS",Wl="hanui-table-L328g",Jl="hanui-table__row-rSJTK",ie={skeleton:zl,"skeleton--block":"hanui-skeleton--block-tOZ-a","skeleton--text":"hanui-skeleton--text-k-ROi","skeleton--circle":"hanui-skeleton--circle-x-mX3",group:Kl,card:Ul,card__media:ql,card__body:Yl,rows:Xl,row:Gl,row__text:Ql,table:Wl,table__row:Jl},Ae=({width:e,height:a,variant:n="block",lines:r=1,className:o})=>{const i={width:z.isNumber(e)?`${e}px`:e,height:z.isNumber(a)?`${a}px`:a};return n==="text"&&r>1?t.jsx("span",{className:x(ie.group,o),"aria-hidden":!0,children:Array.from({length:r},(c,d)=>t.jsx("span",{className:x(ie.skeleton,ie["skeleton--text"]),style:d===r-1?{width:"60%"}:void 0},d))}):t.jsx("span",{className:x(ie.skeleton,ie[`skeleton--${n}`],o),style:i,"aria-hidden":!0})},Vl=s.memo(Ae),Zl=({count:e=1,className:a})=>t.jsx(t.Fragment,{children:Array.from({length:e},(n,r)=>t.jsxs("div",{className:x(ie.card,a),"aria-hidden":!0,children:[t.jsx(Ae,{className:ie.card__media}),t.jsxs("div",{className:ie.card__body,children:[t.jsx(Ae,{variant:"text",width:"70%"}),t.jsx(Ae,{variant:"text",width:"40%"})]})]},r))}),ed=({count:e=3,className:a})=>t.jsx("div",{className:x(ie.rows,a),"aria-hidden":!0,children:Array.from({length:e},(n,r)=>t.jsxs("div",{className:ie.row,children:[t.jsx(Ae,{variant:"circle",width:36,height:36}),t.jsxs("div",{className:ie.row__text,children:[t.jsx(Ae,{variant:"text",width:"45%"}),t.jsx(Ae,{variant:"text",width:"25%"})]})]},r))}),td=({count:e=5,columns:a=4,className:n})=>t.jsx("div",{className:x(ie.table,n),"aria-hidden":!0,children:Array.from({length:e},(r,o)=>t.jsx("div",{className:ie.table__row,children:Array.from({length:a},(i,c)=>t.jsx(Ae,{variant:"text"},c))},o))}),ad=S(s.memo(Zl),"SkeletonCard"),nd=S(s.memo(ed),"SkeletonRows"),sd=S(s.memo(td),"SkeletonTable"),rd="hanui-stat-Xb7wp",od="hanui-stat__icon-MB8NU",id="hanui-stat__label-kUX2m",cd="hanui-stat__value--6p13",ld="hanui-stat__unit-mjHVk",dd="hanui-stat__delta-YKpOu",ud="hanui-stat__description-Yvw6J",_d="hanui-stat__srOnly-YKebA",le={stat:rd,"stat--sm":"hanui-stat--sm-XnK8p","stat--plain":"hanui-stat--plain-N-3RC",stat__icon:od,stat__label:id,stat__value:cd,stat__unit:ld,stat__delta:dd,"stat__delta--positive":"hanui-stat__delta--positive-1AUAM","stat__delta--negative":"hanui-stat__delta--negative--WWEP",stat__description:ud,stat__srOnly:_d},hd={up:t.jsx(E.ArrowUpShort,{"aria-hidden":!0}),down:t.jsx(E.ArrowDownShort,{"aria-hidden":!0}),flat:t.jsx(E.DashLg,{"aria-hidden":!0})},pd={up:"artış",down:"azalış",flat:"değişim yok"},md=({label:e,value:a,unit:n,delta:r,trend:o,isUpPositive:i=!0,description:c,icon:d,variant:p="card",size:_="md",className:l,testId:h})=>{const u=o==="flat"?void 0:o==="up"===i;return t.jsxs("div",{className:x(le.stat,le[`stat--${_}`],le[`stat--${p}`],l),"data-testid":h,children:[d&&t.jsx("span",{className:le.stat__icon,"aria-hidden":!0,children:d}),t.jsx("span",{className:le.stat__label,children:e}),t.jsxs("span",{className:le.stat__value,children:[a,n&&t.jsx("span",{className:le.stat__unit,children:n})]}),r&&o&&t.jsxs("span",{className:x(le.stat__delta,u===!0&&le["stat__delta--positive"],u===!1&&le["stat__delta--negative"]),children:[hd[o],r,t.jsx("span",{className:le.stat__srOnly,children:pd[o]})]}),c&&t.jsx("span",{className:le.stat__description,children:c})]})},bd=s.memo(S(md,"Stat")),gd="hanui-hub-JoqOf",fd="hanui-toast-U27Of",xd="hanui-toast__icon-p-rgI",vd="hanui-toast__text-rG4ji",yd="hanui-toast__message-s6S2-",wd="hanui-toast__description-0cYTx",kd="hanui-toast__action-fOXU5",jd="hanui-toast__close-QxSNP",Ee={hub:gd,toast:fd,"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:xd,toast__text:vd,toast__message:yd,toast__description:wd,toast__action:kd,toast__close:jd},Nd={info:t.jsx(E.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(E.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(E.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(E.XCircleFill,{"aria-hidden":!0})},$d={info:4e3,success:4e3,warning:6e3,danger:8e3};let wa=0;const Jt=new Set;let Qe=[];const sa=()=>Jt.forEach(e=>e(Qe)),Vt=e=>{Qe=Qe.filter(a=>a.id!==e),sa()},gt=(e,a={})=>{wa+=1;const n=wa;return Qe=[...Qe,{...a,id:n,message:e}].slice(-3),sa(),n},Ed={show:gt,info:(e,a)=>gt(e,{...a,tone:"info"}),success:(e,a)=>gt(e,{...a,tone:"success"}),warning:(e,a)=>gt(e,{...a,tone:"warning"}),error:(e,a)=>gt(e,{...a,tone:"danger"}),dismiss:Vt,clear:()=>{Qe=[],sa()}},Cd=({toast:e,closeLabel:a,onDismiss:n})=>{const r=e.tone??"info",o=e.duration??$d[r],[i,c]=s.useState(!1),d=s.useRef(o),p=s.useRef(0);return s.useEffect(()=>{if(o===0||i)return;p.current=Date.now();const _=window.setTimeout(()=>n(e.id),d.current);return()=>{window.clearTimeout(_),d.current=Math.max(0,d.current-(Date.now()-p.current))}},[o,i,n,e.id]),t.jsxs("div",{className:x(Ee.toast,Ee[`toast--${r}`]),role:r==="danger"?"alert":"status",onPointerEnter:()=>c(!0),onPointerLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),children:[t.jsx("span",{className:Ee.toast__icon,"aria-hidden":!0,children:Nd[r]}),t.jsxs("div",{className:Ee.toast__text,children:[t.jsx("span",{className:Ee.toast__message,children:e.message}),e.description&&t.jsx("span",{className:Ee.toast__description,children:e.description})]}),e.action&&t.jsx("button",{type:"button",className:Ee.toast__action,onClick:()=>{var _;(_=e.action)==null||_.onClick(),n(e.id)},children:e.action.label}),t.jsx(pe,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:a,variant:"ghost",size:"sm",className:Ee.toast__close,onClick:()=>n(e.id)})]})},Id=({closeLabel:e,className:a})=>{const{labels:n}=H(),[r,o]=s.useState([]);s.useEffect(()=>(Jt.add(o),o(Qe),()=>{Jt.delete(o)}),[]);const i=s.useCallback(p=>Vt(p),[]);s.useEffect(()=>{if(r.length===0)return;const p=_=>{_.key==="Escape"&&Vt(r[r.length-1].id)};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[r]);const[c,d]=s.useState(!1);return s.useEffect(()=>d(!0),[]),c?kt.createPortal(t.jsx("div",{className:x(Ee.hub,a),children:r.map(p=>t.jsx(Cd,{toast:p,closeLabel:M("ToastHub.closeLabel",e,n==null?void 0:n.close),onDismiss:i},p.id))}),document.body):null},Ka=s.memo(S(Id,"ToastHub")),Td=()=>{const[e,a]=s.useState(!1);return s.useEffect(()=>a(!0),[]),e?t.jsx(Ka,{}):null},Dd=s.memo(S(Td,"ToastPortal")),Sd="hanui-accordion-h9jLC",Rd="hanui-accordion__item--YvzK",Ld="hanui-accordion__title-qZOLY",Ad="hanui-accordion__meta-PSlsO",Fd="hanui-accordion__marker-QcWcI",Md="hanui-accordion__summary-QUhWh",Bd="hanui-accordion__panel--3EXE",Pd="hanui-accordion__content-fO64s",ke={accordion:Sd,accordion__item:Rd,"accordion__item--disabled":"hanui-accordion__item--disabled-x1erZ",accordion__title:Ld,accordion__meta:Ad,accordion__marker:Fd,accordion__summary:Md,accordion__panel:Bd,accordion__content:Pd},Od=({items:e,isSingle:a,defaultOpenIds:n,openIds:r,onChange:o,className:i,testId:c})=>{const d=s.useId(),[p,_]=s.useState(n??[]),l=r!==void 0,h=l?r:p,u=s.useCallback((b,y)=>{const g=y?a?[b]:[...h.filter(m=>m!==b),b]:h.filter(m=>m!==b);l||_(g),o==null||o(g)},[l,a,o,h]);return t.jsx("div",{className:x(ke.accordion,i),"data-testid":c,children:e.map(b=>{const y=h.includes(b.id);return t.jsxs("details",{className:x(ke.accordion__item,b.isDisabled&&ke["accordion__item--disabled"]),open:y,onToggle:g=>{const m=g.currentTarget.open;m!==y&&u(b.id,m)},children:[t.jsxs("summary",{id:`${d}-${b.id}`,className:ke.accordion__summary,"aria-disabled":b.isDisabled,tabIndex:b.isDisabled?-1:void 0,onClick:g=>b.isDisabled&&g.preventDefault(),children:[t.jsx(E.CaretRightFill,{"aria-hidden":!0,className:ke.accordion__marker}),t.jsx("span",{className:ke.accordion__title,children:b.title}),b.meta&&t.jsx("span",{className:ke.accordion__meta,children:b.meta})]}),t.jsx("div",{className:ke.accordion__panel,children:t.jsx("div",{className:ke.accordion__content,children:b.content})})]},b.id)})})},Hd=s.memo(S(Od,"Accordion")),zd="hanui-steps-ntge1",Kd="hanui-steps__item-GrU1x",Ud="hanui-steps__button-XBsnS",qd="hanui-steps__marker-g-GLE",Yd="hanui-steps__text-Mkpkh",Xd="hanui-steps__label-NSeFM",Gd="hanui-steps__description-bQuNT",Qd="hanui-steps__status-wWJfP",he={steps:zd,"steps--horizontal":"hanui-steps--horizontal-O-mkx","steps--vertical":"hanui-steps--vertical-agfwo",steps__item:Kd,steps__button:Ud,steps__marker:qd,"steps__item--done":"hanui-steps__item--done-mvOuN","steps__item--current":"hanui-steps__item--current-Qzlal",steps__text:Yd,steps__label:Xd,steps__description:Gd,steps__status:Qd},Wd=(e,a)=>e<a?"done":e===a?"current":"upcoming",Jd={done:"tamamlandı",current:"şu anki adım",upcoming:"sıradaki"},Vd=({steps:e,currentIndex:a,onStepClick:n,label:r,orientation:o="horizontal",className:i,testId:c})=>t.jsx("ol",{className:x(he.steps,he[`steps--${o}`],i),"aria-label":r,"data-testid":c,children:e.map((d,p)=>{const _=Wd(p,a),l=!!n&&_==="done",h=t.jsxs(t.Fragment,{children:[t.jsx("span",{className:he.steps__marker,"aria-hidden":!0,children:_==="done"?t.jsx(E.CheckLg,{}):p+1}),t.jsxs("span",{className:he.steps__text,children:[t.jsx("span",{className:he.steps__label,children:d.label}),d.description&&t.jsx("span",{className:he.steps__description,children:d.description})]}),t.jsx("span",{className:he.steps__status,children:Jd[_]})]});return t.jsx("li",{className:x(he.steps__item,he[`steps__item--${_}`]),"aria-current":_==="current"?"step":void 0,children:l?t.jsx("button",{type:"button",className:he.steps__button,onClick:()=>n==null?void 0:n(p),children:h}):t.jsx("span",{className:he.steps__button,children:h})},d.id)})}),Zd=s.memo(S(Vd,"Steps")),eu="hanui-tabs-l4dFE",tu="hanui-tabs__list-HJvR8",au="hanui-tabs__tab-7gDW7",nu="hanui-tabs__count-8JX8s",su="hanui-tabs__panel-CPklY",st={tabs:eu,tabs__list:tu,tabs__tab:au,"tabs__tab--active":"hanui-tabs__tab--active-riqNp",tabs__count:nu,tabs__panel:su},ru=({items:e,defaultTabId:a,activeId:n,onChange:r,ariaLabel:o,isManualActivation:i,className:c,testId:d})=>{var N;const p=s.useId(),[_,l]=s.useState(a??((N=e[0])==null?void 0:N.id)),h=z.isDefined(n),u=h?n:_,b=e.findIndex(k=>k.id===u),[y,g]=s.useState(b<0?0:b),m=s.useRef(null),v=e[b]??e[0];s.useEffect(()=>{var k;Zt((k=m.current)==null?void 0:k.querySelector('[aria-selected="true"]'),{block:"nearest",inline:"nearest"})},[u]);const $=k=>{h||l(k),r==null||r(k)},j=k=>{var I;if(i&&(k.key==="Enter"||k.key===" ")){k.preventDefault(),$(e[y].id);return}const D=k.key==="ArrowRight"?1:k.key==="ArrowLeft"?-1:0;if(D===0)return;k.preventDefault();const C=((i?y:b)+D+e.length)%e.length;g(C),i||$(e[C].id),(I=document.getElementById(`${p}-tab-${e[C].id}`))==null||I.focus()};if(e.length===0)return null;const f=z.isDefined(v==null?void 0:v.content);return t.jsxs("div",{className:x(st.tabs,c),"data-testid":d,children:[t.jsx("div",{ref:m,className:st.tabs__list,role:"tablist","aria-label":o,onKeyDown:j,children:e.map(k=>{var C;const D=k.id===v.id;return t.jsxs("button",{id:`${p}-tab-${k.id}`,type:"button",role:"tab","aria-selected":D,"aria-controls":f?`${p}-panel-${k.id}`:void 0,tabIndex:(i?((C=e[y])==null?void 0:C.id)===k.id:D)?0:-1,className:x(st.tabs__tab,D&&st["tabs__tab--active"]),onClick:()=>$(k.id),children:[k.label,z.isDefined(k.count)&&t.jsx("span",{className:st.tabs__count,children:k.count})]},k.id)})}),f&&t.jsx("div",{id:`${p}-panel-${v.id}`,role:"tabpanel","aria-labelledby":`${p}-tab-${v.id}`,className:st.tabs__panel,tabIndex:0,children:v.content})]})},ou=s.memo(ru),iu="hanui-tile-TGur-",cu="hanui-tile__medallion--Y0pz",lu="hanui-tile__label-mI1OQ",du="hanui-tile__meta-22qnR",ft={tile:iu,tile__medallion:cu,tile__label:lu,tile__meta:du,"tile--active":"hanui-tile--active-z0F2M"},uu=({label:e,icon:a,href:n,meta:r,isActive:o,linkProps:i,className:c,testId:d})=>t.jsxs(xe,{href:n,className:x(ft.tile,o&&ft["tile--active"],c),"aria-current":o?"page":void 0,"data-testid":d,...i,children:[t.jsx("span",{className:ft.tile__medallion,"aria-hidden":!0,children:a}),t.jsx("span",{className:ft.tile__label,children:e}),r&&t.jsx("span",{className:ft.tile__meta,children:r})]}),_u=s.memo(uu),hu="hanui-timeline-GxubZ",pu="hanui-timeline__item-qMpF2",mu="hanui-timeline__marker-MDk07",bu="hanui-timeline__body-xJi7t",gu="hanui-timeline__title-pKxZJ",fu="hanui-timeline__time-ITWYy",xu="hanui-timeline__description-4vrEy",vu="hanui-timeline__srOnly-7K2We",je={timeline:hu,timeline__item:pu,timeline__marker:mu,"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:bu,timeline__title:gu,timeline__time:fu,timeline__description:xu,timeline__srOnly:vu},yu={done:t.jsx(E.CheckLg,{}),failed:t.jsx(E.XLg,{}),current:null,pending:null},wu={done:"tamamlandı",current:"şu an",pending:"bekliyor",failed:"başarısız"},ku=({events:e,label:a,className:n,testId:r})=>t.jsx("ol",{className:x(je.timeline,n),"aria-label":a,"data-testid":r,children:e.map(o=>{const i=o.status??"done";return t.jsxs("li",{className:x(je.timeline__item,je[`timeline__item--${i}`]),"aria-current":i==="current"?"step":void 0,children:[t.jsx("span",{className:je.timeline__marker,"aria-hidden":!0,children:o.icon??yu[i]}),t.jsxs("div",{className:je.timeline__body,children:[t.jsxs("span",{className:je.timeline__title,children:[o.title,t.jsx("span",{className:je.timeline__srOnly,children:wu[i]})]}),o.time&&t.jsx("span",{className:je.timeline__time,children:o.time}),o.description&&t.jsx("span",{className:je.timeline__description,children:o.description})]})]},o.id)})}),ju=s.memo(S(ku,"Timeline")),Nu="hanui-modal-3IDi9",$u="hanui-modal__panel--qLSz",Eu="hanui-modal__header-meWm6",Cu="hanui-modal__icon-df2dd",Iu="hanui-modal__heading-PwDS8",Tu="hanui-modal__title-80Sh6",Du="hanui-modal__description-fsCHI",Su="hanui-modal__close-vFPbw",Ru="hanui-modal__body-PDF12",Lu="hanui-modal__footer-CCCkx",re={modal:Nu,"modal--sm":"hanui-modal--sm-A7WsS","modal--lg":"hanui-modal--lg-z99Em",modal__panel:$u,modal__header:Eu,modal__icon:Cu,"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:Iu,modal__title:Tu,modal__description:Du,modal__close:Su,modal__body:Ru,modal__footer:Lu},Au=({isOpen:e,onClose:a,title:n,closeLabel:r,children:o,description:i,footer:c,icon:d,tone:p="neutral",size:_="md",isDismissable:l=!0,className:h,testId:u})=>{const{labels:b}=H(),y=s.useRef(null),g=s.useRef(null),m=s.useId(),v=s.useId();s.useEffect(()=>{const j=y.current;if(!j)return;if(!e){j.open&&j.close();return}const f=ct();j.open||j.showModal(),Bt(j,`.${re.modal__close}`),Mt(j);const{token:N,pop:k}=Pt();return g.current=N,()=>{k(),g.current=null,f()}},[e]),Nt(e),s.useEffect(()=>{const j=y.current;if(!j)return;const f=N=>{N.preventDefault(),l&&(g.current&&!Ot(g.current)||a())};return j.addEventListener("cancel",f),()=>j.removeEventListener("cancel",f)},[a,l]);const $=s.useCallback(j=>{l&&j.target===y.current&&a()},[l,a]);return t.jsx("dialog",{ref:y,className:x(re.modal,re[`modal--${_}`],h),"aria-labelledby":m,"aria-describedby":i?v:void 0,"data-testid":u,onClick:$,children:t.jsxs("div",{className:re.modal__panel,children:[t.jsxs("header",{className:re.modal__header,children:[d&&t.jsx("span",{className:x(re.modal__icon,re[`modal__icon--${p}`]),children:d}),t.jsxs("div",{className:re.modal__heading,children:[t.jsx("h2",{id:m,className:re.modal__title,children:n}),i&&t.jsx("p",{id:v,className:re.modal__description,children:i})]}),l&&t.jsx(pe,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:M("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}),c&&t.jsx("footer",{className:re.modal__footer,children:c})]})})},ra=s.memo(Au),Fu="hanui-palette-ag-P9",Mu="hanui-palette__search-G3aYv",Bu="hanui-palette__searchIcon-2UYj-",Pu="hanui-palette__input-vvLvt",Ou="hanui-palette__list--KWiH",Hu="hanui-palette__group-KPj5Q",zu="hanui-palette__item-UZzkp",Ku="hanui-palette__icon-Fg0Lt",Uu="hanui-palette__text-flfN9",qu="hanui-palette__label-8-UHe",Yu="hanui-palette__description-eRlk9",Xu="hanui-palette__shortcut-DwYKX",Gu="hanui-palette__empty-vg-I3",V={palette:Fu,palette__search:Mu,palette__searchIcon:Bu,palette__input:Pu,palette__list:Ou,palette__group:Hu,palette__item:zu,"palette__item--active":"hanui-palette__item--active-XHcka",palette__icon:Ku,palette__text:Uu,palette__label:qu,palette__description:Yu,palette__shortcut:Xu,palette__empty:Gu},Qu=({isOpen:e,onClose:a,items:n,label:r,searchPlaceholder:o,emptyMessage:i,className:c,testId:d})=>{const p=s.useId(),_=`${p}-listbox`,l=s.useRef(null),h=s.useRef(null),u=s.useRef(null),[b,y]=s.useState(""),[g,m]=s.useState(0),v=s.useMemo(()=>{if(b.trim()==="")return n;const f=b.trim();return n.filter(N=>wt(N.label,f)||(N.description?wt(N.description,f):!1))},[n,b]);Nt(e),s.useEffect(()=>{var C;const f=l.current;if(!f)return;if(!e){f.open&&f.close();return}const N=ct();f.open||f.showModal(),(C=h.current)==null||C.focus({preventScroll:!0}),y(""),m(0);const{token:k,pop:D}=Pt();return u.current=k,()=>{D(),u.current=null,N()}},[e]),s.useEffect(()=>{const f=l.current;if(!f)return;const N=k=>{k.preventDefault(),!(u.current&&!Ot(u.current))&&a()};return f.addEventListener("cancel",N),()=>f.removeEventListener("cancel",N)},[a]),s.useEffect(()=>{var f;Zt((f=l.current)==null?void 0:f.querySelector(`[data-index="${g}"]`),{block:"nearest"})},[g]);const $=f=>{f.onSelect(),a()},j=f=>{const N=v.length-1;switch(f.key){case"ArrowDown":f.preventDefault(),m(k=>k>=N?0:k+1);break;case"ArrowUp":f.preventDefault(),m(k=>k<=0?N:k-1);break;case"Home":f.preventDefault(),m(0);break;case"End":f.preventDefault(),m(N);break;case"Enter":{f.preventDefault();const k=v[g];k&&$(k);break}}};return t.jsxs("dialog",{ref:l,className:x(V.palette,c),"aria-label":r,"data-testid":d,onClick:f=>f.target===l.current&&a(),children:[t.jsxs("div",{className:V.palette__search,children:[t.jsx(E.Search,{"aria-hidden":!0,className:V.palette__searchIcon}),t.jsx("input",{ref:h,type:"text",role:"combobox",className:V.palette__input,value:b,placeholder:o,"aria-label":o,autoComplete:"off","aria-autocomplete":"list","aria-expanded":!0,"aria-controls":_,"aria-activedescendant":v[g]?`${p}-option-${g}`:void 0,onChange:f=>{y(f.target.value),m(0)},onKeyDown:j})]}),t.jsxs("ul",{id:_,role:"listbox","aria-label":r,className:V.palette__list,children:[v.map((f,N)=>{var D;const k=f.group!==void 0&&f.group!==((D=v[N-1])==null?void 0:D.group);return t.jsxs("li",{children:[k&&t.jsx("span",{className:V.palette__group,"aria-hidden":!0,children:f.group}),t.jsxs("div",{id:`${p}-option-${N}`,role:"option","data-index":N,"aria-selected":N===g,className:x(V.palette__item,N===g&&V["palette__item--active"]),onMouseEnter:()=>m(N),onClick:()=>$(f),children:[f.icon&&t.jsx("span",{className:V.palette__icon,"aria-hidden":!0,children:f.icon}),t.jsxs("span",{className:V.palette__text,children:[t.jsx("span",{className:V.palette__label,children:f.label}),f.description&&t.jsx("span",{className:V.palette__description,children:f.description})]}),f.shortcut&&t.jsx("kbd",{className:V.palette__shortcut,"aria-hidden":!0,children:f.shortcut})]})]},f.id)}),v.length===0&&t.jsx("li",{className:V.palette__empty,children:i})]})]})},Wu=s.memo(S(Qu,"CommandPalette")),Ju={destructive:t.jsx(E.TrashFill,{"aria-hidden":!0}),warning:t.jsx(E.ExclamationTriangleFill,{"aria-hidden":!0}),neutral:t.jsx(E.QuestionCircleFill,{"aria-hidden":!0})},Vu={destructive:"danger",warning:"warning",neutral:"info"},Zu={destructive:fe.DANGER,warning:fe.PRIMARY,neutral:fe.PRIMARY},e_=({isOpen:e,onClose:a,onConfirm:n,title:r,description:o,confirmLabel:i,cancelLabel:c,closeLabel:d,variant:p,kind:_,children:l})=>{const{labels:h}=H(),[u,b]=s.useState(!1),y=p??_??"neutral",g=async()=>{b(!0);try{await n()}finally{b(!1)}};return t.jsx(ra,{isOpen:e,onClose:a,title:r,closeLabel:d??(h==null?void 0:h.close),description:o,icon:Ju[y],tone:Vu[y],size:"sm",isDismissable:!u,footer:t.jsxs(t.Fragment,{children:[t.jsx(it,{variant:fe.SECONDARY,size:Fe.MEDIUM,onClick:a,disabled:u,children:M("ConfirmDialog.cancelLabel",c,h==null?void 0:h.cancel)}),t.jsx(it,{variant:Zu[y],size:Fe.MEDIUM,onClick:g,isLoading:u,children:i})]}),children:l})},t_=s.memo(e_),a_="hanui-drawer-fgfi1",n_="hanui-drawer__header-BDcRe",s_="hanui-drawer__title-9M0e8",r_="hanui-drawer__close-Z30oW",o_="hanui-drawer__toolbar-vcsYi",i_="hanui-drawer__body-x12SX",c_="hanui-drawer__footer-PajTg",be={drawer:a_,"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:n_,drawer__title:s_,drawer__close:r_,drawer__toolbar:o_,drawer__body:i_,drawer__footer:c_},l_=({isOpen:e,onClose:a,title:n,closeLabel:r,children:o,side:i="end",size:c="md",footer:d,toolbar:p,className:_,testId:l})=>{const{labels:h}=H(),u=s.useRef(null),b=s.useRef(null),y=s.useId();s.useEffect(()=>{const m=u.current;if(!m)return;if(!e){m.open&&m.close();return}const v=ct();m.open||m.showModal(),Bt(m,`.${be.drawer__close}`),Mt(m);const{token:$,pop:j}=Pt();return b.current=$,()=>{j(),b.current=null,v()}},[e]),Nt(e),s.useEffect(()=>{const m=u.current;if(!m)return;const v=$=>{$.preventDefault(),!(b.current&&!Ot(b.current))&&a()};return m.addEventListener("cancel",v),()=>m.removeEventListener("cancel",v)},[a]);const g=s.useCallback(m=>{m.target===u.current&&a()},[a]);return t.jsxs("dialog",{ref:u,className:x(be.drawer,be[`drawer--${i}`],be[`drawer--${c}`],_),"aria-labelledby":y,"data-testid":l,onClick:g,children:[t.jsxs("header",{className:be.drawer__header,children:[t.jsx("h2",{id:y,className:be.drawer__title,children:n}),t.jsx(pe,{icon:t.jsx(E.XLg,{"aria-hidden":!0}),label:M("Drawer.closeLabel",r,h==null?void 0:h.close),variant:"ghost",size:"sm",className:be.drawer__close,onClick:a})]}),p&&t.jsx("div",{className:be.drawer__toolbar,children:p}),t.jsx("div",{className:be.drawer__body,children:o}),d&&t.jsx("div",{className:be.drawer__footer,children:d})]})},d_=s.memo(S(l_,"Drawer")),u_="hanui-form-zpZn4",__={form:u_},h_=({isOpen:e,onClose:a,onSubmit:n,title:r,label:o,submitLabel:i,cancelLabel:c,closeLabel:d,description:p,hint:_,placeholder:l,defaultValue:h="",isRequired:u,requiredLabel:b,inputMode:y="text",maxLength:g,rows:m=4})=>{const{labels:v}=H(),$=s.useId(),[j,f]=s.useState(h),[N,k]=s.useState(!1),D=s.useRef(!1);s.useEffect(()=>{e&&!D.current&&f(h),D.current=e},[e,h]);const C=j.trim(),I=!!u&&C==="",w=P=>y==="multiline"?t.jsx(Pa,{...P,value:j,onChange:X=>f(X.target.value),placeholder:l,maxLength:g,rows:m}):t.jsx(na,{...P,type:y==="number"?"number":"text",value:j,onChange:X=>f(X.target.value),placeholder:l,maxLength:g}),L=async()=>{if(!(I||N)){k(!0);try{await n(C),a()}catch{}finally{k(!1)}}};return t.jsx(ra,{isOpen:e,onClose:a,title:r,closeLabel:d??(v==null?void 0:v.close),description:p,size:"sm",isDismissable:!N,footer:t.jsxs(t.Fragment,{children:[t.jsx(it,{variant:fe.SECONDARY,size:Fe.MEDIUM,onClick:a,disabled:N,children:M("PromptDialog.cancelLabel",c,v==null?void 0:v.cancel)}),t.jsx(it,{type:"submit",form:$,variant:fe.PRIMARY,size:Fe.MEDIUM,disabled:I,isLoading:N,children:M("PromptDialog.submitLabel",i,v==null?void 0:v.submit)})]}),children:t.jsx("form",{id:$,className:__.form,onSubmit:P=>{P.preventDefault(),L()},children:t.jsx(Oa,{label:o,hint:_,isRequired:u,requiredLabel:b,children:w})})})},p_=s.memo(h_),m_="hanui-scroller-EtDmS",b_="hanui-table-uCv4q",rt={scroller:m_,"scroller--frame":"hanui-scroller--frame-84zz6",table:b_,"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"},g_=S(s.memo(({hasFrame:e=!0,className:a,children:n,...r})=>t.jsx("div",{className:x(rt.scroller,e&&rt["scroller--frame"],a),...r,children:n})),"TableScroller"),f_=({density:e="regular",hasStickyHead:a,hasRowHover:n,className:r,children:o,...i})=>t.jsx("table",{className:x(rt.table,rt[`table--${e}`],a&&rt["table--sticky-head"],n&&rt["table--row-hover"],r),...i,children:o}),x_=s.memo(f_),v_="hanui-wrapper-KXCZg",y_="hanui-table-LF5Ow",w_="hanui-state-YPPb0",k_="hanui-state__message-wwbIW",j_="hanui-srOnly-Oia8c",N_="hanui-sort-3Q6Fx",$_="hanui-sort__arrow-MITWb",E_="hanui-sticky-KDEvQ",C_="hanui-bulkBar-62qk0",Z={wrapper:v_,"wrapper--capped":"hanui-wrapper--capped-M2QUJ",table:y_,state:w_,"state--error":"hanui-state--error-A492d",state__message:k_,"row--warning":"hanui-row--warning-BAUN2",srOnly:j_,sort:N_,sort__arrow:$_,"sort__arrow--ascending":"hanui-sort__arrow--ascending-85T5d","sort__arrow--descending":"hanui-sort__arrow--descending-gs3VU",sticky:E_,bulkBar:C_},I_=({columns:e,children:a,isLoading:n,error:r,emptyMessage:o,loadingMessage:i,hasViewportCap:c,onSort:d,bulkBar:p,className:_,testId:l})=>{var y,g;const{labels:h}=H(),u=s.Children.count(a),b=(m,v)=>t.jsx("tr",{children:t.jsx("td",{colSpan:e.length,className:x(Z.state,v&&Z[`state--${v}`]),children:m})});return t.jsxs("div",{className:x(Z.wrapper,c&&Z["wrapper--capped"],_),"data-testid":l,children:[p&&t.jsx("div",{className:Z.bulkBar,children:p}),t.jsxs("table",{className:Z.table,children:[t.jsx("thead",{children:t.jsx("tr",{children:e.map(m=>{const v=!!(m.isSortable&&d),$=m.ariaSort==="ascending"?"descending":"ascending";return t.jsx("th",{scope:"col","aria-sort":m.ariaSort,className:x(m.className,m.isSticky&&Z.sticky),children:v?t.jsxs("button",{type:"button",className:Z.sort,onClick:()=>d==null?void 0:d(m.key,$),children:[m.label,m.srLabel&&t.jsx("span",{className:Z.srOnly,children:m.srLabel}),t.jsx("span",{"aria-hidden":!0,className:x(Z.sort__arrow,m.ariaSort&&Z[`sort__arrow--${m.ariaSort}`]),children:m.ariaSort==="descending"?"▾":"▴"})]}):t.jsxs(t.Fragment,{children:[m.label,m.srLabel&&t.jsx("span",{className:Z.srOnly,children:m.srLabel})]})},m.key)})})}),t.jsx("tbody",{children:r?b(t.jsxs("span",{role:"alert",className:Z.state__message,children:[t.jsx(E.ExclamationCircleFill,{"aria-hidden":!0}),r]}),"error"):n?b(M("DataTable.loadingMessage",i,(y=h==null?void 0:h.dataTable)==null?void 0:y.loading)):u===0?b(M("DataTable.emptyMessage",o,(g=h==null?void 0:h.dataTable)==null?void 0:g.empty)):a})]})]})},T_=S(s.memo(({isWarning:e,className:a,children:n,...r})=>t.jsx("tr",{className:x(e&&Z["row--warning"],a),...r,children:n})),"DataTableRow"),D_=s.memo(I_),S_="hanui-bar-b4PP4",R_="hanui-bar__hiddenSubmit-jeCyX",L_="hanui-bar__actions-rG69L",A_="hanui-field-f-rvu",yt={bar:S_,bar__hiddenSubmit:R_,bar__actions:L_,field:A_,"field--wide":"hanui-field--wide-FA5gf"},F_=({onSubmit:e,children:a,actions:n,label:r,className:o,testId:i})=>{const{labels:c}=H();return t.jsxs("form",{className:x(yt.bar,o),"aria-label":M("FilterBar.label",r,c==null?void 0:c.filters),"data-testid":i,onSubmit:d=>{d.preventDefault(),e()},children:[a,t.jsx("button",{type:"submit",className:yt.bar__hiddenSubmit,tabIndex:-1,"aria-hidden":!0}),n&&t.jsx("div",{className:yt.bar__actions,children:n})]})},M_=S(s.memo(({children:e,isWide:a,className:n})=>t.jsx("div",{className:x(yt.field,a&&yt["field--wide"],n),children:e})),"FilterBarField"),B_=s.memo(F_),P_="hanui-pagination-K-L20",O_="hanui-pagination__list--9HqC",H_="hanui-pagination__arrow-XIgoX",z_="hanui-pagination__page-TpoJM",K_="hanui-pagination__gap-qoDyI",Ne={pagination:P_,pagination__list:O_,pagination__arrow:H_,pagination__page:z_,"pagination__page--active":"hanui-pagination__page--active-XHeaz",pagination__gap:K_},U_=(e,a)=>{if(a<=7)return Array.from({length:a},(i,c)=>c+1);const n=new Set([1,a,e]);e-1>1&&n.add(e-1),e+1<a&&n.add(e+1);const r=[...n].sort((i,c)=>i-c),o=[];return r.forEach((i,c)=>{c>0&&i-r[c-1]>1&&o.push("gap"),o.push(i)}),o},q_=({page:e,totalPages:a,label:n,previousLabel:r,nextLabel:o,buildHref:i,onPageChange:c,linkProps:d,formatAnnouncement:p,className:_,testId:l})=>{var m,v,$;const{labels:h}=H(),u=At(),b=s.useRef(e);s.useEffect(()=>{b.current!==e&&(b.current=e,p&&u(p(e,a)))},[e,a,p,u]);const y=s.useMemo(()=>U_(e,a),[e,a]);if(a<=1)return null;const g=j=>{c&&c(j)};return t.jsxs("nav",{className:x(Ne.pagination,_),"aria-label":M("Pagination.label",n,(m=h==null?void 0:h.pagination)==null?void 0:m.label),"data-testid":l,children:[t.jsx(pe,{className:Ne.pagination__arrow,icon:t.jsx(E.CaretLeftFill,{"aria-hidden":!0}),label:M("Pagination.previousLabel",r,(v=h==null?void 0:h.pagination)==null?void 0:v.previous),variant:"outline",disabled:e<=1,onClick:()=>g(e-1)}),t.jsx("ul",{className:Ne.pagination__list,children:y.map((j,f)=>j==="gap"?t.jsx("li",{className:Ne.pagination__gap,"aria-hidden":!0,children:"…"},`gap-${f}`):t.jsx("li",{children:i?t.jsx(xe,{href:i(j),className:x(Ne.pagination__page,j===e&&Ne["pagination__page--active"]),"aria-current":j===e?"page":void 0,...d,children:j}):t.jsx(it,{variant:fe.SECONDARY,size:Fe.SMALL,className:x(Ne.pagination__page,j===e&&Ne["pagination__page--active"]),"aria-current":j===e?"page":void 0,onClick:()=>g(j),children:j})},j))}),t.jsx(pe,{className:Ne.pagination__arrow,icon:t.jsx(E.CaretRightFill,{"aria-hidden":!0}),label:M("Pagination.nextLabel",o,($=h==null?void 0:h.pagination)==null?void 0:$.next),variant:"outline",disabled:e>=a,onClick:()=>g(e+1)})]})},Y_=s.memo(q_);exports.ABOVE_MOBILE_MEDIA_QUERY=Ft;exports.ABOVE_TABLET_MEDIA_QUERY=gn;exports.Accordion=Hd;exports.Alert=xi;exports.Avatar=$i;exports.Badge=Ti;exports.BottomSheet=aa;exports.Breadcrumb=Mi;exports.Button=it;exports.COMPACT_DENSITY=tn;exports.Card=Ji;exports.CardBody=Qi;exports.CardFooter=Wi;exports.CardMedia=Xi;exports.CardOverlay=Gi;exports.Carousel=rc;exports.Checkbox=ar;exports.Chip=Ba;exports.ChipGroup=ss;exports.Combobox=Ds;exports.CommandPalette=Wu;exports.ConfirmDialog=t_;exports.CopyField=_c;exports.DARK_THEME=Na;exports.DEFAULT_FONTS=an;exports.DataTable=D_;exports.DataTableRow=T_;exports.DateField=$o;exports.DateRange=Co;exports.Directory=Lc;exports.DirectoryGroup=Dc;exports.DirectoryJump=Rc;exports.DirectoryRow=Sc;exports.Divider=bc;exports.Drawer=d_;exports.EmptyState=Hc;exports.Field=Oa;exports.FileUpload=di;exports.FilterBar=B_;exports.FilterBarField=M_;exports.HanuiProvider=sn;exports.IconButton=pe;exports.Input=na;exports.LIGHT_THEME=ja;exports.METRIC_TOKENS=en;exports.MOBILE_BREAKPOINT=Aa;exports.Menu=Xn;exports.Modal=ra;exports.PageHeader=Zc;exports.Pagination=Y_;exports.Panel=bl;exports.PanelForm=pl;exports.PanelRow=ml;exports.PasswordInput=co;exports.Popover=Wn;exports.Price=kl;exports.Progress=za;exports.ProgressCircle=Go;exports.PromptDialog=p_;exports.QuantityStepper=Gr;exports.Radio=fr;exports.RadioCard=jr;exports.RangeSlider=Rr;exports.Rating=Tl;exports.RatingInput=Kr;exports.ScrollArea=Hl;exports.SectionHeader=Bl;exports.SegmentedControl=Ms;exports.Select=Qs;exports.Skeleton=Vl;exports.SkeletonCard=ad;exports.SkeletonRows=nd;exports.SkeletonTable=sd;exports.Spinner=ta;exports.Stat=bd;exports.Steps=Zd;exports.Switch=dr;exports.TABLET_BREAKPOINT=Fa;exports.TABLET_PORTRAIT_BREAKPOINT=bn;exports.Table=x_;exports.TableCheckbox=Vr;exports.TableScroller=g_;exports.Tabs=ou;exports.TagInput=mo;exports.TextLink=Ln;exports.Textarea=Pa;exports.Tile=_u;exports.Timeline=ju;exports.ToastHub=Ka;exports.ToastPortal=Dd;exports.Tooltip=Hn;exports.UISize=Fe;exports.UIVariant=fe;exports.buildThemeCss=Ea;exports.initHanui=rn;exports.isKeyboardOpeningElement=Ma;exports.matchesSearch=wt;exports.normalizeSearchTerm=Qt;exports.preventAutoKeyboard=Mt;exports.resolveTokens=nn;exports.toast=Ed;exports.useAnnounce=At;exports.useHanui=H;exports.useHanuiTheme=un;exports.useListboxNavigation=ea;exports.usePositioning=jt;exports.useScrollLock=Nt;exports.useSheetViewport=La;exports.useVirtualList=Ta;
22
22
  //# sourceMappingURL=index.cjs.map